/* ==========================================================================
   Travel Dayz — theme layer (loaded after site.css)
   Look: slate + amber, Manrope throughout, 30px rounded panels, pill buttons
   with a round icon chip, an inset photo hero and a floating pill header.
   Remove this file's <link> in layout.php to fall back to the original theme.
   ========================================================================== */

:root {
  --ink: #2f3a43;
  --ink-2: #4a5660;
  --muted: #6b7680;
  --paper: #ffffff;
  --surface: #ffffff;
  --tint: #f0f1f3;
  --floor: #f0f1f3;
  --line: #e5e7e9;
  --line-strong: #c9d2d9;

  /* The old "kerala" green slots become slate; marigold becomes amber. */
  --kerala: #2f3a43;
  --kerala-hover: #1e252a;
  --kerala-deep: #2f3a43;
  --kerala-well: #1e252a;
  --kerala-night: #2f3a43;
  --leaf: #f5b642;

  --marigold: #f5b642;
  --marigold-hover: #eaa52a;
  --marigold-soft: #fdf0d5;
  --digit: #f5b642;

  --night: #1e252a;
  --on-dark: #f9fafb;
  --on-dark-2: rgba(249, 250, 251, .72);

  --f-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 15px;
  --r-lg: 30px;
  --r-card: 24px;
  --inset: 8px;

  --sh-1: 0 1px 2px rgba(47, 58, 67, .05);
  --sh-2: 0 1px 2px rgba(47, 58, 67, .05), 0 12px 32px -12px rgba(47, 58, 67, .18);
  --sh-meter: 0 30px 60px -24px rgba(0, 0, 0, .55);

  --header-h: 80px;
}
@media (max-width: 640px) { :root { --inset: 6px; --r-lg: 24px; } }

body { background: #fff; color: var(--ink); font-weight: 500; }
:focus-visible { outline-color: var(--ink); }

/* ---------- Type ---------- */
.display, .h2, .h3, .fleet-name, .svc-card-title, .rc-name, .rc-type, .form-legend,
.meter-label, .callband-title, .prose h2 { font-stretch: 100%; font-weight: 700; letter-spacing: -.02em; }
.display { line-height: 1.1; }
.h2 { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.5rem); line-height: 1.25; }
.mono { font-family: var(--f-body); font-stretch: 100%; font-size: .97em; letter-spacing: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Restore sizes that site.css set on elements that also carry .mono */
.meter-amount { font-size: clamp(2.5rem, 2rem + 2.2vw, 3.4rem); }
.meter-calc { font-size: .8rem; }
.car-opt-seats { font-size: .74rem; }
.ticket-ref { font-size: 1.3rem; }
.fleet-count { font-size: .72rem; }
.lede { color: var(--ink-2); font-weight: 500; }
.section-sub { color: var(--muted); font-weight: 500; }

.kicker, .eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
h1.eyebrow { font-family: var(--f-body); }

/* ---------- Buttons: pills ---------- */
.btn { border-radius: 999px; font-weight: 600; border-width: 0; padding: 0 22px; }
.btn-sm { padding: 0 16px; }
.btn-primary { background: var(--marigold); color: var(--ink); }
.btn-primary:hover { background: var(--marigold-hover); color: var(--ink); }
.btn-ghost { background: var(--line); color: var(--ink); border: 0; }
.btn-ghost:hover { background: var(--line-strong); color: var(--ink); }
.btn-soft { background: #dfe5ea; color: var(--ink); }
.btn-soft:hover { background: var(--line-strong); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--night); color: #fff; }
.btn-on-dark { background: rgba(255,255,255,.12); color: #fff; border: 0; }
.btn-on-dark:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Pill with a round icon chip on the right, as in "Give us a call (→)". */
.btn-chip { gap: 14px; padding-right: 7px; }
.btn-chip.btn-lg { padding-right: 8px; }
.chip {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; transition: transform .18s;
}
.btn-lg .chip { width: 38px; height: 38px; }
.chip .icon { width: 1rem; height: 1rem; }
.btn-dark .chip { background: #fff; color: var(--ink); }
.chip-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.75px var(--ink); }
.btn-chip:hover .chip { transform: translateX(2px); }

.link-arrow { color: var(--ink); }
.link-arrow:hover { color: var(--ink); }

/* ---------- Header: floating pill ---------- */
.site-header {
  background: transparent; backdrop-filter: none; border: 0;
  padding: var(--inset) var(--inset) 0;
}
.site-header .header-row {
  max-width: none; height: 64px; gap: 20px;
  padding: 0 8px 0 10px;
  background: rgba(47, 58, 67, .94);
  backdrop-filter: saturate(1.3) blur(10px);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(30, 37, 42, .5);
  transition: background-color .25s, box-shadow .25s;
}
.brand .logo {
  height: 30px; width: auto; box-sizing: content-box;
  padding: 7px 16px; background: #fff; border-radius: 999px;
}
.nav a { color: rgba(249,250,251,.86); font-weight: 600; font-size: .95rem; border-radius: 999px; padding: 8px 14px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--marigold); box-shadow: none; border-radius: 999px; }
.header-phone { color: #fff; font-weight: 600; }
.header-phone .icon { color: var(--marigold); }
.header-phone:hover { color: var(--marigold); }
.header-actions .btn-sm { min-height: 46px; padding: 0 22px; }
.menu-toggle { border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }

.mobile-menu {
  margin-top: 8px; border: 0; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--sh-2);
  max-height: calc(100vh - var(--header-h) - 16px);
}
.mobile-menu li a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 3px; }

/* Home: header floats over the photo hero and turns solid once you scroll. */
.page-home .site-header { position: fixed; left: 0; right: 0; top: 0; }
.page-home .site-header:not(.is-scrolled) .header-row {
  background: transparent; box-shadow: none; backdrop-filter: none;
}

/* ---------- Photo hero (home) ---------- */
.hero-photo {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--inset); border-radius: var(--r-lg);
  background: var(--night); color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(40px, 6vw, 72px);
  min-height: min(100vh - 16px, 920px);
  display: grid; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(30,37,42,.88) 0%, rgba(30,37,42,.62) 45%, rgba(30,37,42,.28) 100%),
    linear-gradient(0deg, rgba(30,37,42,.45), transparent 40%);
}
@media (max-width: 979px) { .hero-photo::before { background: linear-gradient(180deg, rgba(30,37,42,.82), rgba(30,37,42,.7) 60%, rgba(30,37,42,.88)); } }
.hero-photo .eyebrow { color: var(--on-dark); }
.hero-photo .hero-title { color: #fff; font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4rem); max-width: 12ch; }
.hero-photo .lede { color: var(--on-dark-2); }
.hero-photo .hero-facts { border-top-color: rgba(255,255,255,.16); color: var(--on-dark-2); }
.hero-photo .hero-facts .icon { color: var(--marigold); }
.hero-photo .btn-soft { background: #dfe5ea; }

/* Fare meter: smoked glass on the photo */
.meter {
  background: rgba(30, 37, 42, .74);
  background-image: none;
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  color: var(--on-dark);
}
.meter-lamp { border-radius: 999px; font-family: var(--f-body); font-stretch: 100%; letter-spacing: .1em; font-weight: 700; }
.seg { border-radius: 999px; }
.seg-item span { border-radius: 999px; }
.seg-item input:checked + span { background: var(--marigold); color: var(--ink); }
.car-opt { border-radius: 14px; }
.car-opt:has(input:checked) { border-color: var(--marigold); background: rgba(245,182,66,.14); }
.meter-display { border-radius: 18px; background: var(--night); }
.meter-amount { text-shadow: none; font-weight: 700; letter-spacing: -.02em; }
.meter .btn-primary { min-height: 52px; }
.meter-compact { backdrop-filter: none; background: var(--ink); }

/* ---------- Sections ---------- */
.section-tint, .section-dark {
  margin-inline: var(--inset); border-radius: var(--r-lg);
}
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .h2, .section-dark .kicker { color: #fff; }
.section-dark .section-sub { color: var(--on-dark-2); }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center .section-sub { margin-inline: auto; }
.seo-section { border-top: 0; }

/* ---------- Cards ---------- */
.fleet-card {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none;
  transition: box-shadow .2s, transform .2s;
}
.fleet-card:hover { box-shadow: var(--sh-2); }
.fleet-photo { margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 8px); background: #fff; }
.fleet-count { border: 0; background: var(--tint); font-weight: 600; }
.rate-line, .quote-line, .fleet-book { border-color: var(--line-strong); }
.fleet-book:hover { background: rgba(255,255,255,.6); }
.rate-line dd { font-weight: 700; }

.svc-icon { border-radius: 50%; border: 0; background: #fff; color: var(--ink); }
.svc-list, .svc-list li { border-color: var(--line-strong); }
.svc-row:hover .svc-title, .svc-row:hover .svc-arrow { color: var(--ink); }
.svc-row:hover .svc-arrow { background: var(--marigold); }
.svc-arrow { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: #fff; box-sizing: border-box; }

.svc-card, .quotes blockquote, .aside-card, .form-section, .card-form, .rc-row, .table-scroll, .ticket {
  border-radius: var(--r-card); border-color: var(--line); box-shadow: none;
}
.svc-card { background: var(--tint); }
.svc-card .svc-icon { background: #fff; }
.svc-card:hover { box-shadow: var(--sh-2); border-color: var(--line); }
.svc-card-img { border-radius: calc(var(--r-card) - 8px); margin: 8px -16px 6px; }
.section-tint .quotes blockquote { border-color: transparent; }
.quotes p { font-weight: 500; }

/* Steps → dark cards with an amber number */
.steps { gap: 16px; }
@media (min-width: 1040px) { .steps { gap: 16px; } .steps li { padding-right: 24px; } .steps li::after { display: none; } }
.steps li {
  padding: 26px 24px 28px; border-radius: var(--r-card);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
}
.steps li::before {
  position: static; width: 40px; height: 40px; margin-bottom: 28px;
  font-family: var(--f-body); font-stretch: 100%; font-size: .95rem; font-weight: 700;
  background: var(--marigold); color: var(--ink);
}
.section-dark .steps h3 { color: #fff; font-size: 1.2rem; font-weight: 700; }
.section-dark .steps p { color: var(--on-dark-2); }

/* ---------- Page heads (inner pages) ---------- */
.page-head {
  margin: var(--inset); margin-top: 12px; border: 0;
  border-radius: var(--r-lg); background: var(--tint);
}
.crumbs a:hover { color: var(--ink); }
.subnav-bar { background: rgba(255,255,255,.94); border-bottom: 0; }
.subnav a { border-radius: 999px; }
.subnav a:hover { background: var(--tint); border-color: transparent; }

.rc-rates > div { border-left-color: var(--line-strong); }
.rc-model-list a:hover { border-color: var(--ink); color: var(--ink); }
.rc-photo { border-radius: 14px; }
.fare-table thead th, .fare-table thead .col-sticky { background: var(--tint); }
.fare-table tbody tr:hover > * { background: #f8f9fa; }

/* ---------- Forms ---------- */
.input, .select select { border-radius: 14px; border-color: var(--line-strong); }
.input:focus, .select select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(47,58,67,.14); }
.vp-body { border-radius: 16px; }
.vp-opt input:checked + .vp-body { border-color: var(--ink); background: #fdf6e6; box-shadow: inset 0 0 0 1px var(--ink); }
.vp-hint { background: var(--tint); color: var(--ink); border-radius: 14px; }
.alert { border-radius: 16px; }

/* ---------- FAQ ---------- */
.faq-item summary:hover { color: var(--ink); }
.faq-icon { color: var(--ink); width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--tint); box-sizing: border-box; }
.faq-item[open] .faq-icon { background: var(--marigold); }

/* ---------- Call band + footer ---------- */
.callband { background: transparent; color: var(--ink); padding-block: clamp(32px, 5vw, 64px) 0; }
.callband-row {
  background: var(--marigold); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px);
}
.callband-title { color: var(--ink); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); }
.callband-sub { color: var(--ink-2); font-weight: 500; }
.callband :focus-visible { outline-color: var(--ink); }

.site-footer {
  margin: clamp(32px, 5vw, 64px) var(--inset) var(--inset);
  border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark-2);
}
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--marigold); text-decoration: none; }
.footer-brand .logo { height: 40px; padding: 8px 18px; border-radius: 999px; }
.footer-h { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .75rem; color: #fff; }
.footer-base { border-top-color: rgba(255,255,255,.12); }

/* ---------- Misc ---------- */
.mobile-cta a { border-radius: 999px; }
.mobile-cta-call { border: 0; background: var(--line); }
.mobile-cta-call .icon { color: var(--ink); }
.mobile-cta { border-top: 0; }
.ticket-head { background: var(--ink); }
.gallery-item a { border-radius: 18px; border: 0; }
.gallery-cap { background: rgba(30,37,42,.8); border-radius: 999px; }
.lightbox { background: rgba(30,37,42,.97); }
.lightbox::backdrop { background: rgba(30,37,42,.6); }
.page-figure, .home-figure, .map { border-radius: var(--r-lg); }
.facts-band .facts { background: var(--ink); border-radius: var(--r-lg); }
.prose ul li::marker { color: var(--marigold-hover); }
.prose blockquote { border-left-color: var(--marigold); }
.contact-big:hover, .aside-list a:hover, .sibling-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marigold); }
.sib-thumb { border-radius: 12px; }

/* ---------- Home intro: heading + photo with a pill, then four features ---------- */
.intro-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.intro .h2 { max-width: 22ch; }
.intro-figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--floor); }
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-pill {
  position: absolute; right: 0; bottom: 0; min-height: 52px;
  border-radius: 999px 0 0 0; box-shadow: 0 0 0 8px #fff;
}
@media (min-width: 640px) { .intro-pill { right: 10px; bottom: 10px; border-radius: 999px; box-shadow: none; } }
.features { list-style: none; display: grid; gap: 24px; margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); gap: 0; } .features li + li { padding-left: 24px; border-left: 1px solid var(--line); } .features li { padding-right: 24px; } }
.features h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.features p { color: var(--muted); font-size: .94rem; }
.intro + .section { padding-top: 0; }

/* ---------- No white frame anywhere: full-width bands run edge to edge ---------- */
:root { --inset: 0px; }
.hero-photo, .section-tint, .section-dark, .site-footer, .page-head, .facts-band .facts { border-radius: 0; }
.page-head { margin: 0; }
.site-footer { margin: clamp(32px, 5vw, 64px) 0 0; }
.hero-photo { min-height: min(100vh, 920px); }

/* ---------- Call band: phone-first ---------- */
.callband-row { align-items: flex-end; }
.callband-text { display: grid; justify-items: start; }
.callband-live {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1f9d55;
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.callband-title { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: var(--ink); }
.callband-phone {
  display: inline-flex; align-items: center; gap: .35em; margin: 6px 0 10px;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.callband-phone .icon { width: .7em; height: .7em; stroke-width: 2.25; }
.callband-phone:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.callband-sub { color: var(--ink-2); margin-top: 0; }
.callband-sub a { color: var(--ink); font-weight: 700; }
@media (max-width: 480px) { .callband-phone { font-size: clamp(1.6rem, 7.4vw, 2rem); } }

/* ---------- Home banner + estimator below it ---------- */
/* Banner: copy on the left, photo subject (right) left clear and undarkened. */
.hero-photo { padding-bottom: clamp(120px, 14vw, 200px); min-height: min(92vh, 860px); }
.page-home .hero-photo { min-height: min(92vh, 860px); }
.hero-bg { object-position: 70% 50%; }
.hero-photo::before {
  background:
    linear-gradient(90deg, rgba(30,37,42,.86) 0%, rgba(30,37,42,.6) 35%, rgba(30,37,42,.12) 62%, rgba(30,37,42,0) 80%),
    linear-gradient(0deg, rgba(30,37,42,.35), transparent 35%);
}
@media (max-width: 979px) {
  .hero-photo::before { background: linear-gradient(180deg, rgba(30,37,42,.78), rgba(30,37,42,.55) 55%, rgba(30,37,42,.25)); }
}

/* Estimator: a wide card overlapping the banner's bottom edge. */
.meter-band { position: relative; z-index: 2; margin-top: clamp(-150px, -10vw, -72px); }
.meter-band .meter {
  background: var(--ink); backdrop-filter: none; border: 0;
  box-shadow: 0 30px 60px -28px rgba(30,37,42,.55);
}
@media (min-width: 1000px) {
  .meter-band .meter {
    display: grid; gap: 4px 32px; align-items: start;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(260px, .85fr);
    grid-template-areas:
      "head head head"
      "trip car  disp"
      "trip car  note"
      "trip car  btn";
    padding: 26px 30px 28px;
  }
  .meter-band .meter-head { grid-area: head; margin-bottom: 10px; }
  .meter-band .meter-group:nth-of-type(1) { grid-area: trip; }
  .meter-band .meter-group:nth-of-type(2) { grid-area: car; margin-top: 0; }
  .meter-band .meter-display { grid-area: disp; margin-top: 0; }
  .meter-band .meter-note { grid-area: note; margin: 10px 2px; }
  .meter-band .btn-block { grid-area: btn; }
  .meter-band .seg-item span { padding-inline: 8px; }
}

/* ---------- Logo: transparent PNG (light variant on the dark header/footer) ---------- */
.brand .logo { height: 44px; width: auto; padding: 0 0 0 8px; background: none; border-radius: 0; box-sizing: content-box; }
.footer-brand .logo { height: 54px; padding: 0; background: none; border-radius: 0; }
@media (max-width: 380px) { .brand .logo { height: 38px; } }

/* ---------- Nav band: full width, flush to the top (no floating gap) ---------- */
.site-header, .page-home .site-header { padding: 0; }
.site-header .header-row {
  border-radius: 0; height: 72px;
  padding-inline: clamp(12px, 2.5vw, 32px);
  box-shadow: 0 6px 20px -12px rgba(30, 37, 42, .5);
}
:root { --header-h: 72px; }
.mobile-menu { margin: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ---------- Nav bar + footer in black ---------- */
:root { --black: #0b0d0f; }
.site-header .header-row { background: rgba(11, 13, 15, .96); }
.site-footer { background: var(--black); }
.footer-base { border-top-color: rgba(255,255,255,.1); }

/* ---------- Fare tables on phones: each row becomes a card, prices in a labelled grid ---------- */
@media (max-width: 719px) {
  .table-scroll { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .fare-table, .fare-table tbody, .fare-table tr, .fare-table th, .fare-table td { display: block; }
  .fare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fare-table tbody { display: grid; gap: 10px; }
  .fare-table tr {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px 12px;
    padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  }
  .fare-table th, .fare-table td { padding: 0; border: 0; }
  .fare-table .col-sticky { position: static; grid-column: 1 / -1; width: auto; min-width: 0; max-width: none; box-shadow: none; background: none; }
  .fare-table tbody tr:hover > * { background: none; }
  .fare-table td.num { text-align: left; font-size: 1.05rem; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); }
  .fare-table td.num::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
}

/* ---------- Page banners: full-bleed, edge to edge ---------- */
.page-figure-wrap { margin-top: 0; }
.page-figure { border-radius: 0; aspect-ratio: auto; height: clamp(240px, 34vw, 520px); }
@media (max-width: 640px) { .page-figure { aspect-ratio: auto; height: 240px; } }

/* FAQ beside the help card; booking vehicle picker two-up on phones */
.with-aside .faq { max-width: none; }
.vehicle-pick { grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr)); }

/* The hidden attribute always wins over component display rules (e.g. the empty .vp-hint bar). */
[hidden] { display: none !important; }

/* Keyboard focus visible on the black nav bar, the dark bands and the estimator */
.site-header :focus-visible, .section-dark :focus-visible, .hero-photo :focus-visible, .meter-band :focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; }

/* ---------- Round 2 ---------- */
/* Nav content lines up with the page's content column (1220px wrap, gutter inside) while the bar stays full width. */
.site-header .header-row { padding-inline: max(var(--gutter), calc((100% - 1220px) / 2 + var(--gutter))); }
/* Centred and lead text: no orphans. */
.section-head-center .section-sub, .lede, .section-sub, .callband-sub { text-wrap: balance; }
/* Reading pages (about, legal): body column aligns with the left-aligned page head instead of centring. */
.prose-narrow { margin-inline: 0; }
/* Vehicle gallery on phones: a last photo left alone in its row takes the full width. */
@media (max-width: 719px) { .gallery-item:not(.gallery-lead):last-child:nth-child(even) { grid-column: 1 / -1; } }
/* Vehicle gallery, 3 columns (lead photo is child 1): close a gap in the last row. */
@media (min-width: 720px) {
  .gallery-item:not(.gallery-lead):last-child:nth-child(3n) { grid-column: span 2; }
  .gallery-item:not(.gallery-lead):last-child:nth-child(3n+2) { grid-column: 1 / -1; }
  /* keep the row height: two 4:3 cells + gap ≈ 8:3, a full row of three ≈ 4:1 */
  .gallery-item:not(.gallery-lead):last-child:nth-child(3n) a { aspect-ratio: 8 / 3; }
  .gallery-item:not(.gallery-lead):last-child:nth-child(3n+2) a { aspect-ratio: 4 / 1; }
}

/* WhatsApp mark in WhatsApp green wherever WhatsApp is offered */
.icon-wa { color: #25d366; }
.chip .icon-wa { width: 1.2rem; height: 1.2rem; }
/* WhatsApp app-icon style: the mark carries its own colours, so it reads the same on any button */
.icon-wa { width: 1.35em; height: 1.35em; vertical-align: -0.32em; }
.chip:has(.icon-wa) { background: transparent; }
.chip .icon-wa { width: 32px; height: 32px; }
.btn .icon-wa, .contact-card .icon-wa { width: 1.45em; height: 1.45em; }

/* Thumbnails: no hover zoom on gallery tiles (a scaled image re-rasterises soft in Chrome) */
.gallery-item a:hover img { transform: none; }
/* Tariff thumbnails: let the vehicle fill the frame (cutouts are square with wide white margins) */
.rc-photo { position: relative; width: 132px; height: 88px; padding: 0; }
.rc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
