/* =============================================================
   AbacoSail — design tokens + base styles
   ============================================================= */

:root {
  /* Color */
  --navy: #1a2659;
  --navy-deep: #0f1638;
  --capri: #187ac5;               /* AbacoSail brand blue */
  --capri-deep: #1465a4;
  --light-blue: #cdd9e8;          /* placeholder — pending final hex */
  --light-blue-soft: #dde6ee;
  --paper: #f4efe6;               /* warm cream, primary background */
  --paper-deep: #ebe3d4;           /* slightly deeper cream for section breaks */
  --ink: #1a2659;
  --ink-muted: #5a6378;
  --hairline: rgba(26, 38, 89, 0.14);
  --hairline-strong: rgba(26, 38, 89, 0.32);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mark: "Cinzel", "Trajan Pro", serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Scale */
  --container: 1280px;
  --gutter: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ===== Typography ===== */

.eyebrow {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow.muted { color: var(--ink-muted); }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.display-xl { font-family: var(--font-display); font-weight: 500; font-size: clamp(56px, 8vw, 124px); line-height: 0.98; letter-spacing: -0.012em; color: var(--navy); }
.display-l  { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 5.4vw, 76px);  line-height: 1.02; letter-spacing: -0.008em; color: var(--navy); }
.display-m  { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.4vw, 52px);  line-height: 1.08; color: var(--navy); }
.display-s  { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px);  line-height: 1.15; color: var(--navy); }

.serif-italic { font-style: italic; }

.body-lg { font-size: 13px; line-height: 1.8; color: var(--navy); }
.body    { font-size: 11px; line-height: 1.7; color: var(--navy); }
.body-sm { font-size: 10px; line-height: 1.6; color: var(--ink-muted); }

.text-muted { color: var(--ink-muted); }

/* Hairline rule */
.hairline { height: 1px; background: var(--hairline); border: 0; }
.hairline-vertical { width: 1px; background: var(--hairline); }

/* ===== Layout ===== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(60px, 8.5vw, 112px) 0; }
section.tight { padding: clamp(56px, 7vw, 96px) 0; }

/* ===== Nav ===== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: saturate(140%);
}
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 var(--gutter);
  max-width: 1480px;
  margin: 0 auto;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav .brand img { height: 64px; width: auto; display: block; }
.site-nav .brand .wm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--navy);
  white-space: nowrap;
  margin-left: -14px;
}
.site-nav .brand .wm em { font-style: italic; font-weight: 500; }
@media (max-width: 1200px) {
  .site-nav .brand .wm { display: none; }
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
.site-nav ul a {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.92;
  transition: opacity 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav ul a:hover { opacity: 1; border-bottom-color: var(--navy); }
.site-nav ul a.active { opacity: 1; border-bottom-color: var(--navy); }

/* ===== Nav: mobile actions + hamburger ===== */

.site-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav .nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.site-nav .nav-toggle .bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.site-nav .nav-toggle.is-open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav .nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.site-nav .nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 88px;
  left: 0; right: 0;
  bottom: 0;
  background: var(--paper);
  z-index: 49;
  padding: 32px var(--gutter) 40px;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-menu ul li {
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu ul li:last-child { border-bottom: 1px solid var(--hairline-strong); }
.mobile-menu ul a {
  display: block;
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 22px 0;
  text-decoration: none;
}
.mobile-menu ul a.active { color: var(--capri); }
.mobile-menu .book-link {
  margin-top: 32px;
  display: block;
  text-align: center;
  background: var(--navy);
  color: var(--paper);
  padding: 22px;
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}
body.nav-locked { overflow: hidden; }

/* Show hamburger + mobile menu below 900px (the nav <ul> is hidden per-page). */
@media (max-width: 900px) {
  .site-nav .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
}

/* (capri-nav override removed — nav is back to paper/navy) */

.btn-book {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-book:hover { background: transparent; color: var(--navy); }

.btn-ghost {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--navy);
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { background: var(--navy); color: var(--paper); }

/* ===== Floating hero search bar — sits over the bottom of the hero ===== */
.hero-search {
  position: relative;
  z-index: 5;
  margin: -120px auto 0;
  padding: 0 var(--gutter);
  max-width: 980px;
  width: 100%;
  pointer-events: none; /* allow gutters to pass clicks; card re-enables */
}
.hero-search .card {
  pointer-events: auto;
  background: var(--capri);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 1fr 1fr auto;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(15, 22, 56, 0.45);
}
.hero-search .lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--capri-deep);
}
.hero-search .lead .eyebrow {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  margin-bottom: 2px;
}
.hero-search .lead h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.05;
  color: var(--paper);
  margin: 0;
}
.hero-search .lead h3 em { font-style: italic; font-weight: 500; }

.hero-search .field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 12px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}
.hero-search .field .lbl {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.75;
}
.hero-search .field .val {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--paper);
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  cursor: pointer;
}
.hero-search .field .val::placeholder { color: rgba(255,255,255,0.6); }
.hero-search .field .val option { color: var(--navy); background: var(--paper); }
.hero-search .field .val::-webkit-calendar-picker-indicator { filter: invert(1) brightness(2); opacity: 0.6; cursor: pointer; }

.hero-search .submit {
  background: var(--paper);
  color: var(--navy);
  border: 0;
  padding: 0 36px;
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.hero-search .submit:hover { background: var(--navy); color: var(--paper); }

.hero-search .note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--navy);
  opacity: 0.85;
  text-align: center;
}

@media (max-width: 1100px) {
  .hero-search { margin-top: -80px; max-width: 720px; }
  .hero-search .card {
    grid-template-columns: 1fr 1fr;
  }
  .hero-search .lead { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.22); }
  .hero-search .field:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.22); }
  .hero-search .field:nth-child(even) { border-right: 0; }
  .hero-search .submit { grid-column: 1 / -1; padding: 18px 0; }
}

/* Subtle link with arrow */
.link-arrow {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--navy);
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 18px; }
.link-arrow::after { content: "→"; font-family: var(--font-body); font-size: 13px; }

/* ===== Placeholder imagery =====
   Striped SVG background with a monospace caption describing
   what photo should drop in. To be replaced as photos arrive. */

.photo {
  position: relative;
  background-color: var(--light-blue-soft);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(26, 38, 89, 0.05) 0,
      rgba(26, 38, 89, 0.05) 1px,
      transparent 1px,
      transparent 14px
    );
  overflow: hidden;
}
.photo .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--navy);
  opacity: 0.55;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}
.photo .caption strong { font-weight: 500; }
.photo .caption span { opacity: 0.7; }
/* When .photo contains a real image, fill the slot and drop the caption */
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo:has(> img) {
  background-image: none;
  background-color: transparent;
}
.photo:has(> img) .caption { display: none; }

/* Photo aspect helpers */
.photo.ratio-16-9 { aspect-ratio: 16 / 9; }
.photo.ratio-4-3  { aspect-ratio: 4 / 3; }
.photo.ratio-3-4  { aspect-ratio: 3 / 4; }
.photo.ratio-1-1  { aspect-ratio: 1 / 1; }
.photo.ratio-21-9 { aspect-ratio: 21 / 9; }

/* ===== Footer ===== */

footer.site-footer {
  background: var(--navy);
  color: var(--paper);
  padding: 88px 0 32px;
}
footer.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.16);
}
footer.site-footer h4 {
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 20px;
  opacity: 0.6;
}
footer.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer.site-footer ul a {
  font-size: 14px;
  color: var(--paper);
  opacity: 0.78;
  transition: opacity 0.2s;
}
footer.site-footer ul a:hover { opacity: 1; }
footer.site-footer .brand-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer.site-footer .brand-block .wm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.008em;
  color: var(--paper);
}
footer.site-footer .brand-block .wm em { font-style: italic; font-weight: 500; }
footer.site-footer .brand-block p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper);
  opacity: 0.7;
  max-width: 320px;
}
footer.site-footer .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: var(--paper);
  opacity: 0.55;
}
footer.site-footer .meta .legal { display: flex; gap: 24px; }

/* ===== Section header pattern ===== */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: end;
  margin-bottom: clamp(34px, 3.6vw, 48px);
}
.section-head .lhs .eyebrow { display: block; margin-bottom: 18px; }
.section-head .rhs p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 56ch;
}

/* ===== Small things ===== */

.divider-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 14px;
  opacity: 0.4;
}

/* =============================================================
   YACHT DETAIL PAGE — shared across all individual yacht pages
   ============================================================= */

/* ---- Live availability widget (yacht hero) ---- */
.live-availability { margin-top: 16px; }
.live-avail-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.live-avail-form label { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
.live-avail-form input[type="date"] { font: inherit; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); color: #fff; border-radius: 2px; color-scheme: dark; }
.live-avail-form button { padding: 9px 16px; background: #fff; color: var(--navy); border: none; border-radius: 2px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; cursor: pointer; }
.live-avail-result { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,0.92); min-height: 1.4em; }
.live-avail-result a { color: #fff; text-decoration: underline; }

/* ---- Hero ---- */
.yacht-hero {
  position: relative;
  height: clamp(540px, 76vh, 800px);
  min-height: 540px;
  overflow: hidden;
  background: var(--navy);
}
.yacht-hero .photo { position: absolute; inset: 0; }

/* Fit-hero: show a portrait/awkward photo in full, filling the sides with a
   soft darkened blur of the same image so nothing looks cropped. */
.yacht-hero.fit-hero .photo .blurbg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(34px) brightness(0.62) saturate(1.1);
  transform: scale(1.15);
}
.yacht-hero.fit-hero .photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.yacht-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15,22,56,0.30) 0%, rgba(15,22,56,0.00) 32%, rgba(15,22,56,0.00) 46%, rgba(15,22,56,0.62) 86%, rgba(15,22,56,0.78) 100%);
  pointer-events: none;
}
.yh-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1480px;
  margin: 0 auto;
  left: 0; right: 0;
  padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(40px, 4vw, 56px);
}
.yh-back {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
  transition: opacity 0.2s, gap 0.2s;
}
.yh-back::before { content: "←"; font-family: var(--font-body); }
.yh-back:hover { opacity: 1; gap: 14px; }
.yh-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.yh-row .lhs .eyebrow { color: var(--paper); opacity: 0.86; display: block; margin-bottom: 16px; }
.yh-row h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.012em;
  color: var(--paper);
}
.yh-row h1 em { font-style: italic; font-weight: 500; }
.yh-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.92;
}
.yh-meta .dot { width: 4px; height: 4px; background: var(--paper); border-radius: 50%; opacity: 0.6; }
.yh-price {
  text-align: right;
  flex-shrink: 0;
}
.yh-price .from {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  display: block;
  margin-bottom: 6px;
}
.yh-price .amount {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1;
  color: var(--paper);
}
.yh-price .amount span { font-size: 0.42em; opacity: 0.72; letter-spacing: 0.02em; }
.yh-price .cta-row { margin-top: 20px; display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.btn-book.light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-book.light:hover { background: transparent; color: var(--paper); }
.btn-ghost.light { color: var(--paper); border-color: rgba(244,239,230,0.5); }
.btn-ghost.light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

/* ---- Spec strip ---- */
.yspec {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 0;
}
.yspec .row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.yspec .col {
  padding: 40px 24px;
  border-right: 1px solid var(--hairline);
  text-align: center;
}
.yspec .col:last-child { border-right: 0; }
.yspec .col .num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.yspec .col .num span { font-size: 0.46em; color: var(--ink-muted); }
.yspec .col .lbl {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Story ---- */
.yacht-story { background: var(--paper); }
.yacht-story .grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.yacht-story .lhs { position: sticky; top: 120px; }
.yacht-story .lhs .eyebrow { display: block; margin-bottom: 22px; }
.yacht-story .lhs h2 { max-width: 14ch; }
.yacht-story .rhs p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-muted);
  margin-bottom: 22px;
  max-width: 60ch;
}
.yacht-story .rhs p em { font-family: var(--font-body); font-style: italic; font-weight: 600; color: var(--navy); }
.yacht-story .rhs .pull {
  margin: 36px 0;
  padding-left: 28px;
  border-left: 1px solid var(--capri);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.32;
  color: var(--navy);
  max-width: 30ch;
}

/* ---- Gallery ---- */
.yacht-gallery { background: var(--paper-deep); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid .photo { aspect-ratio: 4 / 3; }
.gallery-grid .photo.lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-actions { margin-top: 32px; display: flex; justify-content: center; }
.gallery-toggle { cursor: pointer; }

/* ---- Layout / accommodation plan ---- */
.yacht-layout { background: var(--paper); }

/* ===== Boat-page density =====
   The individual yacht pages stack many full-padded sections, so the reader has
   to scroll a long way. Tighten vertical rhythm on those pages only (home/fleet
   keep the airier spacing). Between-section padding and the header-to-content gap
   both come down a notch. */
.yacht-story,
.yacht-gallery,
.yacht-layout,
.yacht-amenities,
.yacht-rates,
.yacht-terms {
  padding-top: clamp(52px, 7vw, 96px);
  padding-bottom: clamp(52px, 7vw, 96px);
}
.yacht-story .section-head,
.yacht-gallery .section-head,
.yacht-amenities .section-head,
.yacht-rates .section-head,
.yacht-terms .section-head {
  margin-bottom: clamp(32px, 3.5vw, 44px);
}
/* Layout plan and Comfort Pack share the same paper background and read as one
   block — tighten the seam between them further so there isn't a dead zone. */
.yacht-layout { padding-bottom: clamp(28px, 3vw, 44px); }
.yacht-layout + .yacht-amenities { padding-top: clamp(28px, 3vw, 44px); }
/* Second section-head inside the amenities block (Equipment & comforts) */
.yacht-amenities .section-head[style] { margin-top: clamp(40px, 4vw, 56px) !important; }
.layout-figure {
  margin: 0;
  border: 1px solid var(--hairline);
  padding: clamp(20px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout-figure img {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
}
/* Fleet-card placeholder for yachts awaiting photography */
.yacht-card .card-awaiting{position:absolute;inset:0;background:linear-gradient(160deg,#1a2659 0%,#243475 55%,#187ac5 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:20px}
.yacht-card .card-awaiting span{font-family:var(--font-display);font-size:22px;color:#fff}
.yacht-card .card-awaiting small{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.55)}
/* Hero placeholder for yachts awaiting photography */
.yacht-hero .photo.yh-awaiting{background:linear-gradient(160deg,#1a2659 0%,#243475 55%,#187ac5 100%);display:flex;align-items:center;justify-content:center}
.yh-awaiting-note{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.5)}
/* Technical details — registration figures, shown under the layout plan */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: clamp(28px, 3vw, 40px); }
.tech-grid .t { background: var(--paper); padding: 18px 20px; }
.tech-grid .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.tech-grid .v { margin-top: 6px; font-size: 15px; color: var(--ink); }
.tech-note { margin-top: 14px; font-size: 13px; color: var(--ink-muted); }
/* Low-resolution builder plans: show at native size rather than upscaling. */
.layout-figure.native img { width: auto; max-width: 100%; }

/* ---- Amenities ---- */
.yacht-amenities { background: var(--paper); }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-strong);
  border-left: 1px solid var(--hairline);
}
.amenities-grid .item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 28px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.amenities-grid .item .tick {
  font-family: var(--font-body);
  color: var(--capri);
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1.4;
}
.amenities-grid .item .a-name {
  font-size: 15px;
  line-height: 1.4;
  color: var(--navy);
}
.amenities-grid .item .a-name small {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* ---- Rate card ---- */
.yacht-rates { background: var(--paper-deep); }
.ratecard {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.ratecard th, .ratecard td {
  text-align: left;
  padding: 18px 28px;
  border-bottom: 1px solid var(--hairline);
}
.ratecard thead th {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ratecard tbody .season {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--navy);
}
.ratecard tbody .period { font-size: 14px; color: var(--ink-muted); }
.ratecard tbody .rate {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
}
.ratecard tbody tr:last-child td { border-bottom: 0; }
.ratecard tbody tr.base { background: rgba(24, 122, 197, 0.07); }
.ratecard tbody tr.base .tag {
  font-family: var(--font-mark);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: var(--capri);
  margin-left: 12px;
  vertical-align: middle;
}
.ratecard tbody tr.closed .season,
.ratecard tbody tr.closed .rate { color: var(--ink-muted); opacity: 0.7; }
.ratecard tbody tr.closed .rate {
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rate-note {
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 76ch;
}

/* ---- Yacht CTA ---- */
.yacht-cta { background: var(--navy); color: var(--paper); text-align: center; }
.yacht-cta .eyebrow { color: var(--paper); opacity: 0.7; display: block; margin-bottom: 24px; }
.yacht-cta h2 {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  max-width: 20ch;
  margin: 0 auto 18px;
}
.yacht-cta h2 em { font-style: italic; font-weight: 500; }
.yacht-cta p {
  color: var(--paper);
  opacity: 0.72;
  max-width: 52ch;
  margin: 0 auto 44px;
  font-size: 16px;
  line-height: 1.6;
}
.yacht-cta .ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---- Comfort Pack 'not included' marker ---- */
.amenities-grid .item.excl .tick { color: var(--ink-muted); }
.amenities-grid .item.excl .a-name { color: var(--ink-muted); }

/* ---- Pack / deposit callout under the rate card ---- */
.pack-note {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--hairline);
}
.pack-note .pn .k {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 6px;
}
.pack-note .pn .vv { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--navy); }
.pack-note .pn .vv small { font-size: 13px; color: var(--ink-muted); font-family: var(--font-body); }

/* ---- Good-to-know terms grid ---- */
.yacht-terms { background: var(--paper); }
.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-strong);
}
.terms-grid .t {
  padding: 28px 36px 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.terms-grid .t .k {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.terms-grid .t .v { font-size: 16px; line-height: 1.55; color: var(--navy); }
@media (max-width: 900px) {
  .terms-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .terms-grid { grid-template-columns: 1fr; }
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .yacht-story .grid { grid-template-columns: 1fr; gap: 36px; }
  .yacht-story .lhs { position: static; }
}
@media (max-width: 900px) {
  .yspec .row { grid-template-columns: repeat(2, 1fr); }
  .yspec .col { border-bottom: 1px solid var(--hairline); }
  .yspec .col:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .yspec .col:nth-child(even) { border-right: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .photo.lead { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .yh-row { gap: 24px; }
  .yh-price { text-align: left; }
  .yh-price .cta-row { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .amenities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .photo.lead { grid-column: span 1; }
  .ratecard th, .ratecard td { padding: 14px 16px; }
}

/* =============================================================
   JOURNAL — index listing + article pages
   ============================================================= */

/* ---- Journal index hero ---- */
.journal-hero {
  background: var(--paper-deep);
  padding: clamp(80px, 9vw, 140px) 0 clamp(56px, 6vw, 84px);
  border-bottom: 1px solid var(--hairline);
}
.journal-hero .inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.journal-hero .eyebrow { display: block; margin-bottom: 26px; }
.journal-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--navy);
  max-width: 16ch;
}
.journal-hero h1 em { font-style: italic; font-weight: 500; }
.journal-hero p {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ---- Journal listing ---- */
.journal-list { background: var(--paper); padding: clamp(64px, 7vw, 110px) 0; }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 48px;
}
.post-card { display: flex; flex-direction: column; }
.post-card.feature { grid-column: 1 / -1; }
.post-card .photo { aspect-ratio: 16 / 10; margin-bottom: 26px; }
.post-card.feature .photo { aspect-ratio: 21 / 9; }
.post-card .kicker {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--capri);
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.post-card .kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--hairline-strong); }
.post-card .kicker .date { color: var(--ink-muted); }
.post-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--navy);
  max-width: 22ch;
}
.post-card.feature h2 { font-size: clamp(32px, 4vw, 56px); max-width: 18ch; }
.post-card h2 em { font-style: italic; font-weight: 500; }
.post-card p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 52ch;
}
.post-card .more {
  margin-top: 20px;
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.2s;
}
.post-card .more::after { content: "→"; font-family: var(--font-body); }
.post-card:hover .more { gap: 15px; }
.post-card.soon { opacity: 0.62; }
.post-card.soon .photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
}
.post-card.soon .photo span {
  font-family: var(--font-mark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Article ---- */
.article-hero {
  position: relative;
  height: clamp(460px, 64vh, 680px);
  min-height: 460px;
  overflow: hidden;
  background: var(--navy);
}
.article-hero .photo { position: absolute; inset: 0; }
.article-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,22,56,0.32) 0%, rgba(15,22,56,0.05) 36%, rgba(15,22,56,0.55) 84%, rgba(15,22,56,0.74) 100%);
}
.article-hero .inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1480px;
  margin: 0 auto;
  left: 0; right: 0;
  padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(48px, 5vw, 72px);
}
.article-hero .back {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.article-hero .back::before { content: "←"; font-family: var(--font-body); }
.article-hero .kicker {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.92;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.article-hero .kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--paper); opacity: 0.6; }
.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--paper);
  max-width: 20ch;
}
.article-hero h1 em { font-style: italic; font-weight: 500; }

.article-body { background: var(--paper); padding: clamp(64px, 7vw, 104px) 0; }
.article-body .col {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-body .lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 40px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.14;
  color: var(--navy);
  margin: 48px 0 18px;
  letter-spacing: -0.005em;
}
.article-body h2 em { font-style: italic; }
.article-body p {
  font-size: 17px;
  line-height: 1.8;
  color: #36405c;
  margin-bottom: 22px;
}
.article-body p strong { color: var(--navy); font-weight: 600; }
.article-body .pull {
  margin: 44px 0;
  padding-left: 30px;
  border-left: 2px solid var(--capri);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.3;
  color: var(--navy);
}
.article-body .compare {
  margin: 40px 0;
  border-top: 1px solid var(--hairline-strong);
}
.article-body .compare .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
}
.article-body .compare .row > div { padding: 20px 24px 20px 0; }
.article-body .compare .row > div:first-child { border-right: 1px solid var(--hairline); padding-left: 24px; }
.article-body .compare .head {
  font-family: var(--font-mark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
}
.article-body .compare .head.abaco { color: var(--capri); }
.article-body .compare .head.nassau { color: var(--ink-muted); }
.article-body .compare .row span {
  font-size: 15px;
  line-height: 1.5;
  color: #36405c;
  display: block;
}
.article-body .endnote {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.article-body .endnote em { font-style: italic; }
.article-cta {
  background: var(--navy);
  color: var(--paper);
  text-align: center;
  padding: clamp(64px, 7vw, 104px) 0;
}
.article-cta .eyebrow { color: var(--paper); opacity: 0.7; display: block; margin-bottom: 22px; }
.article-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  color: var(--paper);
  max-width: 18ch;
  margin: 0 auto 18px;
}
.article-cta h2 em { font-style: italic; }
.article-cta p {
  color: var(--paper);
  opacity: 0.72;
  max-width: 50ch;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.6;
}
.article-cta .ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .journal-grid { grid-template-columns: 1fr; gap: 48px; }
  .article-body .compare .row { grid-template-columns: 1fr; }
  .article-body .compare .row > div:first-child { border-right: 0; border-bottom: 1px solid var(--hairline); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===== Mobile refinements ===== */
html, body { overflow-x: hidden; }
@media (max-width: 900px) {
  /* Two-column section heads are far too narrow on a phone — stack them. */
  .section-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-head .rhs p { max-width: none; }
  .yacht-hero { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 78vh; }
  .article-hero { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 72vh; }
  .layout-figure { padding: 16px; }
}
@media (max-width: 600px) {
  .yspec .col { padding: 26px 14px; }
  .ratecard th:nth-child(2), .ratecard td.period { font-size: 13px; }
  .yacht-hero, .article-hero { aspect-ratio: 3 / 4; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
}
