/* ===========================================================
   Drew & Amelia — Europe + Bali 2026
   Mediterranean editorial theme
   =========================================================== */
:root {
  --sand:        #f7f1e6;
  --sand-deep:   #efe6d4;
  --paper:       #fffaf2;
  --ink:         #173042;
  --ink-soft:    #3a5366;
  --sea:         #1f6f86;
  --sea-deep:    #134657;
  --terracotta:  #c85b3c;
  --terracotta-d:#a8462c;
  --gold:        #c79a3f;
  --olive:       #7a8957;
  --line:        rgba(23,48,66,.12);
  --shadow:      0 18px 50px -22px rgba(23,48,66,.45);
  --shadow-sm:   0 8px 24px -14px rgba(23,48,66,.4);
  --r:           18px;
  --max:         1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(247,241,230,.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .2px; display: flex; align-items: center; gap: 9px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(200,91,60,.16); }
.nav-links { display: flex; gap: 26px; font-size: .82rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--terracotta); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #2a7a90 0%, #16566a 38%, #0e3b4b 70%, #0a2c3a 100%);
  color: var(--sand);
}
.hero-sun {
  position: absolute; top: 12%; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,221,150,.9), rgba(231,160,90,.35) 45%, transparent 70%);
  filter: blur(2px);
}
.hero-sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(180deg, rgba(11,46,60,0), rgba(8,38,50,.55));
}
.hero-wave { position: absolute; left: 0; right: 0; bottom: -2px; line-height: 0; }
.hero-content { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.eyebrow {
  font-size: .8rem; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(255,240,214,.78); margin-bottom: 26px; font-weight: 500;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: .98; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: #f1c27a; }
.hero .tag {
  margin-top: 26px; font-size: clamp(1rem,2.4vw,1.35rem);
  font-weight: 300; color: rgba(255,244,224,.9); letter-spacing: .01em;
}
/* ---------- Countdown ---------- */
.countdown { margin-top: 38px; }
.cd-grid { display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.cd-unit {
  background: rgba(255,250,240,.08);
  border: 1px solid rgba(255,250,240,.2);
  border-radius: 16px; padding: 16px 8px; min-width: 84px;
  backdrop-filter: blur(6px);
}
.cd-n {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1; color: #f1c27a; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(241,194,122,.3);
}
.cd-l { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,244,224,.7); margin-top: 9px; }
.cd-sep {
  align-self: center; font-family: var(--serif); font-size: clamp(1.4rem,4vw,2.4rem);
  color: rgba(241,194,122,.5); font-weight: 600; padding-bottom: 14px;
}
.cd-cap { margin-top: 16px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,244,224,.72); }

.hero-stats {
  margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero-stats .s {
  background: rgba(255,250,240,.08);
  border: 1px solid rgba(255,250,240,.18);
  border-radius: 14px; padding: 14px 22px; min-width: 120px;
  backdrop-filter: blur(4px);
}
.hero-stats .n { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: #f1c27a; line-height: 1; }
.hero-stats .l { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,244,224,.72); margin-top: 8px; }
.hero-cta { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: .92rem;
  text-decoration: none; cursor: pointer; border: none; transition: transform .18s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 12px 30px -12px rgba(200,91,60,.8); }
.btn-primary:hover { transform: translateY(-2px); background: var(--terracotta-d); }
.btn-ghost { background: rgba(255,250,240,.1); color: var(--sand); border: 1px solid rgba(255,250,240,.28); }
.btn-ghost:hover { background: rgba(255,250,240,.2); }

/* ---------- Section frame ---------- */
section { scroll-margin-top: 80px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sec-head { max-width: var(--max); margin: 0 auto; padding: 76px 24px 26px; }
.sec-head .kicker {
  font-size: .76rem; letter-spacing: .32em; text-transform: uppercase; color: var(--terracotta); font-weight: 600;
}
.sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem,4.5vw,3rem); margin-top: 12px; letter-spacing: -.015em; line-height: 1.05; }
.sec-head p { margin-top: 12px; color: var(--ink-soft); max-width: 620px; font-size: 1.02rem; }

/* ---------- Overview / route map ---------- */
.overview { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; padding: 0 24px 76px; max-width: var(--max); margin: 0 auto; }
#map {
  height: 520px; border-radius: var(--r); box-shadow: var(--shadow);
  border: 1px solid var(--line); background: #cfe3e6; z-index: 1;
}
.leaflet-popup-content-wrapper { border-radius: 12px; }
.legs {
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px; box-shadow: var(--shadow-sm); max-height: 520px; overflow-y: auto;
}
.leg {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px;
  border-radius: 12px; cursor: pointer; transition: background .15s;
  border: 1px solid transparent;
}
.leg:hover { background: var(--paper); border-color: var(--line); }
.leg .idx {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: var(--sea); color: #fff;
}
.leg.k-coast .idx { background: var(--sea); }
.leg.k-island .idx { background: var(--olive); }
.leg.k-city .idx { background: var(--terracotta); }
.leg.k-transit .idx { background: var(--ink-soft); }
.leg .lp { font-weight: 600; font-size: .95rem; line-height: 1.15; }
.leg .lr { font-size: .76rem; color: var(--ink-soft); }
.leg .ln { margin-left: auto; font-size: .72rem; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Timeline of stops ---------- */
.itin { padding-bottom: 90px; }
.stops { max-width: var(--max); margin: 0 auto; padding: 10px 24px 0; }
.stop {
  position: relative;
  display: grid; grid-template-columns: 132px 1fr; gap: 28px;
  padding: 26px 0;
}
.stop + .stop { border-top: 1px dashed var(--line); }
.stop-rail { position: relative; text-align: right; padding-top: 4px; }
.stop-rail .days { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1; }
.stop-rail .date { font-size: .78rem; color: var(--ink-soft); margin-top: 6px; }
.stop-rail .nights {
  display: inline-block; margin-top: 10px; font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sea-deep);
  background: rgba(31,111,134,.12); padding: 4px 9px; border-radius: 100px;
}
.card {
  position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
/* Faded location image behind the card text */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--bg); background-size: cover; background-position: center;
  opacity: .5; filter: saturate(1.12);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.9) 55%, rgba(0,0,0,.6) 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.9) 55%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
/* Scrim so text stays readable over the brighter image */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,250,242,.34), rgba(255,250,242,.5));
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:hover::before { opacity: .62; }
.card-top {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px;
  padding: 20px 24px 14px;
}
.card-top h3 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: -.01em; }
.card-top .region { font-size: .82rem; color: var(--ink-soft); }
.flag { font-size: 1.1rem; }
.kind-pill {
  margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; color: #fff;
}
.kp-city { background: var(--terracotta); }
.kp-coast { background: var(--sea); }
.kp-island { background: var(--olive); }
.kp-transit { background: var(--ink-soft); }

.card-body { padding: 4px 24px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.field .lbl { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.field .val { font-size: .92rem; color: var(--ink-soft); }
.field.full { grid-column: 1 / -1; }

.transport-line { font-weight: 600; color: var(--ink); margin-bottom: 10px; }

/* Transit segments */
.segs { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.seg {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 11px;
  background: rgba(255,255,255,.65); border: 1px solid var(--line);
}
.seg + .seg { margin-top: 4px; }
.seg-alt { background: rgba(247,241,230,.7); border-style: dashed; opacity: .9; }
.seg-layover {
  background: transparent; border: none; border-left: 2px dotted var(--line);
  border-radius: 0; margin-left: 22px; padding: 6px 12px;
}
.seg-layover .seg-route { font-weight: 500; color: var(--ink-soft); font-size: .82rem; }
.seg-layover .seg-ic { font-size: .82rem; }
.seg-layover .seg-time { background: transparent; color: var(--ink-soft); font-weight: 500; padding: 0; }
.seg-ic { font-size: 1rem; width: 22px; text-align: center; flex: 0 0 22px; }
.seg-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.seg-route { font-weight: 600; color: var(--ink); font-size: .9rem; }
.seg-line { font-size: .78rem; color: var(--ink-soft); }
.seg-time {
  margin-left: auto; white-space: nowrap; font-size: .82rem; font-weight: 600;
  color: var(--sea-deep); background: rgba(31,111,134,.1);
  padding: 4px 10px; border-radius: 100px; align-self: center;
}
.seg-note { margin-top: 9px; font-size: .8rem; color: var(--olive); font-weight: 500; }

/* Check-in / check-out */
.checks { display: flex; gap: 12px; flex-wrap: wrap; }
.chk {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--sand); border: 1px solid var(--line); border-radius: 11px;
  padding: 9px 14px; flex: 1 1 160px;
}
.chk .ci { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.chk .ci.out { color: var(--terracotta); }
.chk .ct { font-size: .88rem; font-weight: 600; color: var(--ink); }

/* Transit note */
.transit-note {
  margin-top: 16px !important; font-size: .85rem !important; color: var(--ink-soft) !important;
  background: var(--paper); border-left: 3px solid var(--gold);
  padding: 11px 15px; border-radius: 0 8px 8px 0; max-width: 720px !important;
}

.hl { display: flex; flex-wrap: wrap; gap: 8px; }
.hl span {
  font-size: .8rem; background: var(--sand-deep); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line);
}

.book {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--sea-deep);
  background: rgba(31,111,134,.1); border: 1px solid rgba(31,111,134,.25);
  padding: 9px 15px; border-radius: 100px; transition: background .18s, transform .18s;
}
.book:hover { background: rgba(31,111,134,.18); transform: translateY(-1px); }
.with { display: flex; gap: 6px; flex-wrap: wrap; }
.with .who {
  font-size: .78rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px;
}
.note { font-size: .82rem; color: var(--ink-soft); background: var(--sand); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.cost-row { display: flex; gap: 22px; flex-wrap: wrap; }
.cost-row .c .amt { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.cost-row .c .cl { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Costs ---------- */
.costs { background: linear-gradient(180deg, var(--sea-deep), var(--ink)); color: var(--sand); }
.costs .sec-head h2, .costs .sec-head .kicker { color: #f1c27a; }
.costs .sec-head .kicker { color: #e7b56a; }
.costs .sec-head p { color: rgba(255,244,224,.78); }
.cost-grid { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cost-card {
  background: rgba(255,250,240,.06); border: 1px solid rgba(255,250,240,.16);
  border-radius: var(--r); padding: 28px 26px;
}
.cost-card .big { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: #f1c27a; line-height: 1; }
.cost-card .cap { margin-top: 12px; font-size: .82rem; color: rgba(255,244,224,.75); letter-spacing: .04em; }
.cost-notes { max-width: var(--max); margin: 0 auto; padding: 0 24px 84px; }
.cost-notes h4 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 16px; color: #f5e9d4; }
.cost-notes .n { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255,250,240,.12); align-items: baseline; }
.cost-notes .n .k { font-weight: 600; color: #f1c27a; min-width: 230px; }
.cost-notes .n .v { color: rgba(255,244,224,.85); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,244,224,.7); text-align: center; padding: 50px 24px; }
footer .f-title { font-family: var(--serif); font-size: 1.6rem; color: var(--sand); margin-bottom: 8px; }
footer .f-sub { font-size: .9rem; }
footer .f-meta { margin-top: 22px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,244,224,.4); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .map-grid { grid-template-columns: 1fr; }
  #map { height: 380px; }
  .legs { max-height: none; }
  .card-body { grid-template-columns: 1fr; }
  .stop { grid-template-columns: 84px 1fr; gap: 16px; }
  .stop-rail .days { font-size: 1.2rem; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .cd-grid { gap: 5px; }
  .cd-unit { min-width: 0; flex: 1; padding: 12px 4px; border-radius: 12px; }
  .cd-sep { display: none; }
  .stop { grid-template-columns: 1fr; }
  .stop-rail { text-align: left; display: flex; align-items: center; gap: 12px; }
  .stop-rail .nights { margin-top: 0; }
  .hero-stats .s { min-width: 96px; padding: 12px 16px; }
}
