/* ==========================================================================
   Sunset & Sails — Configurator Design System
   Mobile-first (375px base). Desktop enhancements at 768px+.
   ========================================================================== */

/* ── Google Fonts import ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ───────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --c-navy:        #0A1628;
  --c-navy-soft:   #112040;
  --c-ocean:       #1B4F72;
  --c-ocean-light: #2E86C1;
  --c-sunset:      #E8773A;
  --c-sunset-deep: #C45E22;
  --c-gold:        #D4A574;
  --c-gold-light:  #F0C890;
  --c-cream:       #F8F4EE;
  --c-cream-dark:  #EDE5D8;
  --c-white:       #FFFFFF;
  --c-ink:         #1A2332;
  --c-ink-soft:    #4A5A6A;
  --c-ink-faint:   #8A9BAA;
  --c-line:        #D0DCE8;
  --c-success:     #2E8B57;
  --c-danger:      #C0392B;

  /* Semantic */
  --c-bg:         var(--c-navy);
  --c-surface:    var(--c-navy-soft);
  --c-accent:     var(--c-sunset);
  --c-accent-dk:  var(--c-sunset-deep);
  --c-text:       var(--c-white);
  --c-text-soft:  rgba(255,255,255,.70);
  --c-text-faint: rgba(255,255,255,.42);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-md:   1rem;      /* 16px — min for iOS no-zoom */
  --fs-lg:   1.125rem;  /* 18px */
  --fs-xl:   1.375rem;  /* 22px */
  --fs-2xl:  1.75rem;   /* 28px */
  --fs-3xl:  2.25rem;   /* 36px */
  --fs-4xl:  3rem;      /* 48px */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* Shape */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.20);
  --shadow:    0 8px 24px rgba(0,0,0,.30);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.45);

  /* Motion */
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.4,0,1,1);
  --ease:      cubic-bezier(.4,0,.2,1);
  --duration:  320ms;
  --duration-fast: 180ms;

  /* Layout */
  --progress-h: 4px;
  --nav-h:      56px;         /* bottom nav bar height on mobile */
  --max-w:      480px;        /* max content width (card) */
  --safe-b:     env(safe-area-inset-bottom, 0px);
  --safe-t:     env(safe-area-inset-top, 0px);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  background: var(--c-navy);
  color: var(--c-white);
  min-height: 100%;
  overflow: hidden;               /* full-viewport step layout */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: var(--fs-md); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Viewport wrapper ────────────────────────────────────────────────────── */
#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--progress-h);
  background: rgba(255,255,255,.12);
  z-index: 100;
  display: flex;
  gap: 2px;
  padding-top: var(--safe-t);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease);
}

#progress-bar.visible { opacity: 1; }

.progress-segment {
  flex: 1;
  height: var(--progress-h);
  background: rgba(255,255,255,.18);
  transition: background var(--duration) var(--ease);
  border-radius: 2px;
}

.progress-segment.done    { background: var(--c-gold); }
.progress-segment.active  { background: var(--c-sunset); }

/* ── Step panels ─────────────────────────────────────────────────────────── */
.step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: calc(72px + var(--safe-b)); /* room for fixed nav — steps with pills get extra via JS class */

  /* hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease-out);
  will-change: transform, opacity;
}

.step.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.step.leaving {
  opacity: 0;
  transform: translateX(-60px);
  pointer-events: none;
}

/* ── Step content wrapper ────────────────────────────────────────────────── */
.step-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--sp-10) + var(--progress-h)) var(--sp-6) var(--sp-6);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ── Step navigation footer ──────────────────────────────────────────────── */
.step-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-6) calc(var(--sp-4) + var(--safe-b));
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.08);
}

.step-nav-buttons {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
}

/* When nav has no pills, buttons sit directly in the nav */
.step-nav:not(.step-nav--with-pills) {
  flex-direction: row;
  align-items: center;
  gap: var(--sp-4);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;             /* touch target */
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: .02em;
  transition:
    background var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease),
    opacity var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--c-sunset);
  color: var(--c-white);
  flex: 1;
  font-size: var(--fs-lg);
  min-height: 56px;
  box-shadow: 0 4px 20px rgba(232,119,58,.40);
}

.btn-primary:hover   { background: var(--c-sunset-deep); }
.btn-primary:disabled {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.35);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--c-text-soft);
  min-width: 52px;
  padding: var(--sp-3);
  border-radius: var(--radius);
}

.btn-ghost:hover { background: rgba(255,255,255,.14); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.25);
  color: var(--c-white);
}

.btn-outline:hover { border-color: var(--c-sunset); color: var(--c-sunset); }

/* CTA hero — landing only */
.btn-hero {
  min-height: 64px;
  font-size: var(--fs-xl);
  padding: var(--sp-4) var(--sp-10);
  border-radius: var(--radius-pill);
  background: var(--c-sunset);
  color: var(--c-white);
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow:
    0 8px 32px rgba(232,119,58,.55),
    0 0 0 1px rgba(255,255,255,.10) inset;
  width: 100%;
  max-width: 320px;
  transition:
    transform var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-hero:hover {
  background: var(--c-sunset-deep);
  box-shadow: 0 12px 40px rgba(232,119,58,.65);
}

.btn-hero:active { transform: scale(.96); }

/* ── Typography helpers ──────────────────────────────────────────────────── */
.step-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-sunset);
  margin-bottom: var(--sp-2);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-white);
  margin-bottom: var(--sp-3);
}

.step-subtitle {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
}

/* ── Choice cards ────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.card-grid.single-col { grid-template-columns: 1fr; }

.card-grid.single-col .card-choice {
  flex-direction: row;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
}

.card-grid.single-col .card-choice .card-icon {
  flex-shrink: 0;
}

.card-grid.single-col .card-choice .card-icon i {
  font-size: 2.4rem;
}

.card-grid.single-col .card-choice > div {
  flex: 1;
  text-align: left;
}

.card-choice {
  position: relative;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease),
    background  var(--duration-fast) var(--ease),
    transform   var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

.card-choice:active { transform: scale(.97); }

.card-choice.selected {
  border-color: var(--c-sunset);
  background: rgba(232,119,58,.14);
  box-shadow: 0 0 0 1px var(--c-sunset) inset, 0 4px 20px rgba(232,119,58,.20);
}

.card-choice .card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.card-choice .card-icon i {
  font-size: 1.8rem;
  color: var(--c-text-soft);
  transition: color var(--duration-fast) var(--ease);
}

.card-choice.selected .card-icon i {
  color: var(--c-sunset);
}

.card-choice .card-label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-white);
  line-height: 1.3;
}

.card-choice .card-desc {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  line-height: 1.45;
}

.card-choice .card-check {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  background: transparent;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-choice.selected .card-check {
  background: var(--c-sunset);
  border-color: var(--c-sunset);
}

.card-choice .card-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease);
}

.card-choice.selected .card-check::after { opacity: 1; }

/* ── Toggle group (Barcă step) ───────────────────────────────────────────── */
/* ── Boat type comparison cards ──────────────────────────────────────────── */
.boat-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.boat-type-card {
  position: relative;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  cursor: pointer;
  text-align: left;
  transition:
    border-color var(--duration-fast) var(--ease),
    background   var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.boat-type-card.active {
  border-color: var(--c-sunset);
  background: rgba(232,119,58,.12);
  box-shadow: 0 0 0 1px var(--c-sunset) inset, 0 4px 20px rgba(232,119,58,.15);
}

.boat-type-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.boat-type-card .boat-type-header {
  align-items: center;
  text-align: center;
}

.boat-type-header i {
  font-size: 2rem;
  color: var(--c-text-soft);
  transition: color var(--duration-fast) var(--ease);
}

.boat-type-custom-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity var(--duration-fast) var(--ease);
}

.boat-type-card.active .boat-type-custom-icon {
  opacity: 1;
}

.boat-type-card.active .boat-type-header i {
  color: var(--c-sunset);
}

.boat-type-name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-white);
}

.boat-type-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: 0;
  margin: 0;
}

.boat-type-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  line-height: 1.4;
}

.boat-type-features li i {
  font-size: 0.85rem;
  color: var(--c-sunset);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Confort cards ───────────────────────────────────────────────────────── */
.confort-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.confort-card {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease),
    background   var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.confort-card.active {
  border-color: var(--c-sunset);
  background: rgba(232,119,58,.12);
  box-shadow: 0 0 0 1px var(--c-sunset) inset, 0 4px 20px rgba(232,119,58,.15);
}

.confort-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-1);
}

.confort-name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-white);
}

.confort-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-sunset);
  background: rgba(232,119,58,.12);
  border: 1px solid rgba(232,119,58,.30);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}

.confort-sub {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-soft);
  margin-bottom: var(--sp-2);
}

.confort-desc {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  line-height: 1.55;
}

/* ── Toggle group ─────────────────────────────────────────────────────────── */
.toggle-group {
  display: flex;
  gap: var(--sp-2);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: var(--sp-1);
}

.toggle-btn {
  flex: 1;
  min-height: 44px;
  border-radius: calc(var(--radius) - 2px);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-soft);
  transition:
    background var(--duration-fast) var(--ease),
    color      var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.toggle-btn.active {
  background: var(--c-sunset);
  color: var(--c-white);
  font-weight: 600;
}

/* ── Range slider ────────────────────────────────────────────────────────── */
.range-wrap { position: relative; padding: var(--sp-4) 0; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.15);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-sunset);
  box-shadow: 0 2px 12px rgba(232,119,58,.50);
  cursor: grab;
  transition: transform var(--duration-fast) var(--ease);
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
  cursor: grabbing;
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-sunset);
  box-shadow: 0 2px 12px rgba(232,119,58,.50);
  border: none;
  cursor: grab;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
}

.range-value {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: var(--sp-2);
}

/* ── Form inputs ─────────────────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-soft);
}

.field input {
  width: 100%;
  height: 54px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 0 var(--sp-5);
  color: var(--c-white);
  font-size: var(--fs-md);          /* 16px — prevents iOS zoom */
  transition:
    border-color var(--duration-fast) var(--ease),
    background   var(--duration-fast) var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.field input::placeholder { color: var(--c-text-faint); }

.field input:focus {
  border-color: var(--c-sunset);
  background: rgba(232,119,58,.08);
}

.field input.error { border-color: var(--c-danger); }

.field .field-error {
  font-size: var(--fs-xs);
  color: #FF7B72;
  min-height: 16px;
}

/* ── Checkbox ────────────────────────────────────────────────────────────── */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checkbox-row input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.25);
  background: transparent;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
  position: relative;
  margin-top: 1px;
}

.checkbox-row input[type="checkbox"]:checked {
  background: var(--c-sunset);
  border-color: var(--c-sunset);
}

.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  line-height: 1.5;
}

.checkbox-label a { color: var(--c-gold); text-decoration: underline; }

/* ── Info / price box ────────────────────────────────────────────────────── */
.info-box {
  background: rgba(212,165,116,.10);
  border: 1px solid rgba(212,165,116,.25);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-4);
}

.info-box .info-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-2);
}

.info-box .info-price {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--c-gold-light);
  line-height: 1;
}

.info-box .info-note {
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
  margin-top: var(--sp-2);
}

/* ── Recommendation badge ────────────────────────────────────────────────── */
.recommend-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(46,134,193,.20);
  border: 1px solid rgba(46,134,193,.35);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: #7EC8E3;
  margin-top: var(--sp-4);
  transition: opacity var(--duration) var(--ease);
}

/* ── Season list (Step 2) ────────────────────────────────────────────────── */
.season-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
}

.season-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: opacity .2s ease;
}
.season-block.season-hidden {
  display: none;
}

/* Season context notes (e.g. Seychelles monsoon info) */
.season-context-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,.04);
  border-left: 2px solid rgba(232,119,58,.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: calc(var(--sp-1) * -1);
}
.season-context-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-sunset);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.season-context-text {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}

.season-btn {
  width: 100%;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.10);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-text-soft);
  text-align: left;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.season-btn.partial {
  border-color: rgba(232,119,58,.50);
  color: var(--c-white);
}

.season-btn.selected {
  background: rgba(232,119,58,.18);
  border-color: var(--c-sunset);
  color: var(--c-white);
}

.season-months {
  display: flex;
  gap: var(--sp-2);
}

/* ── Month pills ─────────────────────────────────────────────────────────── */
.month-pill {
  flex: 1;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.10);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.month-pill.selected {
  background: var(--c-sunset);
  border-color: var(--c-sunset);
  color: var(--c-white);
  font-weight: 600;
}

/* ── Duration buttons ────────────────────────────────────────────────────── */
.duration-group {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.duration-btn {
  flex: 1;
  min-width: 72px;
  min-height: 48px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.10);
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.duration-btn.selected {
  background: rgba(232,119,58,.18);
  border-color: var(--c-sunset);
  color: var(--c-white);
  font-weight: 600;
}

/* ── Boat recommendation card ────────────────────────────────────────────── */
/* ── Two-boats toggle ────────────────────────────────────────────────────── */
.two-boats-btn {
  width: 100%;
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text-soft);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.two-boats-btn.active {
  background: rgba(232,119,58,.18);
  border-color: var(--c-sunset);
  color: var(--c-white);
}

.two-boats-note {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-sunset);
  text-align: center;
}

.boat-rec-card {
  background: linear-gradient(135deg, rgba(27,79,114,.50), rgba(10,22,40,.80));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: opacity var(--duration) var(--ease);
}

.boat-rec-icon {
  font-size: 2.5rem;
}

.boat-rec-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--c-ocean-light);
}

.boat-rec-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-white);
}

.boat-rec-why {
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
  line-height: 1.5;
}

/* ── Boat config card (step 5) ───────────────────────────────────────────── */
.boat-config-card {
  background: linear-gradient(135deg, rgba(27,79,114,.40), rgba(10,22,40,.70));
  border: 1px solid rgba(46,134,193,.25);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-top: var(--sp-5);
  text-align: center;
}

.boat-config-icon {
  font-size: 3rem;
  margin-bottom: var(--sp-3);
}

.boat-config-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: var(--sp-2);
}

.boat-config-specs {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}

.boat-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}

.boat-spec-val {
  font-weight: 600;
  color: var(--c-gold-light);
  font-size: var(--fs-lg);
}

.boat-spec-label {
  font-size: var(--fs-xs);
  color: var(--c-text-faint);
}

/* ── Success screen ──────────────────────────────────────────────────────── */
#step-success.active {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-navy);
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  max-width: 360px;
  width: 100%;
}

.success-check-wrap {
  margin-bottom: 32px;
}

.success-check-svg {
  width: 80px;
  height: 80px;
}

/* Circle draws itself */
.success-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.6s cubic-bezier(.4,0,.2,1);
}

/* Tick draws itself after circle */
.success-tick {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset 0.4s cubic-bezier(.4,0,.2,1) 0.55s;
}

/* Triggered when step becomes active */
#step-success.active .success-circle { stroke-dashoffset: 0; }
#step-success.active .success-tick   { stroke-dashoffset: 0; }

.success-title {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 12px;
  font-family: 'Playfair Display', Georgia, serif;
}

.success-sub {
  font-size: 0.95rem;
  color: var(--c-text-soft);
  line-height: 1.65;
  margin-bottom: 40px;
}

.success-back-btn {
  align-self: center;
  min-width: 200px;
}

/* ── Offer card ──────────────────────────────────────────────────────────── */
#step-offer {
  transform: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Offer screen — full screen visual ───────────────────────────────────── */
#step-offer {
  overflow: hidden;
  padding-bottom: 0;
}

.offer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('assets/croatia-bg.webp');
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

#step-offer.active .offer-bg {
  transform: scale(1);
}

.offer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,.55) 0%,
    rgba(10,22,40,.20) 35%,
    rgba(10,22,40,.60) 65%,
    rgba(10,22,40,.92) 100%
  );
}

.offer-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--sp-8) + var(--safe-t)) var(--sp-6) calc(var(--sp-8) + var(--safe-b));
}

.offer-top {
  text-align: center;
}

.offer-brand {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-3);
}

.offer-dest-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 10vw, 3.2rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.1;
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 20px rgba(0,0,0,.40);
}

.offer-meta {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.70);
  line-height: 1.6;
}

/* Price hero */
.offer-price-hero {
  text-align: center;
  background: rgba(10,22,40,.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212,165,116,.30);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-6);
}

.offer-price-hero-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
}

.offer-price-hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.offer-price-hero-col { flex: 1; }

.offer-price-hero-sep {
  width: 1px;
  height: 52px;
  background: rgba(212,165,116,.30);
  flex-shrink: 0;
}

.offer-price-hero-val {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 7vw, 2.25rem);
  font-weight: 700;
  color: var(--c-gold-light);
  line-height: 1;
  white-space: nowrap;
}

.offer-price-hero-per {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.50);
  margin-top: var(--sp-1);
}

.offer-price-hero-inc-label {
  font-size: var(--fs-xs);
  color: rgba(212,165,116,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(212,165,116,.15);
  margin-bottom: var(--sp-1);
}
.offer-price-hero-inc {
  font-size: var(--fs-xs);
  color: rgba(212,165,116,.75);
  line-height: 1.5;
}
.offer-price-note {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
  margin-top: var(--sp-3);
  font-style: italic;
}

/* Anywhere — grouped price ranges */
.offer-price-dest-sub {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
  margin-top: calc(var(--sp-1) * -1);
  margin-bottom: var(--sp-2);
}
.offer-price-range-from {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.4);
  font-style: italic;
  margin-bottom: 2px;
}

/* Multi-destination price blocks */
.offer-price-dest-block {
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.offer-price-dest-block--border {
  border-top: 1px solid rgba(212,165,116,.2);
  padding-top: var(--sp-3);
}
.offer-price-dest-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: rgba(212,165,116,.8);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--sp-2);
  text-align: center;
}

/* Action buttons */
.offer-actions {
  display: flex;
  gap: var(--sp-3);
}

.offer-btn {
  flex: 1;
  min-height: 56px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease);
}

.offer-btn:active { transform: scale(.97); }

.offer-btn--share {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}

.offer-btn--save {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,.25);
}

/* ── Preloader ───────────────────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* fade-out transition triggered by JS */
  transition: opacity .6s var(--ease), visibility .6s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  animation: preloader-enter .7s var(--ease-out) both;
}

@keyframes preloader-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-img {
  width: clamp(120px, 38vw, 150px);
  height: auto;
  animation: preloader-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(212,165,116,.25));
}

@keyframes preloader-pulse {
  0%, 100% { opacity: 1;   filter: drop-shadow(0 0 0px  rgba(212,165,116,.10)); }
  50%       { opacity: .80; filter: drop-shadow(0 0 28px rgba(212,165,116,.50)); }
}

/* Loading bar */
.preloader-bar-wrap {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,.10);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-sunset));
  border-radius: var(--radius-pill);
  animation: preloader-fill 2.8s var(--ease-out) .2s forwards;
}

@keyframes preloader-fill {
  0%   { width: 0%; }
  40%  { width: 60%; }
  70%  { width: 80%; }
  100% { width: 100%; }
}

/* Wave bottom */
.preloader-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
}

.preloader-wave svg {
  width: 100%;
  height: 100%;
}

/* ── Landing (Step 0) ────────────────────────────────────────────────────── */
#step-0 {
  transform: none;
  background: #061020;   /* fallback if video fails */
  overflow: hidden;
}

/* Video fullscreen */
.landing-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Gradient overlay — heavier at top + bottom for logo & CTA readability */
.landing-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(6,16,32,.75)  0%,        /* top — logo area */
      rgba(6,16,32,.20)  35%,       /* mid — breathe, video shows */
      rgba(6,16,32,.20)  55%,
      rgba(6,16,32,.72)  78%,       /* bottom — CTA area */
      rgba(6,16,32,.96) 100%
    );
}

/* Main layout */
.landing-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding:
    calc(var(--sp-8) + var(--safe-t))
    var(--sp-6)
    calc(var(--sp-4) + var(--safe-b));
}

/* Logo — top center */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}

.landing-logo-img {
  width: clamp(100px, 30vw, 140px);
  height: auto;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,.55));
}

/* Center block — tagline + sub */
.landing-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  margin: auto 0;          /* vertical center in remaining space */
  padding: var(--sp-8) 0;
}

.landing-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 11.2vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--c-white);
  letter-spacing: -.02em;
  text-shadow: 0 4px 32px rgba(0,0,0,.55);
}

.landing-sub {
  font-size: var(--fs-md);
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 280px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

/* Bottom block — badges + CTA */
.landing-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  padding-bottom: calc(var(--sp-10) + var(--safe-b)); /* space above waves */
}

.landing-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255,255,255,.80);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px rgba(74,222,128,.7);
}

/* ── Wave animation ──────────────────────────────────────────────────────── */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  overflow: hidden;
  pointer-events: none;
}

.wave-svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
}

.wave-1 {
  animation: wave-move 8s linear infinite;
  opacity: .5;
}

.wave-2 {
  animation: wave-move 12s linear infinite reverse;
  opacity: .3;
  bottom: -10px;
}

.wave-3 {
  animation: wave-move 6s linear infinite;
  opacity: .15;
  bottom: -20px;
}

@keyframes wave-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ── Globe step ──────────────────────────────────────────────────────────── */
#step-1 {
  padding-bottom: calc(160px + var(--safe-b)); /* combined nav + pills footer */
}

#globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.globe-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.dest-pills-wrap {
  padding: var(--sp-3) 0 var(--sp-2);
  width: 100%;
}

.dest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.dest-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  color: var(--c-text-soft);
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
  white-space: nowrap;
}

.dest-pill:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: var(--c-white);
}

.dest-pill.selected {
  background: rgba(232,119,58,.18);
  border-color: var(--c-sunset);
  color: var(--c-white);
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-auto  { margin-top: auto; }
.text-center { text-align: center; }

/* ── Loader spinner ──────────────────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--c-sunset);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Tablet / desktop enhancements (768px+) ──────────────────────────────── */
@media (min-width: 768px) {
  .step-inner {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .step-nav {
    max-width: 100%;
  }

  .step-title  { font-size: var(--fs-4xl); }
  .landing-tagline { font-size: 2.4rem; max-width: 420px; }
  .landing-sub { max-width: 380px; }

  .card-grid   { grid-template-columns: 1fr 1fr; }

  .offer-card  { margin: var(--sp-8) auto; max-width: 480px; }

  #globe-canvas { height: 100%; }
}

@media (min-width: 1024px) {
  body { overflow: auto; }

  #app {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--sp-8);
  }

  .step {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    display: none;
  }

  .step.active { display: flex; }

  #step-0 {
    min-height: 100vh;
    border-radius: var(--radius-xl);
    overflow: hidden;
  }
}

/* ── Cookie Banner ───────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 30, 53, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 500px;
  width: calc(100% - 40px);
  z-index: 9999;
  animation: cookieSlideUp 0.4s ease;
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#cookie-banner span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  flex: 1;
}

#cookie-banner a {
  color: var(--c-gold);
  text-decoration: none;
}

#cookie-banner a:hover {
  text-decoration: underline;
}

#cookie-ok {
  background: transparent;
  border: 1px solid rgba(212, 165, 116, 0.4);
  color: var(--c-gold);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

#cookie-ok:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--c-gold);
}

