/* ============================================================================
   CLIENT-FACING OFFER PAGES — standalone sheet; nothing here may name or
   imply any brand (client.css)

   THE MONEY SURFACE. Every /o/<token> offer page, /b/<token> brochure,
   unavailable page, and the /apply form load this sheet and NOTHING else —
   no portal asset ever touches a page an end client sees (spec Sec.8
   white-label isolation), which is why the token block below is duplicated
   here rather than shared from a common file.

   Nothing in this sheet may name or imply any single brand: every visible
   identity comes from the broker's own company row. The design language is
   the neutral one — deep navy, brass, warm paper, serif display — so a
   charter offer reads like a yacht brochure, not a web form.
   ========================================================================= */

:root {
  --ink: #101418;
  --ink-soft: #4a5460;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e5e1d8;
  --brand: #0e2a3a;           /* deep navy */
  --brand-deep: #08202d;
  --brand-tint: #eef2f4;
  --gold: #b08d4f;            /* brass — rules, large display numerals */
  --gold-soft: #d9c294;
  --gold-ink: #8a6a35;        /* brass dark enough for SMALL text on paper */
  --gold-wash: #f7f1e5;
  --ok: #1c7c54;
  --warn: #a3452c;
  --warn-wash: #fbeeea;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  /* --tap: minimum height of anything a finger is meant to hit. The CTAs on
     this surface sit well above it at 52px by design (they are the whole
     point of the page); the floor exists for the smaller controls -- the
     /apply form's file picker today, and whatever gets added next. */
  --tap: 44px;
  --shadow: 0 10px 30px rgba(16, 20, 24, .08);
  --shadow-lift: 0 18px 44px rgba(16, 20, 24, .14);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------- branded header -- */

.offer-header {
  padding: 1.5rem 1rem 1.35rem;
  text-align: center;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(176, 141, 79, .28);
}

/* Fixed 220x64 box (matched by the img's width/height attributes) so an
   arbitrary broker logo can never shift the page as it loads, and never
   stretches — object-fit letterboxes it inside the reserved space. */
.brand-logo {
  display: block;
  width: 220px;
  max-width: 62vw;
  height: 64px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.brand-name {
  margin: .7rem 0 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ------------------------------------------------------------ offer page - */

main.offer-page {
  max-width: 780px;
  margin: 0 auto 2rem;
  padding: 0 0 2rem;
  background: transparent;
}

/* Full-bleed hero: photo edge to edge with a soft navy scrim, the yacht's
   name set over it. When a snapshot carries no photo at all, .hero-plain
   swaps the image for the same navy field so the title block still lands on
   a designed surface instead of bare paper. */
.hero {
  position: relative;
  margin: 0 0 1.75rem;
  background: var(--brand);
  overflow: hidden;
  isolation: isolate;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--brand-tint);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 32, 45, .30) 0%,
    rgba(8, 32, 45, .05) 34%,
    rgba(8, 32, 45, .58) 74%,
    rgba(8, 32, 45, .88) 100%
  );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 2rem 1.25rem 1.6rem;
}

.hero-plain {
  min-height: 260px;
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(176, 141, 79, .22) 0%, rgba(176, 141, 79, 0) 60%),
    linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
}

.hero-plain::after { display: none; }

.hero-plain .hero-overlay { position: static; padding: 2.75rem 1.25rem 2.5rem; }

.title-block { text-align: center; }

.hero .title-block h1,
.hero .title-block .eyebrow,
.hero .title-block .facts-row { color: #fff; }

.eyebrow {
  margin: 0 0 .7rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.hero .title-block .eyebrow { color: var(--gold-soft); }

.offer-page h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  text-shadow: 0 2px 18px rgba(8, 32, 45, .45);
}

.hero .title-block .facts-row {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .92;
  text-shadow: 0 1px 10px rgba(8, 32, 45, .5);
}

.facts-row {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- gallery - */

.gallery { margin: 0 0 2rem; }

.gallery-main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--brand-tint);
}

.gallery-thumbs {
  display: flex;
  gap: .6rem;
  padding: .25rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent;   /* default grey track reads as unfinished chrome */
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
  flex: 0 0 132px;
  width: 132px;
  height: 99px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  background: var(--brand-tint);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.gallery-thumb:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ----------------------------------------------------------- copy blocks - */

/* Gutter-aligned, not centered: a centered 66ch block inside a 780px column
   sits a few dozen px inboard of the hero and price panel, and the mismatched
   left edges read as a mistake. Same 1.25rem gutter as everything else, with
   the measure still capped for readability. */
.description {
  max-width: 66ch;
  margin: 0 0 2rem;
  padding: 0 1.25rem;
  color: #2b333b;
  line-height: 1.75;
}

.amenities,
.marina {
  padding: 0 1.25rem;
  margin: 0 0 2rem;
}

.amenities h2,
.marina h2 {
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--font-body);
}

.amenities-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem 1.5rem;
}

.amenity-item {
  position: relative;
  padding-left: 1.7rem;
  font-size: .95rem;
  color: #2b333b;
}

.amenity-item::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold);
  font-weight: 700;
  font-size: .95rem;
}

.marina p { margin: 0; color: var(--ink-soft); }

/* ----------------------------------------------------------- price panel - */

.price-panel {
  margin: 2.5rem 1.25rem 1.5rem;
  padding: 1.9rem 1.5rem 1.75rem;
  background: linear-gradient(180deg, var(--card) 0%, #fdfbf6 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* The brass rule above the price — the one visual flourish the whole page
   builds toward. */
.price-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-soft) 100%);
}

.price-panel .duration {
  margin: 0 0 .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.price-panel .price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 3vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--brand);
}

/* ------------------------------------------------------------------ CTAs - */

.cta-row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 0 1.25rem;
  margin-top: 1.25rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}

.cta-primary {
  background: linear-gradient(180deg, #c2a06a 0%, var(--gold) 100%);
  color: #17232b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px rgba(176, 141, 79, .32);
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 14px 28px rgba(176, 141, 79, .4);
}

.cta-secondary {
  background: var(--card);
  color: var(--brand);
  border-color: #d3d9dd;
}

.cta-secondary:hover { background: var(--brand-tint); border-color: var(--brand); }

.cta:active { transform: translateY(0); }

/* ---------------------------------------------------------------- footer - */

.offer-footer {
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.offer-footer p {
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 780px;
  margin: 0 auto;
}

/* ----------------------------------------------------- unavailable page -- */

.unavailable-page {
  max-width: 520px;
  margin: 3.5rem auto;
  padding: 2.75rem 1.75rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.unavailable-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-soft) 100%);
}

.unavailable-page h1 {
  margin: 0 0 .9rem;
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.85rem);
}

.unavailable-page p { margin: 0 0 1.5rem; color: var(--ink-soft); }
.unavailable-page .cta-row { padding: 0; margin-top: 1.5rem; }

/* ------------------------------------------------- brochure page (/b/...) - */

.brochure-page { max-width: 860px; }

.brochure-page > .title-block {
  margin: 2.5rem 0 2.25rem;
  padding: 0 1.25rem;
}

.brochure-page > .title-block h1 { text-shadow: none; }

.brochure-page > .title-block .facts-row {
  margin: .9rem 0 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brochure-item {
  margin: 0 1.25rem;
  padding: 0 0 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* A brochure stacks up to 3 of these on one page, so each item leads with a
   scroll-snap film strip flush to the card's top edge rather than a separate
   full-bleed hero — three heroes in a row would read as three pages. */
.gallery-strip { margin: 0 0 1.5rem; }
.gallery-strip .gallery-thumbs { padding: 0; gap: 2px; scroll-padding-left: 0; }

.gallery-strip .gallery-thumb {
  flex: 0 0 min(78%, 300px);
  width: min(78%, 300px);
  height: 225px;
  border: none;
  border-radius: 0;
}

.gallery-strip .gallery-thumb:hover { transform: none; }

.item-title-block {
  text-align: left;
  padding: 0 1.4rem;
}

.item-title-block h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
}

.item-title-block .facts-row {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.brochure-item .description {
  margin: 1.1rem 0 1.5rem;
  padding: 0 1.4rem;
  max-width: none;
}

/* "Trimmed to ~400 chars" is enforced server-side (Jinja `truncate(400)`);
   this clamp is the visual backstop for the common case where 400 chars
   still spans more lines than a brochure card has room for. */
.description-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brochure-item .price-panel {
  margin: 0 1.4rem 1.25rem;
  padding: 1.4rem 1.25rem 1.3rem;
  box-shadow: none;
  background: var(--paper);
}

.brochure-item .price-panel .price { font-size: clamp(2.1rem, 1.7rem + 2vw, 2.7rem); }
.brochure-item .cta-row { padding: 0 1.4rem; margin-top: 0; }

.brochure-divider {
  border: none;
  border-top: 1px solid var(--gold-soft);
  width: 88px;
  margin: 2.25rem auto;
  opacity: .8;
}

/* ------------------------------------- application form (/apply, base_client) */

body:has(.form-page) {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(176, 141, 79, .16) 0%, rgba(176, 141, 79, 0) 60%),
    linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  background-attachment: fixed;
}

header.brand {
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
}

header.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}

body:has(.form-page) header.brand h1 { color: #fff; }

.form-page {
  max-width: 560px;
  margin: 0 auto 3.5rem;
  padding: 2.25rem 2rem 2.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}

.form-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
}

.form-page h2 {
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.4rem;
}

.form-page p { color: var(--ink-soft); }

/* "Already approved?" cross-link (A3, 2026-08-13 addendum) -- a quiet
   tinted note right under the heading, not a bare inline sentence, so it
   reads as a real alternate path rather than an afterthought. */
.already-partner {
  margin: 0 0 1.75rem;
  padding: .85rem 1.1rem;
  background: var(--brand-tint);
  border: 1px solid #dbe2e6;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--ink-soft);
  text-align: center;
}

.already-partner a { color: var(--gold-ink); font-weight: 700; }

/* "Apply with Google" (spec addendum B3) -- same neutral white/outline
   Google-brand treatment as portal.css's login-page twin. Declared
   independently here (not shared/imported) per this file's own top-of-file
   rule: nothing on this sheet may depend on a portal asset, even when the
   visual result is meant to match exactly. */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 52px;
  margin: 0 0 1.5rem;
  padding: .75rem 1.25rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.google-btn:hover {
  background: #f7f8f8;
  border-color: #c9cdd2;
  box-shadow: 0 6px 14px rgba(16, 20, 24, .1);
}

.google-g-mark { flex-shrink: 0; }

/* Tinted brass callout, same left-accent-border shape as this file's own
   .form-page > .error (just brass instead of rust, since this is
   informational, not a problem to fix) -- the one-shot note confirming a
   Google prefill landed (public.apply's GET handler pops it after this
   render, so it's gone on any subsequent visit). */
.google-prefill-note {
  margin: 0 0 1.5rem;
  padding: .8rem 1.05rem;
  background: var(--gold-wash);
  border: 1px solid #ece0cb;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .87rem;
  color: #4b3f2b;
}

.field { margin-bottom: 1.15rem; }

label {
  display: block;
  margin-bottom: .38rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

textarea { min-height: 108px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 79, .18);
}

/* The Google-verified email field on /apply is the one readonly input this
   sheet renders -- a plain browser default gives almost no visual signal
   that it's locked, so it gets the same muted "not fillable" treatment
   already used for a select's hover chrome elsewhere in this file (tint
   fill + not-allowed cursor), scoped generically to `[readonly]` rather
   than a page-specific class so any future readonly field here inherits it
   for free. */
input[readonly] {
  background: var(--brand-tint);
  color: var(--ink-soft);
  cursor: not-allowed;
}

/* This sheet already claims `select` in the rule above, so it owes the control
   a finished look: without appearance:none a select renders with OS chrome
   (OS arrow, OS radius) inside a hand-styled card, which is exactly the "plain
   default" this surface may never show. Carried here so the three sheets stay
   one design language, and so the first <select> added to /apply is themed on
   arrival rather than shipping half-native. Chevron is an inline brass SVG
   data URI -- no request, and never a third-party asset on a white-label
   page. Ordered AFTER `input, textarea, select` so background-image survives
   that rule's `background: var(--card)` shorthand. */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23b08d4f' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

select:hover { border-color: #d3cec1; }

select:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 79, .18);
}

/* Vertical padding trimmed because the button inside now carries its own 44px
   tap floor -- at the old .5rem the field would have stood 60px tall. */
input[type="file"] { padding: .3rem .6rem; }

input[type="file"]::file-selector-button {
  margin-right: .8rem;
  min-height: var(--tap);   /* a real button, and the only way into the picker */
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--brand);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}

.hint {
  margin: .4rem 0 0;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.error {
  margin: .35rem 0 0;
  color: var(--warn);
  font-size: .87rem;
  font-weight: 600;
}

.form-page > .error {
  margin: 0 0 1.25rem;
  padding: .8rem 1rem;
  background: var(--warn-wash);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: .75rem;
  padding: .85rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}

button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(8, 32, 45, .25); }
button:active { transform: translateY(0); }

/* ------------------------------------------------------------- responsive - */

@media (min-width: 720px) {
  .hero-img { aspect-ratio: 21 / 9; }
  .hero-overlay { padding: 3rem 2rem 2.25rem; }

  /* Proportional, not fixed min-widths: with all three contact methods set,
     fixed minimums overflowed the 780px column and dropped "Email Us" onto a
     second, visually unbalanced row. Flex ratios keep one, two, or three CTAs
     on a single centered row at any of those counts; the max-widths stop a
     lone WhatsApp button from stretching the full column. */
  .cta-row { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: .75rem; }
  .cta { flex: 1 1 0; min-width: 0; max-width: 320px; }
  .cta-primary { flex: 1.5 1 0; max-width: 360px; }
  .brochure-item .cta-row { justify-content: flex-start; }
}

/* Phones: the offer page's CTA row becomes a booking bar pinned to the bottom
   of the viewport. Scoped with `>` so it only ever applies to the single-yacht
   offer page — a brochure's per-yacht CTA rows live inside .brochure-item and
   must stay in flow (three pinned bars would fight each other), and the
   unavailable page's row isn't inside .offer-page at all. The row is the last
   child of <main>, so at the end of the scroll it settles into place and the
   footer below it is never covered. */
@media (max-width: 719px) {
  .offer-page > .cta-row {
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 250, 247, .97);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(16, 20, 24, .1);
  }

  /* Flex bases are sized so the widest case -- WhatsApp + phone + email all
     set -- still fits one 390px row (130 + 88 + 88 + two 8px gaps = 322 of
     358 usable). Bigger bases wrapped "Email Us" onto a second row and left
     the bar looking half-built. */
  .offer-page > .cta-row .cta {
    flex: 1 1 88px;
    min-width: 0;
    padding-left: .45rem;
    padding-right: .45rem;
    font-size: .72rem;
    letter-spacing: .06em;
    white-space: nowrap;
  }

  .offer-page > .cta-row .cta-primary { flex: 1.7 1 130px; }
}

@media (max-width: 640px) {
  .amenities-grid { grid-template-columns: 1fr; gap: .6rem; }
  .brochure-item { margin: 0 .9rem; }
  .brochure-item .price-panel,
  .brochure-item .cta-row,
  .item-title-block,
  .brochure-item .description { padding-left: 1.1rem; padding-right: 1.1rem; }
  .brochure-item .price-panel { margin-left: 1.1rem; margin-right: 1.1rem; }
  .form-page { margin: 0 .9rem 2.5rem; padding: 1.75rem 1.25rem 2rem; }
  .price-panel { margin-left: 1rem; margin-right: 1rem; }
  .cta-row { padding: 0 1rem; }
  .gallery-strip .gallery-thumb { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ print -
   Brokers do PDF these pages for clients. Drop the interactive furniture,
   keep the photography, the price, and the branding. */

@media print {
  body { background: #fff; }

  .cta-row,
  .gallery-thumbs,
  .gallery-strip { display: none !important; }

  .offer-header { box-shadow: none; border-bottom: 1px solid #ddd; }

  .hero { break-inside: avoid; page-break-inside: avoid; }
  .hero-img { aspect-ratio: 16 / 9; }

  .price-panel,
  .brochure-item,
  .amenities,
  .marina { break-inside: avoid; page-break-inside: avoid; box-shadow: none; }

  .brochure-item { border: 1px solid #ddd; }
  .brochure-divider { display: none; }

  .description-clamp {
    display: block;
    -webkit-line-clamp: none;
    line-clamp: none;
    overflow: visible;
  }

  a[href]::after { content: ""; }
}
