/* Eclipse 2026 — Mallorca · Lake Como · Milan
   Cosmic dark theme. Gold-corona accents. Cormorant Garamond display + Inter body. */

/* ── Resets / base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: #050811;   /* solid fallback; bg-layers render on top */
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Scroll-driven CSS variables (updated by JS based on scroll position). */
  --eclipse-progress:  0;      /* 0 → 1 across the hero scroll */
  --eclipse-intensity: 0;      /* 0 outside totality, 1 at totality */
  --day-brightness:    1;      /* 1 = full daylight, 0 = full totality */
  /* Per-section foreground colors (light → dark on bright destination bgs) */
  --fg:        #f5e8c4;
  --fg-soft:   rgba(232, 228, 212, 0.78);
  --fg-faint:  rgba(232, 228, 212, 0.45);
  --fg-shadow: 0 1px 2px rgba(8, 14, 30, 0.5);
}
/* Bright destinations → dark text for legibility on pale skies. */
body[data-section="mallorca"],
body[data-section="como"],
body[data-section="milan"] {
  --fg:        #0d1f30;
  --fg-soft:   rgba(15, 25, 45, 0.78);
  --fg-faint:  rgba(15, 25, 45, 0.50);
  --fg-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}

a { color: inherit; }
img { max-width: 100%; display: block; }


/* ── Scroll-driven background layers ─────────────────────────── */
.bg-layers {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-layer {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity;
}
/* Destination layers use .active class (slow cross-fade). */
.bg-layer.active { opacity: 1; }
/* The hero's two layers are driven by scroll vars instead — fast, smooth. */
.bg-layer--day {
  opacity: var(--day-brightness, 1);
  transition: opacity .12s linear;
}
.bg-layer--totality {
  opacity: var(--eclipse-intensity, 0);
  transition: opacity .12s linear;
}

/* DAY — bright clear sky with a soft sun glow up top. Hero default. */
.bg-layer--day {
  background:
    radial-gradient(circle 35vh at 50% 18%,
                    rgba(255, 230, 150, 0.55) 0%,
                    rgba(255, 220, 130, 0.18) 25%,
                    transparent 55%),
    linear-gradient(180deg,
                    #6cb6e0 0%,
                    #95cce4 30%,
                    #c0e0e6 60%,
                    #e6e2c8 100%);
}

/* TOTALITY — the eclipse moment. Pitch-dark with a faint warm halo. */
.bg-layer--totality {
  background:
    radial-gradient(ellipse 80vw 70vh at 50% 32%,
                    rgba(255, 200, 100, 0.18) 0%,
                    rgba(255, 180, 70, 0.06) 25%,
                    transparent 55%),
    radial-gradient(ellipse at center, #050610 0%, #020308 60%, #010104 100%);
}

/* ECLIPSE INFO section — twilight blue, between night and day. */
.bg-layer--eclipse {
  background:
    radial-gradient(ellipse 80vw 60vh at 50% 25%,
                    rgba(255, 200, 100, 0.16) 0%,
                    transparent 55%),
    linear-gradient(180deg, #1c2a45 0%, #14223c 50%, #0c182e 100%);
}

/* MALLORCA — Mediterranean midday: cerulean sky, turquoise sea horizon. */
.bg-layer--mallorca {
  background:
    radial-gradient(ellipse 80vw 30vh at 50% 25%,
                    rgba(255, 235, 170, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 110vw 55vh at 50% 105%,
                    rgba(76, 188, 196, 0.85) 0%,
                    rgba(76, 188, 196, 0.35) 30%,
                    transparent 60%),
    linear-gradient(180deg,
                    #5fb0e0 0%,
                    #8ec8e2 35%,
                    #bce0e4 65%,
                    #bce4cc 100%);
}

/* LAKE COMO — alpine lake afternoon: soft teal sky, emerald lake glow. */
.bg-layer--como {
  background:
    radial-gradient(ellipse 80vw 30vh at 50% 25%,
                    rgba(255, 245, 215, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 110vw 60vh at 50% 108%,
                    rgba(77, 157, 124, 0.85) 0%,
                    rgba(45, 100, 95, 0.45) 30%,
                    transparent 60%),
    linear-gradient(180deg,
                    #a4c8dc 0%,
                    #b4d4dc 35%,
                    #bcd6cc 65%,
                    #88b89c 100%);
}

/* MILAN — golden hour: warm peach sky, amber city light glow. */
.bg-layer--milan {
  background:
    radial-gradient(circle 30vh at 50% 22%,
                    rgba(255, 230, 170, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 110vw 55vh at 50% 108%,
                    rgba(220, 160, 70, 0.85) 0%,
                    rgba(190, 110, 60, 0.40) 30%,
                    transparent 60%),
    linear-gradient(180deg,
                    #f4cc94 0%,
                    #efbb8c 40%,
                    #e6a884 70%,
                    #c98268 100%);
}


/* ── Stars (only visible during totality) ────────────────────── */
.stars-canvas {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Fade with the eclipse — bright daytime hides the stars */
  opacity: var(--eclipse-intensity, 0);
  transition: opacity .18s linear;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle ease-in-out infinite;
  will-change: opacity;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}


/* ── HERO ─────────────────────────────────────────────────────── */
/* Hero is taller than viewport — its inner .hero-scene is sticky so it
   stays in view while the user scrolls through the eclipse animation. */
.hero {
  position: relative;
  z-index: 1;
  min-height: 220vh;
}
.hero-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 4rem;
  overflow: hidden;
}
/* Fade hero content (title, dates, countdown, etc.) ALL the way to black
   during totality. Only the eclipse stage (corona + moon) is visible. */
.hero-scene > :not(.eclipse-stage) {
  opacity: calc(max(0, 1 - var(--eclipse-intensity, 0) * 1.2));
  transition: opacity .12s linear;
}
.hero-home, .hero-share {
  position: absolute;
  top: 1.2rem;
  font-size: .8rem;
  color: rgba(232, 228, 212, 0.7);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s, border-color .2s;
  text-shadow: var(--fg-shadow);
  z-index: 5;
}
.hero-home  { left: 1.4rem; }
.hero-share {
  right: 1.4rem;
  padding: .35rem .9rem;
  border: 1px solid rgba(245, 192, 66, 0.55);
  border-radius: 999px;
  color: #f5c042;
  background: rgba(8, 14, 30, 0.35);
  backdrop-filter: blur(4px);
}
.hero-home:hover  { color: #f5c042; }
.hero-share:hover { background: rgba(245, 192, 66, 0.2); border-color: #f5c042; }


/* ── Eclipse stage (scroll-driven CSS animation) ──────────────── */
/* Three discs centered in the stage:
   - .ec-sun: bright golden disc + corona glow (always there)
   - .ec-corona: the dramatic corona, visible only during totality
   - .ec-moon: dark disc, slides LEFT→CENTER→RIGHT as you scroll
   - .ec-bead: diamond-ring bead, flashes briefly at totality edges */
.eclipse-stage {
  position: relative;
  width: 320px; height: 320px;
  margin: 0 auto 2.5rem;
  /* Stage stays put — only the children animate. */
}
@media (max-width: 640px) {
  .eclipse-stage { width: 240px; height: 240px; margin-bottom: 1.8rem; }
}

/* The sun: bright golden disc with a halo. Visible always, dims at totality. */
.ec-sun {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #fff8d8 0%,
    #ffd870 35%,
    #f5a430 60%,
    #d97e1a 100%);
  box-shadow:
    0 0 50px 12px rgba(255, 220, 130, 0.75),
    0 0 110px 30px rgba(255, 195, 90, 0.45),
    0 0 200px 60px rgba(255, 170, 70, 0.22);
  z-index: 2;
  /* Sun fades as totality grows; brightens back as it ends. */
  opacity: calc(0.25 + var(--day-brightness, 1) * 0.75);
  filter: brightness(calc(0.45 + var(--day-brightness, 1) * 0.55));
  transition: opacity .12s linear, filter .12s linear;
}

/* The totality corona: streaky, ethereal, only at peak totality. */
.ec-corona {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      transparent 26%,
      rgba(255, 240, 200, 0.9) 28%,
      rgba(255, 220, 140, 0.45) 35%,
      rgba(255, 200, 110, 0.22) 45%,
      rgba(255, 180, 80, 0.10) 55%,
      transparent 70%);
  filter: blur(1.5px);
  z-index: 1;
  opacity: var(--eclipse-intensity, 0);
  transition: opacity .15s linear;
  animation: corona-breathe 5s ease-in-out infinite;
}

/* The moon: dark disc, arcs across the sun as you scroll.
   X: linear traversal, parked off-stage at the ends, dead-center at totality.
   Y: slight U-arc (computed in JS as --moon-y) so the path isn't dead-flat. */
.ec-moon {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%,
    #1c2235 0%, #0c1020 60%, #050811 100%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
  z-index: 3;
  transform: translate(
    calc((var(--eclipse-progress, 0) - 0.5) * 540px),
    var(--moon-y, -36px)
  );
  transition: transform .08s linear;
}
@media (max-width: 640px) {
  .ec-moon {
    transform: translate(
      calc((var(--eclipse-progress, 0) - 0.5) * 400px),
      var(--moon-y, -36px)
    );
  }
}

/* The diamond-ring bead: flashes at the moments just before/after totality. */
@keyframes corona-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}


.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 9vw, 6rem);
  margin: 0 0 .25rem;
  color: #f5e8c4;
  letter-spacing: -0.01em;
  line-height: 1;
  /* Strong shadow so the gold title reads on both bright sky AND totality. */
  text-shadow:
    0 2px 18px rgba(8, 14, 30, 0.65),
    0 0 60px rgba(245, 192, 66, 0.35);
  position: relative; z-index: 4;
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 0 0 .5rem;
  color: #f0e4c4;
  letter-spacing: .04em;
  text-shadow: 0 1px 12px rgba(8, 14, 30, 0.6);
  position: relative; z-index: 4;
}
.hero-dates {
  font-size: .9rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #e8e0c0;
  margin: 0 0 2.5rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(8, 14, 30, 0.65);
  position: relative; z-index: 4;
}

/* Countdown */
.countdown {
  display: inline-flex;
  gap: .9rem;
  margin: 0 0 .5rem;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: .9rem 1rem .7rem;
  background: rgba(20, 26, 48, 0.5);
  border: 1px solid rgba(245, 192, 66, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.cd-cell b {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: #f5c042;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-cell span {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(232, 228, 212, 0.55);
  margin-top: .35rem;
}
.countdown {
  position: relative; z-index: 4;
}
.countdown-label {
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #e8e0c0;
  margin: 0 0 2.5rem;
  text-shadow: 0 1px 8px rgba(8, 14, 30, 0.7);
  position: relative; z-index: 4;
}
@media (max-width: 560px) {
  .countdown { gap: .5rem; }
  .cd-cell { min-width: 58px; padding: .7rem .6rem .5rem; }
  .cd-cell b { font-size: 1.7rem; }
}

.hero-cue {
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: lowercase;
  color: #d8d0b0;
  margin: 0;
  animation: bob 2.6s ease-in-out infinite;
  text-shadow: 0 1px 6px rgba(8, 14, 30, 0.7);
  position: relative; z-index: 4;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}


/* ── Content sections ────────────────────────────────────────── */
.content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.4rem 4rem;
}

.section {
  padding: 7rem 0 5rem;
  border-top: 1px solid rgba(245, 192, 66, 0.08);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-kicker {
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0 0 .5rem;
  font-weight: 600;
  text-shadow: var(--fg-shadow);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--fg);
  margin: 0 0 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: var(--fg-shadow);
}


/* ── Travelers section ───────────────────────────────────────── */
.travelers-note {
  color: var(--fg-soft);
  font-size: 1rem;
  margin: 0 0 1.2rem;
  text-shadow: var(--fg-shadow);
}
.travelers-row {
  display: flex; flex-wrap: wrap;
  gap: .7rem;
}
.traveler-chip {
  display: inline-flex;
  flex-direction: column;
  padding: .6rem 1.1rem;
  background: rgba(20, 26, 48, 0.55);
  border: 1px solid rgba(245, 192, 66, 0.22);
  border-radius: 999px;
  align-items: center;
  min-width: 80px;
}
.traveler-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #f5e8c4;
  line-height: 1.1;
}
.traveler-role {
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245, 192, 66, 0.7);
  margin-top: .2rem;
}


/* ── Eclipse section ─────────────────────────────────────────── */
.section--eclipse .ec-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.ec-stat {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.3rem;
  background: rgba(20, 26, 48, 0.5);
  border: 1px solid rgba(245, 192, 66, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.ec-stat-label {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(232, 228, 212, 0.5);
  margin-bottom: .4rem;
}
.ec-stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: #f5e8c4;
  line-height: 1.25;
}
.ec-sunset {
  background: linear-gradient(135deg, rgba(244, 196, 88, 0.10), rgba(244, 196, 88, 0.03));
  border-left: 3px solid #f5c042;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 2rem 0;
  font-style: italic;
  color: rgba(232, 228, 212, 0.92);
}
.ec-tips-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--fg);
  margin: 2.5rem 0 1rem;
  text-shadow: var(--fg-shadow);
}
.ec-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ec-tips li {
  padding: .75rem 0 .75rem 1.8rem;
  border-bottom: 1px solid rgba(245, 192, 66, 0.15);
  position: relative;
  color: var(--fg);
  text-shadow: var(--fg-shadow);
}
.ec-tips li::before {
  content: '☼';
  position: absolute;
  left: 0; top: .75rem;
  color: #f5c042;
}
.ec-tips li:last-child { border-bottom: none; }


/* ── Destination sections ───────────────────────────────────── */
.section--dest {
  /* --accent is set inline per destination */
  border-top-color: var(--accent-soft, rgba(245, 192, 66, 0.12));
}
.dest-head { margin-bottom: 1.5rem; }
.dest-num {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .3rem .75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.dest-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--fg);
  margin: 0 0 .3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: var(--fg-shadow);
}
.dest-icon { display: inline-block; margin-right: .4rem; filter: saturate(1.2); }
.dest-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.4);
}
.dest-meta {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.dest-pill {
  font-size: .8rem;
  padding: .35rem .8rem;
  background: rgba(20, 26, 48, 0.6);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: rgba(232, 228, 212, 0.85);
}
.dest-pill--country { color: var(--accent); border-color: var(--accent); }
.dest-summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg);
  margin: 1.5rem 0 2.5rem;
  max-width: 70ch;
  text-shadow: var(--fg-shadow);
}


/* Ideas board */
.ideas-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #f5e8c4;
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: .8rem;
}
.ideas-count {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(232, 228, 212, 0.4);
  font-weight: 400;
}
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.ideas-empty {
  color: rgba(232, 228, 212, 0.4);
  font-style: italic;
}
.idea-card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(20, 26, 48, 0.78), rgba(12, 16, 32, 0.68));
  border: 1px solid var(--accent-soft);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  /* Cards keep their own cream text regardless of section bg. */
  color: #e8e4d4;
}
.idea-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4),
              0 0 30px var(--accent-soft);
}
.idea-card .idea-title {
  color: #f5e8c4;   /* explicit so destination's --fg doesn't darken card titles */
}
.idea-card .idea-blurb {
  color: rgba(232, 228, 212, 0.85);
}

/* Community-posted (just-added) ideas get a subtle gold tint. */
.idea--community {
  border-color: rgba(245, 192, 66, 0.55);
  background: linear-gradient(180deg,
                              rgba(245, 192, 66, 0.10),
                              rgba(20, 26, 48, 0.72));
}

/* The big + tile — same shape as an idea card, but a call-to-action style. */
.idea-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.2rem;
  background: rgba(20, 26, 48, 0.35);
  border: 2px dashed var(--accent-soft);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  color: #e8e4d4;
  min-height: 170px;
  gap: .25rem;
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
}
.idea-add:hover {
  transform: translateY(-3px);
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 0 30px var(--accent-soft);
}
.idea-add-plus {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 300;
  margin-bottom: .35rem;
}
.idea-add-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f5e8c4;
}
.idea-add-hint {
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(232, 228, 212, 0.55);
  margin-top: .15rem;
}
.idea-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .6rem;
  align-items: center;
  margin-bottom: .65rem;
}
.idea-cat {
  font-size: 1.4rem;
  line-height: 1;
}
.idea-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #f5e8c4;
  margin: 0;
  line-height: 1.25;
}
.idea-badge {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
}
.idea-badge--new {
  background: rgba(108, 210, 160, 0.25);
  color: #6cd2a0;
  border: 1px solid rgba(108, 210, 160, 0.45);
}
.idea-badge--tentative {
  background: rgba(245, 192, 66, 0.2);
  color: #f5c042;
  border: 1px solid rgba(245, 192, 66, 0.4);
}
.idea-badge--booked {
  background: rgba(77, 157, 124, 0.25);
  color: #6cd2a0;
  border: 1px solid rgba(108, 210, 160, 0.45);
}
.idea-badge--skip {
  background: rgba(140, 100, 100, 0.2);
  color: #c8a0a0;
  border: 1px solid rgba(200, 160, 160, 0.3);
  text-decoration: line-through;
}

.idea-blurb {
  flex: 1;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(232, 228, 212, 0.78);
  margin: 0 0 .8rem;
}
.idea-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: rgba(232, 228, 212, 0.55);
}
.idea-vibe {
  color: var(--accent);
  font-style: italic;
}
.idea-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.idea-link:hover { text-decoration: underline; }
.idea-by {
  margin-left: auto;
  font-style: italic;
  font-size: .72rem;
}
.idea--skip { opacity: 0.55; }


/* ── Bookings section ────────────────────────────────────────── */
.bk-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--fg);
  margin: 2rem 0 1rem;
  text-shadow: var(--fg-shadow);
}
.bk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.bk-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.3rem;
  background: rgba(20, 26, 48, 0.55);
  border: 1px solid var(--accent-soft, rgba(245, 192, 66, 0.15));
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.bk-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #f5c042);
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}
.bk-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .55rem;
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.bk-leg      { color: var(--accent, #f5c042); font-weight: 600; }
.bk-platform { color: rgba(232, 228, 212, 0.45); }
.bk-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: #f5e8c4;
  margin: 0 0 .35rem;
  line-height: 1.2;
}
.bk-host  { color: var(--accent, #f5c042); font-size: .82rem; margin: -.2rem 0 .45rem; font-style: italic; }
.bk-meta  { color: rgba(232, 228, 212, 0.7); font-size: .88rem; margin: 0 0 .5rem; }
.bk-addr  { color: rgba(232, 228, 212, 0.65); font-size: .8rem; margin: 0 0 .55rem; line-height: 1.4; }
.bk-notes { color: rgba(232, 228, 212, 0.75); font-size: .8rem; margin: 0 0 .6rem; font-style: italic; line-height: 1.45; }
.bk-conf {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: .78rem;
  color: rgba(232, 228, 212, 0.55);
  margin: .2rem 0;
}
.bk-conf span { color: #f5c042; }
.bk-link {
  align-self: flex-start;
  margin-top: .6rem;
  padding: .45rem .9rem;
  background: var(--accent-soft, rgba(245, 192, 66, 0.12));
  color: var(--accent, #f5c042);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--accent-soft, rgba(245, 192, 66, 0.25));
  transition: background .15s;
}
.bk-link:hover { background: var(--accent-soft, rgba(245, 192, 66, 0.22)); }

.bk-flight-legs {
  list-style: none; padding: 0; margin: .6rem 0 0;
  font-size: .85rem;
}
.bk-flight-legs li { padding: .35rem 0; border-top: 1px solid rgba(245, 192, 66, 0.08); }
.bk-flight-legs li:first-child { border-top: none; }
.leg-route   { display: block; color: #f5e8c4; }
.leg-flight  { display: block; color: rgba(232, 228, 212, 0.6); font-size: .78rem; margin-top: .15rem; }

.bk-empty {
  background: linear-gradient(135deg, rgba(244, 196, 88, 0.08), rgba(244, 196, 88, 0.02));
  border: 1px dashed rgba(245, 192, 66, 0.25);
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  color: rgba(232, 228, 212, 0.78);
  line-height: 1.65;
  font-size: .92rem;
}
.bk-empty a { color: #f5c042; text-decoration: none; font-weight: 500; }
.bk-empty a:hover { text-decoration: underline; }

/* Reservation file list */
.res-list { list-style: none; padding: 0; margin: 0; }
.res-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  align-items: center;
  padding: .65rem .85rem;
  background: rgba(20, 26, 48, 0.45);
  border: 1px solid rgba(245, 192, 66, 0.12);
  border-radius: 10px;
  margin-bottom: .45rem;
}
.res-list a {
  color: #f5e8c4;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}
.res-list a:hover { color: #f5c042; }
.res-icon { margin-right: .35rem; }
.res-meta {
  font-size: .75rem;
  color: rgba(232, 228, 212, 0.5);
  white-space: nowrap;
}


/* ── Shared-links inbox section ───────────────────────────── */
.section--shared .title-sub {
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 400;
  margin-left: .5rem;
  text-shadow: var(--fg-shadow);
}
.shared-sub {
  color: var(--fg-soft);
  margin: 0 0 1.4rem;
  font-size: .95rem;
  text-shadow: var(--fg-shadow);
}
.shared-list { list-style: none; padding: 0; margin: 0; }
.shared-item {
  padding: .85rem 1rem;
  background: rgba(20, 26, 48, 0.4);
  border: 1px solid rgba(245, 192, 66, 0.1);
  border-left: 3px solid rgba(245, 192, 66, 0.35);
  border-radius: 8px;
  margin-bottom: .55rem;
}
.shared-head {
  display: flex; justify-content: space-between; gap: .8rem;
  align-items: baseline; flex-wrap: wrap;
}
.shared-head a {
  color: #f5c042;
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}
.shared-head a:hover { text-decoration: underline; }
.shared-dest { font-size: .8rem; }
.shared-note { color: rgba(232, 228, 212, 0.78); font-size: .9rem; margin: .35rem 0 0; }
.shared-meta { color: rgba(232, 228, 212, 0.4); font-size: .75rem; margin: .25rem 0 0; font-style: italic; }


/* ── Footer ──────────────────────────────────────────────────── */
.ec-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.4rem 3rem;
  border-top: 1px solid rgba(245, 192, 66, 0.1);
  margin-top: 4rem;
}
.footer-meta {
  font-size: .8rem;
  color: var(--fg-faint);
  margin: 0;
  text-shadow: var(--fg-shadow);
}
.footer-meta a {
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--fg-faint);
}
.footer-meta a:hover { color: #f5c042; }


/* ── Destination map ──────────────────────────────────────── */
.dest-map-wrap {
  margin: 0 0 2rem;
  position: relative;
}
.dest-map {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(20, 26, 48, 0.6);
  border: 1px solid var(--accent-soft);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
@media (max-width: 640px) {
  .dest-map { height: 280px; }
}
.dest-map-hint {
  font-size: .75rem;
  color: var(--fg-soft);
  margin: .5rem 0 0;
  text-align: right;
  font-style: italic;
  text-shadow: var(--fg-shadow);
}
/* Slight saturation bump to match the bright Mediterranean/Alpine theme. */
.dest-map .leaflet-tile { filter: saturate(1.1) brightness(1.02); }
.dest-map .leaflet-container { background: #d4e8ec; }
.dest-map .leaflet-popup-content-wrapper,
.dest-map .leaflet-tooltip {
  background: rgba(8, 14, 30, 0.92);
  color: #f5e8c4;
  border: 1px solid var(--accent, #f5c042);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
}
.dest-map .leaflet-tooltip::before { border-top-color: rgba(8, 14, 30, 0.92); }

/* Pin marker — divIcon with a colored core + pulsing halo. */
.leaflet-div-icon.dm-pin {
  background: transparent;
  border: 0;
  position: relative;
}
.dm-pin-core {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #f5c042;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.dm-pin-core--lodging {
  inset: 0;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}
.dm-pin-pulse {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #f5c042;
  opacity: 0.55;
  z-index: 1;
  animation: dm-pin-throb 2.4s ease-out infinite;
}
.leaflet-div-icon.dm-pin:hover .dm-pin-pulse { animation-duration: 1.2s; }
@keyframes dm-pin-throb {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(3.0); opacity: 0;    }
}

/* Pulse-highlight a card when its pin is clicked. */
@keyframes card-pulse-anim {
  0%   { box-shadow: 0 0 0 0 var(--accent, #f5c042),
                     0 0 30px 4px var(--accent, #f5c042); }
  100% { box-shadow: 0 0 0 14px transparent,
                     0 0 0 0    transparent; }
}
.card-pulse {
  animation: card-pulse-anim 1.6s ease-out;
  border-color: var(--accent, #f5c042) !important;
}


/* ── Idea posting modal ─────────────────────────────────────── */
.idea-modal[hidden] { display: none !important; }
.idea-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(5, 10, 22, 0.78);
  backdrop-filter: blur(6px);
}
.im-card {
  width: 100%; max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0e1424;
  border: 1px solid rgba(245, 192, 66, 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 50px rgba(245, 192, 66, 0.12);
  color: #e8e4d4;
}
.im-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.4rem .8rem;
  border-bottom: 1px solid rgba(245, 192, 66, 0.15);
}
.im-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
  color: #f5e8c4;
}
.im-close {
  background: none; border: none; cursor: pointer;
  color: rgba(232, 228, 212, 0.6);
  font-size: 1.3rem; padding: 0 .35rem;
  transition: color .2s;
}
.im-close:hover { color: #f5c042; }

.im-context {
  margin: .8rem 1.4rem 0;
  font-size: .82rem;
  color: rgba(232, 228, 212, 0.6);
  letter-spacing: .04em;
}
.im-dest {
  color: #f5c042;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  margin-left: .25rem;
}

.im-form {
  display: flex; flex-direction: column;
  gap: .85rem;
  padding: 1rem 1.4rem .4rem;
}
.im-label {
  display: flex; flex-direction: column;
  gap: .3rem;
  font-size: .78rem; letter-spacing: .04em;
  color: rgba(232, 228, 212, 0.7);
}
.im-req { color: #f5c042; }
.im-opt { color: rgba(232, 228, 212, 0.45); font-style: italic; }
.im-form input, .im-form textarea {
  font: inherit; font-size: 1rem;
  padding: .65rem .85rem;
  background: rgba(8, 12, 25, 0.65);
  color: #f5e8c4;
  border: 1px solid rgba(245, 192, 66, 0.25);
  border-radius: 10px;
}
.im-form textarea { resize: vertical; min-height: 70px; }
.im-form input:focus, .im-form textarea:focus {
  outline: none;
  border-color: #f5c042;
  box-shadow: 0 0 0 3px rgba(245, 192, 66, 0.18);
}
.im-row { display: grid; gap: .85rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .im-row { grid-template-columns: 1fr; } }

.im-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: .4rem;
}
.im-btn {
  font: inherit; font-weight: 500; font-size: .92rem;
  padding: .65rem 1.4rem;
  background: rgba(20, 26, 48, 0.6);
  color: #e8e4d4;
  border: 1px solid rgba(245, 192, 66, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, opacity .15s;
}
.im-btn:hover { background: rgba(245, 192, 66, 0.1); border-color: #f5c042; }
.im-btn--primary {
  background: linear-gradient(135deg, #f5c042, #e09a1f);
  color: #0a0e22;
  border-color: transparent;
  font-weight: 700;
}
.im-btn--primary:hover {
  background: linear-gradient(135deg, #f8cf60, #e8a82a);
  border-color: transparent;
  transform: translateY(-1px);
}
.im-btn:disabled { opacity: .5; cursor: wait; }

.im-status {
  margin: 0 1.4rem 1.2rem;
  font-size: .85rem;
  color: rgba(232, 228, 212, 0.7);
  min-height: 1.2em;
}
.im-status--ok  { color: #6cd2a0; }
.im-status--err { color: #f08888; }


/* ── Trip planner (shared calendar board) ────────────────────── */
.section--planner { max-width: 1200px; }
.planner-intro {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  text-align: center;
  font-size: .95rem;
  color: var(--fg-soft);
}
.planner-intro b { color: #f5c042; font-weight: 600; }

.planner-board {
  display: flex;
  gap: .7rem;
  overflow-x: auto;
  padding: .4rem .2rem 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 192, 66, 0.4) transparent;
}
.planner-hint {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--fg-faint);
  margin-top: .2rem;
}

.pl-day {
  flex: 0 0 172px;
  min-height: 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: rgba(10, 16, 32, 0.62);
  border: 1px solid var(--accent-soft, rgba(245, 192, 66, 0.2));
  border-top: 3px solid var(--accent, #f5c042);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pl-day--over {
  background: rgba(20, 30, 55, 0.85);
  border-color: var(--accent, #f5c042);
  box-shadow: 0 0 0 2px var(--accent, #f5c042),
              0 0 24px var(--accent-soft, rgba(245, 192, 66, 0.3));
}
.pl-day-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: .45rem;
  padding: .6rem .75rem .45rem;
  border-bottom: 1px solid rgba(245, 232, 196, 0.08);
}
.pl-day-dow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent, #f5c042);
}
.pl-day-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: #f5e8c4;
  text-align: right;
}
.pl-day-dest {
  grid-column: 1 / -1;
  font-size: .72rem;
  color: rgba(232, 228, 212, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-chips {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .55rem .55rem .3rem;
  flex: 1;
}

.pl-chip {
  border-radius: 10px;
  padding: .45rem .6rem;
  font-size: .78rem;
  line-height: 1.35;
  color: #ece6d2;
  background: rgba(24, 32, 58, 0.85);
  border: 1px solid rgba(245, 232, 196, 0.12);
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.pl-chip--act {
  cursor: grab;
  border-left: 3px solid var(--accent, #f5c042);
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .12s, box-shadow .12s, opacity .12s;
}
.pl-chip--act:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.pl-chip--src { opacity: .35; }
.pl-chip--ghost {
  position: fixed;
  z-index: 10001;
  pointer-events: none;
  transform: translate(-50%, -70%) rotate(2.5deg) scale(1.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(245, 192, 66, 0.5);
  opacity: .95;
}
body.pl-dragging { cursor: grabbing; }
body.pl-dragging * { cursor: grabbing !important; }

.pl-chip--locked {
  background: rgba(14, 20, 38, 0.6);
  border-style: dashed;
  color: rgba(232, 228, 212, 0.72);
}
.pl-chip--eclipse {
  background: linear-gradient(135deg, rgba(60, 40, 8, 0.75), rgba(30, 22, 10, 0.8));
  border: 1px solid rgba(245, 192, 66, 0.55);
  color: #f8dfa0;
}
.pl-lock { font-size: .6rem; opacity: .7; }

.pl-chip-time {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent, #f5c042);
}
.pl-chip--locked .pl-chip-time { color: rgba(232, 228, 212, 0.55); }
.pl-chip--eclipse .pl-chip-time { color: #f5c042; }
.pl-chip-main { display: flex; gap: .35rem; align-items: flex-start; }
.pl-chip-icon { flex: 0 0 auto; }
.pl-chip-title { font-weight: 500; }
.pl-chip-meta {
  font-size: .68rem;
  color: rgba(232, 228, 212, 0.55);
}

.pl-add {
  margin: .3rem .55rem .6rem;
  padding: .4rem;
  font: inherit;
  font-size: .78rem;
  color: rgba(232, 228, 212, 0.55);
  background: transparent;
  border: 1px dashed rgba(245, 232, 196, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.pl-add:hover {
  color: var(--accent, #f5c042);
  border-color: var(--accent, #f5c042);
  background: var(--accent-soft, rgba(245, 192, 66, 0.08));
}

/* Numbered timeline pins on destination maps */
.dm-pin--seq { background: transparent; border: 0; }
.dm-seq {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: #0a0e22;
  background: #f5c042;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.dm-pin-core--airport {
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

/* Activity modal extras (location picker) */
.im-card--planner { max-width: 580px; }
.im-form select {
  font: inherit;
  font-size: 1rem;
  padding: .65rem .85rem;
  background: rgba(8, 12, 25, 0.65);
  color: #f5e8c4;
  border: 1px solid rgba(245, 192, 66, 0.25);
  border-radius: 10px;
}
.im-form select:focus {
  outline: none;
  border-color: #f5c042;
  box-shadow: 0 0 0 3px rgba(245, 192, 66, 0.18);
}
.am-dest-note {
  margin: -.3rem 0 0;
  font-size: .78rem;
  color: rgba(232, 228, 212, 0.55);
}
.im-label-line {
  font-size: .78rem;
  letter-spacing: .04em;
  color: rgba(232, 228, 212, 0.7);
}
.am-loc { display: flex; flex-direction: column; gap: .45rem; }
.am-loc-search { display: flex; gap: .5rem; }
.am-loc-search input { flex: 1; }
.am-loc-go { padding: .5rem 1rem; white-space: nowrap; }
.am-loc-results {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  max-height: 150px;
  overflow-y: auto;
}
.am-loc-result {
  font: inherit;
  font-size: .8rem;
  text-align: left;
  padding: .45rem .7rem;
  color: #ece6d2;
  background: rgba(24, 32, 58, 0.85);
  border: 1px solid rgba(245, 192, 66, 0.2);
  border-radius: 8px;
  cursor: pointer;
}
.am-loc-result:hover { border-color: #f5c042; background: rgba(245, 192, 66, 0.1); }
.am-loc-searching { font-size: .8rem; color: rgba(232, 228, 212, 0.55); }
.am-map {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 192, 66, 0.25);
  z-index: 1;
}
.am-map .leaflet-container { background: #d4e8ec; }
.am-loc-picked {
  margin: 0;
  font-size: .82rem;
  color: #f5e8c4;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.am-loc-clear {
  font: inherit;
  font-size: .72rem;
  color: rgba(232, 228, 212, 0.6);
  background: transparent;
  border: 1px solid rgba(245, 232, 196, 0.25);
  border-radius: 999px;
  padding: .1rem .55rem;
  cursor: pointer;
}
.am-loc-clear:hover { color: #f08888; border-color: #f08888; }
.am-loc-hint {
  margin: 0;
  font-size: .72rem;
  font-style: italic;
  color: rgba(232, 228, 212, 0.45);
}
.im-actions--split { justify-content: space-between; }
.im-actions-right { display: flex; gap: .6rem; }
.im-btn--danger {
  border-color: rgba(240, 136, 136, 0.5);
  color: #f08888;
}
.im-btn--danger:hover {
  background: rgba(240, 136, 136, 0.12);
  border-color: #f08888;
}


/* ── Mobile fine-tuning ──────────────────────────────────────── */
@media (max-width: 640px) {
  .content { padding: 0 1rem 3rem; }
  .section { padding: 3rem 0 2.4rem; }
  .ideas-grid { grid-template-columns: 1fr; }
  .ec-stats { grid-template-columns: 1fr 1fr; }
  .pl-day { flex-basis: 156px; }
  .am-map { height: 180px; }
}
