/*!
 * 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);
  --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; }
.booking-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 24px; margin-top: 16px; }
.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; }
  .service-switch { padding: 2px; gap: 2px; }
  .service-switch a { padding: 6px 7px; font-size: 12px; }
  .booking-card { margin-top: 0; padding: 10px 16px 16px; }
  .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; }
  .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: 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; }
}
@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; }
}
