/*
 * SailsSearch public site — design tokens + responsive layout.
 *
 * THIS FILE IS THE SINGLE SOURCE OF RESPONSIVE BEHAVIOUR for the Jaspr public
 * site. The Flutter app splits every page into `_default.dart` (desktop) and
 * `_mobile.dart` (mobile); here there is ONE component tree and the desktop vs.
 * mobile difference is expressed entirely through the `@media` block at the
 * bottom. Breakpoint = 800px, matching the Flutter guide pages'
 * `ResponsiveBreakpoints.of(context).smallerThan(DESKTOP)` (DESKTOP starts at
 * 801 in lib/app.dart of the Flutter project).
 *
 * Design tokens mirror lib/config/theme/app_theme.dart (marine palette) and
 * lib/utils/mixins/common_data.dart (brand colours). Keep in sync until the
 * generated ss_tokens package (plan §2) replaces this by-hand mirror.
 */

/*
 * Self-hosted Manrope — the SAME family the Flutter app bundles
 * (website/assets/fonts/Manrope-*.ttf), re-encoded to woff2 here so the public
 * Jaspr site and the private Flutter app render identical type. This is the
 * visual half of the seam (plan §1.3.4): crossing public↔private must not swap
 * fonts. Weights: 400/500/600/700/800 (300 Light is unused; a font-weight:900
 * request — .hero__title — falls back to the nearest 800, matching how Flutter
 * clamps w900 → 800). `swap` shows the fallback immediately, then repaints.
 */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Manrope-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Manrope-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Manrope-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Manrope-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Manrope-ExtraBold.woff2') format('woff2');
}

:root {
  /* marine palette — app_theme.dart */
  --marine-100: #BDEDED;
  --marine-200: #8ADCDC;
  --marine-300: #66CCCC;
  --marine-400: #3B9C9C;
  --marine-500: #367F7F;
  --marine-600: #2F7474;
  --marine-700: #2B6A6A;
  --marine-800: #245E5E;
  --marine-900: #1C4A4A;

  /* brand colours — common_data.dart */
  --appbar-back: #104C5D;   /* appBarBackColor — hero / header accents */
  --appbar-button: #1E0E62; /* appBarButtonColor */
  --default-back: #EEF1F2;  /* defaultBackColor — alternating sections */
  --footer-back: #262626;   /* footerBackColor */
  --brand-red: #D82430;     /* commonRedColor — primary CTA */

  --text-dark: rgba(0, 0, 0, 0.87);
  --text-on-dark: #ffffff;
  --text-on-dark-dim: rgba(255, 255, 255, 0.70);

  /* type scale — desktop defaults; overridden in the mobile @media block */
  --hero-title: 48px;
  --hero-subtitle: 22px;
  --section-title: 30px;
  --section-heading: 18px;
  --section-body: 16px;
  --cta-title: 36px;
  --cta-button: 20px;

  --header-height: 70px;
  --section-pad-y: 60px;
  --section-pad-x: 100px;
  --hero-pad-y: 80px;
  --hero-pad-x: 60px;

  --font-family: 'Manrope', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--text-dark);
  /* Pale mint "canvas" that shows on both sides of the centred page box on
     wide viewports — matches the Flutter marketing layout. */
  background: #F4FBF8;
}

/* The whole public page is a centred column capped to the Flutter max width;
   on viewports narrower than this it is simply full-width. `position: relative`
   anchors the absolute full-bleed header (`.site-header--full`) to the box.
   NOTE: no `overflow: hidden` here — it would break the guide's sticky header. */
.page {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  background: var(--default-back);
}

a { text-decoration: none; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 50px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__logo { font-size: 22px; font-weight: 800; color: var(--appbar-back); }
.site-header__spacer { flex: 1; }
.site-header__nav { display: flex; align-items: center; gap: 8px; }
.site-header__link { padding: 10px 15px; font-size: 16px; font-weight: 600; color: var(--appbar-button); }
.site-header__link--accent { color: var(--appbar-back); font-weight: 700; }
.site-header__auth { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.auth-login { padding: 8px 18px; border-radius: 22px; background: var(--appbar-back); color: #fff; font-weight: 700; }
.auth-avatar { display: flex; align-items: center; gap: 8px; }
.auth-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.auth-name { font-weight: 600; color: var(--appbar-button); }

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  padding: var(--hero-pad-y) var(--hero-pad-x);
  background: var(--appbar-back);
  text-align: center;
  color: var(--text-on-dark);
}
.hero__title { margin: 0; font-size: var(--hero-title); font-weight: 900; line-height: 1.1; }
.hero__subtitle { margin: 16px auto 0; max-width: 900px; font-size: var(--hero-subtitle); font-weight: 400; color: var(--text-on-dark-dim); }

/* ---------- Content sections ---------- */
.section { width: 100%; padding: var(--section-pad-y) var(--section-pad-x); background: #ffffff; }
.section--alt { background: var(--default-back); }
.section__title { margin: 0 0 28px; color: var(--appbar-back); font-size: var(--section-title); font-weight: 800; }
.section__item { margin-bottom: 22px; }
.section__heading { margin: 0 0 6px; color: var(--appbar-back); font-size: var(--section-heading); font-weight: 700; }
.section__body { margin: 0; color: var(--text-dark); font-size: var(--section-body); line-height: 1.45; }

/* ---------- Bottom CTA ---------- */
.cta { width: 100%; padding: var(--section-pad-y) var(--hero-pad-x); background: var(--appbar-back); text-align: center; }
.cta__title { margin: 0 0 30px; color: var(--text-on-dark); font-size: var(--cta-title); font-weight: 800; }
.cta__button {
  display: inline-block;
  padding: 18px 48px;
  border-radius: 30px;
  background: var(--brand-red);
  color: #fff;
  font-size: var(--cta-button);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-back); color: #fff; padding: 100px; }
.site-footer__cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer__col { max-width: 350px; }
.site-footer__head { font-size: 16px; font-weight: 700; margin-bottom: 24px; }
.site-footer__link { display: block; padding: 8px 0; font-size: 16px; font-weight: 500; color: #fff; }
.site-footer__social { display: flex; gap: 20px; margin-top: 24px; }
.site-footer__social a { display: inline-flex; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.38); border-radius: 50%; align-items: center; justify-content: center; }
.site-footer__badges { display: flex; gap: 24px; margin-top: 32px; }
.site-footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.24); font-size: 13px; color: rgba(255,255,255,0.7); }
/* Footer language picker (onDark): native <details> dropdown, zero-JS. */
.site-footer__langbar { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.lang-picker { position: relative; display: inline-block; }
.lang-picker__current { cursor: pointer; list-style: none; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; color: #fff; font-size: 15px; font-weight: 500; user-select: none; }
.lang-picker__current::-webkit-details-marker { display: none; }
.lang-picker[open] .lang-picker__current { border-color: rgba(255,255,255,0.5); }
.lang-picker__menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); padding: 6px; min-width: 190px; z-index: 20; }
.lang-picker__opt { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text-dark, #262626); font-size: 15px; font-weight: 500; }
.lang-picker__opt:hover { background: var(--marine-50, #EAF2F4); }
.lang-picker__opt.is-selected { font-weight: 700; }

/* ---------- Centered section header (bespoke guide pages) ---------- */
.section--center { text-align: center; }
.section__title--center { margin: 0 auto 40px; text-align: center; }
.section__subtitle { margin: -24px auto 40px; max-width: 760px; text-align: center; color: rgba(0, 0, 0, 0.54); font-size: 16px; }

/* ---------- Dark / tinted section variants ---------- */
.section--dark { background: var(--appbar-back); }
.section--dark .section__title { color: var(--text-on-dark); }
.section--tint { background: #D3E9EC; }
.section--tint .section__title, .section--tint .section__subtitle { color: var(--appbar-back); }

/* ---------- Role cards (/guide) ---------- */
.role-cards { display: flex; gap: 32px; align-items: stretch; text-align: left; }
.role-cards > a { flex: 1; display: flex; }
.role-card { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 36px; background: #fff; border-radius: 20px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); }
.role-card__title { margin: 0 0 12px; color: var(--appbar-back); font-size: 22px; font-weight: 800; }
.role-card__body { margin: 0 0 24px; color: rgba(0, 0, 0, 0.54); font-size: 16px; }
.role-card__cta { display: inline-block; margin-top: auto; padding: 12px 24px; border-radius: 30px; background: var(--appbar-back); color: #fff; font-size: 15px; font-weight: 700; }

/* ---------- Quick-help topic grid (/guide) ---------- */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.topic-tile { display: flex; align-items: flex-start; gap: 16px; padding: 28px; background: var(--default-back); border-radius: 16px; }
.topic-tile__title { margin: 0 0 8px; color: var(--appbar-back); font-size: 18px; font-weight: 700; }
.topic-tile__body { margin: 0; color: rgba(0, 0, 0, 0.54); font-size: 15px; }
.topic-tile__chev { margin-left: auto; color: var(--appbar-back); font-size: 24px; line-height: 1; }

/* ---------- FAQ accordion — native <details>/<summary>, zero JS ---------- */
.faq { max-width: 900px; margin: 0 auto; text-align: left; }
.faq__item { margin-bottom: 12px; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); overflow: hidden; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; color: var(--appbar-back); font-size: 24px; font-weight: 700; line-height: 1; }
.faq__item[open] .faq__q::after { content: '\2013'; }
.faq__q-text { margin: 0; color: var(--appbar-back); font-size: 17px; font-weight: 600; }
.faq__a { margin: 0; padding: 0 24px 16px; color: var(--text-dark); font-size: 15px; line-height: 1.5; }

/* ---------- Numbered step cards (/guide/organize) ---------- */
.steps { max-width: 1000px; margin: 0 auto; text-align: left; }
.step-card { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; padding: 24px; background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.step-card__num { flex: 0 0 48px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--appbar-back); color: #fff; font-size: 20px; font-weight: 800; }
.step-card__title { margin: 0 0 4px; color: var(--appbar-back); font-size: 18px; font-weight: 700; }
.step-card__body { margin: 0; color: rgba(0, 0, 0, 0.54); font-size: 15px; }

/* ---------- Alert box (/guide/organize) ---------- */
.alert { max-width: 1000px; margin: 0 auto; padding: 24px; background: #FFF3F3; border: 2px solid var(--brand-red); border-radius: 12px; text-align: left; }
.alert__title { margin: 0 0 8px; color: var(--brand-red); font-size: 18px; font-weight: 700; }
.alert__body { margin: 0; color: #7B0000; font-size: 16px; }

/* ---------- Info cards on dark band (/guide/organize) ---------- */
.info-cards { display: flex; gap: 24px; text-align: left; }
.info-card { flex: 1; padding: 24px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 16px; }
.info-card__title { margin: 0 0 8px; color: #fff; font-size: 20px; font-weight: 700; }
.info-card__body { margin: 0; color: var(--text-on-dark-dim); font-size: 15px; }

/* ---------- White panel: Proposal Mode / Review QR (/guide/organize) ---------- */
.panel { max-width: 1000px; margin: 0 auto; padding: 32px; background: #fff; border-radius: 20px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); text-align: left; }
.panel__title { margin: 0 0 12px; color: var(--appbar-back); font-size: 26px; font-weight: 800; }
.panel__lead { margin: 0 0 20px; color: var(--text-dark); font-size: 16px; }
.panel__subhead { margin: 0 0 8px; color: var(--appbar-back); font-size: 16px; font-weight: 700; }
.bullets { margin: 0 0 20px; padding: 0; list-style: none; }
.bullets li { position: relative; margin-bottom: 6px; padding-left: 20px; color: var(--text-dark); font-size: 15px; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--appbar-back); }
.tip { padding: 16px; background: #D3E9EC; border-radius: 10px; }
.tip p { margin: 0; color: var(--appbar-back); font-size: 15px; font-style: italic; }

/* ---------- Seeker columns: web vs. mobile app (/guide/book) ---------- */
.seeker-cols { display: flex; gap: 30px; align-items: flex-start; text-align: left; }
.seeker-col { flex: 1; padding: 28px; background: #fff; border-radius: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.seeker-col__title { margin: 0 0 16px; color: var(--appbar-back); font-size: 22px; font-weight: 800; }
.numbered { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.numbered li { position: relative; margin-bottom: 10px; padding-left: 36px; color: var(--text-dark); font-size: 14px; line-height: 1.5; }
.numbered li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--appbar-back); color: #fff; font-size: 13px; font-weight: 700; }

/* ---------- View activity (/view-activity/:id) ---------- */
.va { max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px; }
.va__title { margin: 0 0 8px; color: var(--appbar-back); font-size: 32px; font-weight: 800; line-height: 1.15; }
.va__lead { margin: 0 0 28px; color: rgba(0, 0, 0, 0.54); font-size: 17px; }

/* Gallery: first image large, rest in a grid beside it. */
.va-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 185px; gap: 10px; margin-bottom: 40px; border-radius: 16px; overflow: hidden; }
.va-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.va-gallery__img--main { grid-column: 1; grid-row: 1 / span 2; }
.va-gallery--1 { grid-template-columns: 1fr; grid-auto-rows: 500px; }
.va-gallery--1 .va-gallery__img--main { grid-row: auto; }
.va-gallery--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 390px; }
.va-gallery--2 .va-gallery__img--main { grid-row: auto; }

/* Body: full-width image block on top, then a two-column row — details on the
   left, booking aside (sticky) on the right. Stacks on mobile (see @media). */
.va__cols { display: flex; align-items: flex-start; gap: 44px; }
.va__details { flex: 1 1 auto; min-width: 0; }
.va__aside { flex: 0 0 372px; position: sticky; top: 20px; }

.va-section { padding: 24px 0; border-top: 1px solid #E6EAEB; }
.va-section:first-child { border-top: none; padding-top: 0; }
.va-section__title { margin: 0 0 14px; color: var(--appbar-back); font-size: 22px; font-weight: 800; }
.va-prose { margin: 0; color: var(--text-dark); font-size: 16px; line-height: 1.6; white-space: pre-line; }
.va-text { margin: 0 0 6px; color: var(--text-dark); font-size: 16px; line-height: 1.5; }
.va-muted { margin: 0; color: rgba(0, 0, 0, 0.54); font-size: 15px; }
.va-route { margin: 0; padding: 0; list-style: none; }
.va-route li { position: relative; margin-bottom: 8px; padding-left: 22px; font-size: 15px; color: var(--text-dark); }
.va-route li::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--marine-400); }

/* Captain */
.va-captain__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.va-captain__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.va-captain__avatar--empty { background: var(--marine-100); }
.va-captain__meta { min-width: 0; }
.va-captain__name { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: var(--text-dark); }
.va-rating { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.va-stars { color: var(--brand-red); letter-spacing: 1px; font-size: 15px; }
.va-rating__count { color: rgba(0, 0, 0, 0.54); font-size: 14px; }
.va-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.va-badge { padding: 5px 12px; border-radius: 16px; background: var(--marine-100); color: var(--marine-700); font-size: 13px; font-weight: 600; }

/* Reviews */
.va-reviews { margin: 0; padding: 0; list-style: none; }
.va-reviews__count { color: rgba(0, 0, 0, 0.45); font-weight: 600; font-size: 17px; }
.va-review { padding: 16px 0; border-bottom: 1px solid #EEF1F2; }
.va-review:last-child { border-bottom: none; }
.va-review__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.va-review__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.va-review__avatar--empty { background: var(--marine-100); }
.va-review__avatar--qr { display: flex; align-items: center; justify-content: center; background: #EAF4EC; color: #2E7D32; }
.va-review__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.va-review__author { font-weight: 700; font-size: 15px; color: var(--text-dark); }
.va-review__guest { font-size: 12px; font-style: italic; color: #2E7D32; }
.va-review__date { margin-left: auto; color: rgba(0, 0, 0, 0.45); font-size: 13px; white-space: nowrap; }
.va-review__body { margin: 6px 0 0; color: var(--text-dark); font-size: 15px; line-height: 1.5; }
.va-reviews__more {
  margin-top: 18px;
  padding: 11px 26px;
  border: 1px solid var(--marine-400);
  border-radius: 24px;
  background: #fff;
  color: var(--appbar-back);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.va-reviews__more:hover:not([disabled]) { background: var(--marine-50, #EAF2F4); }
.va-reviews__more[disabled] { opacity: 0.5; cursor: default; }

/* Booking card — fills the right-hand aside column. */
.va-booking { display: block; width: 100%; margin: 0; padding: 24px; background: #fff; border: 1px solid #E6EAEB; border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10); }
.va-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.va-price__amount { font-size: 30px; font-weight: 800; color: var(--text-dark); }
.va-price__mode { color: rgba(0, 0, 0, 0.54); font-size: 15px; }
/* Itinerary box in the booking card (moved from the details column to mirror
 * the Flutter pricing card). Bordered like .va-dates; one row per stop. */
.va-route-box { margin: 0 0 16px; padding: 10px 14px; list-style: none; border: 1px solid #E6EAEB; border-radius: 12px; }
.va-route-box__item { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; font-weight: 500; color: var(--text-dark); }
.va-route-box__icon { flex: 0 0 auto; color: var(--marine-700); }
.va-route-box__dash { color: var(--marine-400); }
.va-route-box__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-dates { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid #E6EAEB; border-radius: 10px; font-size: 14px; color: var(--text-dark); }
.va-date__sep { color: var(--marine-400); }
.va-travelers { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 15px; color: var(--text-dark); }
.va-travelers__count { font-weight: 700; }
.va-cta { display: block; width: 100%; padding: 15px; border-radius: 28px; background: var(--brand-red); color: #fff; text-align: center; font-size: 17px; font-weight: 700; }
/* Already-booked state (pre-check): a greyed, non-interactive status pill that
 * replaces the Book CTA when the user already has a request for this activity. */
.va-cta--done { background: var(--marine-50, #EAF2F4); color: var(--text-dark); cursor: default; border: 1px solid var(--marine-400); }
/* Contact-captain (abstract activity) → blue instead of the red booking CTA. */
.va-cta--contact { background: #00838F; }
.va-cta--contact:hover { background: #026e78; }
.va-note { margin: 14px 0 0; color: rgba(0, 0, 0, 0.54); font-size: 13px; text-align: center; line-height: 1.4; }

/* Guest counter (BookingBox island). Pre-rendered on the server, interactive
 * after hydration; buttons are disabled at the 1 / maxParticipants bounds. */
.va-counter { display: flex; align-items: center; gap: 12px; }
.va-counter__btn { width: 32px; height: 32px; border: 1px solid var(--marine-400); border-radius: 50%; background: #fff; color: var(--text-dark); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.va-counter__btn:hover:not([disabled]) { background: var(--marine-50, #EAF2F4); }
.va-counter__btn[disabled] { opacity: 0.4; cursor: default; }
.va-counter__value { min-width: 20px; text-align: center; font-weight: 700; font-size: 16px; }

/* Gallery lightbox (GalleryLightbox island). Thumbnails signal clickability
 * after hydration; the overlay is a dependency-free full-screen viewer. */
.va-gallery__img--zoom { cursor: zoom-in; }
.va-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.va-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); cursor: zoom-out; }
.va-lightbox__img { position: relative; max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5); }
.va-lightbox__close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.va-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; z-index: 2; }
.va-lightbox__nav--prev { left: 20px; }
.va-lightbox__nav--next { right: 20px; }
.va-lightbox__close:hover, .va-lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }

/* In-place booking modal (BookingBox island). Opens for logged-in users; the
 * whole booking request is created from Jaspr (booking_api.dart). */
.va-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.va-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.va-modal__card { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28); }
.va-modal__title { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--text-dark); }
.va-modal__recap { padding: 12px; background: var(--marine-50, #EAF2F4); border-radius: 8px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.va-modal__row { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--text-dark); padding: 6px 0; }
.va-modal__row--total { border-top: 1px solid #E6EAEB; margin-top: 6px; padding-top: 12px; font-weight: 800; }
.va-modal__count, .va-modal__total { font-weight: 700; }
.va-modal__label { display: block; margin: 16px 0 6px; font-size: 14px; color: rgba(0, 0, 0, 0.6); }
.va-modal__textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #CBD5D8; border-radius: 8px; font: inherit; resize: vertical; }
.va-modal__error { margin-top: 12px; padding: 10px 12px; background: #FDECEC; border: 1px solid #F5C2C2; border-radius: 8px; color: #9B1C1C; font-size: 14px; }
.va-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.va-modal__btn { padding: 11px 22px; border: 1px solid #CBD5D8; border-radius: 24px; background: #fff; color: var(--text-dark); font-size: 15px; font-weight: 700; cursor: pointer; }
.va-modal__btn:hover:not([disabled]) { background: #F2F5F6; }
.va-modal__btn--primary { border-color: var(--brand-red); background: var(--brand-red); color: #fff; }
.va-modal__btn--primary:hover:not([disabled]) { filter: brightness(0.95); background: var(--brand-red); }
.va-modal__btn[disabled] { opacity: 0.55; cursor: default; }
.va-modal__success { text-align: center; padding: 8px 0; }
.va-modal__success .va-modal__title { margin-bottom: 8px; }
.va-modal__body { margin: 0 0 20px; color: rgba(0, 0, 0, 0.6); font-size: 15px; line-height: 1.5; }

/* Live route map (RouteMap island). The container needs an explicit height or
 * the Google Maps SDK renders into a 0px box. Before hydration it's an empty
 * rounded panel; the SDK injects its own DOM after load. */
.va-map { width: 100%; height: 420px; margin-top: 12px; border-radius: 16px; overflow: hidden; background: #eef2f4; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }

/* Not-found shell */
.va-empty { max-width: 640px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.va-empty__title { margin: 0 0 28px; color: var(--appbar-back); font-size: 22px; font-weight: 700; }

/* ================= HOME (/, /home) — Phase 3 ================= */
/* Hero + search island */
.home-hero {
  /* No bottom padding — the search bar (last child) sits flush at the very
     bottom edge of the hero image, no image strip below it. */
  padding: var(--hero-pad-y) var(--hero-pad-x) 0;
  background: var(--appbar-back);
  color: var(--text-on-dark);
  text-align: left;
}
.home-hero__inner { max-width: 1200px; margin: 0 auto; }
.home-hero__title { margin: 0; max-width: 820px; font-size: var(--hero-title); font-weight: 900; line-height: 1.15; white-space: pre-line; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4); }
.home-hero__subtitle { margin: 18px 0 0; max-width: 640px; font-size: var(--hero-subtitle); font-weight: 400; color: var(--text-on-dark); white-space: pre-line; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }

.home-search {
  display: flex;
  align-items: center;
  gap: 0;
  /* Centered horizontally; sits flush at the very bottom of the hero (the hero
     has no bottom padding), so no image shows below it. */
  margin: 40px auto 0;
  max-width: 860px;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.home-search__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 48px;
  padding: 4px 22px;
  border-right: 1px solid #e3e8ea;
}
.home-search__field--location { flex: 1.7; }
.home-search__field--guests { flex: 1; border-right: none; }
.home-search__caption { font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 1px; }
.home-search__input {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
}
.home-search__input::placeholder { color: rgba(0, 0, 0, 0.42); }
.home-search__input:focus { outline: none; }
.home-search__field--date .home-search__input { font-size: 14px; color: rgba(0, 0, 0, 0.6); }
.home-search__submit {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  margin-left: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.home-search__submit:hover { filter: brightness(1.05); }

/* Shared section chrome */
.home-section__title { margin: 0 0 32px; text-align: center; color: var(--appbar-back); font-size: var(--section-title); font-weight: 800; }
.home-accent { color: var(--brand-red); }
.home-feed-section, .home-services, .home-team { padding: var(--section-pad-y) var(--section-pad-x); background: #ffffff; }
.home-roles, .home-features, .home-benefits { padding: var(--section-pad-y) var(--section-pad-x); background: var(--default-back); }
.home-intro { padding: var(--section-pad-y) var(--section-pad-x); background: #ffffff; text-align: center; }

/* Activity feed island */
.home-feed { max-width: 1200px; margin: 0 auto; }
/* Horizontal-scroll viewport with a subtle fade at both edges (mirrors the
   Flutter FadingEdgeScrollView). Vertical padding leaves room for card hover
   shadow + the scrollbar without clipping. */
.home-feed__scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  /* Left gap so the first column has breathing room AND sits past the left fade
     zone: at rest the fade falls over this empty gap (invisible), so the first
     card is fully clear — the left fade only bites once cards scroll under it. */
  padding: 8px 0 16px 24px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 36px), transparent 100%);
}
/* 2 rows, filled column-major (crossAxisCount: 2 in the Flutter grid), each
   card column a fixed width so the row scrolls horizontally. */
.home-feed__grid {
  flex: 0 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 340px;
  gap: 20px;
}
.home-feed__end { flex: 0 0 auto; align-self: center; display: flex; align-items: center; padding: 0 24px; }
.home-feed--empty { text-align: center; padding: 20px 0 8px; }
.home-feed__empty-title { margin: 0 0 8px; color: var(--appbar-back); font-size: 20px; font-weight: 700; }
.home-feed__empty-body { margin: 0; color: rgba(0, 0, 0, 0.54); font-size: 15px; }
.home-feed__more { margin-top: 32px; text-align: center; }
.home-feed__more-btn {
  padding: 14px 40px;
  border: 1px solid var(--marine-400);
  border-radius: 28px;
  background: #fff;
  color: var(--appbar-back);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.home-feed__more-btn[disabled] { opacity: 0.55; cursor: default; }

.feed-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feed-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16); }
.feed-card__media { height: 200px; background: #eef2f4; overflow: hidden; }
.feed-card__media--empty { width: 100%; height: 100%; background: linear-gradient(135deg, var(--marine-100), var(--marine-300)); }
/* Activity thumbnails come from the composed 1200×630 "SM cover" (a framed
 * photo on the left, a details panel on the right) — the public API exposes no
 * raw photo. A square crop anchored left shows the photo; a slight scale-up
 * crops the photo's frame and keeps the baked-in text panel out of frame. */
.feed-card__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.feed-card__info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.feed-card__title { margin: 0; color: var(--text-dark); font-size: 18px; font-weight: 700; line-height: 1.25; }

/* Captain row — avatar + name/caption left, star rating right. */
.feed-card__crew { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-card__captain { display: flex; align-items: center; gap: 10px; min-width: 0; }
.feed-card__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.feed-card__avatar--empty {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--marine-200); color: var(--appbar-back); font-weight: 700; font-size: 15px;
}
.feed-card__captain-text { display: flex; flex-direction: column; min-width: 0; }
.feed-card__captain-name { color: var(--text-dark); font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-card__captain-caption { color: rgba(0, 0, 0, 0.5); font-size: 12px; }
.feed-card__rating { display: inline-flex; align-items: baseline; gap: 3px; flex: 0 0 auto; }
.feed-card__star { color: var(--brand-red); font-size: 15px; line-height: 1; }
.feed-card__rate { color: var(--text-dark); font-size: 14px; font-weight: 700; }
.feed-card__reviews { color: rgba(0, 0, 0, 0.45); font-size: 11px; }

/* Foot — location + dates left, price right. */
.feed-card__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.feed-card__where { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feed-card__place, .feed-card__when { display: inline-flex; align-items: center; gap: 6px; color: rgba(0, 0, 0, 0.6); font-size: 13px; }
.feed-card__place svg, .feed-card__when svg { color: var(--appbar-back); flex: 0 0 auto; }
.feed-card__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.feed-card__amount { color: var(--text-dark); font-size: 16px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.feed-card__mode { color: rgba(0, 0, 0, 0.5); font-size: 12px; }

/* Role prompts */
.home-roles__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1000px; margin: 0 auto; }
.home-role { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; background: #fff; border-radius: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); }
.home-role__title { margin: 0 0 10px; color: var(--appbar-back); font-size: 20px; font-weight: 800; }
.home-role__body { margin: 0 0 22px; color: rgba(0, 0, 0, 0.54); font-size: 15px; line-height: 1.45; }
.home-role__cta { display: inline-block; margin-top: auto; padding: 11px 22px; border-radius: 26px; background: var(--appbar-back); color: #fff; font-size: 14px; font-weight: 700; }

/* Introduction */
.home-intro__brand { margin: 0; color: var(--brand-red); font-size: 40px; font-weight: 800; }
.home-intro__lead { margin: 16px auto 0; max-width: 760px; color: var(--appbar-back); font-size: 20px; font-weight: 700; line-height: 1.35; }
.home-intro__text { margin: 18px auto 0; max-width: 760px; color: var(--text-dark); font-size: 16px; line-height: 1.55; }
.home-intro__badges { display: flex; gap: 16px; justify-content: center; margin-top: 26px; }
.home-badge { padding: 12px 26px; border-radius: 12px; background: var(--appbar-back); color: #fff; font-size: 15px; font-weight: 700; }

/* Feature cards */
.home-features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.home-feature { padding: 28px; background: #fff; border-radius: 16px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); }
.home-feature__title { margin: 0 0 10px; color: var(--appbar-back); font-size: 18px; font-weight: 700; }
.home-feature__body { margin: 0; color: rgba(0, 0, 0, 0.6); font-size: 15px; line-height: 1.5; }

/* Services */
.home-services__lead { margin: -14px auto 32px; max-width: 760px; text-align: center; color: rgba(0, 0, 0, 0.54); font-size: 16px; }
.home-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.home-service { padding: 26px; background: var(--default-back); border-radius: 14px; text-align: center; }
.home-service h3 { margin: 0; color: var(--appbar-back); font-size: 17px; font-weight: 700; }

/* Benefits */
.home-benefits__list { max-width: 760px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 14px; }
.home-benefits__list li { position: relative; padding: 18px 20px 18px 52px; background: #fff; border-radius: 12px; color: var(--text-dark); font-size: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.home-benefits__list li::before { content: '★'; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--brand-red); font-size: 18px; }

/* Team */
.home-team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
.home-member { padding: 28px; background: var(--default-back); border-radius: 16px; }
.home-member__name { margin: 0; color: var(--appbar-back); font-size: 19px; font-weight: 800; }
.home-member__role { margin: 4px 0 14px; color: var(--brand-red); font-size: 14px; font-weight: 600; }
.home-member__list { margin: 0; padding-left: 20px; color: rgba(0, 0, 0, 0.6); font-size: 14px; line-height: 1.5; }
.home-member__list li { margin-bottom: 6px; }

/* Bottom CTA */
.home-cta { padding: var(--section-pad-y) var(--hero-pad-x); background: var(--appbar-back); text-align: center; }
.home-cta__title { margin: 0 0 28px; color: var(--text-on-dark); font-size: var(--cta-title); font-weight: 800; }

/* ================= MOBILE (≤ 800px) ================= */
/* This block is the entire desktop→mobile transformation. Mirrors the sizing
 * choices baked into the Flutter `_mobile` layouts / GuideStaticPageLayout. */
@media (max-width: 800px) {
  :root {
    --hero-title: 28px;
    --hero-subtitle: 16px;
    --section-title: 22px;
    --section-heading: 16px;
    --section-body: 14px;
    --cta-title: 24px;
    --cta-button: 17px;
    --header-height: 60px;
    --section-pad-y: 32px;
    --section-pad-x: 20px;
    --hero-pad-y: 50px;
    --hero-pad-x: 24px;
  }
  .site-header { padding: 0 20px; }
  .site-header__link { padding: 8px 10px; font-size: 14px; }
  .site-footer { padding: 40px 24px; }
  .site-footer__cols { flex-direction: column; gap: 32px; }
  .cta { padding: 48px 24px; }

  /* Bespoke guide pages: multi-column → single column, tighter panels. */
  .role-cards { flex-direction: column; }
  .topic-grid { grid-template-columns: 1fr; }
  .info-cards { flex-direction: column; }
  .seeker-cols { flex-direction: column; }
  .section__subtitle { margin: -12px auto 24px; }
  .panel__title { font-size: 22px; }

  /* View activity: gallery collapses, booking card + details go full-width. */
  .va { padding: 24px 16px 48px; }
  .va__title { font-size: 24px; }
  .va__lead { font-size: 15px; margin-bottom: 20px; }
  /* Stack the two columns; put the booking card right under the image. */
  .va__cols { flex-direction: column; }
  .va__aside { position: static; order: -1; margin-bottom: 24px; }
  .va__details { max-width: 100%; }
  .va-booking { max-width: 100%; }
  .va-capsum { flex-wrap: wrap; }
  .va-contact-btn { align-self: flex-start; }
  .va-gallery, .va-gallery--1, .va-gallery--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .va-gallery__img--main { grid-column: 1 / span 2; grid-row: auto; }
  .va-lightbox__img { max-width: 96vw; max-height: 80vh; }
  .va-lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
  .va-lightbox__nav--prev { left: 8px; }
  .va-lightbox__nav--next { right: 8px; }
  .va-modal__card { padding: 20px; border-radius: 14px; }
  .va-map { height: 300px; border-radius: 14px; }

  /* Home + view-activity search: stack the fields full-width. The base rule uses
     `align-items:center` (right for a horizontal bar) which, once the flex turns
     vertical, shrink-wrapped every field to its content and left stray vertical
     divider lines hanging off the right — so reset to `stretch` and swap the
     inter-field `border-right` dividers for full-width `border-bottom` ones. */
  .home-search { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 8px; border-radius: 14px; }
  .home-search__field,
  .home-search__field--location,
  .home-search__field--guests {
    flex: 1 1 auto;
    align-items: stretch;
    padding: 12px 14px;
    border-right: none;
    border-bottom: 1px solid #e9edee;
  }
  .home-search__field--guests { border-bottom: none; }
  .home-search__input, .home-search__caption { text-align: left; }
  /* Full-width red submit bar instead of a small floating circle. */
  .home-search__submit {
    width: 100%;
    height: auto;
    margin: 8px 0 0;
    padding: 14px;
    border-radius: 12px;
  }
  /* Keep the 2-row horizontal scroll on mobile (Flutter uses the same), just
     narrower card columns so a card + a peek of the next fits the viewport. */
  .home-feed__grid { grid-auto-columns: min(78vw, 300px); gap: 14px; }
  .feed-card__title { font-size: 15px; }
  .home-roles__grid { grid-template-columns: 1fr; gap: 18px; }
  .home-role { padding: 24px; }
  .home-services__grid { grid-template-columns: 1fr; }
  .home-team__grid { grid-template-columns: 1fr; gap: 18px; }
  .home-intro__brand { font-size: 30px; }
  .home-intro__lead { font-size: 17px; }
  .home-badge { padding: 11px 20px; font-size: 14px; }
}

/* =====================================================================
 * Header / footer chrome parity — brings the Jaspr chrome in line with the
 * Flutter app (per-page headers + branded footer). Appended so these rules
 * win over the base .site-header/.site-footer declarations above.
 * ===================================================================== */

/* --- Compact guide header: brand logo image (was a text wordmark) --- */
.site-header__logo-img { height: 40px; width: auto; display: block; }

/* --- Full marketing header (home + view-activity) ------------------- */
/* Transparent overlay over the hero; colour logo in a white card; dark-navy
 * section nav; a "My Profile" item and a white "Sign Up" pill. */
.site-header--full {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
  box-shadow: none;
  padding: 0 50px;
}
/* Brand = white card behind the icon + wordmark on the transparent header. */
.site-header__brand { display: inline-flex; align-items: center; gap: 12px; }
.site-header__logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
/* Transparent Flutter logo PNG (icon + wordmark) placed directly on the header. */
.site-header__logo-full { height: 54px; width: auto; display: block; }
/* White text wordmark on the transparent dark-hero header. A soft shadow keeps
   it legible where the hero photo is bright. */
.site-header__logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #ffffff;
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.site-header__logo-word-accent { color: #ffffff; }
/* Combined colour logo (view-activity, light page) inside the white card. */
.site-header__logo-combined { height: 42px; width: auto; display: block; }
.site-header__nav--full { gap: 22px; }
.site-header--full .site-header__link {
  color: var(--appbar-button);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 2px;
}
.site-header--full .site-header__link:hover { color: var(--brand-red); }
.site-header__profile { display: inline-flex; align-items: center; gap: 6px; }
.site-header__profile-icon { display: block; }
/* Mobile menu toggle + burger — hidden on desktop (nav shows inline). The
 * checkbox is only ever state; its label flips it (works even while display:none). */
.site-header__nav-toggle { display: none; }
.site-header__burger { display: none; align-items: center; justify-content: center; color: var(--appbar-button); background: none; border: 0; padding: 6px; cursor: pointer; }
.auth-signup {
  padding: 10px 26px;
  border-radius: 24px;
  background: #fff;
  color: var(--appbar-button);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  margin-left: 6px;
}
.auth-signup:hover { background: #f4f4f4; }
/* Signed-in placeholder for the Sign Up island — occupies no space. */
.auth-signup-hidden { display: none; }
/* The home hero sits BEHIND the absolute header — pad its top to clear it. */
.home-hero { padding-top: calc(var(--hero-pad-y) + var(--header-height)); }

/* --- Footer: real social glyphs + black store badges + email row ---- */
.site-footer__social a { color: #fff; }
.site-footer__social a svg { width: 20px; height: 20px; display: block; }
.site-footer__badge { height: 46px; width: auto; display: block; }
.site-footer__needhand { white-space: pre-line; margin-bottom: 12px; }
.site-footer__email { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__email svg { flex: 0 0 auto; }
.lang-picker__current { display: inline-flex; align-items: center; gap: 8px; }
.lang-picker__current svg { display: block; }

/* Full marketing header on mobile: the section nav can't fit inline, so it
 * collapses behind a burger and drops down as a panel when toggled. */
@media (max-width: 800px) {
  .site-header--full { padding: 0 20px; }
  .site-header__logo-full { height: 42px; }
  /* Show the burger; it sits at the far right after the spacer. */
  .site-header__burger { display: inline-flex; }
  /* Nav becomes a dropdown panel anchored to the header, hidden until toggled. */
  .site-header--full .site-header__nav--full {
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 10px;
    display: none;
  }
  .site-header__nav-toggle:checked ~ .site-header__nav--full { display: flex; }
  /* Menu items: dark text on the white panel, comfortable tap targets. */
  .site-header--full .site-header__nav--full .site-header__link,
  .site-header--full .site-header__nav--full .site-header__profile {
    display: flex;
    align-items: center;
    color: var(--appbar-back);
    font-size: 16px;
    padding: 12px 12px;
    border-radius: 10px;
  }
  .site-header--full .site-header__nav--full .site-header__link:active,
  .site-header--full .site-header__nav--full .site-header__profile:active { background: var(--marine-100); }
  /* Avatar/name (or Log in) row in the dropdown gets the same tap padding. */
  .site-header--full .site-header__nav--full .site-header__auth {
    margin: 0;
    padding: 8px 12px;
  }
  /* Sign Up becomes a full-width filled button at the bottom of the panel. */
  .site-header--full .site-header__nav--full .auth-signup {
    margin: 6px 0 0;
    text-align: center;
    background: var(--appbar-back);
    color: #fff;
    box-shadow: none;
  }
}

/* =====================================================================
 * Guide page bodies — icon badges + FAQ chevron (Flutter match).
 * ===================================================================== */

/* Role cards (/guide "Browse by role"): a filled marine rounded-square badge
 * with a white glyph above the title. */
.role-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--appbar-back);
  color: #fff;
}

/* Quick-help topic tiles: a plain marine line icon leading the text (no badge). */
.topic-tile__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: var(--appbar-back);
}

/* FAQ accordion marker: a chevron (down → up on open), replacing the +/– glyph
 * — matches the Flutter guide FAQ. Overrides the base `.faq__q::after` above. */
.faq__q::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 0;
  border-right: 2px solid var(--appbar-back);
  border-bottom: 2px solid var(--appbar-back);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 6px;
}
.faq__item[open] .faq__q::after {
  content: '';
  transform: rotate(-135deg);
}

/* =====================================================================
 * Home hero — full-bleed photo background + Registration CTA + store
 * badges, mirroring the Flutter marketing hero.
 * ===================================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  /* No flat dim over the whole photo (that read as "blurred"). Instead a
     left→right gradient darkens only the left, where the text sits, and clears
     to fully transparent over the boat on the right so the image stays crisp. */
  background-image:
    linear-gradient(90deg, rgba(8, 40, 50, 0.62) 0%, rgba(8, 40, 50, 0.28) 42%, rgba(8, 40, 50, 0) 68%),
    url('/images/theme.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home-hero__inner { position: relative; z-index: 2; }
/* One row: the (wider) Registration CTA sits a little in from the left, the
   store badges are pushed to the far right. */
.home-hero__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-top: 30px;
}
.home-hero__cta {
  display: inline-block;
  /* On the same row as the badges, nudged a little in from the left. */
  margin: 0 0 0 104px;
  padding: 18px 118px;
  border-radius: 30px;
  background: var(--brand-red);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.home-hero__cta:hover { filter: brightness(1.05); }
.home-hero__badges {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin: 0;
}
.home-hero__badge { height: 48px; width: auto; display: block; }
@media (max-width: 800px) {
  .home-hero__actions { justify-content: flex-start; gap: 14px 18px; margin-top: 22px; }
  .home-hero__cta { margin: 6px 0 0; padding: 15px 56px; font-size: 16px; }
  .home-hero__badge { height: 42px; }
}

/* =====================================================================
 * Home lower sections — role-prompt icon badges, two-column intro with
 * photo + real store badges, team member photos (Flutter match).
 * ===================================================================== */
.home-role__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--appbar-back);
  color: #fff;
}

.home-intro { text-align: left; }
.home-intro__grid {
  display: flex;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.home-intro__col { flex: 1; min-width: 0; }
.home-intro__media { flex: 1; min-width: 0; }
.home-intro__photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}
.home-intro__brand { text-align: left; margin: 0; }
.home-intro__lead { text-align: left; margin: 16px 0 0; max-width: none; }
.home-intro__text { text-align: left; margin: 18px 0 0; max-width: none; }
.home-intro__badges { justify-content: flex-start; }
.home-intro__badge { height: 48px; width: auto; display: block; }

.home-member__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.home-member__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.home-member__meta { min-width: 0; }
.home-member__meta .home-member__name { margin: 0; }
.home-member__meta .home-member__role { margin: 2px 0 0; }

@media (max-width: 800px) {
  .home-intro__grid { flex-direction: column; gap: 24px; }
  .home-intro, .home-intro__brand, .home-intro__lead, .home-intro__text { text-align: center; }
  .home-intro__lead, .home-intro__text { margin-left: auto; margin-right: auto; }
  .home-intro__badges { justify-content: center; }
}

/* =====================================================================
 * Home rebuild — services (image + bullet columns), how-it-works &
 * try-for-free photo banners, benefit image cards, the "Our App" phone
 * collage, and cut-out team portraits. Faithful to the Flutter home.
 * ===================================================================== */

/* Reference uses one light-grey ground (#EEF1F2) across all marketing
 * sections, with white only on the cards themselves. */
.home-feed-section, .home-services, .home-team, .home-roles,
.home-features, .home-benefits, .home-intro { background: var(--default-back); }

/* Shared carousel scaffolding (Services / Benefits / Our App / Team). On desktop
 * the track lays out as the section's grid (via --colsN) and the dots hide; on
 * mobile it becomes a swipeable auto-scroll carousel (see the @media block and
 * MobileCarousels island). */
.js-carousel { max-width: 1200px; margin: 0 auto; }
.carousel__slide { min-width: 0; }
.carousel__track--cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.carousel__track--cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.carousel__dots { display: none; }
.carousel__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #bcc6ca;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.carousel__dot.is-active { width: 24px; border-radius: 12px; background: var(--appbar-back); }
.home-benefits__carousel, .home-team__carousel { max-width: 1100px; }
.home-benefits__carousel { margin: 0 auto 40px; }

/* Services — 3 columns: header, rounded photo, bulleted list. */
.home-service { padding: 0; background: none; border-radius: 0; text-align: left; }
.home-service__title { margin: 0 0 18px; color: var(--text-dark); font-size: 22px; font-weight: 700; }
.home-service__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 20px;
}
.home-service__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.home-service__list li { color: var(--text-dark); font-size: 17px; line-height: 1.4; }

/* How-it-works photo banner — red pill centered over the underwater photo. */
.home-howitworks {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 40px 20px;
  background-image: url('/images/how_it_works_background_image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home-howitworks__btn,
.home-benefits__cta {
  display: inline-block;
  padding: 16px 44px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 30px;
  background: var(--brand-red);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.home-howitworks__btn:hover, .home-benefits__cta:hover { filter: brightness(1.05); }

/* How-it-works demo-video overlay (opened by the red pill). */
.hiw-video {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hiw-video__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.82); }
.hiw-video__player {
  position: relative;
  z-index: 1;
  max-width: min(1000px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}
.hiw-video__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.hiw-video__close:hover { background: rgba(255, 255, 255, 0.28); }

/* Benefits — "Early-bird captain perks": 3 image cards + Registration CTA. */
.home-benefit {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}
.home-benefit__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.home-benefit__text {
  margin: 0;
  padding: 22px 24px 26px;
  text-align: center;
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.45;
}
.home-benefits { text-align: center; }

/* Our App — two text blocks on top, a scattered phone-screenshot composition
 * (watermark words behind), two text blocks on the bottom (mirrors Flutter
 * _buildSmartTechnology). Mobile swaps to the .home-features__carousel below. */
.home-features { position: relative; overflow: hidden; }
.home-features__desktop { max-width: 1100px; margin: 0 auto; }
.home-features__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 80px;
  padding: 0 30px;
}
.home-features__stage { position: relative; height: 1040px; margin: 40px 0; }
.home-features__watermarks { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.home-features__wm {
  position: absolute;
  font-style: italic;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.05);
  font-size: 52px;
  white-space: nowrap;
}
.home-features__wm--0 { top: 10%; left: 12%; }
.home-features__wm--1 { top: 6%; right: 4%; }
.home-features__wm--2 { top: 46%; left: 44%; }
.home-features__wm--3 { top: 62%; left: 30%; }
.home-features__wm--4 { top: 40%; right: 6%; }
.home-features__phone {
  position: absolute;
  z-index: 1;
  height: 660px;
  width: auto;
  border-radius: 34px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.home-features__phone--1 { left: 60px; top: 170px; }
.home-features__phone--3 { left: 300px; top: 0; }
.home-features__phone--2 { left: 540px; top: 360px; }
.home-features__phone--4 { left: 780px; top: 210px; }
.home-feature { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.home-feature__title { margin: 0 0 12px; color: var(--appbar-button); font-size: 34px; font-weight: 800; line-height: 1.15; }
.home-feature__body { margin: 0; color: var(--text-dark); font-size: 18px; line-height: 1.5; }

/* Our App — mobile carousel panel (screenshot above heading + body). */
.home-features__carousel { display: none; }
.home-app-panel { text-align: center; padding: 0 8px; }
.home-app-panel__img {
  display: block;
  height: 380px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 20px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Try-for-free photo banner — translucent white pill over sailing photo. */
.home-tryfree {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 40px 20px;
  background-image: url('/images/try_for_free_background_image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home-tryfree__btn {
  display: inline-block;
  padding: 16px 46px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  backdrop-filter: blur(2px);
}
.home-tryfree__btn:hover { background: rgba(255, 255, 255, 0.28); }

/* Team — a uniformly framed portrait on top, then name / role / bullets. The
   two source cut-outs differ in size/crop, so they're placed in an identical
   fixed-height rounded frame (contain + bottom-anchored, soft card background)
   so both members match instead of floating at different scales. */
.home-member { padding: 0; background: none; border-radius: 0; text-align: left; }
.home-member__photo {
  display: block;
  width: 100%;
  height: 340px;
  margin: 0 0 22px;
  border-radius: 18px;
  object-fit: contain;
  object-position: bottom center;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.home-member__name { margin: 0; color: var(--text-dark); font-size: 26px; font-weight: 700; }
.home-member__role { margin: 6px 0 20px; color: var(--text-dark); font-size: 22px; font-weight: 700; }
.home-member__list { padding-left: 22px; color: var(--text-dark); font-size: 17px; line-height: 1.5; }
.home-member__list li { margin-bottom: 12px; }

@media (max-width: 800px) {
  /* Carousels: the track becomes a scroll-snap strip (one slide per view) and
   * the dots show. These generic `.carousel__track` rules sit after the
   * `--colsN` grid rules, so at equal specificity they win here. */
  .carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
    padding: 0 6px;
  }
  .carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }

  /* Our App swaps the desktop composition for the carousel. */
  .home-features__desktop { display: none; }
  .home-features__carousel { display: block; max-width: 100%; }
  .home-feature__title { font-size: 24px; }
  /* Larger phone screenshot on mobile — the reference shows it near full-height. */
  .home-app-panel__img { height: 460px; }
}

/* =====================================================================
 * view-activity — the full (marketing) header sits transparent+absolute
 * (for the home hero); here it overlays a light-grey page with the search
 * bar under it, a full-width image block, the booking card centered
 * underneath it, then the captain summary + details below.
 * ===================================================================== */
.page:has(.va) { background: var(--default-back); }
.va-search {
  padding: calc(var(--header-height) + 26px) 24px 4px;
  background: var(--default-back);
}
.va-search .home-search { margin-top: 0; }
.va { background: var(--default-back); padding-top: 20px; }

/* Compact captain block under the activity image. */
.va-capsum { display: flex; align-items: flex-start; gap: 14px; padding: 20px 0 4px; }
.va-capsum__avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.va-capsum__avatar--empty { background: var(--marine-100); }
.va-capsum__meta { min-width: 0; flex: 1 1 auto; }
/* "Contact captain" in the captain block — blue, matches the abstract CTA. */
.va-contact-btn { flex: 0 0 auto; align-self: center; display: inline-block; padding: 12px 22px; border-radius: 22px; background: #00838F; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.va-contact-btn:hover { background: #026e78; }
.va-capsum__name { margin: 0; font-size: 17px; font-weight: 700; color: var(--text-dark); }
.va-capsum__caption { margin: 2px 0 0; color: rgba(0, 0, 0, 0.55); font-size: 14px; }
.va-capsum__row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.va-capsum__reviews { color: rgba(0, 0, 0, 0.55); font-size: 14px; }
.va-capsum .va-badges { margin-top: 10px; }

/* The lead image + sections sit on the grey page; give the content column
 * cards a touch of breathing room without a white panel (matches reference). */
.va-gallery { margin-bottom: 20px; }

/* Booking aside — inline total + helper links (matches the Flutter aside). */
.va-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 0 16px;
  padding: 14px 16px;
  border: 1px solid #E6EAEB;
  border-radius: 12px;
}
.va-total__label { color: var(--text-dark); font-size: 15px; font-weight: 600; }
.va-total__amount { color: var(--text-dark); font-size: 17px; font-weight: 800; }
.va-booking__link {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--marine-700);
  font-size: 14px;
  font-weight: 600;
}
.va-booking__link:hover { color: var(--brand-red); }
.va-booking__link--strong { color: var(--appbar-back); }

@media (max-width: 800px) {
  .va-search { padding-top: calc(var(--header-height) + 16px); }
}
