/* ============================================================
   Velocity Rentals — public site stylesheet
   Dark showroom theme · vanilla CSS
   ============================================================ */

:root {
  --bg: #0b101e;
  --bg-soft: #0e1424;
  --surface: #151d33;
  --surface-2: #1b2440;
  --border: #27314f;
  --text: #e8ecf6;
  --muted: #93a0bd;
  --accent: #f6c945;
  --accent-2: #e8b228;
  --accent-ink: #1d2233;
  --green: #5ad491;
  --red: #ff7a7a;
  --blue: #4f8ef7;
  --purple: #9d7bff;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(11, 16, 30, 0.85);
  --header-border: rgba(39, 49, 79, 0.6);
  --chip-bg: rgba(13, 18, 34, 0.82);
  --input-bg: var(--bg-soft);
  --placeholder: #5d6a8a;
  --font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ------------------------------------------------ light theme */

[data-theme="light"] {
  --bg: #eef1f8;
  --bg-soft: #f7f9fd;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --border: #d9e0ee;
  --text: #1c2336;
  --muted: #5d6982;
  --green: #1f9d62;
  --red: #d64545;
  --blue: #2f6fd0;
  --purple: #7757e0;
  --shadow: 0 16px 38px rgba(30, 44, 90, 0.12);
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(210, 218, 236, 0.9);
  --chip-bg: rgba(255, 255, 255, 0.9);
  --input-bg: #ffffff;
  --placeholder: #9aa5bd;
}
[data-theme="light"] input[type="date"] { color-scheme: light; }
[data-theme="light"] .hero-glow {
  background:
    radial-gradient(700px 380px at 78% 8%, rgba(232, 178, 40, 0.16), transparent 65%),
    radial-gradient(600px 400px at 12% 90%, rgba(47, 111, 208, 0.1), transparent 60%);
}
[data-theme="light"] .chip { color: var(--text); }
[data-theme="light"] .btn-outline { color: var(--text); }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffd966; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.3px; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 32px); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.icon { vertical-align: -3px; flex-shrink: 0; }

/* ------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 15px var(--font);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(246, 201, 69, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(246, 201, 69, 0.4); color: var(--accent-ink); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.btn-danger-outline { background: transparent; color: var(--red); border-color: rgba(255, 122, 122, 0.4); }
.btn-danger-outline:hover { background: rgba(255, 122, 122, 0.1); }

.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* ------------------------------------------------ chips & badges */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.chip-category { background: rgba(246, 201, 69, 0.93); color: var(--accent-ink); border-color: transparent; }
.chip-note { background: rgba(79, 142, 247, 0.9); color: #fff; border-color: transparent; }
.chip-danger { background: rgba(255, 92, 92, 0.92); color: #fff; border-color: transparent; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.badge-pending   { background: rgba(246, 201, 69, 0.16); color: var(--accent); }
.badge-confirmed { background: rgba(79, 142, 247, 0.16); color: var(--blue); }
.badge-active    { background: rgba(157, 123, 255, 0.16); color: var(--purple); }
.badge-completed { background: rgba(90, 212, 145, 0.16); color: var(--green); }
.badge-cancelled { background: rgba(255, 122, 122, 0.16); color: var(--red); }

/* ------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
}
.nav-wrap { display: flex; align-items: center; gap: 28px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-size: 19px; font-weight: 400; color: var(--text); letter-spacing: 0.2px; }
.brand-name b { color: var(--accent); font-weight: 700; }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 6px 2px; position: relative; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ------------------------------------------------ toasts */

.toasts { position: fixed; top: 84px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toast-in 0.3s ease;
}
.toast .icon { margin-top: 2px; }
.toast-success { border-left-color: var(--green); }
.toast-success .icon { color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-error .icon { color: var(--red); }
.toast-close { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }
.toast.hide { opacity: 0; transform: translateX(20px); transition: 0.3s; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }

/* ------------------------------------------------ hero */

.hero { position: relative; padding: 88px 0 70px; overflow: hidden; }
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 78% 8%, rgba(246, 201, 69, 0.13), transparent 65%),
    radial-gradient(600px 400px at 12% 90%, rgba(79, 142, 247, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 16px; }
.hero-sub { color: var(--muted); font-size: 18px; max-width: 560px; margin-bottom: 34px; }

.search-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.search-field { min-width: 0; }
.search-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin-top: 26px; }
.hero-trust li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.hero-trust .icon { color: var(--green); }

/* ------------------------------------------------ forms */

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font: 500 14.5px var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246, 201, 69, 0.15);
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
select option { background: var(--surface); }
input[type="date"] { color-scheme: dark; }
textarea { resize: vertical; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  background: transparent;
  border: none;
  padding: 6px 0;
}

/* ------------------------------------------------ sections */

.section { padding: 64px 0; }
.section-tight { padding: 30px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--header-border); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

/* ------------------------------------------------ category strip */

.cat-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14.5px;
  transition: 0.15s;
}
.cat-pill:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.cat-pill .icon { color: var(--accent); }
.cat-pill em {
  font-style: normal;
  background: rgba(246, 201, 69, 0.15);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 9px;
}

/* ------------------------------------------------ car cards */

.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.car-grid-3 { grid-template-columns: repeat(3, 1fr); }

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #36436b; }

.car-card-media { position: relative; display: block; aspect-ratio: 8 / 5; overflow: hidden; }
.car-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.car-card:hover .car-card-media img { transform: scale(1.045); }
.car-card-media .chip { position: absolute; top: 12px; left: 12px; }
.car-card-media .chip-note { left: auto; right: 12px; }

.car-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.car-card-title { font-size: 17.5px; }
.car-card-title a { color: var(--text); }
.car-card-title a:hover { color: var(--accent); }
.car-card-year { color: var(--muted); font-size: 13px; margin-top: 2px; }

.car-card-specs { display: flex; gap: 16px; list-style: none; margin: 13px 0 16px; }
.car-card-specs li { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13.5px; }
.car-card-specs .icon { color: var(--accent); }

.car-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.car-card-price strong { font-size: 21px; color: var(--accent); }
.car-card-price span { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------ features / stats / cta */

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(246, 201, 69, 0.13);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; }

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
}
.stat strong { font-size: 36px; color: var(--accent); display: block; letter-spacing: -1px; }
.stat strong small { font-size: 18px; color: var(--muted); }
.stat span { color: var(--muted); font-size: 14px; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(420px 200px at 88% 30%, rgba(246, 201, 69, 0.16), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.cta-band p { color: var(--muted); }

/* ------------------------------------------------ page banner */

.page-banner {
  padding: 52px 0 44px;
  background:
    radial-gradient(560px 240px at 85% 0%, rgba(246, 201, 69, 0.1), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--header-border);
}
.page-banner-slim { padding: 26px 0; }
.page-banner h1 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 8px; }
.page-banner-sub { color: var(--muted); margin-top: 8px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); font-weight: 600; }

/* ------------------------------------------------ fleet page */

.fleet-layout { display: grid; grid-template-columns: 270px 1fr; gap: 30px; align-items: start; }

.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.filter-group { margin-bottom: 22px; }
.filter-group h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 11px;
}
.filter-group h4 .icon { color: var(--accent); }
.filter-sub { display: block; font-size: 12.5px; color: var(--muted); margin: 8px 0 5px; }

.radio { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14.5px; color: var(--text); }
.radio input { accent-color: var(--accent); width: 15px; height: 15px; }
.radio:hover span { color: var(--accent); }

output { display: block; text-align: right; color: var(--accent); font-weight: 700; margin-top: 2px; }

.fleet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14.5px;
}
.sort-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.sort-label select { width: auto; padding: 8px 12px; }

.empty-state {
  text-align: center;
  padding: 70px 30px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state .icon { color: var(--accent); opacity: 0.7; }
.empty-state h3 { color: var(--text); margin: 16px 0 8px; }
.empty-state .btn { margin-top: 18px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.page-link {
  min-width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ------------------------------------------------ car details */

.detail-layout { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; }

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 8 / 5;
  background: var(--surface);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.gallery-thumb {
  width: 110px;
  aspect-ratio: 8 / 5;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: var(--surface);
  opacity: 0.65;
  transition: 0.15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }

.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin: 26px 0 20px; }
.detail-head h1 { font-size: clamp(24px, 3vw, 34px); }
.detail-year { color: var(--muted); font-weight: 500; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail-price { text-align: right; white-space: nowrap; }
.detail-price strong { font-size: 32px; color: var(--accent); letter-spacing: -1px; }
.detail-price span { color: var(--muted); }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 28px; }
.spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
}
.spec .icon { grid-row: span 2; color: var(--accent); }
.spec span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.spec strong { font-size: 15px; }

.detail-block { margin-bottom: 28px; }
.detail-block h2 { font-size: 20px; margin-bottom: 12px; }
.detail-block p { color: var(--muted); max-width: 64ch; }

.feature-chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.feature-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
}
.feature-chips .icon { color: var(--green); }

/* booking panel */

.booking-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.booking-panel > h2 { display: flex; align-items: center; gap: 9px; font-size: 19px; margin-bottom: 18px; }
.booking-panel > h2 .icon { color: var(--accent); }

/* ---------------- custom date-range calendar ---------------- */
.daterange { position: relative; }
.daterange-display {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font: inherit;
}
.daterange-display:hover { border-color: var(--accent); }
.daterange-display .icon { color: var(--accent); flex-shrink: 0; }
.daterange-display .dr-arrow { color: var(--muted); display: inline-flex; }
.dr-val { font-size: 14px; font-weight: 600; }
.dr-val.dr-placeholder { color: var(--placeholder); font-weight: 500; }

.daterange-cal {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: 92vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  padding: 13px;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-title { font-weight: 700; font-size: 14.5px; text-transform: capitalize; }
.cal-nav {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 4px;
}
.cal-pad { aspect-ratio: 1; }
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.cal-day:hover:not(.disabled) { background: var(--chip-bg); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day.disabled {
  color: var(--muted);
  opacity: 0.4;
  cursor: not-allowed;
}
.cal-day.booked {
  color: var(--red);
  text-decoration: line-through;
  background: rgba(255, 122, 122, 0.12);
}
.cal-day.in-range { background: rgba(246, 201, 69, 0.18); border-radius: 0; }
.cal-day.sel-start,
.cal-day.sel-end {
  background: var(--accent);
  color: #141b30;
}
.cal-day.sel-start { border-radius: 8px 0 0 8px; }
.cal-day.sel-end { border-radius: 0 8px 8px 0; }
.cal-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.cal-legend .lg-booked {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgba(255, 122, 122, 0.45);
  display: inline-block;
}
[dir="rtl"] .daterange-display { text-align: right; }
[dir="rtl"] .daterange-cal { left: auto; right: 0; }
[dir="rtl"] .cal-day.sel-start { border-radius: 0 8px 8px 0; }
[dir="rtl"] .cal-day.sel-end { border-radius: 8px 0 0 8px; }

.availability-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9px;
  padding: 9px 13px;
  margin-bottom: 15px;
}
.availability-line.ok { background: rgba(90, 212, 145, 0.12); color: var(--green); }
.availability-line.bad { background: rgba(255, 122, 122, 0.12); color: var(--red); }

.price-summary {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px 16px;
  margin: 6px 0 16px;
  font-size: 14px;
}
.price-summary > div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.price-summary em { font-style: normal; }
.price-total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 9px !important; color: var(--text) !important; font-weight: 600; }
.price-total strong { color: var(--accent); font-size: 19px; }

.panel-fineprint { color: var(--muted); font-size: 12.5px; margin-top: 12px; text-align: center; }

.panel-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 14px;
  background: rgba(79, 142, 247, 0.1);
  color: var(--blue);
}
.panel-note-danger { background: rgba(255, 122, 122, 0.1); color: var(--red); }

.booked-ranges { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 15px; }
.booked-ranges h4 { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 9px; }
.booked-ranges ul { list-style: none; font-size: 13.5px; color: var(--muted); }
.booked-ranges li { padding: 3px 0; }

/* ------------------------------------------------ confirmation */

.confirm-wrap { max-width: 760px; }
.confirm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px clamp(20px, 5vw, 46px);
}
.confirm-head { text-align: center; margin-bottom: 28px; }
.confirm-check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(90, 212, 145, 0.14);
  color: var(--green);
  border: 2px solid rgba(90, 212, 145, 0.4);
}
.confirm-head p { color: var(--muted); margin-top: 6px; }
.confirm-code {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 5px;
  color: var(--accent);
  background: var(--bg-soft);
  border: 1px dashed rgba(246, 201, 69, 0.45);
  border-radius: 12px;
  display: inline-block;
  padding: 10px 28px;
  margin: 18px 0 12px;
}

.confirm-car { display: flex; align-items: center; gap: 18px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 22px; }
.confirm-car img { width: 130px; border-radius: 9px; }

.confirm-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.confirm-table th, .confirm-table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: top; }
.confirm-table th { color: var(--muted); font-weight: 600; width: 150px; white-space: nowrap; }
.confirm-table th .icon { color: var(--accent); }
.confirm-total strong { font-size: 19px; color: var(--accent); }

.confirm-steps { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 26px; }
.confirm-steps h3 { font-size: 16px; margin-bottom: 12px; }
.confirm-steps ol { padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 9px; }
.confirm-steps strong { color: var(--text); }

.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------ my booking */

.booking-lookup { max-width: 860px; }
.lookup-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 30px;
}
.lookup-form .form-group { margin: 0; }

.booking-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.booking-result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.booking-result-head h2 { letter-spacing: 2px; }

.status-track { display: flex; list-style: none; margin: 6px 0 28px; }
.status-track li { flex: 1; text-align: center; position: relative; color: var(--muted); font-size: 13px; font-weight: 600; }
.status-track li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.status-track li:first-child::before { display: none; }
.status-track .dot {
  position: relative;
  z-index: 1;
  width: 30px; height: 30px;
  margin: 0 auto 7px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  font-size: 12px;
}
.status-track li.done { color: var(--text); }
.status-track li.done::before { background: var(--green); }
.status-track li.done .dot { background: rgba(90, 212, 145, 0.16); border-color: var(--green); color: var(--green); }
.status-track li.now .dot { box-shadow: 0 0 0 5px rgba(90, 212, 145, 0.12); }

.booking-result-grid { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
.booking-car img { border-radius: 11px; border: 1px solid var(--border); margin-bottom: 12px; }
.booking-car h3 { font-size: 16px; margin-bottom: 8px; }

.booking-cancel { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.booking-cancel .muted { font-size: 13px; }

/* ------------------------------------------------ footer */

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--header-border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 52px 0 38px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: 9px; color: var(--muted); padding: 5px 0; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-col .icon { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--header-border); padding: 18px 0; font-size: 13px; color: var(--muted); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------ reveal animation */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------ print */

@media print {
  .site-header, .site-footer, .toasts, .confirm-actions, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  .confirm-card { border: 1px solid #999; background: #fff; }
  .confirm-table th, .confirm-table td { color: #111; border-color: #ccc; }
  .confirm-code { color: #111; border-color: #999; background: #fff; }
  .confirm-head p, .confirm-steps ol { color: #444; }
  .confirm-steps, .confirm-car { background: #fff; border-color: #ccc; }
  .confirm-car h3, .confirm-steps strong, .confirm-steps h3, .confirm-head h1 { color: #111; }
}

/* ------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .car-grid, .car-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
}

@media (max-width: 860px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card .btn { grid-column: span 2; }
  .fleet-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .lookup-form { grid-template-columns: 1fr; }
  .booking-result-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 4%;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 6px; border-bottom: 1px solid var(--header-border); }
  .main-nav a.active::after { display: none; }
}

@media (max-width: 560px) {
  .car-grid, .car-grid-3, .feature-grid { grid-template-columns: 1fr; }
  .search-card { grid-template-columns: 1fr; }
  .search-card .btn { grid-column: span 1; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .detail-head { flex-direction: column; }
  .detail-price { text-align: left; }
  .confirm-actions .btn { width: 100%; }
  .container { width: calc(100% - 32px); }

  .nav-wrap {
    height: 62px;
    gap: 10px;
    justify-content: space-between;
  }
  .brand { gap: 7px; min-width: 0; }
  .brand svg { width: 31px; height: 31px; }
  .brand-name { font-size: 16px; white-space: nowrap; }
  .nav-actions { gap: 6px; flex-shrink: 0; }
  .nav-actions .icon-btn {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
  }
  .lang-current, .admin-label { display: none; }
  .nav-actions .admin-link {
    width: 36px;
    height: 36px;
    padding: 0;
  }
  .nav-toggle { padding: 7px 2px 7px 7px; }
  .nav-toggle span { width: 20px; }
  .main-nav { top: 62px; padding-inline: 16px; }

  .hero { padding: 42px 0 36px; }
  .hero-eyebrow { font-size: 11.5px; letter-spacing: 1.1px; margin-bottom: 13px; }
  .hero h1 { font-size: 32px; margin-bottom: 13px; }
  .hero-sub { font-size: 16px; line-height: 1.65; margin-bottom: 24px; }
  .search-card { gap: 12px; padding: 16px; }
  .search-field label { margin-bottom: 6px; }
  .search-card .btn { width: 100%; }
  .hero-trust { gap: 12px 18px; margin-top: 20px; }
  .hero-trust li { font-size: 12.5px; }

  .section { padding: 44px 0; }
  .section-tight { padding: 24px 0; }
  .section-head { align-items: center; margin-bottom: 22px; }
  .section-head .btn { padding: 9px 13px; font-size: 12.5px; }
  .section-eyebrow { font-size: 11.5px; letter-spacing: 1.5px; }
  .cat-strip { gap: 8px; }
  .cat-pill { gap: 7px; padding: 8px 12px; font-size: 12.5px; }
  .cat-pill em { padding-inline: 7px; }

  .home-page .car-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 330px);
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 2px 16px 14px;
    margin-inline: -16px;
  }
  .home-page .car-grid::-webkit-scrollbar { display: none; }
  .home-page .car-card { scroll-snap-align: start; }
  .car-card-body { padding: 15px 16px 17px; }
  .car-card-specs { gap: 11px; }

  .feature-grid { gap: 12px; }
  .feature-card { padding: 20px 18px; }
  .feature-icon { width: 42px; height: 42px; margin-bottom: 12px; }
  .stats-band { gap: 22px 10px; padding: 28px 16px; }
  .stat strong { font-size: 30px; }
  .cta-band { gap: 18px; padding: 30px 20px; }
  .cta-band .btn { width: 100%; }

  .site-footer { margin-top: 24px; }
  .footer-grid { gap: 28px; padding: 40px 0 30px; }
  .footer-bottom .container { flex-direction: column; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .brand-name { font-size: 14px; }
  .nav-wrap { gap: 6px; }
  .nav-actions { gap: 4px; }
  .nav-actions .icon-btn,
  .nav-actions .admin-link { width: 33px; height: 33px; }
  .hero h1 { font-size: 29px; }
  .home-page .car-grid { padding-inline: 12px; margin-inline: -12px; }
}

/* ------------------------------------------------ header controls (theme + lang) */

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: 600 12.5px var(--font);
  transition: 0.15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: none; }
.theme-icon-dark, .theme-icon-light { display: inline-flex; }

.lang-menu { position: relative; }
.lang-current { letter-spacing: 0.5px; }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 150;
}
.lang-menu.open .lang-dropdown { display: block; }
.lang-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 8px;
}
.lang-dropdown a:hover { background: var(--surface-2); color: var(--text); }
.lang-dropdown a.active { color: var(--accent); }

/* ------------------------------------------------ star ratings */

.stars { display: inline-flex; gap: 1.5px; vertical-align: -2px; }
.star { fill: none; stroke: var(--muted); opacity: 0.55; }
.star-on { fill: var(--accent); stroke: var(--accent); opacity: 1; }
.star-half { fill: var(--accent); stroke: var(--accent); opacity: 0.5; }

.chip-rating { gap: 6px; }
.chip-rating .stars { vertical-align: middle; }

.car-card-sub { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.car-card-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.car-card-rating em { font-style: normal; font-weight: 700; color: var(--accent); }

/* ------------------------------------------------ extras picker */

.extras-list { display: flex; flex-direction: column; gap: 6px; }
.extra-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13.5px;
  transition: border-color 0.15s;
}
.extra-item:hover { border-color: var(--accent); }
.extra-item input { width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }
.extra-item:has(input:checked) { border-color: var(--accent); background: rgba(246, 201, 69, 0.07); }
.extra-name { flex: 1; }
.extra-price { color: var(--accent); font-weight: 700; font-size: 12.5px; white-space: nowrap; }

.ps-discount { color: var(--green) !important; }
.ps-discount em { font-style: normal; opacity: 0.8; }

/* ------------------------------------------------ reviews */

.review-summary { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; font-size: 17px; }
.review-summary strong { color: var(--accent); }

.review-list { display: grid; gap: 12px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.review-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-card header > div { flex: 1; min-width: 0; }
.review-card strong { display: block; font-size: 14.5px; }
.review-card time { font-size: 12px; }
.review-card p { color: var(--muted); font-size: 14px; }

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246, 201, 69, 0.18);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* review form on my-booking */

.review-invite { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.review-invite h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review-invite h3 .icon { color: var(--accent); }
.review-invite > p { margin-bottom: 14px; }
.review-form { max-width: 480px; }
.review-done { margin-top: 20px; display: flex; align-items: center; gap: 8px; background: rgba(90, 212, 145, 0.1); color: var(--green); border-radius: 10px; padding: 12px 15px; font-size: 14px; }

.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-input input { position: absolute; opacity: 0; width: 0; }
.rate-input label { font-size: 30px; line-height: 1; color: var(--border); cursor: pointer; transition: color 0.1s; padding: 0 2px; }
.rate-input input:checked ~ label,
.rate-input label:hover,
.rate-input label:hover ~ label { color: var(--accent); }

/* ------------------------------------------------ honeypot (anti-bot) */

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ------------------------------------------------ RTL support (Arabic) */

[dir="rtl"] .toasts { right: auto; left: 18px; }
[dir="rtl"] .toast { border-left: 1px solid var(--border); border-right: 4px solid var(--accent); }
[dir="rtl"] .toast-success { border-right-color: var(--green); }
[dir="rtl"] .toast-error { border-right-color: var(--red); }
[dir="rtl"] .toast-close { margin-left: 0; margin-right: auto; }
[dir="rtl"] .toast.hide { transform: translateX(-20px); }

[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .car-card-media .chip { left: auto; right: 12px; }
[dir="rtl"] .icon-right, [dir="rtl"] .icon-left { transform: scaleX(-1); }
[dir="rtl"] .detail-price { text-align: left; }
[dir="rtl"] output { text-align: left; }
[dir="rtl"] .status-track li::before { left: auto; right: -50%; }
[dir="rtl"] .confirm-table th, [dir="rtl"] .confirm-table td { text-align: right; }
[dir="rtl"] .footer-col a, [dir="rtl"] .footer-col span { text-align: right; }
