/*!
 * V16.0 — Taxi in Lisbon design system (THE ONLY stylesheet).
 * Tokens (build-spec §1, use exactly these; no other colours):
 * navy #0F172A / #06172D / #102946, gold #B79860 / #FBBF24 / #7E6C41,
 * white #FFFFFF, page bg #F8FAFC, text #0F172A, muted #64748B,
 * border #E2E8F0, WhatsApp green #25D366 (WhatsApp icon ONLY).
 * No other accent colour is used anywhere in this file.
 */
:root {
  --navy: #0F172A; --navy-deep: #06172D; --navy-mid: #102946;
  --gold: #B79860; --gold-bright: #FBBF24; --gold-dark: #7E6C41;
  --white: #FFFFFF; --bg: #F8FAFC; --surface: #FFFFFF;
  --text: #0F172A; --muted: #64748B; --border: #E2E8F0;
  --wa-green: #25D366;
  --radius-card: 16px; --radius-btn: 12px; --radius-input: 10px;
  --shadow: 0 8px 30px rgba(15, 23, 42, .08);
  --bg-booking: #EDF1F6;
  --container: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
h1 { font-size: clamp(30px, 6vw, 44px); }
h2 { font-size: clamp(24px, 4.5vw, 34px); }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.container { max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.eyebrow {
  color: var(--gold-dark); text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; font-weight: 700; margin: 0 0 8px;
}
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-heading p { color: var(--muted); max-width: 560px; margin: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-btn) 0; }
.skip-link:focus { left: 0; color: var(--white); }

/* Buttons */
.button, button.button, a.button {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  background: var(--gold-bright); color: var(--navy); font-weight: 700;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  padding: 12px 22px; font-size: 15px; line-height: 1.3; cursor: pointer; text-decoration: none;
}
.button:hover { text-decoration: none; filter: brightness(0.97); }
.button.gold { background: var(--gold-bright); color: var(--navy); }
.button.outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.button.outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.button.outline-light:hover { border-color: var(--white); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-bright); outline-offset: 2px;
}

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
/* FIX ROUND 5 — D9 sticky header under the WP admin bar (logged-in only):
   the sticky header pins at viewport top: 0 and slides UNDER the fixed
   WP admin bar (32px desktop, 46px at <=782px), which covered the top
   32px of the 84px logo band — wiping out the car graphic while the
   wordmark (lower in the band) stayed visible. Anonymous visitors were
   never affected (no admin bar). Compensate the sticky offset when
   body.admin-bar is present so the stuck header pins BELOW the bar.
   Verified by reproduction harness v16-fix5-repro.js (simulated bar);
   re-verify in a real logged-in session after deploy. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 89px; }
/* D9: header-row is 89px so the 89px brand window never overflows it.
   FIX ROUND 6 — tagline: clip-path bottom inset reduced 5px + window/header
   +5px so the tagline has 5px clearance below it; probe measured
   0.01-0.85px before (0.01px at <=360px — the clip edge sat exactly on
   the tagline's last ink row). See the FIX ROUND 6 note on .v16-brand. */
.brand { display: block; flex: 0 0 auto; }
/* LOGO CROP (V15.0 fix, tuned to this exact logo file): the brand link is a
   fixed-height overflow-hidden window; the image is shown taller with a
   negative top/left margin, cropping the internal white bands. Desktop:
   window 89px, image 130px, crop top -24px, left -23px. Mobile: window
   77px, image 112px, crop top -21px (112*146/768), left -20px.
   FIX ROUND 2 — D9: the negative top margin moved the img's own box
   ~20px (mobile) / ~24px (desktop) above the header, so a rect probe
   flagged it even though overflow:hidden clipped the paint. The crop is
   now done with clip-path instead, keeping the SAME visible slice
   (desktop: image rows 24-108 of 130px; mobile: rows 21-93 of 112px)
   while the img box starts exactly at the brand window's top edge.
   Visible appearance is unchanged; only the box geometry is fixed.
   FIX ROUND 4 — D9: the clip-path-only crop BROKE the visual. The
   clip-path band starts at the clip top inset BELOW the img top, so
   the band overran the brand window's bottom by exactly that inset
   (24px desktop / 21px mobile) and .v16-brand's overflow:hidden cut
   the bottom of the wordmark + tagline at every width above 360px
   (live, fix round 3). The negative top margin is RESTORED, equal to
   the clip-path top inset, so the band aligns exactly with the brand
   window (desktop band viewport rows 0-89 = window 0-89; mobile
   0-77 = window 0-77). The img box intentionally extends above the
   brand window's top edge by that inset, but NO paint escapes:
   .v16-brand has overflow:hidden, so the img is clipped to the
   window — the same approach V15.0 used (visually correct). The
   VISUAL (full wordmark + tagline) is the requirement; the raw img
   box top is a misleading proxy — verify by screenshot + band/window
   intersection geometry, NOT by "img box top >= header top".
   <=360px: its band (rows 14-61 of 74px) already fits inside the
   72px window ONLY with margin-top 0 — the <=768px rule's -21px
   would otherwise cascade down and cut 7px off the TOP of the band
   (the car's roof; measured + screenshotted in fix round 4 before
   this guard was added). So the <=360px rule pins margin-top: 0
   explicitly. That restores its exact fix-round-3 passing value;
   it is a cascade guard, not a design change. */
/* FIX ROUND 6 — tagline bottom clearance: the clip-path BOTTOM inset
   removed almost exactly all the white space below the tagline in the
   source image, so the visible band ended flush on the tagline's last
   ink row — probe (v16-fix6-tagline-probe.js, headless Firefox, live
   staging) measured only 0.01-0.85px clearance (0.01px at <=360px),
   so any other DPR/zoom/rasteriser could shave the bottom
   anti-aliased row. The tagline was NOT literally clipped in the
   probe; the cutter is the clip-path bottom inset, not the header or
   the brand window. Fix: bottom inset -5px (22->17 desktop, 19->14
   mobile, 13->8 at <=360px) and brand window + header-row +5px
   (84->89 desktop, 72->77 mobile) so the band still exactly fills
   the window (130-24-17=89; 112-21-14=77; 74-14-8=52) and the
   tagline gains 5px of real clearance: 5.85px desktop (6.85px to
   header bottom), 5.69px mobile, 5.01px at <=360px. Img height,
   margin-top and clip-top inset are UNCHANGED, so car/wordmark
   alignment is untouched. Admin-bar rules untouched. */
.v16-brand { display: block; overflow: hidden; flex: 0 0 auto; height: 89px; line-height: 0; background: var(--white); }
.v16-logo { display: block; height: 130px; width: auto; max-width: none; margin-top: -24px; margin-left: -23px; clip-path: inset(24px 0 17px 0); object-fit: contain; object-position: left top; }
/* V16.1 — mobile logo (second img, theme file only, never til_logo;
   see header.php). Hidden on desktop; shown at <=768px, where the
   desktop .v16-logo is hidden instead. NO clip-path, NO negative
   margins, NO object-fit, NO max-width: none on the mobile logo —
   it is a clean lockup that defines the brand height itself
   (71px at 188px wide, 63px at 168px wide). */
.v16-logo-mobile { display: none; }
.desktop-nav { display: flex; gap: 26px; margin-left: auto; }
.desktop-nav a { color: var(--navy); font-weight: 600; font-size: 15px; white-space: nowrap; }
.auth-navigation { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.desktop-nav + .auth-navigation { margin-left: 0; }
.auth-pill { border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.auth-pill.light { background: var(--bg); }
.header-whatsapp { font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; }
.nav-toggle { display: none; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-btn); width: 44px; height: 44px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); }
/* Language dropdown — ONE dropdown, header only. */
.v16-lang { position: relative; }
.v16-lang-btn { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; }
.v16-lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; min-width: 190px; z-index: 120; }
.v16-lang-menu[hidden] { display: none; }
.v16-lang-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--navy); font-size: 14px; font-weight: 600; }
.v16-lang-menu a:hover { background: var(--bg); text-decoration: none; }
.v16-lang-check { margin-left: auto; color: var(--gold-dark); }
/* Drawer */
.nav-drawer { border: 0; padding: 0; margin: 0 0 0 auto; width: min(360px, 92vw); height: 100dvh; max-height: 100dvh; background: var(--white); color: var(--navy); }
.nav-drawer::backdrop { background: rgba(15, 23, 42, .5); }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 800; letter-spacing: .06em; font-size: 14px; }
.drawer-heading button { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); line-height: 1; padding: 4px 8px; }
.nav-drawer nav { display: flex; flex-direction: column; padding: 10px 0; }
.nav-drawer nav a { display: flex; justify-content: space-between; padding: 13px 20px; color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--border); }
.drawer-auth { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; }
.drawer-auth a { font-weight: 700; color: var(--navy); }
.drawer-lang-switcher { padding: 12px 20px; border-top: 1px solid var(--border); font-size: 14px; }
.drawer-lang-switcher .drawer-lang-label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.drawer-lang-switcher a { margin-right: 14px; font-weight: 600; }
.drawer-contact { padding: 16px 20px; border-top: 1px solid var(--border); }
.drawer-contact a { display: block; font-weight: 800; font-size: 18px; color: var(--navy); }

/* Hero — compact, navy. V16.1: the hero image slot (til_hero_image)
   is empty live, so front-page.php now falls back to the theme's
   tour-sintra.jpg (already shipped for the Sintra tour card, so no
   new download on the homepage). The ::after navy gradient keeps the
   white h1/lead and gold CTA readable over ANY hero image, including
   a Customizer-set one — dark at the text (left) side, lighter to
   the right so the photo still shows. The grid sits above the
   overlay (z-index 1); the overlay never intercepts clicks. */
.home-hero { background: var(--navy-deep); color: var(--white); background-size: cover; background-position: center; position: relative; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(6, 23, 45, .94) 0%, rgba(6, 23, 45, .86) 55%, rgba(6, 23, 45, .62) 100%); pointer-events: none; }
.home-hero .hero-grid { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 44px; }
.hero-copy { max-width: 720px; }
.hero-copy h1 { color: var(--white); margin-bottom: 12px; }
.hero-lead { color: rgba(255, 255, 255, .85); font-size: 18px; margin-bottom: 22px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-contact { margin: 16px 0 0; }
.hero-contact a { color: var(--gold-bright); font-weight: 600; }

/* Booking section (form chrome; widget internals in v16-booking.css). */
.v16-booking-section { background: var(--bg); padding: 28px 0 8px; }
.v16-booking-section .container { max-width: 880px; }

/* Intro */
.v16-intro { padding-top: 40px; padding-bottom: 8px; }
.v16-intro p { max-width: 760px; color: var(--muted); font-size: 17px; }
.v16-intro a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; }
.service-icon { width: 44px; height: 44px; color: var(--gold-dark); margin-bottom: 14px; }
.service-icon svg { width: 100%; height: 100%; }
.service-number { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.service-card h3 { margin: 6px 0 8px; }
.service-card p { color: var(--muted); flex: 1; }
.service-primary { font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.service-more, .service-quote { font-weight: 600; color: var(--gold-dark); font-size: 14px; }

/* Chauffeur band */
.chauffeur-panel { background: var(--navy); color: var(--white); border-radius: var(--radius-card); padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.chauffeur-panel h2 { color: var(--white); }
.chauffeur-panel p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 560px; }
.chauffeur-panel .eyebrow { color: var(--gold-bright); }
.chauffeur-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tours */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tour-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.tour-image { position: relative; display: block; }
.tour-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tour-image span { position: absolute; left: 12px; top: 12px; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; }
.tour-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tour-body p { color: var(--muted); flex: 1; }
.tour-price { color: var(--gold-dark); font-weight: 800; font-size: 17px; }
/* D5 — "Price on Request" label: same gold-dark weight as .tour-price,
   slightly smaller so the longer label sits comfortably on one line. */
.tour-por { font-size: 16px; }
.tour-body small { color: var(--muted); display: block; margin-bottom: 12px; }
.tour-body .button { align-self: flex-start; }

/* Fleet — ONE section. */
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fleet-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.fleet-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fleet-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.fleet-body h3 { margin: 4px 0 6px; }
.fleet-body p { color: var(--muted); flex: 1; }
.fleet-body .button { align-self: flex-start; }

/* Destinations */
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.destination-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 22px; }
.destination-card h3 { margin-bottom: 4px; }
.destination-card p { color: var(--muted); margin-bottom: 10px; }
.destination-card a { font-weight: 700; color: var(--gold-dark); }

/* How it works */
.process-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 22px; }
.process-steps li span { display: inline-block; background: var(--gold-bright); color: var(--navy); font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 13px; margin-bottom: 12px; }
.process-steps p { color: var(--muted); margin: 0; }

/* Why choose us */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 22px; border-top: 4px solid var(--gold); }
.why-card p { color: var(--muted); margin: 0; }

/* FAQ */
.v16-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px 20px; margin-bottom: 12px; }
.v16-faq summary { font-weight: 700; cursor: pointer; font-size: 17px; }
.v16-faq details p { color: var(--muted); margin: 10px 0 0; }

/* CTA panel */
.cta-panel { background: var(--navy); color: var(--white); border-radius: var(--radius-card); padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-panel h2 { color: var(--white); }
.cta-panel p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 560px; }
.cta-panel .eyebrow { color: var(--gold-bright); }

/* Page intro + booking layout */
.page-intro { background: var(--navy-deep); color: var(--white); padding: 44px 0; }
.page-intro h1 { color: var(--white); }
.page-intro p { color: rgba(255, 255, 255, .85); max-width: 720px; margin: 0; }
.page-intro .eyebrow { color: var(--gold-bright); }
.page-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 28px; }
.page-content article { padding: 16px 0; border-bottom: 1px solid var(--border); }
.page-content article:last-child { border-bottom: 0; }
.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding-top: 32px; padding-bottom: 64px; align-items: start; background: var(--bg-booking); }
/* §16.3.5 — Premium booking card (owner brief 2026-12-02): pure white,
   1px navy-tinted border, soft two-layer shadow, 20px radius, thin gold
   accent along the top edge (::before, no markup change). The card wraps
   the whole booking widget on booking pages (.booking-card in
   taxi_booking_layout) and — per the owner's 2026-12-02 decision — on the
   homepage too (see the §16.3.5 extension below: the homepage form has no
   .booking-card wrapper, so the card is applied to its widget).
   --bg-booking (#EDF1F6, light blue-gray) is the booking-page backdrop
   so the white card stands out; body --bg stays #F8FAFC elsewhere. */
.booking-card { position: relative; background: #FFFFFF; border: 1px solid rgba(15, 23, 42, 0.14); border-radius: 20px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06); padding: 24px; margin-top: 16px; }
/* Gold top accent: 4px strip, inset to the padding box, so its 19px top
   radius (20px card radius minus the 1px border) matches the card's
   inner corner curve exactly. pointer-events:none so it never blocks a
   tap. No overflow:hidden on the card — the autocomplete dropdown must
   not be clipped (it is positioned against .tbm-autocomplete-wrap). */
.booking-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 19px 19px 0 0; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%); pointer-events: none; }
/* §16.3.5 extension — homepage booking form (owner decision 2026-12-02):
   the same premium card on the homepage. The homepage form lives in
   section#v16-booking > .container > .tbm-pro (no .booking-card wrapper),
   so the card is applied to the widget itself and the backdrop to the
   section. The widget is the whole multi-step form, so the card wraps all
   steps, exactly as .booking-card does on booking pages. Hero, fleet,
   tours and all other homepage sections are untouched. The mobile-actions
   bar stays visible on the homepage (it is meant to); the section's
   existing 96px bottom padding clears it (the bar is 69px tall), so the
   card and its Find My Ride button are never covered by it. No
   overflow:hidden on the card — the autocomplete dropdown must not be
   clipped (it is positioned against .tbm-autocomplete-wrap). */
section#v16-booking { background: var(--bg-booking); }
section#v16-booking .tbm-pro[data-tbm-ui] { position: relative; box-sizing: border-box; background: #FFFFFF; border: 1px solid rgba(15, 23, 42, 0.14); border-radius: 20px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06); padding: 24px; }
section#v16-booking .tbm-pro[data-tbm-ui]::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 19px 19px 0 0; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%); pointer-events: none; }
.booking-aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.aside-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.aside-content { padding: 22px; }
.aside-content ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); }
.aside-content a { font-weight: 700; color: var(--gold-dark); }
.service-switch { display: inline-flex; background: var(--navy); border-radius: 999px; padding: 4px; gap: 4px; }
.service-switch a { color: var(--white); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; }
.service-switch a.is-active { background: var(--gold-bright); color: var(--navy); }
.service-switch a:hover { text-decoration: none; }
.rental-mode-switch { display: flex; gap: 10px; margin-top: 14px; }
.rental-mode-switch a { font-weight: 700; color: var(--navy); border: 1px solid var(--border); background: var(--white); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.v16-cta-row { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: 48px 0 120px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid strong { font-size: 15px; margin-bottom: 4px; }
.footer-grid .brand { font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.footer-grid p { color: rgba(255, 255, 255, .75); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 20px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.v16-footer-lang { padding-top: 20px; font-size: 14px; }
.v16-footer-lang a { margin-right: 16px; font-weight: 600; }
.v16-footer-lang-label { color: rgba(255, 255, 255, .6); margin-right: 12px; }
.til-social-links { padding-top: 16px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Mobile bottom bar (kept per owner decision). */
.mobile-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; background: var(--white); border-top: 1px solid var(--border); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; }
.mobile-call { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: var(--radius-card); padding: 8px 12px; color: var(--navy); }
.mobile-call-icon { font-size: 20px; }
.mobile-call-copy { display: flex; flex-direction: column; line-height: 1.2; }
.mobile-call-copy small { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.mobile-call-copy strong { font-size: 14px; }
.mobile-whatsapp { display: flex; align-items: center; gap: 6px; color: var(--wa-green); font-weight: 700; font-size: 14px; }
.mobile-whatsapp svg { width: 28px; height: 28px; }
.mobile-book-action { margin-left: auto; background: var(--gold-bright); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 12px 18px; font-size: 15px; white-space: nowrap; }

/* Auth */
.auth-panel { max-width: 520px; }
.auth-panel input[type="email"], .auth-panel input[type="text"], .auth-panel input[type="password"] {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-input); padding: 12px; font-size: 16px; font-family: inherit;
}

/* Floating WhatsApp (plugin-injected) — hidden while the booking form is in view. */
.v16-wa-hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
/* V16.1 — floating WhatsApp is a DUPLICATE on mobile: the fixed
   .mobile-actions bar (always displayed at <=768px) already carries
   a WhatsApp link, and the floating button sat on top of the bar's
   Book Transfer button (1,804 px² overlap at 320/360, 1,936 px² at
   375–430, V16.1 baseline). Hide the plugin-injected floating button
   at mobile widths only; desktop keeps it (v16-floating-wa.js still
   hides it while the booking form is in view). This also covers
   pages where v16-floating-wa.js is not enqueued (it only loads on
   front + booking pages); the JS is the class-agnostic layer, this
   is the belt-and-braces layer for the known plugin class.
   Customizer check: JOB 25 sets bottom/right/width/height on this
   button (!important) — different properties, so no conflict; the
   !important here beats the PLUGIN's own display rule regardless of
   stylesheet load order. */
@media (max-width: 768px) {
  .tbm-wa-float { display: none !important; }
}

/* Responsive */
/* D3 — at <=1100px the desktop nav + Sign in/Sign up pills + WhatsApp
   link overflow 1024px (doc 1,153px in QA). The pills live in the drawer
   already (.drawer-auth, header.php), so hiding them here loses nothing;
   the WhatsApp link stays reachable via the mobile bar / footer. Nav gaps
   shrink to match. Language dropdown + hamburger are untouched. */
@media (max-width: 1100px) {
  .auth-navigation .auth-pill, .header-whatsapp { display: none; }
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 14px; }
}
@media (max-width: 1024px) {
  .service-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-aside { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .desktop-nav, .auth-navigation .auth-pill, .header-whatsapp { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  /* V16.1 — HEADER REBUILD (3-column flex: [LOGO] [LANGUAGE] [MENU]).
     Root cause of the "unused space" right of the hamburger (V16.1
     baseline: 64px at 320px, 104px at 360px): the base rule
     `.desktop-nav + .auth-navigation { margin-left: 0; }` (0,2,0)
     beats `.auth-navigation { margin-left: auto; }` (0,1,0) at mobile
     EVEN THOUGH .desktop-nav is display:none — the adjacent-sibling
     selector still matches in the DOM, so .auth-navigation was never
     pushed right. Restored here at the SAME specificity (0,2,0);
     this rule sits later in the file, so it wins and the language +
     hamburger group hugs the right edge. */
  .desktop-nav + .auth-navigation { margin-left: auto; }
  /* D3 — header-row gap was 20px; at 320px the 188px brand + language
     button + 44px hamburger overflowed (doc 364px, hamburger at left=320).
     V16.1 — header-row min-height 89px -> 79px: the new mobile logo is
     71px tall (188px wide), so 79px leaves 4px clearance top/bottom.
     Header total is 80px (79 + 1px border); see the D10 recalibration
     in v16-booking.css (scroll-margin-top 93px -> 83px at <=768px). */
  .header-row { gap: 12px; min-height: 79px; }
  .auth-navigation { gap: 6px; }
  /* V16.1 — HERO COMPACT (mobile): grid padding 44px -> 26px, lead
     18px -> 16px with tighter margins, so the hero is shorter than
     the 399px baseline and the booking form stays near the top. The
     h1 size is NOT set here: the Customizer JOB 54 rule already pins
     `body.home main h1` to 26px !important at <=480px, which is
     smaller than anything this rule would set — no !important war. */
  .home-hero .hero-grid { padding-top: 26px; padding-bottom: 26px; }
  .hero-copy h1 { margin-bottom: 8px; }
  .hero-lead { font-size: 16px; margin-bottom: 14px; }
  .hero-contact { margin-top: 10px; }
  /* D1-Step 1 — compact the booking-page intro that pushed the Step 1
     panel top to 556px: padding 44px -> 16px, smaller h1, description
     hidden at mobile widths (eyebrow + h1 stay). */
  .page-intro { padding: 16px 0; }
  .page-intro h1 { font-size: 26px; margin-bottom: 6px; }
  .page-intro .eyebrow { margin-bottom: 4px; }
  .page-intro p:not(.eyebrow) { display: none; }
  /* FIX ROUND 7 — Step 1 (owner decision 2026-11-29): hide the intro on
     booking pages at mobile widths. The intro (eyebrow + h1, 91px at
     390px) duplicates the form heading and pushes the Step 1 panel down;
     the booking form IS the page's purpose. Scoped to pages whose intro
     is immediately followed by the booking layout (booking / rental /
     hourly / tour-booking), so every other page keeps its intro. The
     :has() form is the structural scope; the body-class selectors are
     belt-and-braces for the same pages. */
  .page-intro:has(+ .booking-layout),
  body.page-template-page-booking .page-intro,
  body.page-template-page-rental .page-intro,
  body.page-template-page-tour-booking .page-intro { display: none; }
  .booking-layout { padding-top: 6px; }
  /* §16.3.4 FIX 1 — center the booking tabs on mobile (owner screenshot
     of /tour-booking/: the pill hugged the left edge). Root cause,
     measured live: the base rule is display:inline-flex (shrink-to-fit)
     in the left-aligned .booking-main, so the left margin stayed at the
     container padding (12px <=360px, 20px above) while the right margin
     grew with the viewport — EN centre offset -22px at 360px, -49px at
     430px (right margin 117px vs left 20px). display:flex +
     width:fit-content + auto side margins centers the pill in the
     available width at every mobile width with balanced margins; no
     fixed offsets, no negative margins. white-space:nowrap keeps each
     label on one line (PT/FR/DE wrapped to 2 lines at 320-390px
     before). Desktop base rule (inline-flex, left-aligned) untouched. */
  .service-switch { display: flex; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; padding: 2px; gap: 2px; }
  .service-switch a { padding: 6px 7px; font-size: 12px; white-space: nowrap; }
  .booking-card { margin-top: 0; padding: 20px 16px 20px; }
  section#v16-booking .tbm-pro[data-tbm-ui] { padding: 20px 16px 20px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .tour-grid, .fleet-grid, .destination-grid { grid-template-columns: 1fr; }
  .service-grid, .why-grid, .process-steps { grid-template-columns: 1fr; }
  .chauffeur-panel, .cta-panel { padding: 26px 22px; }
  .mobile-actions { display: flex; }
  /* FIX ROUND 6 — F2: the fixed .mobile-actions bar (z-index 90, band
     y779–844 at 320px) covers the Step-1 submit button's centre when
     the button is scrolled into the bottom of the viewport (PT@320:
     submit centre 160,823 under the "Reservar transfer" pill, whose
     href is the English /booking/ — a centre tap abandons the PT
     journey). The bar is redundant on the booking page itself, so it
     is hidden there at mobile widths only; the homepage and every
     other page keep it unchanged. Scoped by the page-template class
     (verified live on all five booking pages: EN page-id-51, PT 935,
     ES 937, FR 939, DE 941). No PHP change; no title/stepper touched. */
  body.page-template-page-booking .mobile-actions { display: none; }
  /* V18.3: the fixed .mobile-actions bar also covers the bottom of the
     WooCommerce checkout form (the final button sits under it, as the
     owner's V18.3 video shows). Hidden on checkout at mobile widths
     only; every other page keeps it unchanged. */
  body.woocommerce-checkout .mobile-actions { display: none; }
  .site-footer { padding-bottom: 140px; }
  .footer-grid { grid-template-columns: 1fr; }
  /* V16.1 — MOBILE LOGO SWAP: the desktop .v16-logo (with its
     clip-path crop) is hidden; the clean .v16-logo-mobile lockup is
     shown at 188px wide (71px tall — it defines the brand height,
     so the brand window is height:auto). NO clip-path, NO negative
     margins, NO object-fit, NO max-width: none on the mobile logo.
     The old <=768px .v16-logo crop rule is deleted, not kept: the
     img is display:none, so the crop is dead code. The <=360px
     .v16-logo crop rule further down is likewise inert now (it sets
     height/margins/clip-path but never display, so display:none
     still governs); it is left in place untouched as history. */
  .v16-brand { height: auto; width: 188px; min-width: 188px; max-width: 188px; }
  .v16-logo { display: none; }
  .v16-logo-mobile { display: block; width: 188px; height: auto; }
}
/* D3 — at <=360px the brand window shrinks 188px -> 148px and the
   language button drops to flag-only (code + caret hidden), so brand +
   lang + 44px hamburger fit 320px with room to spare:
   container 320-24 padding = 296px; 148 + 8 gap + ~36 lang + 6 gap + 44
   toggle = 242px < 296px. Hamburger stays inside the viewport.
   FIX ROUND 3 — D9: at <=360px the 112px logo img is 224px wide inside
   the 148px window, so the wordmark read "TAXI IN LISB". The img is
   scaled to fit the window instead: height 112 -> 74px (scale
   148/224 = 0.66), margin-left 0, clip-path insets scaled the same
   (21px -> 14px, 19px -> 13px). The visible band (rows 14-61 of 74px)
   still covers the logo's full content rows, and the content spans
   ~13-135px of the 148px window, so the full "TAXI IN LISBON"
   wordmark is visible. Brand window stays 148x77px (D3 unchanged;
   FIX ROUND 6: window 72->77px via the <=768px rule, no height
   set here). */
@media (max-width: 413px) {
  /* §16.3.4 FIX 1 — narrower tiers: the true one-line widths at 12px /
     7px padding (measured uncapped at 414px) are EN 293, ES 334,
     FR 351, DE 352, PT 366, but the container is only 321px at 361px
     viewport, 335px at 375px and 350px at 390px — so at 12px the PT
     pill would overflow its parent rightwards (366px in a 335px
     container at 375px) and centre off by up to 16px. 11px + 3px side
     padding needs 316px for PT (text 290 + pads 18 + gaps 4 + nav 4),
     which fits even the narrowest point of this range (361px viewport,
     321px container, 5px slack); 12px resumes at 414px where the
     container is 374px. */
  .service-switch a { padding: 6px 3px; font-size: 11px; }
}
@media (max-width: 360px) {
  .container { padding-left: 12px; padding-right: 12px; }
  /* V16.1 — header-row min-height 79px -> 71px: the mobile logo is
     63px tall at 168px wide, so 71px leaves 4px clearance top/bottom.
     Header total is 72px (71 + 1px border); see the D10 recalibration
     in v16-booking.css (scroll-margin-top 75px at <=360px). */
  .header-row { gap: 8px; min-height: 71px; }
  /* V16.1 — brand window 148px -> 168px (logo 168px wide, 63px tall).
     Budget at 320px: container 296px; 168 brand + ~36 flag-only lang
     + 44 toggle + 14 gaps = 262px < 296px. The old 148px window was
     sized for the cropped desktop logo; the clean mobile lockup
     reads larger and still fits with room to spare. */
  .v16-brand { width: 168px; min-width: 168px; max-width: 168px; }
  .v16-logo-mobile { width: 168px; }
  /* FIX ROUND 6 — tagline: clip-path bottom inset 13->8px, so the
     band (74-14-8=52px) ends 5px below the tagline's last ink row
     (clearance 5.01px). Window is already 77px via the <=768px
     rule; img height, margin-top and clip-top inset unchanged. */
  .v16-logo { height: 74px; margin-top: 0; margin-left: 0; clip-path: inset(14px 0 8px 0); }
  /* FIX ROUND 4 — D9: margin-top: 0 pins the <=360px img to the brand
     window top. Without it the <=768px rule's -21px cascades down and
     cuts 7px off the top of the clip band (the car's roof). This is
     the exact fix-round-3 passing value; the band (rows 14-61) fits
     the 77px window as before (FIX ROUND 6: window 72->77px). */
  .v16-lang-btn { padding: 7px 9px; gap: 0; }
  .v16-lang-btn .v16-lang-code, .v16-lang-btn .v16-lang-caret { display: none; }
  /* D8 — bottom mobile-actions bar at <=360px: icon + short label only.
     The full phone number and the WhatsApp number text are hidden (the
     call / WhatsApp actions themselves stay tappable). */
  .mobile-actions { gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-call { padding: 8px 10px; }
  .mobile-call-copy { display: none; }
  .mobile-whatsapp span { display: none; }
  .mobile-book-action { padding: 10px 14px; font-size: 14px; }
  /* §16.3.4 FIX 1 — at <=360px the container is 296px at 320px, and
     even 11px needs 321px for PT; 10px + 3px side padding needs 289px
     (text 263 + pads 18 + gaps 4 + nav 4), fitting with ~7px to spare
     while staying readable (weight 600, short pill labels). */
  .service-switch a { padding: 6px 3px; font-size: 10px; }
}
@media (max-width: 540px) {
  /* D8 — FIX ROUND 3: the phone number wraps mid-number ("+351 920 /
     118 792") and the WhatsApp number wraps too, at every width up to
     ~516px (measured live: strong 3 lines at 400px, 2 lines at 430 and
     480px; WhatsApp span 2 lines at 400/430/480px; both 1 line at
     540px, bar 69px). So in this range the number texts are hidden —
     the "CALL US NOW" label (kept on one line) and the call / WhatsApp
     actions themselves stay tappable, as does the book pill. The
     390px tightening (gap/padding) is kept inside the same range. */
  .mobile-actions { gap: 8px; }
  .mobile-call { padding: 8px 10px; }
  .mobile-call-copy strong { display: none; }
  .mobile-call-copy small { white-space: nowrap; }
  .mobile-whatsapp span { display: none; }
  .mobile-book-action { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ================================================================
   §17.0 — V17.0 premium redesign (2026-12-02).
   Unified navy/gold system on the existing tokens only; white
   cards 16–20px radius, soft shadows, gold buttons, navy headings,
   section rhythm (eyebrow pill → bold heading → grey intro →
   content → wide CTA). Every rule below is scoped to a .v17-*
   class or a V17 section modifier (.v17-services, .v17-fleet,
   .v17-tours, .v17-why, .v17-process, .v17-faq, .v17-cta,
   .v17-footer) so it cannot leak into other templates.
   CUSTOMIZER CSS NOTE: the DB-stored Customizer "Additional CSS"
   (staging ~14,976 chars) could not be read from the VM in this
   build (no live-browser render available to the builder; the
   text fetch strips <style> blocks). Known rules from the V17
   audit + v16.css comments: Stage-2 rules scoped to
   `.booking-main … article`, and JOB 54 pinning
   `body.home main h1` to 26px !important at <=480px. This
   section therefore uses NO !important, sets NO h1 size, and
   touches NOTHING inside .booking-main or the booking widget —
   so it cannot join or lose that !important war. Staging QA
   must re-verify the live Customizer block against this section.
   The §16.3.5 premium booking card rules above are UNTOUCHED.
   ================================================================ */

/* Header — gold Book Now CTA (wide desktop only; <=1100px the
   sticky bar + drawer carry Book links and the header has no
   room — same breakpoint the auth pills already hide at). */
.header-book-now { padding: 10px 20px; white-space: nowrap; }
.header-book-now:hover { text-decoration: none; }
@media (max-width: 1100px) {
  .header-book-now { display: none; }
}

/* Popular transfer routes (§4). Icon cards — no route photos
   exist, so no photo is invented. 3 cols desktop, 2 at <=1024,
   1 per row mobile. */
.v17-route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.v17-route-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; }
.v17-route-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(251, 191, 36, .16); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.v17-route-icon svg { width: 28px; height: 28px; }
.v17-route-card h3 { margin-bottom: 6px; }
.v17-route-sub { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.v17-route-price { color: var(--gold-dark); font-weight: 800; font-size: 17px; margin-bottom: 16px; }
.v17-route-price.v17-route-quote { font-size: 15px; font-weight: 700; }
.v17-route-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; }
.v17-route-actions .button { padding: 11px 20px; }
.v17-route-more { font-weight: 700; color: var(--gold-dark); font-size: 14px; white-space: nowrap; }

/* Services (§5) — 10 icon cards. 3 cols desktop (the old 4-col
   grid would squeeze 10 cards), 2 at <=1024, 1 per row mobile.
   Gold icon tile; filled gold Book Now; outlined Request a Quote;
   Learn More as a gold-dark text link. */
.v17-services .service-grid { grid-template-columns: repeat(3, 1fr); }
.v17-service-card .service-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(251, 191, 36, .16); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; padding: 12px; margin-bottom: 16px; }
.v17-service-card .service-icon svg { width: 100%; height: 100%; }
.v17-service-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; }
.v17-service-actions .button { padding: 11px 20px; }
.v17-service-card .service-more { font-size: 14px; }

/* Fleet (§6) — Book Now button: full-width dark navy (AT pattern).
   The emitted button keeps class "button outline"; this scoped
   rule (higher specificity) restyles it without a PHP class change.
   Image container reserves 16:9 + a neutral backdrop so the card
   never shifts while the Media Library image loads (the <img>
   now also carries width/height 1024x577). */
.v17-fleet .fleet-image { aspect-ratio: 16 / 9; background: var(--border); }
.v17-fleet .fleet-image img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.v17-fleet .fleet-body .button { align-self: stretch; justify-content: center; background: var(--navy); color: var(--white); border-color: var(--navy); }
.v17-fleet .fleet-body .button:hover { filter: brightness(1.25); }

/* Tours (§7) — AT pattern: 16:9 photo (was 3:2), gold tag pill,
   description clamped to 2 lines, price line, full-width button.
   Gold filled Book Now; outlined Request a Quote for PoR. */
.v17-tours .tour-image img { aspect-ratio: 16 / 9; }
.v17-tours .tour-image span { background: var(--gold-bright); color: var(--navy); }
.v17-tours .tour-body > p:not(.tour-price) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v17-tours .tour-body .button { align-self: stretch; justify-content: center; }

/* Why choose (§8) — full-bleed dark navy band, gold icon tiles,
   white titles, muted descriptions. Cards are slightly lighter
   navy panels (token --navy-mid). */
.v17-why { background: var(--navy-deep); margin-top: 32px; margin-bottom: 32px; }
.v17-why .section { padding-top: 56px; padding-bottom: 56px; }
.v17-why h2 { color: var(--white); }
.v17-why .eyebrow { color: var(--gold-bright); }
.v17-why .why-card { background: var(--navy-mid); border: 1px solid rgba(255, 255, 255, .1); border-top: 0; box-shadow: none; }
.v17-why .why-card h3 { color: var(--white); margin: 0; }
.v17-why .why-card p { color: rgba(255, 255, 255, .75); margin: 12px 0 0; }
.v17-why-head { display: flex; align-items: center; gap: 14px; }
.v17-why-icon { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 14px; background: var(--gold-bright); color: var(--navy); display: flex; align-items: center; justify-content: center; padding: 13px; }
.v17-why-icon svg { width: 100%; height: 100%; }

/* How it works (§9) — centred steps, one consistent tint (navy
   tint tile + gold icon) instead of a different colour per step. */
.v17-process .process-steps { text-align: center; }
.v17-process .process-steps li { display: flex; flex-direction: column; align-items: center; }
.v17-step-icon { width: 76px; height: 76px; border-radius: 20px; background: rgba(15, 23, 42, .06); color: var(--gold-dark); display: inline-flex; align-items: center; justify-content: center; padding: 20px; margin-bottom: 16px; }
.v17-step-icon svg { width: 100%; height: 100%; }

/* FAQ (§10) — Short answer card (gold-tinted summary) + accordion
   cards with a gold chevron that rotates open. Native
   <details>/<summary> kept; no JS. */
.v17-short-answer { background: rgba(251, 191, 36, .12); border: 1px solid rgba(183, 152, 96, .4); border-radius: 20px; padding: 24px; margin: 24px 0 28px; display: flex; gap: 16px; align-items: flex-start; }
.v17-short-answer-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; background: var(--gold-bright); color: var(--navy); display: flex; align-items: center; justify-content: center; padding: 11px; }
.v17-short-answer-icon svg { width: 100%; height: 100%; }
.v17-short-answer h3 { margin-bottom: 6px; }
.v17-short-answer p { color: var(--muted); margin: 0; }
.v17-faq details { border-radius: 16px; padding: 20px 22px; }
.v17-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; }
.v17-faq summary::-webkit-details-marker { display: none; }
.v17-faq summary::after { content: ""; width: 10px; height: 10px; flex: 0 0 auto; border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(45deg); transition: transform .2s ease; margin-bottom: 4px; }
.v17-faq details[open] summary::after { transform: rotate(225deg); margin-bottom: -2px; }
.v17-faq-contact { margin-top: 24px; text-align: center; }

/* Final CTA (§12) — booking CTA + secondary WhatsApp. */
.v17-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Footer (§13) — 5 columns desktop (brand / quick access /
   services / routes / contact), 2 at <=1024, 1 mobile. Chevron
   links with real spacing (AT's flaw was concatenated links);
   contact rows with dark icon tiles; socials as tiles. */
.v17-footer .footer-grid { grid-template-columns: 1.4fr .9fr 1.1fr 1fr 1.2fr; }
.v17-footer-brand .til-social-links { padding-top: 8px; }
.v17-socials a { width: 40px; height: 40px; background: rgba(255, 255, 255, .08); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.v17-foot-link { display: flex; gap: 8px; align-items: baseline; }
.v17-foot-link::before { content: "\203A"; color: var(--gold-bright); font-weight: 700; }
.v17-contact-row { display: flex; gap: 12px; align-items: flex-start; }
.v17-contact-row a, .v17-contact-row span { overflow-wrap: anywhere; }
.v17-contact-icon { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--gold-bright); display: flex; align-items: center; justify-content: center; padding: 8px; }
.v17-contact-icon svg { width: 100%; height: 100%; }

/* Sticky bar (§14) — hidden while the homepage widget is on Step 5
   (body.v17-step5 set by main.js). Mobile only; booking pages
   already hide the bar (F2). */
@media (max-width: 768px) {
  body.v17-step5 .mobile-actions { display: none; }
}

/* §17.0 responsive — route + service grids (new grids, so the old
   <=768px rules for .service-grid/.destination-grid do not apply). */
@media (max-width: 1024px) {
  .v17-route-grid, .v17-services .service-grid { grid-template-columns: repeat(2, 1fr); }
  .v17-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .v17-route-grid, .v17-services .service-grid { grid-template-columns: 1fr; }
  .v17-why { margin-top: 0; margin-bottom: 0; }
  .v17-why .section { padding-top: 48px; padding-bottom: 48px; }
  .v17-short-answer { padding: 20px; }
  .v17-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   §17.0.1 — V17.0 fix round (2026-12-02). Fixes the four staging-QA
   blocking defects (v17/qa/v17-1700-staging-qa.md). Header layout
   only; no booking-widget, fare, content, or backend change. See
   v17/docs/BUILD-17.0.1.md.
   ================================================================ */

/* DEFECT 2 — the gold Book Now CTA stayed visible at <=1100px.
   Root cause: the theme's own `.button, button.button, a.button`
   rule (line 47) sets `display: inline-flex` at specificity
   (0,1,1), which beats the §17.0 `.header-book-now { display: none; }`
   rule (0,1,0) — so the hide never applied. This rule uses
   `.auth-navigation a.header-book-now` (0,2,1), which wins. The
   CTA stays visible at >=1101px as specified. The live Customizer
   CSS (14,976 chars, read from the rendered staging page) contains
   no header-book-now rule, so there is no !important war here. */
@media (max-width: 1100px) {
  .auth-navigation a.header-book-now { display: none; }
}

/* DEFECT 1 — header horizontal overflow, site-wide (measured live
   on staging: docScrollW 413–516px at mobile 320–430, 1304–1662px
   at desktop 1101–1440, all languages; v16.3.4 had scrollWidth ==
   viewport everywhere). Two causes: (a) the CTA above broke the
   V16.1 mobile budget (168 brand + ~36 flag-only lang + 44 toggle
   + gaps = 262px < 296px at 320px) at 320–430px; (b) at >=1101px
   the auth pills + WhatsApp reappear and the header row (brand +
   desktop-nav + auth-navigation) is wider than the 1140px
   container at every desktop width — the full header is
   1283–1512px against 1100px of content, so the pills can never
   fit alongside the nav + CTA in this container, at any viewport.
   Fix: (i) the header gets a wider container (1280px, header only
   — the rest of the page keeps 1140px); (ii) the desktop nav hides
   at <=1280px and the hamburger shows instead — the drawer is NOT
   width-gated in main.js, so it works at tablet/desktop widths
   too; the nav returns at >=1281px; (iii) the WhatsApp link + auth
   pills hide at every width (they already live in the drawer:
   .drawer-auth + drawer-contact; WhatsApp stays reachable via the
   sticky mobile bar, the footer and the final CTA). The hamburger
   is therefore always visible, so account access is never lost.
   With the CTA hidden at <=1100px, mobile/tablet fit the V16.1
   budget again (measured: brand 188 + 12 gap + 132 auth = 332px
   against 335px content at 375px). */
.site-header .container { max-width: 1280px; }
@media (max-width: 1280px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: flex; }
  .auth-navigation .auth-pill, .header-whatsapp { display: none; }
  /* The adjacent-sibling rule `.desktop-nav + .auth-navigation
     { margin-left: 0; }` (0,2,0) still matches in the DOM when the
     nav is display:none, so restore margin-left:auto here (same
     specificity, later in the file) to push the group right — the
     same fix the <=768px block already applies. */
  .desktop-nav + .auth-navigation { margin-left: auto; }
}
@media (min-width: 1281px) {
  .auth-navigation .auth-pill, .header-whatsapp { display: none; }
  .nav-toggle { display: flex; }
}

/* DEFECT 1 (continued) — the 361–375px pinch. At <=360px the lang
   button is flag-only (38px) and the brand is 168px, but at 361px
   the brand jumps to 188px and the lang code + caret reappear
   (82px): 188 + 12 gap + 132 auth = 332px against 321px of content
   at 361px (11px over; 375px fits with only 3px slack). Extend the
   flag-only lang button to <=375px — consistent with <=360px, the
   flag still shows and the dropdown still lists full names. */
@media (max-width: 375px) {
  .v16-lang-btn .v16-lang-code, .v16-lang-btn .v16-lang-caret { display: none; }
}

/* MINOR (sticky-bar bottom band) — NO extra padding added, deliberately.
   QA noted the fixed .mobile-actions bar (69px) can cover a control in
   the bottom 69px band at some scroll positions, but bottom padding
   ALREADY exists and already clears the bar: v16-booking.css ≤768px
   gives .v16-booking-section 96px and .booking-layout 110px bottom
   padding ("Step-fit: keep the booking form clear of the fixed bottom
   bar"), and the §16.3.5 comment in this file records the same. A 90px
   rule here would have REDUCED the homepage padding (96px → 90px) for
   no benefit. Controls are never permanently blocked — scrolling moves
   them above the bar, as QA itself notes. No change. */

/* ================================================================
   §17.1 — V17.1 photographic Routes + Services cards (2026-12-03).
   Routes + Services become photo cards matching the Fleet/Tours
   pattern: white card, 1px border, 16px radius, soft shadow,
   overflow hidden, flex column; 16:9 photo at top (800x450 WebP,
   lazy, width/height set so the 16:9 box is reserved and the card
   never shifts while the image loads) with a gold badge pill
   (same treatment as the tour badge); body 20px, flex column,
   flex 1; description flex 1 so the price + actions sit at the
   card bottom; Book Now full-width gold, centred; Learn More as
   a centred gold-dark text link below it; Request a Quote as a
   full-width outlined button (Executive/Hourly). No clamp on the
   route/service descriptions — translated text must not be cut
   off; the grid stretches cards in a row to equal height instead.
   The Porto route card has NO photo (no Porto image exists):
   it renders as a clean text card (same body, no image area) and
   stretches to the row height like the others. The old icon
   rules (.v17-route-icon, .v17-service-card .service-icon) are
   now unused (the SVG icons are gone from the markup) — left in
   place, harmless, as V17.0 left .v16-destinations. Tours are
   UNCHANGED (already match this pattern). No !important, no h1
   rule, nothing inside .booking-main or the booking widget.
   See v17/docs/BUILD-17.1.md.
   ================================================================ */

/* Shared photo-card shell — Routes + Services. The combined
   selector (0,2,0) beats the base .v17-route-card (0,1,0) /
   .service-card (0,1,0) padding + radius, so the photo card has
   no outer padding and the image fills the top exactly. */
.v17-route-card.v171-photo-card,
.v17-service-card.v171-photo-card { padding: 0; overflow: hidden; border-radius: var(--radius-card); }

/* Photo area: 16:9, neutral backdrop while loading, link to the
   Learn More page (the Book Now button is the booking path). */
.v171-card-image { position: relative; display: block; background: var(--border); aspect-ratio: 16 / 9; }
.v171-card-image:hover { text-decoration: none; }
.v171-card-image img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Gold badge pill — same treatment as the tour badge
   (.v17-tours .tour-image span): gold bg, navy text, 11px, 700,
   .1em letter-spacing, 5px 10px, 999px radius. */
.v171-card-badge { position: absolute; left: 12px; top: 12px; background: var(--gold-bright); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; }
/* §17.1.1: static badge variant for the Porto text card (no photo
   to sit on). Same gold pill, but in-flow above the title: the
   body is a flex column, so align-self keeps it pill-sized. */
.v171-card-badge--static { position: static; display: inline-flex; align-self: flex-start; margin: 0 0 10px; }

/* Card body — same as .fleet-body / .tour-body (20px, flex
   column, flex 1). The description flexes so price + actions
   sit at the card bottom at a consistent height. */
.v171-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.v171-card-body h3 { margin: 4px 0 6px; }
.v171-card-body .service-number { margin-bottom: 2px; }
.v171-card-desc { color: var(--muted); flex: 1; }
.v171-card-body .v17-route-sub { margin-bottom: 6px; }
.v171-card-body .v17-route-price { margin-bottom: 16px; }

/* Actions — Book Now full-width gold, centred (fleet/tour
   pattern); Request a Quote full-width outlined; Learn More
   centred gold-dark text link below the buttons. */
.v171-photo-card .v17-route-actions { flex-direction: column; align-items: stretch; gap: 12px; }
.v171-photo-card .v17-route-actions .button { justify-content: center; }
.v171-photo-card .v17-route-more { text-align: center; }
.v171-photo-card .v17-service-actions { align-items: stretch; }
.v171-photo-card .v17-service-actions .button { justify-content: center; }
.v171-photo-card .v17-service-actions .service-more { text-align: center; }

/* §17.1 responsive — the photo cards use the existing §17.0
   grids (3 cols desktop, 2 at <=1024, 1 per row mobile), so no
   grid rule is repeated here. At mobile widths the image stays
   16:9 full-width and the body keeps its 20px padding; the
   single-column grid plus the section's own padding means no
   horizontal scroll and no overlap with the sticky bar. */

/* §17.1.2: photo credit caption (Porto route card, CC BY-SA 3.0
   attribution — visible credit + licence link + crop note).
   Small muted text directly under the image, at the top of the
   card body. The link inherits the muted colour so the caption
   stays quiet; underline keeps it recognisably a link. */
.v171-photo-credit { font-size: 11px; line-height: 1.4; color: var(--muted); margin: 0 0 8px; }
.v171-photo-credit a { color: inherit; text-decoration: underline; }
.v171-photo-credit a:hover { color: var(--navy); }
