/* Self-hosted Inter (variable, weights 100-900) - the site's one typeface. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* South Florida Car Rentals — corporate navy & gold.
   Deep navy surfaces, one gold accent, rounded cards, soft shadows.
   One motion system across the whole site: a single easing curve and a
   small set of durations, so every transition feels related. */
:root {
  --bg: #0a1420;
  --bg2: #0d1b2e;
  --panel: #12233c;
  --panel2: #182c49;
  --line: #1e3a5c;
  --line-bright: #2c4f7c;
  --text: #ffffff;
  --muted: #93a5bc;
  --accent: #f7b500;
  --accent-bright: #ffc61a;
  --on-accent: #171200;
  --danger: #ff6b6b;
  --ok: #4ade80;
  --info: #4da3ff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 8, 18, 0.45);
  --shadow-lg: 0 24px 54px rgba(2, 8, 18, 0.55);
  /* Motion tokens */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --dur: 0.4s;
  --dur-slow: 0.85s;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--on-accent); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--line-bright); border: 2px solid var(--bg2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a6499; }
a { color: var(--accent); }
h1 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 1.15; margin: 0 0 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-weight: 700; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.car-rate, .confirm-code, .stat-num, input[type="date"], input[type="time"] { font-feature-settings: "tnum" 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Section titles + gold eyebrow kickers */
.eyebrow {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.75rem; font-weight: 700; margin: 0 0 0.5rem;
}
.section-title { margin: 0 0 1.6rem; }

/* ---------- Scroll reveal (driven by /app.js) ----------
   Content is hidden ONLY when <html> carries .js, which is set by an inline
   script and removed again if /app.js fails to load — so no-JS, a blocked
   script, or a dead observer can never leave a page blank. */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: none; }

/* Announcement banner — slim gold strip, set from the control panel. */
.announce {
  background: var(--accent); color: var(--on-accent);
  text-align: center; font-weight: 700; font-size: 0.88rem;
  padding: 0.55rem 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 20, 32, 0.97);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 20, 32, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-bright);
  box-shadow: 0 12px 34px rgba(2, 8, 18, 0.55);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0.95rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.brand {
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.12rem;
  letter-spacing: 0.01em; white-space: nowrap;
}
.brand-text > span { color: var(--accent); }
.brand-logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.site-logo {
  height: 42px; width: auto; max-width: 190px; object-fit: contain; flex: none;
}
.footer-brand .site-logo { height: 38px; }
.main-nav { display: flex; gap: 1.6rem; margin: 0 auto; flex-wrap: wrap; }
.main-nav a {
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  position: relative; padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.38s var(--ease);
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.header-actions a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color var(--dur-fast) var(--ease); }
.header-actions a:hover { color: var(--accent); }
.header-actions a.btn { color: var(--on-accent); }
.header-actions a.btn:hover { color: var(--on-accent); }
.nav-user { color: var(--muted); font-size: 0.9rem; }
.inline { display: inline; }
.linkbtn {
  background: none; border: none; color: var(--text); cursor: pointer; font: inherit;
  font-size: 0.95rem; font-weight: 500; padding: 0;
  transition: color var(--dur-fast) var(--ease);
}
.linkbtn:hover { color: var(--accent); }

/* Buttons — gold primary, outlined secondary, one treatment everywhere. */
.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  border: 1.5px solid var(--accent); border-radius: 10px;
  padding: 0.65rem 1.35rem; text-decoration: none;
  font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(247, 181, 0, 0.22); }
.btn:active { transform: translateY(1px) scale(0.99); box-shadow: none; }
.btn.big { padding: 0.95rem 1.9rem; font-size: 1rem; border-radius: 12px; }
.btn.small { padding: 0.42rem 0.85rem; font-size: 0.8rem; border-radius: 8px; }
.btn.outline { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.55); }
.btn.outline:hover { background: rgba(255, 255, 255, 0.06); color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn.outline-dark { background: transparent; color: var(--text); border-color: var(--line-bright); }
.btn.outline-dark:hover { background: var(--panel2); color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #2b0606; border-color: var(--danger); box-shadow: none; }
.btn.disabled {
  background: var(--panel2); color: var(--muted); border-color: var(--line);
  cursor: not-allowed; pointer-events: none; box-shadow: none; transform: none;
}
.btn.book-now { padding: 0.6rem 1.25rem; }

/* Layout */
main { min-height: 70vh; }
.page { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.page.narrow { max-width: 680px; }
.center { text-align: center; }
.lede { color: var(--muted); max-width: 62ch; }
.fine { color: var(--muted); font-size: 0.85rem; }
.error { color: var(--danger); }
.ok { color: var(--ok); }
.flash {
  background: var(--panel2); border: 1px solid var(--line-bright); border-radius: var(--radius);
  padding: 0.8rem 1.2rem; margin: 1rem auto; max-width: 1180px;
  animation: fadeSlide 0.45s var(--ease) both;
}
.notice {
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 1rem 1.2rem; background: rgba(247, 181, 0, 0.08); margin-bottom: 1.5rem;
}
.badge {
  border: 1px solid var(--danger); color: var(--danger); border-radius: 999px;
  padding: 0.1rem 0.55rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; vertical-align: middle;
}
.more-link { margin-top: 2rem; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Hero — night-drive video under a navy scrim, gold second headline line. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 6.5rem 1.5rem 9rem;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-video, .hero-bg-img, .hero-still {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 20, 32, 0.74) 0%, rgba(10, 20, 32, 0.55) 45%, rgba(10, 20, 32, 0.96) 100%);
}
.hero-content { position: relative; max-width: 1180px; margin: 0 auto; }
.hero-badge {
  display: inline-block; border: 1.5px solid var(--accent); color: var(--accent);
  border-radius: 999px; padding: 0.35rem 1rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  background: rgba(10, 20, 32, 0.45);
  animation: fadeUp 0.8s var(--ease) 0.05s both;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.05;
  margin: 1.3rem 0 1.2rem; letter-spacing: -0.015em; font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}
.hero-mask { display: block; overflow: hidden; padding: 0.08em 0; margin: -0.08em 0; }
.hero-line {
  display: block;
  transform: translateY(112%);
  animation: heroRise 1.15s var(--ease) both;
}
.hero-line.gold { color: var(--accent); }
.hero-mask:nth-child(2) .hero-line { animation-delay: 0.18s; }
@keyframes heroRise { to { transform: translateY(0); } }
.hero p {
  color: #c3d2e4; max-width: 54ch; margin: 0 0 2.2rem; font-size: 1.12rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.8s var(--ease) 0.34s both;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.8s var(--ease) 0.5s both; }

/* Booking search bar — card overlapping the hero bottom. */
.search-wrap { padding-top: 0; margin-top: -5.25rem; position: relative; z-index: 5; }
.search-bar {
  background: var(--panel); border: 1px solid var(--line-bright); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 1.5rem;
}
.search-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem;
}
.search-bar label {
  display: block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.search-bar input, .search-bar select {
  display: block; width: 100%; margin-top: 0.4rem;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 0.7rem 0.8rem; font-size: 1rem;
  text-transform: none; letter-spacing: normal; font-weight: 400;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.search-bar input:focus, .search-bar select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 181, 0, 0.22);
}
.search-btn { width: 100%; margin-top: 1.25rem; }
.search-summary {
  display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap;
  background: rgba(247, 181, 0, 0.08); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 0.9rem 1.2rem; margin: 0 0 1.75rem;
}
.search-summary span { color: var(--muted); }
.search-summary a { margin-left: auto; font-weight: 700; }

/* Cars */
.car-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; align-items: stretch;
}
.fleet-group { margin: 0 0 2.75rem; }
.fleet-group:last-child { margin-bottom: 0; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 2.25rem; }
.filter-chip {
  background: transparent; color: var(--text); border: 1.5px solid var(--line-bright);
  border-radius: 999px; padding: 0.55rem 1.25rem; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip:active { transform: translateY(1px) scale(0.99); }
.filter-chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.car-card, .rental-card, .fleet-admin-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.car-card { display: flex; flex-direction: column; }
.car-card:hover, .rental-card:hover, .fleet-admin-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-bright);
  box-shadow: var(--shadow-lg);
}
.car-media { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--bg2); flex: none; position: relative; }
.car-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.car-card:hover .car-media img { transform: scale(1.05); }
.car-card.unavailable .car-media img { filter: grayscale(0.7) brightness(0.6); }
.booked-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(10, 20, 32, 0.88); border: 1.5px solid var(--accent); color: var(--accent);
  border-radius: 999px; padding: 0.45rem 1.1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap;
}
.car-card-body, .rental-body, .fleet-admin-body { padding: 1.25rem; }
.car-card-body { display: flex; flex-direction: column; flex: 1; }
.car-card-body .btn { align-self: flex-start; margin-top: auto; }
.car-card h3, .rental-card h3, .fleet-admin-card h3 { margin: 0 0 0.4rem; font-size: 1.12rem; }
.car-card h3 a { color: var(--text); text-decoration: none; }
.car-card h3 a:hover { color: var(--accent); }
.car-meta { color: var(--muted); font-size: 0.88rem; margin: 0.2rem 0 0.8rem; }
.car-rate { font-size: 1.7rem; font-weight: 800; margin: 0.4rem 0 1rem; }
.car-rate span { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-left: 0.25rem; }
.car-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.car-detail > img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border: 1px solid var(--line-bright); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Info cards: How It Works / Services */
.steps-grid, .services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem;
}
.info-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.6rem;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--line-bright); box-shadow: var(--shadow-lg); }
.info-card h3 { margin: 0 0 0.6rem; font-size: 1.08rem; }
.info-card p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 1.05rem; margin-bottom: 1rem;
}
.about-strip {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.2rem;
  display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.about-strip p { color: var(--muted); max-width: 62ch; }
.about-strip .btn { flex: none; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.strip h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.strip p { color: var(--muted); margin: 0; }

/* Forms */
.form label { display: block; margin-bottom: 1rem; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="tel"], .form input[type="date"], .form input[type="time"], .form input[type="number"],
.form select, .form textarea,
.inline-form input, .inline-form select,
.filter-bar input, .filter-bar select {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="tel"], .form input[type="date"], .form input[type="time"], .form input[type="number"],
.form select, .form textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.8rem;
  font-size: 1rem; text-transform: none; letter-spacing: normal; font-weight: 400;
  font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus,
.inline-form input:focus, .inline-form select:focus,
.filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 181, 0, 0.22);
}
.form label.check { text-transform: none; letter-spacing: normal; color: var(--text); font-size: 0.95rem; font-weight: 400; display: flex; gap: 0.6rem; align-items: flex-start; }
.form label.check input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.form.compact label { margin-bottom: 0.5rem; }
.inline-form { display: inline-flex; gap: 0.5rem; align-items: end; margin: 0.3rem 0.5rem 0.3rem 0; flex-wrap: wrap; }
.inline-form label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.inline-form input, .inline-form select { background: var(--panel2); padding: 0.45rem 0.55rem; border-radius: 8px; font-size: 1rem; }
.narrow-form { max-width: 560px; }
.filter-bar { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-bar label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.filter-bar input, .filter-bar select { display: block; margin-top: 0.35rem; padding: 0.6rem 0.7rem; font-size: 1rem; }

/* Booking steps — muted trail, gold current step, filling progress bar. */
.steps { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.7rem; }
.steps .step-on { color: var(--accent); font-weight: 700; }
.steps-bar { height: 4px; background: var(--line); border-radius: 4px; margin: 0 0 1.8rem; overflow: hidden; }
.steps-bar span {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0); transform-origin: left;
  animation: barIn 0.9s var(--ease) 0.15s both;
}
@keyframes barIn { to { transform: scaleX(1); } }
.book-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border: 1px solid var(--line-bright); border-radius: var(--radius);
  margin-bottom: 1.5rem; box-shadow: var(--shadow);
}
.agreement {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--panel); padding: 1.1rem 1.5rem; margin: 1rem 0;
}
.agreement li { margin-bottom: 0.5rem; }
.summary-line { font-size: 1.05rem; }
.kv { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv th, .kv td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: none; }
.kv th { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; width: 40%; background: var(--panel); }
.kv td { background: var(--bg2); overflow-wrap: anywhere; }
.confirm-code {
  font-size: 1.9rem; letter-spacing: 0.22em; font-weight: 800; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: var(--radius); background: rgba(247, 181, 0, 0.07);
  display: inline-block; padding: 0.8rem 1.4rem; margin: 0.6rem 0;
  animation: confirmPop 0.6s var(--ease) 0.15s both;
}
@keyframes confirmPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Rentals */
.rental-list, .fleet-admin-list { display: grid; gap: 1.5rem; }
.rental-card { display: grid; grid-template-columns: 320px 1fr; }
.fleet-admin-card { display: grid; grid-template-columns: 320px 1fr; margin-bottom: 1.5rem; }
.rental-card img, .fleet-admin-card img {
  width: 100%; height: 100%; min-height: 190px; object-fit: cover;
}

/* ---------- Owner control panel ---------- */
.panel {
  display: grid; grid-template-columns: 235px 1fr; gap: 2rem; align-items: start;
}
.panel-side {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem;
  position: sticky; top: 6.5rem;
}
.panel-role {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; font-weight: 700; margin: 0 0 1rem;
}
.panel-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.panel-link {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 0.65rem 0.9rem; border-radius: 10px; min-height: 44px;
  display: flex; align-items: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.panel-link:hover { background: var(--panel2); color: var(--accent); }
.panel-link.active { background: var(--accent); color: var(--on-accent); }
.panel-link.active:hover { color: var(--on-accent); }
.panel-side-note { margin: 1.2rem 0 0; }
.panel-main { min-width: 0; }
.panel-title { margin: 0 0 1.4rem; }
.panel-subtitle { font-size: 1.2rem; margin: 1.8rem 0 1rem; }
.panel-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 0.5rem; }
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem; margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem;
}
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.panel-form { max-width: 640px; }
.panel-form .panel-subtitle:first-child { margin-top: 0; }

/* Uploads & media library */
.form input[type="file"] {
  display: block; width: 100%; margin-top: 0.35rem;
  background: var(--bg2); border: 1px dashed var(--line-bright); border-radius: 10px;
  color: var(--text); padding: 0.65rem 0.8rem;
  font-size: 1rem; text-transform: none; letter-spacing: normal; font-weight: 400;
  font-family: inherit; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form input[type="file"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 181, 0, 0.22);
}
.upload-preview {
  display: block; width: min(340px, 100%); max-height: 190px; object-fit: contain;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.35rem; margin: 0.4rem 0 0.8rem;
}
.logo-preview { max-width: 220px; }
.media-url-text { overflow-wrap: anywhere; }
.media-upload-form { margin-bottom: 0.5rem; }
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; align-items: stretch;
}
.media-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.media-card:hover { transform: translateY(-4px); border-color: var(--line-bright); box-shadow: var(--shadow-lg); }
.media-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg2);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.media-file-icon { color: var(--accent); font-weight: 800; letter-spacing: 0.14em; font-size: 1.3rem; }
.media-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.media-body h3 { margin: 0 0 0.35rem; font-size: 0.98rem; overflow-wrap: anywhere; }
.media-body .inline-form { margin-top: auto; padding-top: 0.6rem; }
.media-url-label {
  display: block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 0.8rem;
}
.media-url {
  display: block; width: 100%; margin-top: 0.35rem;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 8px;
  color: var(--accent); padding: 0.5rem 0.6rem; font-size: 0.85rem;
}
.media-url:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247, 181, 0, 0.22); }
.media-inuse {
  border: 1px solid var(--accent); border-radius: 10px;
  background: rgba(247, 181, 0, 0.08); color: var(--text);
  padding: 0.6rem 0.8rem; font-size: 0.87rem; margin: 0 0 0.8rem;
}

/* Driver's-license review (panel bookings) */
.booking-license-row td { background: var(--bg2); }
.license-cell { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.license-thumb {
  height: 64px; width: auto; max-width: 120px; object-fit: cover;
  border: 1.5px solid var(--line-bright); border-radius: 8px; background: var(--panel);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
a:hover .license-thumb { border-color: var(--accent); transform: translateY(-1px); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.7rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table th { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); background: var(--panel); }
.admin-table tbody tr { transition: background var(--dur-fast) var(--ease); }
.admin-table tbody tr:hover { background: var(--panel); }
.status-pill {
  display: inline-block; border-radius: 999px; padding: 0.18rem 0.7rem;
  font-size: 0.75rem; font-weight: 700; text-transform: capitalize; white-space: nowrap;
}
.status-reserved { background: rgba(247, 181, 0, 0.15); color: var(--accent); }
.status-active { background: rgba(77, 163, 255, 0.16); color: var(--info); }
.status-completed { background: rgba(74, 222, 128, 0.14); color: var(--ok); }
.status-cancelled { background: rgba(255, 107, 107, 0.14); color: var(--danger); }
.deposit-badge {
  display: inline-block; border-radius: 999px; padding: 0.14rem 0.6rem; margin-top: 0.3rem;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.deposit-paid { background: rgba(74, 222, 128, 0.14); color: var(--ok); }
.deposit-pending { background: rgba(247, 181, 0, 0.15); color: var(--accent); }
.deposit-due { background: rgba(77, 163, 255, 0.16); color: var(--info); }
.deposit-unpaid { background: rgba(255, 107, 107, 0.14); color: var(--danger); }
.deposit-refunded { background: rgba(180, 190, 205, 0.16); color: #b9c4d4; }

/* Pickup balance — the one payment-stage pill (panel list + detail
   line), the journey timeline, the stage counts on Overview, and the
   card-on-file consent line on the deposit page. */
.stage-pill {
  display: inline-block; border-radius: 999px; padding: 0.14rem 0.6rem; margin-top: 0.3rem;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.stage-paid { background: rgba(74, 222, 128, 0.14); color: var(--ok); }
.stage-warn { background: rgba(247, 181, 0, 0.15); color: var(--accent); }
.stage-due { background: rgba(77, 163, 255, 0.16); color: var(--info); }
.stage-card { background: rgba(167, 139, 250, 0.18); color: #c9b8f7; }
.stage-hold { background: rgba(247, 181, 0, 0.15); color: var(--accent); }
.stage-link { background: rgba(77, 163, 255, 0.16); color: var(--info); }
.stage-muted { background: rgba(180, 190, 205, 0.16); color: #b9c4d4; }
.stage-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.4rem 0 1.1rem; }
.stage-chip {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.22rem 0.7rem; font-size: 0.78rem; background: var(--panel);
}
.journey { margin-top: 0.5rem; }
.journey-list { margin: 0.35rem 0 0.2rem; padding-left: 1.15rem; }
.journey-list li { margin: 0.3rem 0; }
#update-card[data-busy="1"] #card-form-section { opacity: 0.55; pointer-events: none; }
.pay-consent { margin: 0.7rem 0 0.2rem; line-height: 1.45; }

/* Embedded deposit payment — the payment form lives on this site
   (Square Web Payments SDK renders the wallet buttons and the card
   field inside this box). Navy panel, gold accents, same motion. */
.pay-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem 1.5rem 1.1rem; margin: 1.6rem 0 1.2rem;
}
.pay-box .panel-subtitle { margin-top: 0; }
#deposit-pay[data-busy="1"] .wallet-row,
#deposit-pay[data-busy="1"] #card-section,
#balance-pay[data-busy="1"] .wallet-row,
#balance-pay[data-busy="1"] #card-section { opacity: 0.55; pointer-events: none; }
.wallet-row { margin: 0.55rem 0; }
#apple-pay-button {
  -webkit-appearance: -apple-pay-button; appearance: -apple-pay-button;
  -apple-pay-button-type: pay; -apple-pay-button-style: white;
  width: 100%; height: 52px; border: none; border-radius: 12px;
  padding: 0; cursor: pointer; background: transparent;
}
#google-pay-button { min-height: 52px; cursor: pointer; }
#cash-app-pay { min-height: 52px; display: flex; justify-content: center; }
#cash-app-pay > * { flex: 1 1 100%; width: 100%; }
.pay-divider {
  display: flex; align-items: center; gap: 0.9rem;
  color: var(--muted); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; margin: 1.15rem 0 0.3rem;
}
.pay-divider::before, .pay-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#card-container { margin: 0.9rem 0 0.4rem; min-height: 108px; }
.pay-btn { width: 100%; }
.pay-btn[disabled] { opacity: 0.6; pointer-events: none; }
.pay-error {
  border: 1px solid var(--danger); background: rgba(255, 107, 107, 0.1);
  color: #ffb3b3; border-radius: 10px; padding: 0.8rem 1rem;
  margin: 1rem 0; font-size: 0.92rem;
}
.pay-success-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.4rem; }
.pay-fallback { margin-top: 1.1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 3rem;
  background: var(--bg2); color: var(--muted); font-size: 0.92rem;
}
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 2.75rem 1.5rem 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer-col h4 { color: var(--text); margin: 0 0 0.9rem; font-size: 0.95rem; }
.footer-col p { margin: 0 0 0.7rem; }
.footer-col a { color: var(--muted); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-col > a { display: block; margin-bottom: 0.5rem; }
.footer-brand { font-size: 1.2rem; margin-bottom: 0.9rem; }
.footer-col a.footer-brand { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); text-align: center;
  padding: 1.1rem 1.5rem; font-size: 0.85rem;
}

/* Sunny — gold pill toggle, navy panel, glides open/closed. */
#sunny-widget { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; }
#sunny-toggle {
  background: var(--accent); color: var(--on-accent); border: none; border-radius: 999px;
  padding: 0.85rem 1.35rem; cursor: pointer;
  font-weight: 700; font-size: 0.85rem; font-family: inherit;
  box-shadow: 0 10px 30px rgba(2, 8, 18, 0.6);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
#sunny-toggle:hover { transform: translateY(-2px); background: var(--accent-bright); box-shadow: 0 16px 38px rgba(2, 8, 18, 0.65); }
#sunny-toggle:active { transform: translateY(0); }
#sunny-panel {
  width: min(350px, 90vw); background: var(--panel); border: 1px solid var(--line-bright);
  border-radius: 16px; overflow: hidden;
  margin-bottom: 0.6rem; display: flex; flex-direction: column; height: 430px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px) scale(0.97); transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
#sunny-panel.open { opacity: 1; transform: none; }
#sunny-panel[hidden] { display: none; }
.sunny-head { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); background: var(--bg2); }
#sunny-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.sunny-msg { padding: 0.6rem 0.85rem; font-size: 0.9rem; max-width: 90%; border-radius: 12px; animation: msgIn 0.3s var(--ease) both; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.sunny-msg.bot { background: var(--panel2); align-self: flex-start; border-bottom-left-radius: 4px; }
.sunny-msg.me { background: var(--accent); color: var(--on-accent); align-self: flex-end; border-bottom-right-radius: 4px; }
/* Sunny tap-to-choose topics — navy chips with a gold edge; the Call us
   action is a solid gold tel: link. No text input exists anymore. */
.sunny-choices {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding: 0.75rem 0.85rem 0.35rem;
  border-top: 1px solid var(--line); background: var(--bg2);
  max-height: 11.5rem; overflow-y: auto;
}
.sunny-choice {
  background: var(--panel2); color: var(--text);
  border: 1.5px solid var(--line-bright); border-radius: 999px;
  padding: 0.45rem 0.85rem; font-size: 0.82rem; font-weight: 700;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.sunny-choice:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.sunny-choice:active { transform: translateY(0); }
.sunny-choice.sunny-all { border-style: dashed; }
.sunny-choice.sunny-call { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sunny-choice.sunny-call:hover { background: var(--accent-bright); color: var(--on-accent); }
.sunny-hint {
  margin: 0; padding: 0.45rem 0.85rem 0.75rem;
  background: var(--bg2); color: var(--muted); font-size: 0.78rem;
}
.sunny-hint a { font-weight: 700; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel-side { position: static; padding: 1rem 1.1rem; }
  .panel-role { margin-bottom: 0.7rem; }
  .panel-nav {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 0.2rem;
  }
  .panel-nav::-webkit-scrollbar { display: none; }
  .panel-link { flex: none; white-space: nowrap; }
}
@media (max-width: 760px) {
  .car-detail, .rental-card, .fleet-admin-card { grid-template-columns: 1fr; }
  .rental-card img, .fleet-admin-card img { aspect-ratio: 16/9; height: auto; min-height: 0; }
  .header-inner { padding: 0.85rem 1rem; }
  .main-nav { order: 3; width: 100%; margin: 0; gap: 1.1rem; }
  .hero { padding: 4.5rem 1.25rem 8rem; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .car-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .page { padding: 2rem 1.25rem; }
  .about-strip { padding: 1.6rem; }
}
@media (max-width: 480px) {
  .search-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reduced motion: kill the choreography, keep the content. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-line { transform: none !important; }
  .hero-video { display: none; }
  .hero { background: linear-gradient(180deg, rgba(10, 20, 32, 0.78), rgba(10, 20, 32, 0.96)), url('/media/night-drive-poster.jpg') center / cover no-repeat; }
}

/* Hero still-frame fallback: shown instead of the video (and its native
   play button) only when autoplay is genuinely blocked (app.js adds
   .no-autoplay after a real failure) or the visitor prefers reduced
   motion. Phones play the video by default like everyone else. */
.hero-still { display: none; }
.hero.no-autoplay .hero-video { display: none; }
.hero.no-autoplay .hero-still { display: block; }

/* ================= Mobile pass (Nov 2026) =================
   One consolidated section, written for the live stylesheet. Three
   jobs: nothing renders wider than the screen, every thumb target
   is at least 44px with 16px form text (no iOS focus zoom), and the
   panel tables become stacked cards on small phones. Desktop rules
   above are untouched; the only all-width changes are the overflow
   guards below, which only bite when content would otherwise
   stretch the page past the screen. */

/* Overflow guards: a grid column will not shrink below its widest
   unbreakable content — a full payment URL printed in a booking's
   detail row is the real-world case — so cap the columns and let
   long strings wrap instead. */
body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
.panel-main, .panel-side { min-width: 0; }
.media-card { min-width: 0; }
.media-url, .booking-license-row a, .booking-license-row span { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  /* Tap targets: everything a thumb hits is at least 44px tall. */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
  .btn.small { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.85rem; }
  .form .btn.big { width: 100%; }
  .main-nav a, .header-actions a, .header-actions .linkbtn { padding-top: 0.55rem; padding-bottom: 0.55rem; }
  .footer-col > a { padding: 0.3rem 0; margin-bottom: 0.2rem; }
  .sunny-choice { min-height: 44px; display: inline-flex; align-items: center; }

  /* Header: brand and account actions share row one, nav gets row two. */
  .header-inner { gap: 0.6rem 1rem; }
  .header-actions { gap: 0.4rem 0.9rem; margin-left: auto; }
  .main-nav { gap: 0.4rem 1.15rem; }

  /* Tighter side padding; fleet chips scroll in a single row;
     Reserve stretches across the car card; the confirmation code
     is smaller and wraps instead of overflowing. */
  .page { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding-left: 1.1rem; padding-right: 1.1rem; }
  .pay-box { padding: 1.15rem 1rem 0.9rem; }
  .agreement { padding: 1rem 1.1rem; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .car-card-body .btn { align-self: stretch; }
  .confirm-code { font-size: 1.4rem; letter-spacing: 0.1em; padding: 0.7rem 0.9rem; max-width: 100%; overflow-wrap: anywhere; }
  .kv th { width: 34%; }

  /* Sunny stays inside the small viewport. */
  #sunny-widget { right: 0.8rem; bottom: 0.8rem; }
  #sunny-panel { height: min(430px, calc(100vh - 110px)); height: min(430px, calc(100dvh - 110px)); }

  /* Panel: stats two to a row, page actions two-up. */
  .panel-side-note { display: none; }
  .panel-title { margin-bottom: 1.1rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .stat-card { padding: 1rem 1.05rem; }
  .stat-num { font-size: 1.55rem; }
  .panel-actions { gap: 0.6rem; }
  .panel-actions .btn { flex: 1 1 42%; }

  /* Panel forms: filters stack full-width; inline forms become
     labeled full-width rows whose control and button share a line,
     so Charge Balance, holds, Refund Deposit and role changes are
     all full-size thumb targets, not 30px buttons in a scroller. */
  .filter-bar { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .filter-bar .btn { width: 100%; }
  .inline-form { display: flex; flex-wrap: wrap; width: 100%; margin: 0.4rem 0; }
  .inline-form label { flex: 1 1 100%; }
  .inline-form input, .inline-form select { flex: 1 1 auto; min-width: 0; min-height: 44px; }
  .inline-form .btn { flex: 1 1 auto; }
  .license-cell { gap: 0.55rem; }

  /* Media library: two to a row with compact cards. */
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .media-body { padding: 0.8rem; }
  .media-body h3 { font-size: 0.85rem; }
  .media-url { font-size: 1rem; }
  .media-inuse { font-size: 0.8rem; padding: 0.5rem 0.6rem; }
}

@media (max-width: 700px) {
  /* Admin tables become stacked cards: the header row goes away,
     each booking or user is one card, and each cell renders as a
     small caps label (its data-label) over its value. The colspan
     detail row — license photos, balance actions, payment journey —
     stays attached under its booking's card. */
  .table-wrap { overflow: visible; border: none; background: transparent; border-radius: 0; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table thead { display: none; }
  .admin-table tbody tr {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 1rem; padding: 0.35rem 0;
  }
  .admin-table tbody tr:hover { background: var(--panel); }
  .admin-table td { border-bottom: 1px solid var(--line); padding: 0.6rem 1rem; }
  .admin-table tbody tr td:last-child { border-bottom: none; }
  .admin-table td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 0.2rem;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.7rem; font-weight: 700;
  }
  .admin-table td[colspan] { padding: 0.75rem 1rem; }
  /* Long unbreakable strings wrap inside their card. */
  .admin-table td, .admin-table td a, .journey, .journey a { overflow-wrap: anywhere; }
  .admin-table tbody tr:has(+ tr.booking-license-row) {
    margin-bottom: 0; border-bottom: none; border-radius: var(--radius) var(--radius) 0 0;
  }
  .admin-table tbody tr.booking-license-row { border-radius: 0 0 var(--radius) var(--radius); background: var(--bg2); }
  .admin-table tbody tr.booking-license-row:hover { background: var(--bg2); }
}

@media (max-width: 480px) {
  .brand { font-size: 1rem; }
  .site-logo { max-width: 120px; }
  .search-bar { padding: 1.1rem; }
  .media-grid { gap: 0.7rem; }
}

/* ============================================================
   Quiet touches - Nov 17, 2026 (color-neutral, carried over
   with the calendar + motion promotion to live): restraint -
   uppercase nav/wordmark tracking, eyebrow dash, airier
   section padding, outlined step numbers. All colors come
   from the live navy/gold tokens above.
   ============================================================ */
body { line-height: 1.62; }
h1, h2 { letter-spacing: -0.02em; }
.main-nav a { text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.8rem; font-weight: 600; }
.brand { text-transform: uppercase; letter-spacing: 0.06em; }
.header-actions a { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; font-weight: 600; }
.eyebrow { display: flex; align-items: center; gap: 0.65rem; }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); flex: none; }
.step-num { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.page { padding-top: 3.25rem; padding-bottom: 3.25rem; }
.search-wrap { padding-top: 0; }
.footer-col h4 { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; }

/* ============================================================
   Date range picker (driven by the picker block in /app.js).
   The native date input stays in the form holding the value;
   .dp-native hides it once JS swaps in the .dp-display button.
   ============================================================ */
input.dp-native {
  position: absolute; width: 1px; height: 1px; opacity: 0;
  pointer-events: none; margin: 0; padding: 0; border: none;
}
.dp-display {
  display: block; width: 100%; margin-top: 0.35rem; text-align: left; cursor: pointer;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 0.7rem 2.4rem 0.7rem 0.8rem; font-size: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2393a5bc' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.search-bar .dp-display { margin-top: 0.4rem; }
.dp-display:hover { border-color: var(--line-bright); }
.dp-display:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dp-display.dp-empty { color: var(--muted); }
.dp-pop {
  position: absolute; z-index: 200; width: min(620px, calc(100vw - 16px));
  background: var(--panel); border: 1px solid var(--line-bright); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 1rem 1.1rem 0.9rem; color: var(--text);
}
.dp-pop[hidden] { display: none; }
.dp-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.dp-summary { font-weight: 700; font-size: 0.95rem; }
.dp-nights { color: var(--accent); font-weight: 700; margin-left: 0.45rem; }
.dp-nav { display: flex; gap: 0.4rem; flex: none; }
.dp-navbtn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-bright);
  background: var(--panel2); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.dp-navbtn:disabled { opacity: 0.35; cursor: default; }
.dp-months { display: flex; gap: 1.5rem; }
.dp-month { flex: 1; min-width: 0; }
.dp-monthname { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.45rem; }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-week span {
  text-align: center; font-size: 0.68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 0.3rem;
}
.dp-day {
  aspect-ratio: 1; border: none; background: transparent; color: var(--text);
  border-radius: 50%; cursor: pointer; font-size: 0.88rem; padding: 0;
}
.dp-day:hover:not(:disabled) { background: var(--panel2); }
.dp-day:disabled { color: var(--muted); opacity: 0.35; cursor: default; }
.dp-blank { aspect-ratio: 1; }
.dp-today { box-shadow: inset 0 0 0 1.5px var(--line-bright); }
.dp-inrange { background: rgba(247, 181, 0, 0.16); border-radius: 8px; }
.dp-day.dp-start, .dp-day.dp-end { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.dp-day.dp-start:hover, .dp-day.dp-end:hover { background: var(--accent); }
.dp-foot {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 0.85rem; border-top: 1px solid var(--line); padding-top: 0.8rem;
}
.dp-clear {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 0.88rem; text-decoration: underline; padding: 0;
}
.dp-hint { color: var(--muted); font-size: 0.85rem; flex: 1; text-align: center; }
.dp-done {
  background: var(--accent); color: var(--on-accent); border: none; border-radius: 8px;
  padding: 0.5rem 1.15rem; font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
/* Phone: the calendar becomes a bottom sheet — full-width, big
   tap targets, swipe between months, dimmed backdrop, sticky
   footer, and a slide-up entrance. Desktop keeps the popover. */
.dp-backdrop {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0, 0, 0, 0.55);
}
.dp-backdrop[hidden] { display: none; }
@media (min-width: 721px) {
  .dp-backdrop { display: none; }
}
.dp-pop { animation: dpIn 0.22s var(--ease) both; }
@keyframes dpIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .dp-pop {
    position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto;
    width: auto; max-height: 86dvh; display: flex; flex-direction: column;
    border-radius: 20px; padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
  }
  .dp-months { gap: 0; overflow-y: auto; }
  .dp-month:nth-child(2) { display: none; }
  .dp-day { font-size: 0.95rem; min-height: 44px; }
  .dp-navbtn { width: 42px; height: 42px; font-size: 1.35rem; }
  .dp-monthname { text-align: center; font-size: 1.02rem; }
  .dp-done { padding: 0.65rem 1.4rem; }
}

/* ============================================================
   Motion polish - Nov 17, 2026 (preview). A smoother, calmer
   animation language: one expo-out curve via the tokens above,
   a slow cinematic drift on the hero video, a header that
   settles as you scroll, month slides in the date picker, and
   scroll landings that clear the sticky header. The global
   reduced-motion block above already stills all of this.
   ============================================================ */
.hero-video { animation: heroDrift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.header-inner { transition: padding var(--dur) var(--ease); }
.site-header.scrolled .header-inner { padding-top: 0.7rem; padding-bottom: 0.7rem; }
section[id] { scroll-margin-top: 84px; }
.dp-pop { animation-duration: 0.32s; }
.dp-months.dp-next { animation: dpMonthNext 0.45s var(--ease); }
.dp-months.dp-prev { animation: dpMonthPrev 0.45s var(--ease); }
@keyframes dpMonthNext {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes dpMonthPrev {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}
/* Card hover lift fix: html.js .reveal.in sets transform:none at
   higher specificity than .car-card:hover, which silently killed
   the intended lift. Once a card has revealed, hand its transform
   back to the hover rules at winning specificity, timed with the
   hover duration instead of the slow reveal duration. */
html.js .reveal.in.car-card { transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
html.js .reveal.in.car-card:hover { transform: translateY(-6px); }
html.js .reveal.in.info-card { transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
html.js .reveal.in.info-card:hover { transform: translateY(-4px); }

/* ============================================================
   Header alignment fix — Nov 17, 2026
   The quiet-touches tracking (uppercase + wide letter-spacing)
   pushed the logged-in STAFF header — brand, 5 nav links, user
   name, My Rentals, Control Panel, Sign Out, Book Now — past
   the 1240px container at laptop widths, so .header-actions
   wrapped onto a second, left-aligned row and the header read
   as off balance. Fix: one nowrap row on desktop with tighter
   tracking/gaps (the decorative user name yields if needed),
   an intentional two-row layout at mid widths (brand + actions
   on row 1, nav on row 2), and the Sign Out .linkbtn styled to
   match the action links beside it. Colors/tokens unchanged;
   <=760px rules above are untouched.
   ============================================================ */
@media (min-width: 1201px) {
  .header-inner { flex-wrap: nowrap; gap: 1.1rem; }
  .brand { font-size: 1.0rem; letter-spacing: 0.04em; white-space: nowrap; }
  .main-nav { flex-wrap: nowrap; gap: 0.95rem; margin: 0 auto; }
  .main-nav a { letter-spacing: 0.07em; white-space: nowrap; }
  .header-actions { flex-wrap: nowrap; gap: 0.8rem; }
  .header-actions a { letter-spacing: 0.05em; white-space: nowrap; }
  .header-actions .linkbtn {
    text-transform: uppercase; letter-spacing: 0.05em;
    font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  }
  .header-actions a.btn { flex: none; padding-left: 1.1rem; padding-right: 1.1rem; }
}
@media (min-width: 761px) and (max-width: 1200px) {
  .header-inner { flex-wrap: wrap; gap: 1rem; }
  .brand { font-size: 1.0rem; letter-spacing: 0.04em; white-space: nowrap; }
  .nav-user { display: none; }
  .header-actions { margin-left: auto; flex-wrap: nowrap; gap: 0.6rem; }
  .header-actions a { letter-spacing: 0.05em; white-space: nowrap; }
  .header-actions .linkbtn {
    text-transform: uppercase; letter-spacing: 0.05em;
    font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  }
  .main-nav {
    order: 3; width: 100%; margin: 0;
    justify-content: flex-start; gap: 1.15rem; flex-wrap: nowrap;
  }
  .main-nav a { white-space: nowrap; }
}
/* Staff push notifications card (panel sidebar). */
.push-card { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.push-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
