@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --primary-gradient: linear-gradient(135deg, #0071e3 0%, #5b5ef7 100%);
  --black: #1d1d1f;
  --dark-gray: #86868b;
  --light-gray: #f2f2f7;
  --bg-color: #f5f5f7;
  --white: #ffffff;
  --radius: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Mobile UX: reduce accidental double-tap zoom on tappables.
   (Keeps pinch-zoom available for accessibility.) */
button,
a,
.btn,
.site-nav-hamburger,
.search-btn {
  touch-action: manipulation;
}

/* iOS Safari: prevent focus-zoom on small inputs by ensuring >=16px on mobile. */
@media (max-width: 768px) {
  input,
  select,
  textarea,
  .form-input,
  .search-field,
  .trip-input {
    font-size: 16px !important;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--black);
}

p {
  color: var(--dark-gray);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 113, 227, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--light-gray);
  color: var(--black);
}

.btn-outline:hover {
  background-color: var(--light-gray);
  border-color: var(--dark-gray);
}

/* Header Navbar */
header {
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 220;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  height: auto;
  position: relative;
}

/* Logo | [hamburger + drawer + Cars + Login] — hamburger only on small screens */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.site-nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.site-nav-hamburger:hover {
  background: var(--light-gray);
}

.site-nav-hamburger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.site-nav-hamburger-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  pointer-events: none;
}

.site-nav-hamburger-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-hamburger.is-open .site-nav-hamburger-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-hamburger.is-open .site-nav-hamburger-bars span:nth-child(2) {
  opacity: 0;
}

.site-nav-hamburger.is-open .site-nav-hamburger-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-overlay {
  display: none;
}

.site-nav-drawer .nav-links-drawer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav-drawer .nav-links-drawer li {
  display: flex;
  align-items: center;
}

.nav-links-peek {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

body.site-nav-open {
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  box-shadow: 0 4px 12px rgba(89, 60, 251, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.5px;
}

.brand-desc {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Social Links Header */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon.facebook {
  color: #1877F2;
}

.social-icon.google-maps {
  color: #EA4335;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-icon.facebook:hover {
  background: #1877F2;
  color: var(--white);
}

.social-icon.google-maps:hover {
  background: #EA4335;
  color: var(--white);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.user-item {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 8px;
  z-index: 200;
}

.profile-dropdown.show {
  display: flex;
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: #f3f4f6;
  color: var(--black);
}

.dropdown-divider {
  height: 1px;
  background: var(--light-gray);
  margin: 8px 0;
}

/* User Profile Header */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: #f3f4f6;
  border-radius: 100px;
  color: var(--black);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.user-profile:hover {
  background: #e5e7eb;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar span {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-gray);
}

.nav-links li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logout-btn {
  background: #ef4444;
  color: white !important;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.nav-logout-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.2);
}

.my-trips-capsule {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(89, 60, 251, 0.3);
}

.my-trips-capsule:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(89, 60, 251, 0.4);
}

/* Success Actions */
.success-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-manage-trips {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(89, 60, 251, 0.3);
}

.btn-manage-trips:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(89, 60, 251, 0.4);
}

/* Hero Section */
.hero {
  padding: 32px 0 40px;
  text-align: center;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%), url('../images/hero-oregon-coast.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
  font-size: 15px;
  line-height: 1.4;
  max-width: 480px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

/* Search Bar Mockup */
.search-bar {
  display: flex;
  background: var(--white);
  border-radius: 20px;
  padding: 10px 6px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-bar--hero {
  width: 100%;
  padding: 6px 4px;
  gap: 8px;
  border-radius: 16px;
}

/* Compact main date / location bar (homepage hero only) */
.search-bar--hero .search-input {
  padding: 6px 12px;
}

.search-bar--hero .search-input label {
  font-size: 10px;
  margin-bottom: 4px;
}

.search-bar--hero .search-field {
  font-size: 14px;
  margin-top: 0;
}

.search-bar--hero .search-datetime-block {
  gap: 5px;
  margin-top: 4px;
}

.search-bar--hero .search-date-row {
  gap: 6px;
}

.search-bar--hero .search-date-icon {
  width: 16px;
  height: 16px;
}

.search-bar--hero .search-time-row {
  gap: 6px;
}

.search-bar--hero .search-time-label {
  font-size: 10px;
  min-width: 28px;
}

.search-bar--hero .time-select {
  padding: 5px 6px;
  min-width: 76px;
  font-size: 13px;
  border-radius: 6px;
}

.search-bar--hero .search-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.search-bar--hero .search-btn svg {
  width: 20px;
  height: 20px;
}

/* Homepage hero: stacked pickup + From | Until (2 cols) + search */
.search-bar--home {
  flex-direction: column;
  align-items: stretch;
  padding: 12px 14px;
  gap: 12px;
  max-width: 640px;
}

.home-pickup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.home-pickup-pin {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.home-pickup-pin-svg {
  display: block;
}

.home-select-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.home-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #475569;
  pointer-events: none;
}

.search-bar--home .home-pickup-select.search-field {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 10px 40px 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.home-dates-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px 8px;
  align-items: end;
  width: 100%;
}

.home-date-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  width: 28px;
  align-self: center;
  margin-top: 18px;
  pointer-events: none;
}

.home-date-arrow svg {
  display: block;
}

.home-date-col {
  min-width: 0;
}

.home-date-col .search-input {
  border-right: none;
  padding: 6px 0;
}

.search-bar--home .search-datetime-block--hero-compact {
  gap: 4px;
  margin-top: 2px;
}

.search-bar--home .search-datetime-block--hero-compact .search-time-row {
  margin-top: 0;
}

.search-bar--delivery {
  padding: 16px 24px;
  text-align: left;
  border-radius: 16px;
}

.search-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 18px;
  border-right: 1px solid var(--light-gray);
  text-align: left;
  min-width: 0;
}

.search-input--full {
  border: none;
  padding: 0;
  width: 100%;
}

.search-input:last-of-type {
  border-right: none;
}

.search-input label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-input span {
  font-size: 16px;
  color: var(--dark-gray);
}

.search-field {
  border: none;
  background: transparent;
  font-size: 15px;
  width: 100%;
  outline: none;
  font-family: inherit;
  color: var(--black);
  margin-top: 2px;
}

.search-field::placeholder {
  color: var(--dark-gray);
}

select.search-field {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.search-datetime-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.search-date-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-date-icon {
  flex-shrink: 0;
  color: var(--dark-gray);
}

.search-date-input {
  flex: 1;
  min-width: 0;
}

.search-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-time-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 32px;
}

.search-time-row .time-select {
  flex: 1;
  min-width: 0;
}

.time-select {
  padding: 8px 8px;
  border-radius: 8px;
  background-color: var(--bg-color);
  color: var(--black);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  width: 100%;
  min-width: 90px;
}

.time-select:hover {
  background-color: var(--light-gray);
}

.time-select:focus {
  outline: 2px solid var(--primary);
  background-color: var(--white);
}

.search-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

.search-btn.search-btn--home {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  flex-shrink: 0;
}

/* Vehicles Grid */
.cars-section {
  padding: 48px 0 80px;
  background-color: var(--bg-color);
}

/* Line 1: title + count; line 2: filters (wrap, no horizontal scroll) */
.cars-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
  width: 100%;
}

.cars-title {
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  width: 100%;
}

.cars-count {
  font-size: 0.88em;
  font-weight: 500;
  color: var(--dark-gray);
}

.cars-sub {
  font-size: 15px;
  color: var(--dark-gray);
  margin: 0;
}

/* Fleet filters — wrap to new lines; no overflow-x scrollbar */
.fleet-filters {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  min-width: 0;
}

.cars-toolbar .fleet-filters {
  margin-bottom: 0;
}

.fleet-filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 10px;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.fleet-filter-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin: 0;
  cursor: pointer;
  min-width: 0;
  width: 100%;
}

.fleet-filter-inline .fleet-filter-tile {
  flex: 1 1 auto;
  min-width: 0;
}

.fleet-filter-chip-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark-gray);
  white-space: nowrap;
}

.fleet-filter-tile {
  appearance: none;
  -webkit-appearance: none;
  padding: 4px 22px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  color: var(--black);
  min-width: 0;
  width: 100%;
  max-width: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fleet-filter-tile:hover {
  border-color: rgba(0, 113, 227, 0.35);
}

.fleet-filter-tile:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.fleet-filter-clear {
  justify-self: start;
  padding: 0.35rem 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cars-toolbar {
    gap: 8px;
  }

  .cars-title {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }

  .fleet-filters-row {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .fleet-filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-filter-clear {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}

.cars-grid {
  margin-top: 0;
}

.cars-section .car-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.cars-section .car-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Car Card */
.car-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: var(--white);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.car-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: rgba(0, 113, 227, 0.1);
}

.car-image-wrapper {
  position: relative;
  padding-top: 62%;
  background-color: #f8fafc;
  overflow: hidden;
}

.car-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-orientation: from-image;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.car-card:hover .car-image {
  transform: scale(1.08);
}

.car-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.car-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.car-specs {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #475569;
  margin-bottom: 20px;
  padding: 12px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.spec-highlight {
  color: #059669;
  font-weight: 700;
}

.car-features {
  display: none;
  /* Hide features to unclutter the main grid */
}

.car-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.car-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.car-price .amount {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
}

.car-price .unit {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.btn-book-now {
  background-color: #0f172a;
  color: white;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-book-now:hover {
  background-color: #334155;
  transform: scale(1.05);
}

/* Badges styling */
.car-rating {
  background: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.car-rating .review-count {
  color: var(--dark-gray);
  font-weight: 400;
}

.badge-electric {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #16a34a;
  color: var(--white);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-right-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  z-index: 10;
}

/* Default position if single */
.car-image-wrapper>.car-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.badge-fsd {
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 2px 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Footer */
.site-footer,
footer {
  background-color: var(--white);
  padding: 48px 0 56px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--dark-gray);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--dark-gray);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Badge (Sold or Unavailable) */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--black);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    height: 70px;
    padding: 0 16px;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: space-between;
    /* allow account dropdown to extend below bar (was clipping & blocking taps) */
    overflow: visible;
  }

  header {
    overflow: visible;
  }

  .logo {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 20px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 15px;
    white-space: nowrap;
  }

  .brand-desc {
    display: none;
    /* Hide long description on mobile */
  }

  .navbar-actions {
    gap: 8px;
  }

  .site-nav-hamburger {
    display: inline-flex;
    /* Keep hamburger at top-right (end of navbar-actions) */
    order: 10;
  }

  /* Drawer content is fixed-position; keep the wrapper from consuming row space */
  .site-nav-drawer {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    overflow: visible;
    position: static;
  }

  .site-nav-overlay {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 199;
    background: rgba(15, 23, 42, 0.45);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-nav-overlay[hidden] {
    display: none !important;
  }

  .site-nav-drawer .nav-links-drawer {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    margin: 0;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--light-gray);
    z-index: 200;
  }

  .site-nav-drawer.is-open .nav-links-drawer {
    display: flex;
  }

  .site-nav-drawer .nav-links-drawer > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .site-nav-drawer .nav-links-drawer > li:last-child {
    border-bottom: none;
  }

  .site-nav-drawer .nav-links-drawer a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
  }

  .site-nav-drawer .nav-links-drawer .social-links {
    padding: 12px 20px 8px;
    gap: 14px;
    justify-content: flex-start;
  }

  .nav-links-peek {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .nav-links-peek li {
    gap: 0;
  }

  .nav-links-peek a:not(.btn) {
    font-size: 13px;
    padding: 6px 10px;
    font-weight: 600;
  }

  /* Peek row: Cars + Login / account only */
  .nav-links-peek .btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Social icons only appear inside the hamburger menu on mobile */
  .social-links {
    display: flex !important;
  }

  .user-profile {
    padding: 4px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .user-avatar {
    width: 24px;
    height: 24px;
  }


  .hero {
    padding: 24px 0 32px;
  }

  .hero-inner {
    padding: 0 8px;
  }

  .hero-eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 16px;
  }

  .scrolling-wrapper {
    margin-top: 8px;
    margin-bottom: 14px;
  }

  .search-bar--delivery {
    padding: 14px 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 10px;
  }

  .search-bar--hero {
    padding: 8px;
    gap: 6px;
  }

  .search-bar--home {
    padding: 10px 12px;
    gap: 10px;
  }

  .search-bar--home .home-date-col .search-input {
    border-bottom: none;
    padding: 6px 0;
  }

  .search-bar--home .home-dates-actions-row {
    gap: 8px;
  }

  .search-bar--home .home-date-arrow {
    margin-top: 16px;
  }

  .search-input {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
    padding: 10px 12px;
  }

  .search-bar--hero .search-input {
    padding: 8px 12px;
  }

  .search-input:last-of-type {
    border-bottom: none;
  }

  .search-btn {
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
  }

  .search-bar--home .search-btn--home {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-top: 0;
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .search-bar--home .search-btn--home {
    width: 44px;
    height: 44px;
    margin-top: 4px;
  }

  .search-bar--home .home-date-arrow {
    width: 22px;
    margin-top: 14px;
  }
}

/* WhatsApp Floating Action Button */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-4px);
  background-color: #1EBE55;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* My Trips — Upload docs modal status (pending verification rows) */
#docs-status.docs-status-area {
  margin-top: 12px;
  font-size: 14px;
  width: 100%;
}

.docs-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.docs-status-pending-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  color: #92400e;
  line-height: 1.45;
}

.docs-status-pending-row .docs-status-warn-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #d97706;
  display: inline-flex;
}

.docs-status-pending-row .docs-status-warn-icon svg {
  display: block;
}

.docs-status-plain-line {
  color: #111;
  text-align: center;
  line-height: 1.5;
}

/* Nav Inbox unread badge (injected by header.js) */
.nav-inbox-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  vertical-align: middle;
  line-height: 1.3;
}

/* Logged-in nav: desktop shows Profile + Logout; mobile shows avatar menu (header.js) */
.nav-auth-desktop-only {
  display: list-item;
}

.nav-auth-mobile-only {
  display: list-item !important;
}

.nav-account-menu-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-account-menu-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 20;
}

/* Ensure taps hit the button, not only the image (mobile) */
.nav-account-menu-btn .nav-account-avatar-img,
.nav-account-menu-btn .nav-account-avatar-initials {
  pointer-events: none;
}

.nav-account-menu-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border: 2px solid var(--light-gray);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-account-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-account-avatar-initials {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nav-account-dropdown.profile-dropdown {
  right: 0;
  left: auto;
  min-width: 200px;
  z-index: 400;
  pointer-events: auto;
}

button.dropdown-item.nav-dropdown-logout {
  color: #dc2626;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  font-weight: 600;
}

button.dropdown-item.nav-dropdown-logout:hover {
  color: #b91c1c;
}

@media (max-width: 768px) {
  .nav-auth-desktop-only {
    display: none !important;
  }

  .nav-auth-mobile-only {
    display: list-item !important;
  }

  .nav-user-avatar-wrap {
    flex-shrink: 0;
  }

  .nav-account-avatar {
    width: 36px;
    height: 36px;
  }

  .nav-account-avatar-initials {
    font-size: 13px;
  }
}

/* Homepage — guest reviews marquee (5★), sits above footer */
.reviews-marquee-section {
  padding: 48px 0 40px;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.reviews-marquee-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 8px;
}

.reviews-marquee-sub {
  text-align: center;
  color: var(--dark-gray);
  font-size: 15px;
  margin: 0 0 8px;
}

.reviews-marquee-outer {
  position: relative;
  max-width: 100%;
}

.reviews-marquee-section--empty .reviews-marquee--desktop,
.reviews-marquee-section--empty .reviews-marquee--mobile {
  display: none !important;
}

.reviews-marquee-fallback {
  text-align: center;
  color: var(--dark-gray);
  padding: 24px;
  font-size: 14px;
}

/* Desktop: scroll left → right (content moves horizontally) */
.reviews-marquee--desktop {
  display: none;
}

.reviews-marquee--mobile {
  display: block;
}

@media (min-width: 769px) {
  .reviews-marquee--desktop {
    display: block;
  }

  .reviews-marquee--mobile {
    display: none;
  }
}

.reviews-marquee-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}

.reviews-marquee-viewport--mobile {
  max-height: 340px;
  mask-image: linear-gradient(180deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 6%, black 94%, transparent);
}

.reviews-marquee-track {
  will-change: transform;
}

.reviews-marquee-track--x {
  display: inline-flex;
  flex-direction: row;
  gap: 20px;
  width: max-content;
  padding: 8px 0 16px;
  animation: reviews-marquee-x 90s linear infinite;
}

.reviews-marquee-track--y {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
  animation: reviews-marquee-y 100s linear infinite;
}

@keyframes reviews-marquee-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes reviews-marquee-y {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee-track--x,
  .reviews-marquee-track--y {
    animation: none;
  }
}

.reviews-marquee:hover .reviews-marquee-track--x,
.reviews-marquee:hover .reviews-marquee-track--y {
  animation-play-state: paused;
}

.review-card {
  flex: 0 0 auto;
  width: min(340px, 85vw);
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.reviews-marquee--mobile .review-card {
  width: 100%;
  max-width: 100%;
}

.review-card-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 15px;
  line-height: 1;
  margin-bottom: 10px;
}

.review-card-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.review-card-date {
  font-weight: 500;
  color: var(--dark-gray);
}

.review-card-body {
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-marquee--mobile .review-card-body {
  -webkit-line-clamp: 8;
  line-clamp: 8;
}

/* Full reviews page — sticky site header; title fixed; list scrolls with vertical scrollbar */
.reviews-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.reviews-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  box-sizing: border-box;
}

.reviews-page-head {
  flex-shrink: 0;
  text-align: center;
  margin-bottom: 12px;
}

.reviews-page-title {
  font-size: 1.75rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--black);
}

.reviews-page-sub {
  margin: 0 0 12px;
  color: var(--dark-gray);
  font-size: 15px;
}

.reviews-page-back {
  margin: 0;
  font-size: 14px;
}

.reviews-page-back a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.reviews-page-back a:hover {
  text-decoration: underline;
}

.reviews-page-list {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 24px;
  padding-right: 10px;
  scrollbar-gutter: stable;
}

.reviews-page-list .review-card {
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
}

.reviews-page-list .review-card:last-child {
  margin-bottom: 0;
}

.reviews-page-list .review-card-body {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.reviews-page-loading {
  text-align: center;
  color: var(--dark-gray);
  padding: 32px 16px;
  margin: 0;
}

.reviews-page-error {
  color: #b91c1c;
}

.reviews-marquee-see-all {
  text-align: center;
  margin: 0 0 20px;
  font-size: 15px;
}

.reviews-marquee-see-all a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.reviews-marquee-see-all a:hover {
  text-decoration: underline;
}