/* fonts, self-hosted (latin subsets from Google Fonts, SIL Open Font License); no request to another server before first paint */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap; src: url(/assets/fonts/bricolage-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/figtree-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Syncopate only carries the letters of the wordmark */
@font-face { font-family: "Syncopate"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/syncopate-wordmark.woff2) format("woff2"); unicode-range: U+41-45, U+48-49, U+4e, U+54-55, U+59, U+61-65, U+68-69, U+6e, U+74-75, U+79; }

/* Dubai Yachten v2. Turquoise + champagne on deep water, one dark theme for the whole site.
   Shapes: buttons and chips are pills, photos and panels 20px, inputs 14px. */

:root {
  --abyss: #021a21;
  --deep: #052c37;
  --reef: #0a4250;
  --turq: #1fd6cf;
  --turq-hi: #6ff2e9;
  --turq-ink: #01282c;
  --champ: #ead3a2;
  --champ-dim: rgba(var(--champ-rgb), 0.28);
  --foam: #f0fbfa;
  --mist: #a6c8ca;
  --line: rgba(var(--fg), 0.12);
  /* rgb triplets for translucent layers, and inks on accent surfaces */
  --ov: 2, 26, 33;
  --fg: 240, 251, 250;
  --acc: 31, 214, 207;
  --acc-ink-rgb: 1, 40, 44;
  --deep-rgb: 5, 44, 55;
  --champ-rgb: 234, 211, 162;
  --champ-ink: #2a2109;
  --champ-hi: #f4e2bb;
  --band-btn-hi: #024048;
  --placeholder: #7ea3a6;
  --band: var(--turq);
  --band-ink: var(--turq-ink);
  --band-btn: var(--turq-ink);
  --band-btn-ink: var(--turq-hi);
  --r: 20px;
  --r-in: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; }
h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--mist); max-width: 58ch; }
.muted { color: var(--mist); }
.small { font-size: 14px; }
.champ { color: var(--champ); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--turq); color: var(--turq-ink); box-shadow: 0 10px 30px -12px rgba(var(--acc), 0.7); }
.btn-primary:hover { background: var(--turq-hi); }
.btn-ghost { background: rgba(var(--fg), 0.08); color: var(--foam); box-shadow: inset 0 0 0 1px rgba(var(--fg), 0.28); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(var(--fg), 0.16); }
.btn-champ { background: var(--champ); color: var(--champ-ink); }
.btn-champ:hover { background: var(--champ-hi); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn i { font-size: 1.25em; }
.link { color: var(--turq); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 72px;
  display: flex; align-items: center; transition: background 0.35s, box-shadow 0.35s, transform 0.35s var(--ease);
}
.site-head.solid { background: rgba(var(--ov), 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; }
/* wordmark: wide Syncopate caps next to the sail-D (fonts link loads only these letters) */
.brand { --mark-mast: var(--champ); --mark-sail: var(--turq); font-family: Syncopate, var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--champ); white-space: nowrap; display: flex; align-items: center; gap: 0.62em; line-height: 1; }
.brand .brand-mark { width: auto; height: 1.6em; flex: 0 0 auto; }
.brand-word { display: grid; gap: 0.5em; }
.brand-word b { font-weight: 700; margin-right: -0.16em; }
.brand-word small { font-family: var(--body); font-weight: 600; font-size: 0.6em; letter-spacing: 0.3em; text-transform: none; opacity: 0.7; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 550; font-size: 15.5px; color: var(--foam); opacity: 0.86; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--turq-hi); }
.head-cta { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(var(--fg), 0.08); border: 0; cursor: pointer; text-decoration: none; position: relative; }
.icon-btn i { font-size: 22px; }
.icon-btn:hover { background: rgba(var(--fg), 0.16); }
.badge { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; border-radius: 999px; background: var(--champ); color: var(--champ-ink); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.badge[hidden] { display: none; }
.menu-btn { display: none; }
@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 520px) {
  .site-head .wrap { gap: 10px; }
  .site-head .brand { font-size: 12.5px; letter-spacing: 0.13em; }
  .head-cta { gap: 8px; }
  .head-cta .btn { padding: 0 14px; }
  .head-wa, .head-save { display: none; }
}
@media (max-width: 400px) {
  .site-head .brand { font-size: 11px; letter-spacing: 0.1em; gap: 0.55em; }
}
@media (max-width: 350px) {
  .site-head .brand-word { display: none; }
  .site-head .brand .brand-mark { height: 26px; }
}
.mobile-nav {
  position: fixed; inset: 72px 0 auto 0; z-index: 39; background: rgba(var(--ov), 0.97); backdrop-filter: blur(14px);
  padding: 12px var(--gutter) 28px; display: grid; gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease); border-bottom: 1px solid var(--line);
}
.mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a { font-family: var(--display); font-size: 26px; font-weight: 650; text-decoration: none; padding: 8px 0; }

/* ---------- photo ---------- */
.pic { position: relative; overflow: hidden; border-radius: var(--r); background: var(--deep); }
.pic > img { width: 100%; height: 100%; object-fit: cover; }
/* Hot-linked Elite photos (3:2) carry a badge at the top and their phone strip at the bottom.
   .crop shows only the band between 12 % and 94 % of the height (same as tools/prepare_photos.py). */
.crop { position: relative; overflow: hidden; aspect-ratio: 1.5 / 0.82; background: var(--deep); }
.crop > img { position: absolute; left: 0; width: 100%; height: auto; top: -14.634%; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.kicker { font-weight: 650; color: var(--champ); font-size: 16px; }

/* ---------- hero (start) ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; transform: scale(1.06); animation: heroin 2.4s var(--ease) forwards; }
@keyframes heroin { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ov), 0.55) 0%, rgba(var(--ov), 0) 28%, rgba(var(--ov), 0.1) 52%, rgba(var(--ov), 0.92) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { max-width: 13ch; }
.hero .lead { margin: 22px 0 34px; color: rgba(var(--fg), 0.86); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; transform: none; } }
@media (max-width: 640px) { .hero-media img { object-position: 70% 50%; } }

/* ---------- occasions mosaic ---------- */
.occasions { display: grid; gap: 14px; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 300px 300px; }
.occ { position: relative; display: block; overflow: hidden; border-radius: var(--r); text-decoration: none; isolation: isolate; }
.occ img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); z-index: -2; }
.occ::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--ov), 0) 35%, rgba(var(--ov), 0.88)); }
.occ:hover img { transform: scale(1.05); }
.occ .occ-body { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.occ h3 { font-size: clamp(22px, 2vw, 30px); }
.occ p { color: rgba(var(--fg), 0.8); font-size: 15px; margin-top: 6px; max-width: 34ch; }
.occ .go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(var(--ov), 0.45); backdrop-filter: blur(8px); transition: background 0.25s; }
.occ:hover .go { background: var(--turq); color: var(--turq-ink); }
.occasions .occ:first-child { grid-row: span 2; }
.occasions .occ:first-child h3 { font-size: clamp(30px, 3vw, 44px); }
@media (max-width: 900px) {
  .occasions { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 240px 240px; }
  .occasions .occ:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .occasions { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .occasions .occ { height: 230px; }
  .occasions .occ:first-child { grid-column: auto; grid-row: auto; height: 340px; }
}

/* ---------- route planner (signature) ---------- */
.route-sec { background: radial-gradient(120% 80% at 80% 0%, rgba(var(--acc), 0.1), transparent 60%), var(--deep); overflow: hidden; }
.route-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.route-panel { display: grid; gap: 26px; align-content: start; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(var(--ov), 0.6); border-radius: 999px; padding: 5px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; padding: 11px 18px; border-radius: 999px; cursor: pointer; font-weight: 650; color: var(--mist); white-space: nowrap; transition: background 0.25s, color 0.25s; }
.seg button[aria-pressed="true"] { background: var(--turq); color: var(--turq-ink); }
.route-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { background: rgba(var(--ov), 0.55); border-radius: var(--r-in); padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.fact b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; font-weight: 700; color: var(--champ); }
.fact span { font-size: 14px; color: var(--mist); }
.fact input[type="date"] { background: none; border: 0; color: var(--foam); font: 600 15px var(--body); padding: 0; margin-top: 4px; color-scheme: dark; }
.stops { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.stop { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 8px; border-radius: 16px; transition: background 0.3s, opacity 0.4s; }
.stop img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.stop b { display: block; font-weight: 650; }
.stop small { color: var(--mist); font-size: 14px; }
.stop .t { font-variant-numeric: tabular-nums; color: var(--champ); font-weight: 650; font-size: 14px; }
.stop.off { opacity: 0.32; }
.stop.on { background: rgba(var(--acc), 0.08); }
.map-box { position: relative; aspect-ratio: 800 / 810; max-height: 760px; width: 100%; }
.map-box svg { width: 100%; height: 100%; overflow: visible; }
.map-coast { fill: none; stroke: var(--champ); stroke-opacity: 0.55; stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-leg { fill: none; stroke: var(--turq); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(var(--acc), 0.75)); vector-effect: non-scaling-stroke; }
.map-leg-bg { fill: none; stroke: rgba(var(--fg), 0.16); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-dot { fill: var(--abyss); stroke: var(--champ); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill 0.4s; }
.map-dot.on { fill: var(--turq); stroke: var(--turq-hi); }
.map-label { font: 650 15px var(--body); fill: var(--foam); paint-order: stroke; stroke: var(--deep); stroke-width: 5px; stroke-linejoin: round; }
.map-label.off { fill: var(--mist); opacity: 0.6; }
.map-boat { fill: var(--champ); }
.map-note { position: absolute; left: 0; bottom: 0; font-size: 12px; color: var(--mist); opacity: 0.8; }
.map-place { font: italic 600 13px var(--body); fill: var(--champ); fill-opacity: 0.55; letter-spacing: 0.08em; }
@media (max-width: 900px) {
  .route-grid { grid-template-columns: minmax(0, 1fr); }
  .map-box { order: -1; max-width: 560px; margin: 0 auto; }
}

/* ---------- yacht cards ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 400px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--reef) transparent; }
.rail > * { scroll-snap-align: start; }
.ycard { position: relative; display: grid; gap: 14px; text-decoration: none; align-content: start; }
.ycard .pic { aspect-ratio: 4 / 3; }
.ycard .pic img { transition: transform 0.9s var(--ease); }
.ycard:hover .pic img { transform: scale(1.045); }
.ycard h3 { font-size: 21px; }
.ycard .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--mist); font-size: 15px; }
.ycard .meta i { color: var(--champ); margin-right: 4px; vertical-align: -2px; }
.price-tag { position: absolute; left: 14px; bottom: 14px; background: rgba(var(--ov), 0.78); backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.price-tag small { font-weight: 500; color: var(--mist); }
.save-btn { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(var(--ov), 0.55); backdrop-filter: blur(8px); color: var(--foam); z-index: 2; transition: background 0.25s, transform 0.25s var(--ease); }
.save-btn i { font-size: 21px; }
.save-btn:hover { background: rgba(var(--ov), 0.8); }
.save-btn[aria-pressed="true"] { background: var(--champ); color: var(--champ-ink); }
.save-btn.pop { animation: pop 0.45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.22); } }

/* group tabs (start) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; background: rgba(var(--fg), 0.07); color: var(--foam); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s, color 0.2s; text-decoration: none; white-space: nowrap; }
.chip:hover { background: rgba(var(--fg), 0.13); }
.chip[aria-pressed="true"] { background: var(--foam); color: var(--abyss); box-shadow: none; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.review { margin: 0; border-radius: var(--r); padding: clamp(24px, 3vw, 36px); background: var(--deep); display: grid; gap: 22px; align-content: space-between; }
.review blockquote { margin: 0; font-family: var(--display); font-weight: 550; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.3; letter-spacing: -0.01em; }
.review figcaption { color: var(--mist); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.stars { color: var(--champ); letter-spacing: 2px; }
.review:nth-child(1) { grid-column: span 7; background: linear-gradient(135deg, var(--reef), var(--deep)); }
.review:nth-child(2) { grid-column: span 5; }
.review:nth-child(3) { grid-column: span 5; }
.review:nth-child(4) { grid-column: span 7; }
@media (max-width: 860px) { .review { grid-column: 1 / -1 !important; } }

/* ---------- steps over photo ---------- */
.how { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; }
.how > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.how::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--ov), 0.94) 0%, rgba(var(--ov), 0.78) 45%, rgba(var(--ov), 0.15) 100%); }
.how .wrap { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.how-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; max-width: 520px; counter-reset: step; }
.how-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.how-list li::before { counter-increment: step; content: counter(step); width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--turq-ink); background: var(--turq); }
.how-list b { display: block; font-size: 19px; margin-bottom: 2px; }
.how-list p { color: var(--mist); }
@media (max-width: 700px) { .how::before { background: linear-gradient(180deg, rgba(var(--ov), 0.6) 0%, rgba(var(--ov), 0.95) 45%); } .how { min-height: 0; padding-top: 220px; } }

/* ---------- final band ---------- */
.band { background: var(--band); color: var(--band-ink); border-radius: calc(var(--r) * 1.4); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.band h2 { max-width: 16ch; }
.band p { margin-top: 16px; font-size: 18px; max-width: 52ch; color: rgba(var(--acc-ink-rgb), 0.82); }
.band .btn-dark { background: var(--band-btn); color: var(--band-btn-ink); }
.band .btn-dark:hover { background: var(--band-btn-hi); }
.band .btn-line { background: transparent; color: var(--band-ink); box-shadow: inset 0 0 0 2px rgba(var(--acc-ink-rgb), 0.5); }
.band-actions { display: grid; gap: 10px; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { padding: 80px 0 44px; color: var(--mist); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-grid h4, .foot-grid .foot-h { margin: 0 0 12px; color: var(--foam); font-size: 15px; line-height: 1.4; letter-spacing: 0; font-family: var(--body); font-weight: 700; }
.foot-grid a { display: block; text-decoration: none; padding: 3px 0; }
.foot-grid a:hover { color: var(--foam); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; padding-top: 24px; font-size: 13.5px; }
.foot-legal a { text-decoration: none; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- plan drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(var(--ov), 0.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(480px, 100vw); background: var(--deep);
  transform: translateX(104%); transition: transform 0.45s var(--ease), visibility 0s 0.45s; visibility: hidden; display: grid; grid-template-rows: auto 1fr auto;
}
.drawer.open { transform: none; visibility: visible; transition: transform 0.45s var(--ease); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.6); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; }
.drawer-head h2 { font-size: 28px; }
.drawer-body { overflow-y: auto; padding: 4px 24px 24px; display: grid; gap: 22px; align-content: start; }
.drawer-foot { padding: 16px 24px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--deep); }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-size: 14px; font-weight: 650; color: var(--mist); }
.input, select.input {
  width: 100%; min-height: 50px; border-radius: var(--r-in); border: 1px solid rgba(var(--fg), 0.2); background: rgba(var(--ov), 0.7);
  color: var(--foam); font: 500 16px var(--body); padding: 0 14px; color-scheme: dark;
}
.input:focus { border-color: var(--turq); outline: none; box-shadow: 0 0 0 3px rgba(var(--acc), 0.25); }
.input::placeholder { color: var(--placeholder); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; min-height: 50px; border-radius: var(--r-in); border: 1px solid rgba(var(--fg), 0.2); background: rgba(var(--ov), 0.7); }
.stepper button { height: 48px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--turq); }
.stepper button:disabled { color: rgba(var(--fg), 0.25); cursor: default; }
.stepper output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 420px) { .dock .row2, .drawer .row2:first-child { grid-template-columns: 1fr; } .stepper { grid-template-columns: 44px 1fr 44px; } }
.plan-yachts { display: grid; gap: 10px; }
.plan-y { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; background: rgba(var(--ov), 0.55); border-radius: 16px; padding: 8px; }
.plan-y img { width: 76px; height: 56px; object-fit: cover; border-radius: 10px; }
.plan-y b { display: block; font-size: 15px; line-height: 1.25; }
.plan-y small { color: var(--champ); font-weight: 650; }
.plan-y button { border: 0; background: none; cursor: pointer; color: var(--mist); width: 40px; height: 40px; border-radius: 999px; }
.plan-y button:hover { background: rgba(var(--fg), 0.08); color: var(--foam); }
.empty { border: 1px dashed rgba(var(--fg), 0.22); border-radius: 16px; padding: 18px; color: var(--mist); font-size: 15px; }
.extra-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.extra-chips .chip { font-size: 14px; padding: 8px 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total b { font-family: var(--display); font-size: 26px; color: var(--champ); }
.fine { font-size: 13px; color: var(--mist); line-height: 1.45; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 140%); background: var(--foam); color: var(--abyss); border-radius: 999px; padding: 12px 18px 12px 20px; font-weight: 650; display: flex; gap: 12px; align-items: center; transition: transform 0.45s var(--ease); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast button { border: 0; background: var(--abyss); color: var(--foam); border-radius: 999px; padding: 8px 14px; font-weight: 650; cursor: pointer; white-space: nowrap; }

/* ---------- page heads (inner pages) ---------- */
.page-head { padding: 140px 0 40px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 78px); max-width: 16ch; }
.page-head .lead { margin-top: 18px; }
.photo-head { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.photo-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ov), 0.5), rgba(var(--ov), 0) 30%, rgba(var(--ov), 0.94)); }
.photo-head .wrap { position: relative; z-index: 1; padding-bottom: 56px; }
.photo-head h1 { font-size: clamp(42px, 6vw, 84px); max-width: 14ch; }
.photo-head .lead { margin-top: 16px; color: rgba(var(--fg), 0.85); }
.crumbs { font-size: 14px; color: var(--mist); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--foam); }

/* ---------- finder ---------- */
.finder-bar { position: sticky; top: 72px; z-index: 20; background: rgba(var(--ov), 0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.finder-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 14px; padding-bottom: 14px; }
.fb-group { display: flex; align-items: center; gap: 10px; }
.fb-group > span { font-size: 14px; color: var(--mist); font-weight: 600; }
.mini-step { display: inline-grid; grid-template-columns: 38px 46px 38px; align-items: center; background: rgba(var(--fg), 0.07); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.mini-step button { height: 40px; border: 0; background: none; color: var(--turq); font-size: 18px; cursor: pointer; }
.mini-step button:disabled { color: rgba(var(--fg), 0.25); }
.mini-step output { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.fb-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fb-sort { margin-left: auto; }
.fb-sort select { min-height: 42px; border-radius: 999px; padding: 0 14px; width: auto; }
.result-line { margin: 0 0 26px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.result-line h2 { font-size: clamp(26px, 3vw, 38px); }
.grid-y { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 36px 22px; }
.grid-y .ycard.big { grid-column: span 2; }
.grid-y .ycard.big .pic { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .grid-y .ycard.big { grid-column: auto; } .grid-y .ycard.big .pic { aspect-ratio: 4 / 3; } .fb-sort { margin-left: 0; } }
.no-match { padding: 40px; border-radius: var(--r); background: var(--deep); display: grid; gap: 14px; justify-items: start; }

/* ---------- yacht detail ---------- */
.y-hero { position: relative; height: min(88vh, 860px); min-height: 520px; overflow: hidden; background: var(--deep); }
.y-hero .slides { position: absolute; inset: 0; }
.y-hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.y-hero .slide.on { opacity: 1; }
.y-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ov), 0.55), rgba(var(--ov), 0) 26%, rgba(var(--ov), 0) 55%, rgba(var(--ov), 0.92)); pointer-events: none; }
.y-hero .wrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0 auto; padding-bottom: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.y-hero h1 { font-size: clamp(36px, 5vw, 72px); max-width: 15ch; }
.y-hero .crumbs { margin-bottom: 12px; }
.y-nav { display: flex; gap: 10px; align-items: center; }
.y-nav button { width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(var(--ov), 0.55); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 22px; }
.y-nav button:hover { background: var(--turq); color: var(--turq-ink); }
.y-nav .count { font-variant-numeric: tabular-nums; color: var(--mist); font-size: 15px; min-width: 52px; text-align: center; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: thin; scrollbar-color: var(--reef) transparent; }
.thumbs button { flex: 0 0 auto; width: 124px; border: 0; padding: 0; cursor: pointer; border-radius: 12px; overflow: hidden; opacity: 0.55; transition: opacity 0.25s; box-shadow: inset 0 0 0 2px transparent; position: relative; }
.thumbs button[aria-current="true"] { opacity: 1; }
.thumbs button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--turq); }
.thumbs button:hover { opacity: 1; }
.y-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: 40px; }
.big-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.big-facts div { background: var(--deep); border-radius: var(--r); padding: 22px 22px 18px; }
.big-facts b { display: block; font-family: var(--display); font-size: clamp(30px, 3.3vw, 46px); line-height: 1; color: var(--champ); font-weight: 700; }
.big-facts span { color: var(--mist); font-size: 15px; display: block; margin-top: 8px; }
.y-text { display: grid; gap: 16px; color: var(--mist); max-width: 66ch; margin-top: 40px; }
.y-text p:first-child { color: var(--foam); font-size: 19px; }
.more-btn { justify-self: start; background: none; border: 0; padding: 0; cursor: pointer; }
.dock { position: sticky; top: 96px; background: var(--deep); border-radius: calc(var(--r) * 1.2); padding: 24px; display: grid; gap: 18px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7), inset 0 0 0 1px var(--line); }
.dock .price-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dock .price-big b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--champ); font-weight: 700; }
.dock .price-big span { color: var(--mist); }
.dock-actions { display: grid; gap: 10px; }
.mobile-dock { display: none; }
@media (max-width: 1000px) {
  .y-layout { grid-template-columns: minmax(0, 1fr); }
  .dock { position: static; order: 2; }
  .y-layout > div:first-child { display: contents; }
  .y-layout .big-facts { order: 1; }
  .y-layout > div:first-child > :not(.big-facts) { order: 3; margin-top: 24px; }
  .y-layout { row-gap: 28px; }
  .mobile-dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; background: rgba(var(--deep-rgb), 0.94); backdrop-filter: blur(14px); border-radius: 999px; padding: 8px 8px 8px 20px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1px var(--line); transform: translateY(140%); transition: transform 0.4s var(--ease); }
  .mobile-dock.show { transform: none; }
  .mobile-dock b { font-family: var(--display); color: var(--champ); font-size: 20px; display: block; line-height: 1.1; }
  .mobile-dock small { color: var(--mist); font-size: 13px; }
}
@media (max-width: 640px) {
  .y-hero .wrap { grid-template-columns: 1fr; }
  .y-nav { justify-content: flex-start; }
  .big-facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .big-facts div { padding: 16px 12px 14px; }
  .big-facts span { font-size: 13px; }
  .big-facts b { font-size: 26px; }
}
@media (max-width: 520px) {
  .seg { display: grid; width: 100%; }
  .seg button { padding: 11px 4px; }
}
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.extra { position: relative; border-radius: var(--r); overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; isolation: isolate; text-align: left; border: 0; padding: 0; cursor: pointer; background: var(--deep); }
.extra img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.extra::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--ov), 0.05) 30%, rgba(var(--ov), 0.92)); }
.extra:hover img { transform: scale(1.05); }
.extra .ex-body { padding: 18px; display: grid; gap: 4px; width: 100%; }
.extra b { font-size: 18px; }
.extra small { color: rgba(var(--fg), 0.78); font-size: 14px; line-height: 1.4; }
.extra .tick { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: rgba(var(--ov), 0.55); }
.extra[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--turq); }
.extra[aria-pressed="true"] .tick { background: var(--turq); color: var(--turq-ink); }
.extra.plain { background: linear-gradient(150deg, var(--reef), var(--deep)); min-height: 150px; }
.extra.plain::after { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(var(--ov), 0.96); display: none; place-items: center; }
.lightbox.open { display: grid; }
.lightbox .crop { width: min(92vw, 1400px); border-radius: 12px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 18px; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--deep); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 650; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--turq); font-size: 24px; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--mist); max-width: 70ch; }

/* price examples */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ex { border-radius: var(--r); overflow: hidden; background: var(--deep); display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.ex .pic { border-radius: 0; aspect-ratio: 16 / 10; }
.ex-body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.ex-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.ex-sum b { font-family: var(--display); font-size: 30px; color: var(--champ); }
.ex:nth-child(2) { transform: translateY(36px); }
@media (max-width: 900px) { .examples { grid-template-columns: 1fr; } .ex:nth-child(2) { transform: none; } }
.calc-line { display: flex; justify-content: space-between; color: var(--mist); font-size: 15px; }

/* services overview */
.svc-group { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.svc-group .pic { aspect-ratio: 4 / 3; position: sticky; top: 100px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.svc { background: var(--deep); border-radius: 16px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.svc b { font-size: 17px; }
.svc p { color: var(--mist); font-size: 15px; line-height: 1.5; }
.svc .svc-actions { display: flex; gap: 14px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.svc .add { border: 0; background: rgba(var(--acc), 0.12); color: var(--turq-hi); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 650; font-size: 14px; }
.svc .add[aria-pressed="true"] { background: var(--turq); color: var(--turq-ink); }
@media (max-width: 860px) { .svc-group { grid-template-columns: 1fr; } .svc-group .pic { position: static; } }
@media (max-width: 520px) { .svc-list { grid-template-columns: 1fr; } }

/* reveal on scroll (only when motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
}

/* ======================================================================
   Theme "uae": the colours of the UAE flag. Black ground, white type, flag red for every action,
   flag green for prices and figures. The red hoist band of the flag returns as a vertical bar on the
   left edge of every photo hero; the four flag colours run as a thin strip under the header and over the footer.
   Switch with ?farbe=uae or ?farbe=tuerkis (remembered per browser).
   ====================================================================== */
:root[data-theme="uae"] {
  --abyss: #0c0c0d;
  --deep: #18191b;
  --reef: #26282b;
  --turq: #ea2532;
  --turq-hi: #ff4654;
  --turq-ink: #ffffff;
  --champ: #12b05e;
  --foam: #f8f8f6;
  --mist: #b6b9bb;
  --ov: 12, 12, 13;
  --fg: 248, 248, 246;
  --acc: 234, 37, 50;
  --acc-ink-rgb: 255, 255, 255;
  --deep-rgb: 24, 25, 27;
  --champ-rgb: 18, 176, 94;
  --champ-ink: #03170b;
  --champ-hi: #37c97c;
  --placeholder: #8b8f92;
  --band: #ea2532;
  --band-ink: #ffffff;
  --band-btn: #0c0c0d;
  --band-btn-ink: #ffffff;
  --band-btn-hi: #26282b;
  --flag: linear-gradient(90deg, #ea2532 0 33.34%, #12b05e 33.34% 66.67%, #f8f8f6 66.67% 100%);
  --hoist: clamp(10px, 1.3vw, 20px);
}
/* the sail-D logo in flag colours: red mast, green sail, waterline in the text colour */
[data-theme="uae"] .brand { color: var(--foam); --mark-mast: #ea2532; --mark-sail: #12b05e; }
[data-theme="uae"] .site-head.solid { box-shadow: none; }
[data-theme="uae"] .site-head.solid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--flag); }
[data-theme="uae"] .site-foot { position: relative; }
[data-theme="uae"] .site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--flag); }
[data-theme="uae"] .hero::before,
[data-theme="uae"] .photo-head::before,
[data-theme="uae"] .y-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--hoist); background: var(--turq); z-index: 3; }
[data-theme="uae"] .route-sec { background: radial-gradient(110% 80% at 85% 0%, rgba(var(--champ-rgb), 0.12), transparent 60%), var(--deep); }
[data-theme="uae"] .map-coast { stroke-opacity: 0.7; }
[data-theme="uae"] .btn-primary { box-shadow: 0 12px 30px -14px rgba(var(--acc), 0.85); }
[data-theme="uae"] .band { background: linear-gradient(120deg, #ea2532, #c0121f); }
[data-theme="uae"] .review:nth-child(1) { background: linear-gradient(135deg, #1d3a28, var(--deep) 70%); }
[data-theme="uae"] .incl .yes { background: linear-gradient(150deg, #1d3a28, var(--deep) 75%); }
[data-theme="uae"] .extra.plain { background: linear-gradient(150deg, #2a1416, var(--deep) 80%); }
[data-theme="uae"] .timeline::before { background: var(--flag); opacity: 0.8; }
[data-theme="uae"] .stop.on { background: rgba(var(--fg), 0.05); }
[data-theme="uae"] .svc .add { background: rgba(var(--fg), 0.08); color: var(--foam); }

/* UAE theme, white stripe: sections marked .light turn white like the flag's middle band.
   The tokens are re-scoped, so every component inside follows. Photo tiles keep their dark overlay. */
[data-theme="uae"] .light {
  --abyss: #ffffff;
  --deep: #f2f2ef;
  --reef: #e6e6e2;
  --foam: #0c0c0d;
  --mist: #54585b;
  --champ: #0a8a46;
  --champ-rgb: 10, 138, 70;
  --fg: 12, 12, 13;
  --ov: 255, 255, 255;
  --deep-rgb: 242, 242, 239;
  --placeholder: #7d8285;
  background: var(--abyss);
  color: var(--foam);
  color-scheme: light;
  padding-top: clamp(44px, 5vw, 80px) !important;
  padding-bottom: clamp(64px, 8vw, 120px) !important;
}
[data-theme="uae"] .light + section:not(.light):not(.how):not(.story) { padding-top: clamp(72px, 9vw, 130px) !important; }
[data-theme="uae"] .light .occ,
[data-theme="uae"] .light .extra,
[data-theme="uae"] .light .y-hero {
  --ov: 12, 12, 13;
  --fg: 248, 248, 246;
  --foam: #f8f8f6;
  color: #f8f8f6;
}
[data-theme="uae"] .light .extra.plain { background: linear-gradient(150deg, #2a1416, #18191b 80%); }
[data-theme="uae"] .light .ycard .pic,
[data-theme="uae"] .light .ex,
[data-theme="uae"] .light .dock,
[data-theme="uae"] .light .route-mini { box-shadow: 0 1px 0 rgba(12, 12, 13, 0.04), 0 18px 40px -28px rgba(12, 12, 13, 0.35); }
[data-theme="uae"] .light .dock { background: #ffffff; box-shadow: 0 0 0 1px rgba(12, 12, 13, 0.1), 0 30px 60px -36px rgba(12, 12, 13, 0.45); }
[data-theme="uae"] .light .price-tag { color: #0c0c0d; }
[data-theme="uae"] .light .save-btn { background: rgba(255, 255, 255, 0.85); color: #0c0c0d; }
[data-theme="uae"] .light .thumbs { padding-top: 0; }
[data-theme="uae"] .light .svc-group { border-top-color: rgba(12, 12, 13, 0.1); }
[data-theme="uae"] .light .map-coast { stroke-opacity: 0.85; }
[data-theme="uae"] .light .timeline li::before { background: #ffffff; }
[data-theme="uae"] .light + .light { padding-top: 0 !important; }

/* ---------- compare overlay ---------- */
.compare { position: fixed; inset: 0; z-index: 75; background: var(--abyss); display: none; grid-template-rows: auto 1fr; }
.compare.open { display: grid; }
.cmp-head { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cmp-head h2 { font-size: clamp(28px, 3vw, 42px); }
.cmp-scroll { overflow: auto; }
.cmp-grid { display: grid; grid-template-columns: 170px repeat(var(--n, 2), minmax(220px, 1fr)); padding-top: 24px; padding-bottom: 60px; min-width: calc(170px + var(--n, 2) * 236px); }
.cmp-label { padding: 18px 12px 18px 0; color: var(--mist); font-weight: 600; font-size: 15px; border-top: 1px solid var(--line); }
.cmp-cell { padding: 18px 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.cmp-top { border-top: 0; gap: 10px; }
.cmp-top .pic { aspect-ratio: 4 / 3; }
.cmp-grid > .cmp-label:first-child { border-top: 0; }
.cmp-big { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.cmp-warn { color: var(--turq); font-weight: 650; }
.cmp-badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.cmp-badge { background: var(--champ); color: var(--champ-ink); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 750; }
.cmp-badge.alt { background: rgba(var(--fg), 0.1); color: var(--foam); }
@media (max-width: 640px) { .cmp-grid { grid-template-columns: 110px repeat(var(--n, 2), minmax(170px, 1fr)); min-width: calc(110px + var(--n, 2) * 180px); } .cmp-big { font-size: 21px; } }

/* ---------- finder extras: view switch and price map ---------- */
.fb-select { min-height: 42px; border-radius: 999px; padding: 0 14px; width: auto; }
.result-line { align-items: end; }
.result-line > div:first-child { display: grid; gap: 6px; }
.pmap { position: relative; background: var(--deep); border-radius: calc(var(--r) * 1.2); padding: clamp(12px, 2vw, 28px); }
.pmap svg { width: 100%; height: auto; display: block; overflow: visible; }
.pm-grid { stroke: rgba(var(--fg), 0.1); stroke-width: 1; }
.pm-tick { fill: var(--mist); font: 500 14px var(--body); }
.pm-axis { fill: var(--mist); font: 650 14px var(--body); }
.pm-shade { fill: rgba(var(--fg), 0.05); }
.pm-you { stroke: var(--turq); stroke-width: 2; stroke-dasharray: 5 6; }
.pm-budget { stroke: var(--champ); stroke-width: 2; stroke-dasharray: 5 6; }
.pm-you-t { fill: var(--foam); font: 700 14px var(--body); }
.pm-dot { fill: rgba(var(--fg), 0.14); stroke: rgba(var(--fg), 0.22); stroke-width: 1; cursor: pointer; transition: fill 0.3s; }
.pm-dot.on { fill: rgba(var(--acc), 0.72); stroke: var(--turq); }
.pm-dot.saved { stroke: var(--champ); stroke-width: 4; }
.pm-dot:hover, .pm-dot:focus { fill: var(--turq); outline: none; stroke: var(--foam); stroke-width: 3; }
.pmap-card { position: absolute; z-index: 3; width: 280px; background: var(--abyss); color: var(--foam); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--fg), 0.12); display: grid; }
.pmap-card[hidden] { display: none; }
.pmap-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pmap-card span { padding: 12px 14px 14px; display: grid; gap: 2px; }
.pmap-card small { color: var(--mist); }
.pmap-card strong { font-family: var(--display); color: var(--champ); font-size: 20px; margin-top: 4px; }
.pmap-card strong small { font-family: var(--body); font-size: 13px; }
.pmap > p { margin-top: 12px; }
@media (max-width: 640px) { .pm-tick, .pm-axis, .pm-you-t { font-size: 24px; } .view-seg { width: 100%; } }

[hidden] { display: none !important; }

/* ---------- yacht detail: price per person ---------- */
.dock-pp { display: flex; gap: 8px; align-items: center; color: var(--mist); font-size: 15px; margin-top: -8px; }
.dock-pp i { font-size: 20px; color: var(--champ); }
.dock-pp b { color: var(--foam); }

/* ---------- occasion timeline ---------- */
.tl-wrap { max-width: 980px; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 8px; }
.tl::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: rgba(var(--fg), 0.12); }
.tl-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 14px 0; opacity: 0.35; transform: translateX(-10px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.tl-step.in { opacity: 1; transform: none; }
.tl-ic { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--abyss); box-shadow: inset 0 0 0 2px rgba(var(--fg), 0.18); font-size: 24px; color: var(--mist); position: relative; z-index: 1; transition: background 0.5s, color 0.5s, box-shadow 0.5s; }
.tl-step.in .tl-ic { background: var(--turq); color: var(--turq-ink); box-shadow: 0 10px 26px -10px rgba(var(--acc), 0.9); }
.tl-time { display: block; font-family: var(--display); font-weight: 750; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em; color: var(--champ); margin-bottom: 6px; }
.tl-step b { font-size: 21px; display: block; }
.tl-step p { color: var(--mist); max-width: 52ch; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .tl-step { opacity: 1; transform: none; } }

/* ---------- price spectrum ---------- */
.spec { background: var(--deep); }
.spec-ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; max-width: 900px; margin-bottom: 18px; }
.spec-ctrl label { font-weight: 650; display: flex; gap: 10px; align-items: baseline; }
.spec-ctrl label b { font-family: var(--display); font-size: 30px; color: var(--champ); min-width: 2ch; }
.spec-box { position: relative; }
.spec-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.spec-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.spec-stat { display: grid; gap: 4px; padding: 20px; border-radius: var(--r); background: rgba(var(--fg), 0.05); text-decoration: none; transition: background 0.25s; }
.spec-stat:hover { background: rgba(var(--fg), 0.09); }
.spec-stat b { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); color: var(--foam); }
.spec-stat.lo b { color: var(--champ); }
.spec-stat small { color: var(--mist); }
.spec-count { grid-column: 1 / -1; }
@media (max-width: 760px) { .spec-ctrl { grid-template-columns: minmax(0, 1fr); } .spec-stats { grid-template-columns: minmax(0, 1fr); } .spec-box svg .pm-tick { font-size: 26px; } }
/* range styles are shared with the start page */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--turq) var(--fill, 30%), rgba(var(--fg), 0.14) var(--fill, 30%)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: rgba(var(--fg), 0.14); }
.range::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--turq); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--turq); border: 4px solid var(--abyss); box-shadow: 0 0 0 2px var(--turq); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--turq); border: 4px solid var(--abyss); }

/* ---------- services: chosen extras bar ---------- */
.pkg-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(var(--deep-rgb), 0.95); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); padding: 14px 0; }
.pkg-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pkg-bar .wrap > div { display: grid; min-width: 0; }
.pkg-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
@media (max-width: 760px) {
  .finder-bar .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
  .finder-bar .wrap::-webkit-scrollbar { display: none; }
  .finder-bar .fb-group, .finder-bar .fb-sort, .finder-bar .fb-cats { flex: 0 0 auto; }
  .finder-bar .fb-cats { overflow: visible; }
  .fb-sort { margin-left: 0; }
}
.finder-bar .wrap, .finder-bar .fb-group, .finder-bar .fb-sort { position: relative; }

/* highlighted nav item for the F1 event */
.nav a.nav-hot { color: var(--turq); opacity: 1; font-weight: 750; }
.nav a.nav-hot:hover, .nav a.nav-hot[aria-current="page"] { color: var(--turq-hi); }
.mobile-nav a.nav-hot { color: var(--turq); }
@media (max-width: 1240px) and (min-width: 1061px) { .nav { gap: 18px; } .nav a { font-size: 14.5px; } }
.nav a { white-space: nowrap; }
@media (max-width: 1340px) and (min-width: 1061px) { .nav .nav-long { display: none; } }
@media (max-width: 1180px) and (min-width: 1061px) { .nav .nav-opt { display: none; } }
.foot-grid .brand { display: inline-flex; font-size: 20px; }

/* guide blocks with plain facts (start page, yacht list, F1): text Google can read, laid out like the rest of the page */
.guide { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.guide-head { position: sticky; top: 110px; display: grid; gap: 18px; }
.guide-head h2 { font-size: clamp(34px, 3.6vw, 52px); }
.facts-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 clamp(36px, 4vw, 52px); }
.facts-dl div { background: var(--deep); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.facts-dl dt { font-size: 14px; font-weight: 650; color: var(--mist); }
.facts-dl dd { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.45; }
.prose { display: grid; gap: 34px; }
.prose h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.prose p { color: var(--mist); max-width: 65ch; }
.prose p + p { margin-top: 12px; }
@media (max-width: 900px) { .guide { grid-template-columns: minmax(0, 1fr); } .guide-head { position: static; } }
@media (max-width: 520px) { .facts-dl { grid-template-columns: minmax(0, 1fr); } }

/* full yacht index on /yachten, written into the HTML by tools/build_dist.py so every yacht page has a plain link */
.y-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.y-index h3 { font-size: 20px; margin-bottom: 12px; }
.y-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.y-index a { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid rgba(var(--fg), 0.08); text-decoration: none; color: var(--foam); font-weight: 600; font-size: 15.5px; }
.y-index a:hover { color: var(--champ); }
.y-index small { color: var(--mist); font-weight: 500; font-size: 13.5px; }
@media (max-width: 1000px) { .y-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .y-index { grid-template-columns: minmax(0, 1fr); } }

/* ---------- journal (/blog and /blog/<slug>, written by tools/build_dist.py from content/journal) ---------- */
.j-head { padding-bottom: clamp(36px, 5vw, 64px); }
.j-head h1 { max-width: 15ch; }
.j-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 56px); align-items: end; text-decoration: none; color: var(--foam); }
.j-lead .pic { aspect-ratio: 16 / 10; }
.j-lead h2 { font-size: clamp(30px, 3.4vw, 48px); margin: 12px 0 16px; }
.j-lead p { color: var(--mist); }
.j-lead:hover h2 { color: var(--turq-hi); }
.j-cat { font-weight: 700; font-size: 14px; color: var(--champ); }
.j-date { font-size: 14px; color: var(--mist); margin-top: 14px; }
.j-bar { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 48px); }
.j-bar h2 { font-size: clamp(30px, 3.2vw, 44px); }
.j-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.j-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px) clamp(24px, 4vw, 56px); }
.j-item { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; text-decoration: none; color: var(--foam); }
.j-item[hidden] { display: none; }
.j-item .pic { aspect-ratio: 4 / 3; }
.j-item h3 { font-size: clamp(19px, 1.6vw, 22px); margin: 6px 0 8px; }
.j-item p { color: var(--mist); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.j-item:hover h3 { color: var(--turq-hi); }
[data-theme="uae"] .light .j-item:hover h3, [data-theme="uae"] .light .j-lead:hover h2 { color: var(--champ); }
@media (max-width: 900px) { .j-lead, .j-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .j-item { grid-template-columns: minmax(0, 1fr); } }

.art-head { padding: 130px 0 0; }
.art-head h1 { font-size: clamp(36px, 5vw, 68px); max-width: 20ch; line-height: 1.02; }
.art-head .lead { margin-top: 20px; max-width: 60ch; }
.art-meta { margin-top: 18px; color: var(--mist); font-size: 15px; font-weight: 600; }
.art-hero { margin: clamp(28px, 4vw, 48px) 0 0; aspect-ratio: 2 / 1; border-radius: var(--r) var(--r) 0 0; }
.art-wrap { padding-top: clamp(40px, 5vw, 72px) !important; }
.art-grid { display: grid; grid-template-columns: minmax(0, 68ch) minmax(240px, 300px); gap: clamp(32px, 6vw, 96px); justify-content: space-between; align-items: start; }
.art-body { font-size: 18.5px; line-height: 1.72; color: var(--foam); }
.art-body > * + * { margin-top: 1.05em; }
.art-body h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-top: 1.9em; scroll-margin-top: 110px; }
.art-body h3 { font-size: clamp(20px, 1.8vw, 24px); margin-top: 1.6em; }
.art-body p, .art-body li { color: rgba(var(--fg), 0.82); }
.art-body ul, .art-body ol { padding-left: 1.2em; display: grid; gap: 0.5em; }
.art-body a { color: var(--champ); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-body strong { color: var(--foam); }
.art-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; display: block; overflow-x: auto; }
.art-body th { text-align: left; font-weight: 700; padding: 10px 14px 10px 0; border-bottom: 2px solid rgba(var(--fg), 0.16); white-space: nowrap; }
.art-body td { padding: 10px 14px 10px 0; border-bottom: 1px solid rgba(var(--fg), 0.08); vertical-align: top; }
.art-body .faq { margin-top: 1.2em; }
.art-body .faq summary { font-size: 17px; }
.art-body .faq details p { font-size: 16.5px; }
.art-side { position: sticky; top: 110px; display: grid; gap: 22px; }
.art-toc b, .art-cta b { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 10px; }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid rgba(var(--fg), 0.1); }
.art-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--mist); font-size: 15px; line-height: 1.35; }
.art-toc a:hover { color: var(--foam); }
.art-toc a[aria-current="true"] { color: var(--foam); border-left-color: var(--champ); font-weight: 600; }
.art-cta { background: var(--deep); border-radius: 18px; padding: 22px; display: grid; gap: 12px; justify-items: start; }
.art-cta p { color: var(--mist); font-size: 15px; line-height: 1.5; }
@media (max-width: 1000px) { .art-grid { grid-template-columns: minmax(0, 1fr); } .art-side { position: static; } .art-toc { display: none; } }
@media (max-width: 520px) { .art-body { font-size: 17px; } .art-hero { aspect-ratio: 4 / 3; } }
.j-teaser { margin-top: clamp(64px, 8vw, 110px); }
.j-teaser .j-bar h3 { font-size: clamp(24px, 2.4vw, 32px); }
/* per-yacht guide (written by build_dist from the yacht's own data) */
.y-guide .prose { margin-top: 8px; }
.y-guide .prose a.link { text-decoration: underline; text-underline-offset: 3px; }
.y-price { width: 100%; border-collapse: collapse; margin: 16px 0 10px; font-size: 15.5px; }
.y-price th { text-align: left; font-weight: 700; padding: 10px 12px 10px 0; border-bottom: 2px solid rgba(var(--fg), 0.14); font-size: 14px; color: var(--mist); }
.y-price td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(var(--fg), 0.08); font-variant-numeric: tabular-nums; }
.y-price td:first-child { font-weight: 600; }
@media (max-width: 520px) { .y-price { font-size: 14px; } .y-price th { font-size: 12.5px; } }
/* long German compounds ("Junggesellenabschied") must not push headings past the screen on phones */
@media (max-width: 520px) { h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; } }
/* contact page cards and legal pages (content/pages) */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 2em; }
.contact-cards > * { background: var(--deep); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px; text-decoration: none; color: var(--foam); }
.contact-cards span { font-size: 14px; font-weight: 650; color: var(--mist); }
.contact-cards b { font-size: 17px; overflow-wrap: anywhere; }
.contact-cards a:hover b { color: var(--champ); }
.art-legal { grid-template-columns: minmax(0, 72ch); }
.art-legal .art-side:empty { display: none; }
@media (max-width: 520px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.art-body .contact-cards a { text-decoration: none; font-weight: inherit; color: var(--foam); }
.art-body .contact-cards a:hover b { color: var(--champ); }
/* consent card for Google Analytics (core.js consent()); both buttons look the same on purpose */
.consent { position: fixed; z-index: 80; left: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); background: var(--deep); color: var(--foam);
  border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -24px rgba(0, 0, 0, 0.7); display: grid; gap: 14px;
  transform: translateY(calc(100% + 24px)); transition: transform 0.4s var(--ease); }
.consent.show { transform: none; }
.consent p { font-size: 14.5px; line-height: 1.5; color: var(--mist); }
.consent a { color: var(--foam); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.foot-consent { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; opacity: 0.8; }
.foot-consent:hover { opacity: 1; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
/* plain-text guide on the occasion pages (content/anlaesse, written in by build_dist) */
.anlass-guide > h2 { font-size: clamp(30px, 3.4vw, 46px); max-width: 22ch; margin-bottom: clamp(28px, 4vw, 44px); }
.anlass-guide .prose { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.anlass-guide .faq { margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 900px) { .anlass-guide .prose { grid-template-columns: minmax(0, 1fr); } }
.y-index[data-s-index] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .y-index[data-s-index] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .y-index[data-s-index] { grid-template-columns: minmax(0, 1fr); } }
