:root {
  /* Marine palette — deep navy + saturated teal + warm sand (images inlined as base64) */
  --navy: #0B2545;
  --navy-light: #14365E;
  --navy-deep: #061B36;
  --teal: #2E86AB;
  --teal-dark: #1F6485;
  --gold: #E6D3A3;          /* warm sand (kept name for legacy class hooks) */
  --gold-dark: #B8985C;     /* darker sand for contrast */
  --cream: #F4F7FA;         /* sea-foam white */
  --cream-warm: #E5EEF4;    /* soft sky tint */
  --sand: #D9C99B;
  --ink: #0E1B2C;
  --ink-soft: #4A5A70;
  --line: rgba(11, 37, 69, 0.12);
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.05), 0 2px 6px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 4px 14px rgba(11, 37, 69, 0.10), 0 10px 28px rgba(46, 134, 171, 0.08);
  --shadow-lg: 0 14px 36px rgba(11, 37, 69, 0.14), 0 28px 72px rgba(11, 37, 69, 0.10);
}

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

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
}

.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-feature-settings: "ss01", "ss02";
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.logo-mark {
  width: 32px; height: 32px;
  position: relative;
}

.logo-mark svg { width: 100%; height: 100%; }

.logo-text {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.logo-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-dark);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

.nav-links a:hover { color: var(--navy); }

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: 0.02em;
}

.btn-gold:hover { background: var(--gold-dark); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-ghost:hover { border-color: var(--navy); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 96px 32px 80px;
  background: linear-gradient(135deg, rgba(6, 27, 54, 0.82) 0%, rgba(11, 37, 69, 0.62) 45%, rgba(11, 37, 69, 0.25) 100%),
              url('../images/deck-ocean.jpg') center/cover no-repeat;
  color: var(--cream);
  overflow: hidden;
}

.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold-dark);
}

.hero .eyebrow {
  color: var(--gold);
}
.hero .eyebrow::before { background: var(--gold); }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(11, 37, 69, 0.35);
}

.hero h1 em {
  font-style: italic;
  color: #8FC4DC;
}

.hero p.lead {
  font-size: 18px;
  color: rgba(244, 247, 250, 0.92);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.6;
  text-shadow: 0 1px 14px rgba(11, 37, 69, 0.4);
}

.hero-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.path-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.path-card::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 18px;
  color: var(--gold-dark);
  opacity: 0;
  transform: translateX(-6px);
  transition: all .25s ease;
}

.path-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.path-card:hover::after { opacity: 1; transform: translateX(0); }

.path-card .path-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.path-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.path-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* hero visual — illustrated cabin chain (glass card on photo bg) */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(244, 247, 250, 0.94) 0%, rgba(229, 238, 244, 0.90) 100%);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 50px rgba(6, 27, 54, 0.35), 0 4px 12px rgba(6, 27, 54, 0.15);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(46, 134, 171, 0.10) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(230, 211, 163, 0.14) 0%, transparent 50%);
}

.hero-visual-label {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-chain {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-chain-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-chain-row .cabin-mini {
  flex: 1;
  height: 56px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--navy);
  position: relative;
}

.hero-chain-row .cabin-mini.balcony {
  background: white;
}

.hero-chain-row .cabin-mini.balcony::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--teal);
  opacity: 0.25;
  border-radius: 8px 8px 0 0;
}

.hero-chain-row .conn-door,
.hero-chain-row .conn-balcony {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
}

.hero-chain-row .conn-door svg { width: 18px; height: 18px; color: var(--navy); }
.hero-chain-row .conn-balcony { color: var(--gold-dark); font-size: 14px; letter-spacing: -2px; }

.hero-chain-caption {
  margin-top: 16px;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}

/* ============ FILTER BAR ============ */
.filter-section {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 32px;
  position: sticky;
  top: 73px;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(11, 37, 69, 0.04);
}

.filter-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.filter-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
}

.filter-group select,
.filter-group input[type=number] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-family: inherit;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%230B2545' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color .15s ease;
}

.filter-group select:focus,
.filter-group input[type=number]:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-group input[type=number] {
  background-image: none;
}

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--cream);
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.chip.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.chip:hover:not(.active) { border-color: var(--navy); }

.filter-actions {
  display: flex;
  gap: 8px;
}

/* ============ RESULTS ============ */
.results-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.results-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.results-header h2 em {
  font-style: italic;
  color: var(--teal);
}

.results-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

.results-meta strong {
  color: var(--navy);
  font-weight: 600;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ============ CLUSTER CARD ============ */
.cluster-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s ease;
}

.cluster-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 37, 69, 0.2);
}

.cluster-card.premium {
  border-color: var(--gold);
  background: linear-gradient(to right, rgba(230, 211, 163, 0.04), white 30%);
}

.cluster-card-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
}

.cluster-main {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}

.cluster-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.cluster-title-wrap h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.cluster-meta {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 16px;
  align-items: center;
}

.cluster-meta span { display: flex; align-items: center; gap: 6px; }
.cluster-meta .dot { width: 3px; height: 3px; background: var(--line); border-radius: 50%; }

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-door {
  background: rgba(46, 134, 171, 0.12);
  color: var(--teal);
}

.badge-balcony {
  background: rgba(230, 211, 163, 0.18);
  color: var(--gold-dark);
}

.badge-premium {
  background: var(--navy);
  color: var(--gold);
}

.badge-obstructed {
  background: rgba(74, 84, 104, 0.12);
  color: var(--ink-soft);
}

/* cabin chain visualization */
.cabin-chain {
  margin-top: 18px;
  padding: 20px;
  background: var(--cream);
  border-radius: 12px;
  position: relative;
  overflow-x: auto;
}

.cabin-chain::-webkit-scrollbar { height: 6px; }
.cabin-chain::-webkit-scrollbar-track { background: transparent; }
.cabin-chain::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.cabin-chain-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-width: min-content;
}

.cabin {
  position: relative;
  flex: 0 0 64px;
  height: 80px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--navy);
  text-align: center;
  transition: all .15s ease;
}

.cabin.balcony::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 8px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  opacity: 0.4;
  border-radius: 8px 8px 0 0;
}

.cabin.oceanview::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: var(--gold);
  opacity: 0.5;
  border-radius: 8px 8px 0 0;
}

.cabin .cabin-num {
  font-size: 13px;
  font-weight: 500;
}

.cabin .cabin-cap {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 2px;
  letter-spacing: 0;
}

.cabin:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* connectors */
.conn {
  flex: 0 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  align-self: center;
  height: 60px;
}

.conn.door {
  color: var(--teal);
}

.conn.door::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: translateY(-50%);
}

.conn.door svg {
  width: 18px;
  height: 18px;
  z-index: 1;
  background: var(--cream);
  padding: 2px;
  border-radius: 4px;
}

.conn.balcony {
  color: var(--gold-dark);
}

.conn.balcony::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  border-top: 2px dashed var(--gold-dark);
  opacity: 0.7;
  transform: translateY(-50%);
}

.conn.balcony::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--cream);
  border: 1.5px solid var(--gold-dark);
  border-radius: 50%;
  z-index: 1;
}

.chain-overflow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
}

.cabin-chain-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.legend {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot-door {
  width: 14px; height: 2px;
  background: var(--teal);
}

.legend-dot-balcony {
  width: 14px; height: 0;
  border-top: 2px dashed var(--gold-dark);
}

/* cluster sidebar (capacity + CTA) */
.cluster-side {
  padding: 28px;
  background: var(--cream-warm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.capacity-display {
  text-align: center;
}

.capacity-display .cap-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

.capacity-display .cap-number {
  font-family: 'Fraunces', serif;
  font-size: 64px;
  line-height: 1;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.capacity-display .cap-number em {
  font-style: italic;
  font-size: 32px;
  color: var(--gold-dark);
  display: block;
  margin-top: 6px;
}

.capacity-display .cap-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.cluster-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cluster-cta .btn-gold { width: 100%; padding: 14px; font-size: 14px; }
.cluster-cta .btn-ghost { width: 100%; padding: 12px; font-size: 13px; }

/* ============ HOW IT WORKS ============ */
.how-section {
  background: linear-gradient(rgba(6, 27, 54, 0.88), rgba(11, 37, 69, 0.78)),
              url('../images/balconies.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--cream);
  padding: 100px 32px;
  position: relative;
}

.how-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.how-section .eyebrow {
  color: var(--gold);
}
.how-section .eyebrow::before { background: var(--gold); }

.how-section h2 {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 60px;
}

.how-section h2 em { font-style: italic; color: var(--gold); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.how-step {
  border-top: 1px solid rgba(244, 247, 250, 0.2);
  padding-top: 24px;
}

.how-step-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 12px;
}

.how-step h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 14px;
  color: rgba(244, 247, 250, 0.7);
  line-height: 1.65;
}

/* ============ SHIP BAND (before footer) ============ */
.ship-band {
  position: relative;
  background: linear-gradient(100deg, rgba(6, 27, 54, 0.72) 0%, rgba(11, 37, 69, 0.45) 55%, rgba(11, 37, 69, 0.2) 100%),
              url('../images/bow.jpg') center 30%/cover no-repeat;
  color: var(--cream);
  padding: 90px 32px;
  overflow: hidden;
}

.ship-band-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.ship-band-text { max-width: 640px; }

.ship-band .eyebrow {
  color: var(--gold);
  margin-bottom: 14px;
}
.ship-band .eyebrow::before { background: var(--gold); }

.ship-band h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(6, 27, 54, 0.4);
}

.ship-band h2 em {
  font-style: italic;
  color: #8FC4DC;
}

.ship-band .btn-gold {
  padding: 16px 32px;
  font-size: 14px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ship-band { padding: 60px 24px; }
  .ship-band-inner { gap: 28px; }
}

/* ============ AI CHAT WIDGET ============ */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.chat-fab:hover { background: var(--navy-light); transform: scale(1.05); }
.chat-fab svg { width: 22px; height: 22px; }

.chat-fab .chat-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.3); }
}

.chat-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 59;
  width: 360px;
  height: 480px;
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}

.chat-panel.open { display: flex; }

.chat-header {
  padding: 18px 20px;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
}

.chat-title {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
}

.chat-status {
  font-size: 11px;
  color: rgba(244, 247, 250, 0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-status::before {
  content: "";
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
}

.chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  opacity: 0.7;
  font-size: 20px;
}

.chat-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.chat-msg.bot {
  background: white;
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--navy);
  color: var(--cream);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px;
}

.chat-suggestion {
  font-size: 12px;
  padding: 7px 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

.chat-suggestion:hover { border-color: var(--gold); background: var(--cream-warm); }

.chat-input-bar {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  background: white;
}

.chat-input-bar input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  background: var(--cream);
}

.chat-input-bar input:focus { outline: none; border-color: var(--gold); }

.chat-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mxchat-badge {
  font-size: 10px;
  text-align: center;
  padding: 6px;
  color: var(--ink-soft);
  background: var(--cream);
  border-top: 1px solid var(--line);
}

/* ============ QUOTE MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--cream);
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  padding: 32px 40px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 10px;
  font-weight: 500;
}

.modal-header h3 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-header h3 em { font-style: italic; color: var(--teal); }

.modal-header p {
  color: var(--ink-soft);
  font-size: 14px;
}

.modal-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--cream-warm); }

.modal-body { padding: 28px 40px 40px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--navy);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--gold); }

.summary-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-box .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 4px;
  font-weight: 500;
}

.summary-box .value {
  font-family: 'Fraunces', serif;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
}

.form-submit { width: 100%; padding: 16px; font-size: 15px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--cream-warm);
  padding: 60px 32px 30px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.footer-col a:hover { color: var(--navy); }

.footer-bottom {
  max-width: 1320px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ============ MOCKUP BANNER ============ */
.mockup-banner {
  background: var(--gold);
  color: var(--navy);
  padding: 8px 32px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mockup-banner em {
  font-family: 'Fraunces', serif;
  font-style: italic;
}

@media (max-width: 980px) {
  .hero { padding: 60px 24px 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 4/3; }
  .filter-inner { grid-template-columns: 1fr 1fr; }
  .cluster-card-inner { grid-template-columns: 1fr; }
  .cluster-main { border-right: none; border-bottom: 1px solid var(--line); }
  .how-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
}
/* ============ SECTION DIVIDER (between How-it-works + Ship-band) ============ */
.section-divider {
  background: linear-gradient(to bottom, var(--cream) 0%, var(--cream-warm) 100%);
  padding: 36px 32px;
  position: relative;
}

.section-divider-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
}

.section-divider .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sand-dark, var(--gold-dark)) 50%, transparent);
  opacity: 0.6;
}

.section-divider .chain {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--navy);
}

.section-divider .chain .mini {
  width: 22px;
  height: 16px;
  border: 1px solid var(--gold-dark);
  border-radius: 3px;
  background: white;
  position: relative;
}
.section-divider .chain .mini::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  opacity: 0.5;
  border-radius: 3px 3px 0 0;
}
.section-divider .chain .link {
  width: 6px;
  height: 1px;
  background: var(--gold-dark);
}

/* Subtle drop-shadow on top of ship-band for additional separation */
.ship-band {
  box-shadow: inset 0 8px 24px -10px rgba(11, 37, 69, 0.25);
}

/* ============ HEADER — mobile nav (hamburger) ============ */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--navy);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ============ MOBILE TWEAKS ============ */
@media (max-width: 980px) {
  .hero-inner { gap: 24px; }
  .hero-right { display: none; } /* photo bg shines through on its own */
  .filter-inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .filter-actions { grid-column: 1 / -1; }
  .results-section { padding: 32px 20px 60px; }
}

@media (max-width: 720px) {
  .header-inner { padding: 14px 20px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 16px;
    display: none;
    box-shadow: 0 12px 24px rgba(11, 37, 69, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links .btn-primary { margin-top: 10px; width: 100%; }
  .nav-toggle { display: inline-flex; }

  .hero { padding: 48px 20px 40px; }
  .hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero p.lead { font-size: 16px; }
  .hero-paths { grid-template-columns: 1fr; }

  .filter-section { padding: 20px; position: static; }
  .filter-inner { grid-template-columns: 1fr; gap: 12px; }
  .filter-group select,
  .filter-group input[type=number] { font-size: 16px; } /* avoid iOS auto-zoom */

  .results-section { padding: 24px 16px 48px; }
  .results-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .results-header h2 { font-size: 24px; }

  .cluster-main { padding: 20px; }
  .cluster-top { flex-direction: column; gap: 10px; align-items: flex-start; }
  .cluster-meta { flex-wrap: wrap; row-gap: 4px; }

  /* Cluster-side: always vertical on mobile so the CTA stays visible
     and not clipped by overflow:hidden on the card. */
  .cluster-side {
    padding: 18px 20px 22px;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .capacity-display .cap-label { margin-bottom: 4px; }
  .capacity-display .cap-number { font-size: 42px; line-height: 1; }
  .capacity-display .cap-number em {
    font-size: 14px;
    display: inline;
    margin-left: 10px;
    color: var(--ink-soft);
  }
  .capacity-display .cap-sub { font-size: 11px; margin-top: 4px; }
  .cluster-cta { gap: 0; }
  .cluster-cta .btn-gold {
    width: 100%;
    padding: 13px;
    font-size: 14px;
    margin: 0;
  }
  .cabin-chain { padding: 14px; }
  .cabin { flex: 0 0 56px; height: 70px; font-size: 12px; }

  .how-section { padding: 60px 20px; background-attachment: scroll; }
  .how-section h2 { font-size: 28px; line-height: 1.15; }
  .how-grid { gap: 28px; }

  .section-divider { padding: 24px 20px; }
  .section-divider .chain .mini { width: 18px; height: 14px; }

  .ship-band { padding: 50px 20px; }
  .ship-band-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .ship-band h2 { font-size: 24px; line-height: 1.15; }
  .ship-band .btn-gold { width: 100%; padding: 14px; }

  .footer { padding: 40px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }

  .modal-header { padding: 24px 22px 18px; }
  .modal-body { padding: 20px 22px 28px; }
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 88px; }
  .chat-fab { right: 16px; bottom: 16px; }
}

/* Cabin chain on mobile: cabins on row 1, overflow badge wraps to full-width row 2 */
@media (max-width: 640px) {
  .cabin-chain {
    padding: 14px;
    overflow-x: visible; /* no horizontal scroll — let the wrap do the work */
  }
  .cabin-chain-inner {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 12px;
    column-gap: 4px;
    min-width: 0;
  }
  .cabin-chain-inner .cabin { flex: 0 0 auto; }
  .chain-overflow {
    flex: 0 0 100%;          /* full-width new row */
    margin-top: 4px;
    padding: 10px 14px;
    text-align: center;
    color: var(--navy);
    background: var(--cream-warm);
    border-radius: 10px;
    font-size: 13px;
    font-style: italic;
    font-family: 'Fraunces', serif;
  }
}
