:root {
  --deep: #07263b;
  --deep2: #0c3a55;
  --sea: #1f7a8c;
  --aqua: #5bc0be;
  --sand: #f3e9d8;
  --gold: #d9a441;
  --ink: #0a1a26;
  --paper: #fbf7ee;
  --muted: #6f8493;
  --shadow: 0 22px 50px -22px rgba(7, 38, 59, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; line-height: 1.08; }

/* ---------- password gate ---------- */
#gate {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #07263b 0%, #0c3a55 60%, #1f7a8c 130%);
  transition: opacity 0.45s ease;
}
#gate.unlocked { opacity: 0; pointer-events: none; }
#gate.shake .gate-card { animation: shake 0.4s ease; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  30%, 70% { transform: translateX(6px); }
  50% { transform: translateX(-8px); }
}
.gate-card {
  width: min(380px, 100%); text-align: center; color: var(--sand);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px; padding: 42px 32px 34px;
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}
.gate-emoji { font-size: 2.6rem; }
.gate-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; margin: 8px 0 4px; }
.gate-card p { font-weight: 300; font-size: 0.92rem; opacity: 0.82; margin-bottom: 22px; }
#gateForm { display: flex; gap: 8px; }
#gateInput {
  flex: 1; min-width: 0; font-family: 'Outfit', sans-serif; font-size: 0.95rem;
  padding: 12px 16px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1); color: var(--sand);
}
#gateInput::placeholder { color: rgba(243,233,216,0.5); }
#gateInput:focus { outline: none; border-color: var(--gold); }
#gateForm button {
  border: none; cursor: pointer; font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
  background: var(--gold); padding: 12px 22px; border-radius: 30px;
  transition: transform 0.2s ease;
}
#gateForm button:hover { transform: translateY(-2px); }
.gate-error { min-height: 20px; margin-top: 14px; font-size: 0.84rem; color: #ffb4a8; }

/* ---------- animated sea backdrop ---------- */
.sea-bg {
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #eaf4f5 0%, var(--paper) 60%);
}
.wave {
  position: absolute; left: -50%; width: 200%; height: 220px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(91, 192, 190, 0.18), transparent 70%);
  border-radius: 45%;
}
.wave1 { bottom: -120px; animation: drift 24s linear infinite; }
.wave2 { bottom: -160px; opacity: 0.6; animation: drift 32s linear infinite reverse; }
.wave3 { bottom: -90px;  opacity: 0.4; animation: drift 40s linear infinite; }
@keyframes drift { from { transform: rotate(0) translateX(0); } to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  color: var(--sand); overflow: hidden;
}
.hero-img {
  position: absolute; inset: -8% 0;
  background-size: cover; background-position: center;
  background-color: var(--deep);
  transform: scale(1.12);
  animation: heroZoom 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1.22) translateY(-2%); } }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,38,59,0.55) 0%, rgba(7,38,59,0.35) 40%, rgba(7,38,59,0.92) 100%);
}

.topnav {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px clamp(20px, 5vw, 70px);
}
.brand { font-weight: 600; letter-spacing: 0.04em; font-size: 1.1rem; }
.navlinks { display: flex; gap: 26px; }
.navlinks a {
  color: var(--sand); text-decoration: none; font-size: 0.92rem;
  font-weight: 400; opacity: 0.85; position: relative; padding-bottom: 4px;
}
.navlinks a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold); transition: width 0.3s ease;
}
.navlinks a:hover { opacity: 1; }
.navlinks a:hover::after { width: 100%; }

.hero-inner {
  position: relative; z-index: 3;
  margin: auto; text-align: center;
  padding: 0 24px 60px; max-width: 900px;
}
.kicker {
  text-transform: uppercase; letter-spacing: 0.32em;
  font-size: 0.78rem; color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); font-weight: 700; }
.hero .hl { color: var(--aqua); font-style: italic; }
.lede {
  margin: 22px auto 0; max-width: 560px;
  font-weight: 300; font-size: clamp(1rem, 2.4vw, 1.2rem); opacity: 0.92;
}
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 32px 0 30px;
}
.stat {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border-radius: 14px; padding: 12px 20px; min-width: 110px;
}
.stat b { display: block; font-size: 1.5rem; font-family: 'Cormorant Garamond', serif; color: var(--aqua); }
.stat span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.8; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.cta {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  text-decoration: none; font-weight: 600;
  padding: 14px 30px; border-radius: 40px;
  box-shadow: 0 14px 30px -10px rgba(217,164,65,0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-ghost {
  background: rgba(255,255,255,0.1); color: var(--sand); cursor: pointer;
  border: 1px solid rgba(255,255,255,0.32);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 40px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.cta-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.cta:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -10px rgba(217,164,65,0.85); }

.countdown {
  position: relative; z-index: 3;
  text-align: center; padding: 0 0 34px;
  font-size: 0.9rem; letter-spacing: 0.06em; opacity: 0.9;
}
.countdown b { color: var(--gold); font-size: 1.15rem; }

/* ---------- sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 40px); }
.sec-title { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--deep); }
.sec-title::after {
  content: ''; display: block; width: 54px; height: 3px;
  background: var(--gold); margin-top: 12px; border-radius: 2px;
}
.sec-sub { color: var(--muted); margin: 14px 0 40px; font-weight: 300; font-size: 1.05rem; }

/* ---------- itinerary type tags ---------- */
.tag-port { background: rgba(217,164,65,0.18); color: #9c6f10; }
.tag-sea { background: rgba(91,192,190,0.22); color: #146b69; }
.tag-key { background: rgba(31,122,140,0.18); color: var(--sea); }

/* ---------- view toggle ---------- */
.view-toggle {
  display: inline-flex; gap: 4px; margin-bottom: 28px;
  background: rgba(7,38,59,0.07); padding: 4px; border-radius: 30px;
}
.view-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 600;
  color: var(--muted); padding: 8px 18px; border-radius: 24px;
  transition: background 0.25s ease, color 0.25s ease;
}
.view-toggle button.active { background: #fff; color: var(--deep); box-shadow: 0 4px 12px -4px rgba(7,38,59,0.3); }

/* ---------- timeline layout + map ---------- */
.timeline-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) 1.05fr; gap: 32px; align-items: start; }
.map-col { position: sticky; top: 18px; }
#voyageMap {
  height: 460px; border-radius: 20px; position: relative; z-index: 1;
  box-shadow: var(--shadow); border: 1px solid rgba(7,38,59,0.08);
  background: #dce8ea;
}
.leaflet-container { font-family: 'Outfit', sans-serif; border-radius: 20px; }
.map-caption {
  margin-top: 14px; background: #fff; border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow);
  border: 1px solid rgba(7,38,59,0.06);
}
.map-caption .mc-date { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); font-weight: 600; }
.map-caption .mc-loc { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; color: var(--deep); margin: 2px 0 4px; }
.map-caption .mc-hours { font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-inline-start: 8px; }
.ship-marker {
  width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 20px; background: var(--gold); color: var(--ink);
  border-radius: 50%; box-shadow: 0 0 0 0 rgba(217,164,65,0.7);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(217,164,65,0.6); }
  70% { box-shadow: 0 0 0 22px rgba(217,164,65,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,164,65,0); }
}
.poi-pin {
  font-size: 22px; line-height: 1; cursor: default;
  filter: drop-shadow(0 2px 3px rgba(7,38,59,0.45));
  animation: poiDrop 0.4s ease;
}
@keyframes poiDrop { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.leaflet-tooltip.poi-label {
  background: #fff; border: none; color: var(--deep);
  font-family: 'Outfit', sans-serif; font-size: 0.72rem; font-weight: 600;
  padding: 3px 8px; border-radius: 7px;
  box-shadow: 0 3px 10px -3px rgba(7,38,59,0.4);
}
.leaflet-tooltip.poi-label::before { display: none; }

/* ---------- timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 22px; }
.day-card.active { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- compact view ---------- */
.timeline.compact { gap: 6px; }
.c-day {
  background: #fff; border-radius: 12px; padding: 12px 16px;
  border: 1px solid rgba(7,38,59,0.06); cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.c-day:hover { transform: translateX(3px); }
.c-day.active { background: #fff7e8; outline: 1.5px solid var(--gold); }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.c-date {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--gold); min-width: 92px; text-transform: uppercase;
}
.c-loc { font-weight: 600; color: var(--deep); font-size: 1rem; }
.c-tag {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 2px 8px; border-radius: 20px;
}
.c-hours { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.c-note { font-size: 0.76rem; color: var(--sea); font-style: italic; margin: 4px 0 0; padding-inline-start: 104px; }
.c-plans { margin: 6px 0 2px; padding-inline-start: 104px; }
.c-plan {
  position: relative; font-size: 0.85rem; color: var(--ink);
  padding: 3px 0 3px 16px;
}
.c-plan::before {
  content: '└'; position: absolute; inset-inline-start: 0; color: var(--sea); opacity: 0.6;
}
.c-plan .c-time { color: var(--gold); font-weight: 700; }
.c-plan .c-by { color: var(--muted); }
.c-empty { padding-inline-start: 104px; font-size: 0.8rem; color: var(--muted); font-style: italic; margin-top: 3px; }

/* ---------- native mobile: voyage map pinned to top of viewport ---------- */
@media (max-width: 860px) {
  .timeline-layout { grid-template-columns: 1fr; gap: 0; }
  .map-col {
    position: sticky; top: 0; z-index: 20;
    margin-inline: calc(-1 * clamp(20px, 5vw, 40px));
  }
  #voyageMap {
    height: 42vh; min-height: 230px; max-height: 340px;
    border-radius: 0; border: none;
    box-shadow: 0 14px 26px -14px rgba(7, 38, 59, 0.55);
  }
  .leaflet-container { border-radius: 0; }
  /* caption rides as a chip on the map, so only the map height is sticky */
  .map-caption {
    position: absolute; left: 12px; bottom: 12px; right: auto;
    margin: 0; padding: 8px 14px 9px; max-width: 74%; z-index: 600;
    border-radius: 12px;
  }
  .map-caption .mc-date { font-size: 0.64rem; }
  .map-caption .mc-loc { font-size: 1.15rem; margin: 1px 0 3px; }
  .days-col { margin-top: 18px; }
  .c-plans, .c-empty, .c-note { padding-inline-start: 18px; }
}
.day-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  border: 1px solid rgba(7,38,59,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.day-card:hover { transform: translateY(-4px); }
.day-head { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; }
.day-thumb {
  height: 130px; background-size: cover; background-position: center;
  background-color: var(--deep2); position: relative;
}
.day-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4)); }
.day-info { padding: 18px 22px; }
.day-date { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); font-weight: 600; }
.day-loc { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--deep); margin-top: 2px; }
.day-plans-count { color: var(--muted); font-size: 0.86rem; margin-top: 3px; }
.day-note-line { color: var(--sea); font-size: 0.8rem; font-style: italic; margin-top: 4px; }
.day-toggle {
  padding: 0 26px; font-size: 1.6rem; color: var(--sea);
  transition: transform 0.35s ease;
}
.day-card.open .day-toggle { transform: rotate(45deg); }
.day-body { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.day-card.open .day-body { max-height: 1200px; }
.day-body-inner { padding: 4px 22px 24px; }

.plan {
  border-inline-start: 3px solid var(--gold);
  background: var(--paper); border-radius: 0 12px 12px 0;
  padding: 14px 18px; margin-top: 12px;
}
.plan-title { font-weight: 600; color: var(--deep); }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.plan-meta span { font-size: 0.82rem; color: var(--muted); }
.plan-meta b { color: var(--ink); font-weight: 600; }
.plan-list { margin: 10px 0 0 18px; color: var(--muted); font-size: 0.86rem; }
.plan-list li { margin: 3px 0; }
.plan-note { font-size: 0.78rem; color: var(--sea); margin-top: 8px; font-style: italic; }
.plan-flight { border-inline-start-color: var(--sea); }
.empty-day { color: var(--muted); font-size: 0.92rem; padding: 6px 0; }

/* status pills */
.pill {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 20px;
}
.pill-ok { background: rgba(40,150,90,0.16); color: #1f7a4d; }
.pill-warn { background: rgba(217,164,65,0.2); color: #9c6f10; }
.pill-tbd { background: rgba(180,90,90,0.16); color: #a8503f; }

/* ---------- cards grid ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.info-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(7,38,59,0.06);
  transition: transform 0.3s ease;
}
.info-card:hover { transform: translateY(-5px); }
.card-img { height: 160px; background-size: cover; background-position: center; background-color: var(--deep2); }
.card-pad { padding: 20px 22px 24px; }
.card-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); font-weight: 600; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; color: var(--deep); margin: 4px 0 10px; }

.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; padding: 5px 0; border-bottom: 1px dashed rgba(7,38,59,0.1); }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); }
.card-link { display: inline-block; margin-top: 12px; color: var(--sea); font-weight: 600; font-size: 0.86rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- todo (live shared checklist) ---------- */
.todo-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.progress-wrap { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 220px; }
.progress-bar { flex: 1; height: 10px; background: rgba(7,38,59,0.1); border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--sea), var(--aqua)); border-radius: 20px; transition: width 1s ease; }
.progress-label { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.todo-nick {
  font-family: 'Outfit', sans-serif; font-size: 0.86rem;
  padding: 9px 14px; border-radius: 22px; width: 160px;
  border: 1px solid rgba(7,38,59,0.16); background: #fff; color: var(--ink);
}
.todo-nick:focus { outline: none; border-color: var(--sea); }
.todo-nick-need { border-color: #d9534f; background: #fff3f1; animation: shake 0.4s ease; }
.todo-nick-need::placeholder { color: #d9534f; }

.todo-list { display: flex; flex-direction: column; gap: 14px; }
.todo-item {
  background: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow); border: 1px solid rgba(7,38,59,0.06);
}
.todo-row { display: flex; gap: 14px; align-items: flex-start; }
.todo-check {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; cursor: pointer;
  border: 2px solid var(--sea); background: #fff; display: grid; place-items: center;
  font-size: 0.95rem; color: transparent; transition: background 0.2s ease, color 0.2s ease;
}
.todo-check:hover { background: rgba(31,122,140,0.1); }
.todo-item.done .todo-check { background: var(--sea); color: #fff; }
.todo-item.done .todo-name { text-decoration: line-through; color: var(--muted); }
.todo-main { flex: 1; min-width: 0; }
.todo-name { font-weight: 600; color: var(--deep); }
.todo-needs { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.todo-comments { margin: 0 0 0 40px; }
.todo-comment {
  font-size: 0.84rem; color: var(--ink); padding: 6px 0;
  border-top: 1px dashed rgba(7,38,59,0.1);
}
.todo-comment:first-child { margin-top: 10px; }
.todo-comment b { color: var(--sea); font-weight: 600; }
.todo-comment span { color: var(--muted); font-size: 0.76rem; }
.todo-comment-del {
  border: none; background: none; cursor: pointer; font-size: 1rem; line-height: 1;
  color: var(--muted); opacity: 0.5; padding: 0 2px; margin-inline-start: 6px;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.todo-comment-del:hover { opacity: 1; color: #d9534f; }
.todo-comment-form { display: flex; gap: 8px; margin: 10px 0 0 40px; }
.todo-comment-form input, .todo-add input {
  flex: 1; min-width: 0; font-family: 'Outfit', sans-serif; font-size: 0.85rem;
  padding: 8px 14px; border-radius: 20px;
  border: 1px solid rgba(7,38,59,0.16); background: var(--paper); color: var(--ink);
}
.todo-comment-form input:focus, .todo-add input:focus { outline: none; border-color: var(--sea); }
.todo-comment-form button, .todo-add button {
  border: none; cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.85rem; color: #fff; background: var(--sea);
  padding: 8px 18px; border-radius: 20px; transition: opacity 0.2s ease;
}
.todo-comment-form button:hover, .todo-add button:hover { opacity: 0.88; }
.todo-add { display: flex; gap: 10px; margin-top: 16px; }
.todo-add input { font-size: 0.95rem; padding: 12px 18px; }
.todo-add button { background: var(--gold); color: var(--ink); padding: 12px 24px; }
.todo-sync { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ---------- 2026 season cards ---------- */
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.season-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(7,38,59,0.06);
  display: flex; flex-direction: column; transition: transform 0.3s ease;
}
.season-card:hover { transform: translateY(-5px); }
.season-card.featured { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.season-img { height: 170px; background-size: cover; background-position: center; background-color: var(--deep2); }
.season-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.season-when { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); font-weight: 600; }
.season-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--deep); margin: 3px 0 2px; }
.season-line { font-size: 0.86rem; color: var(--sea); font-weight: 600; }
.season-tag { font-size: 0.92rem; color: var(--muted); font-weight: 300; margin: 10px 0 14px; flex: 1; }
.season-status {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 20px;
}
.season-status.done { background: rgba(40,150,90,0.16); color: #1f7a4d; }
.season-status.now { background: var(--gold); color: var(--ink); }
.season-status.soon { background: rgba(31,122,140,0.16); color: var(--sea); }
.season-link { margin-top: 12px; color: var(--sea); font-weight: 600; font-size: 0.86rem; text-decoration: none; }
.season-link:hover { text-decoration: underline; }

/* ---------- today / deep-link / tap-to-act ---------- */
.today-pill {
  display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; background: var(--gold); color: var(--ink);
  padding: 2px 8px; border-radius: 20px; vertical-align: middle;
}
.day-card.is-today { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.c-day.is-today { background: #fff7e8; outline: 1.5px solid var(--gold); }
.day-link {
  border: none; background: none; cursor: pointer; font-size: 0.8rem;
  opacity: 0.4; padding: 0 3px; transition: opacity 0.15s ease; vertical-align: middle;
}
.day-link:hover { opacity: 1; }
.copyable { cursor: pointer; border-bottom: 1px dashed rgba(7,38,59,0.35); }
.copyable:hover { color: var(--sea); border-color: var(--sea); }
.kv-link { color: var(--sea); font-weight: 600; text-decoration: none; }
.kv-link:hover { text-decoration: underline; }

/* ---------- offline bar ---------- */
#offlineBar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
  background: #9c6f10; color: #fff; text-align: center;
  font-size: 0.82rem; font-weight: 600; padding: 9px 14px;
  transform: translateY(100%); transition: transform 0.3s ease;
}
#offlineBar.show { transform: translateY(0); }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 400;
  background: var(--deep); color: var(--sand);
  padding: 11px 22px; border-radius: 30px; font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 16px 34px -12px rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- AI concierge widget ---------- */
.asst-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 48;
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer; border: none;
  background: radial-gradient(120% 120% at 30% 25%, #e6b860, var(--gold));
  color: var(--ink); font-size: 1.5rem;
  box-shadow: 0 14px 30px -8px rgba(217,164,65,0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.asst-fab:hover { transform: translateY(-3px) scale(1.05); }

.asst-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 49;
  width: 372px; max-width: calc(100vw - 32px);
  height: min(620px, 76vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 20px;
  border: 1px solid rgba(7,38,59,0.1);
  box-shadow: 0 30px 70px -24px rgba(7,38,59,0.6);
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.asst-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.asst-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: var(--deep); color: var(--sand);
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600;
}
.asst-close { background: none; border: none; color: var(--sand); cursor: pointer; font-size: 1rem; opacity: 0.8; }
.asst-close:hover { opacity: 1; }
.asst-log {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; background: var(--paper);
}
.asst-msg {
  max-width: 86%; padding: 9px 13px; border-radius: 14px;
  font-size: 0.88rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.asst-msg strong { font-weight: 600; }
.asst-user { align-self: flex-end; background: var(--sea); color: #fff; border-bottom-right-radius: 4px; }
.asst-assistant { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid rgba(7,38,59,0.08); border-bottom-left-radius: 4px; }
.asst-system { align-self: center; font-size: 0.78rem; color: var(--sea); font-style: italic; background: none; }
.asst-pending { color: var(--muted); animation: asstPulse 1.1s ease-in-out infinite; }
@keyframes asstPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.asst-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(7,38,59,0.1); background: #fff; }
.asst-input input {
  flex: 1; min-width: 0; font-family: 'Outfit', sans-serif; font-size: 0.88rem;
  padding: 10px 14px; border-radius: 22px;
  border: 1px solid rgba(7,38,59,0.18); background: var(--paper); color: var(--ink);
}
.asst-input input:focus { outline: none; border-color: var(--sea); }
.asst-input button {
  border: none; cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.88rem; color: #fff; background: var(--sea); padding: 10px 18px; border-radius: 22px;
}
.asst-input button:hover { opacity: 0.9; }

@media (max-width: 520px) {
  .asst-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: 80vh; }
  .asst-fab { right: 16px; bottom: 16px; }
}

/* ---------- footer ---------- */
.footer { text-align: center; padding: 50px 20px; color: var(--muted); font-size: 0.88rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(7,38,59,0.94); display: none;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-content { max-width: 560px; background: var(--paper); border-radius: 20px; overflow: hidden; }
.lb-content img { width: 100%; display: block; }
.lb-text { padding: 22px; }
.lb-close {
  position: absolute; top: 24px; right: 28px; font-size: 1.6rem;
  background: none; border: none; color: var(--sand); cursor: pointer;
}

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

@media (max-width: 640px) {
  .navlinks { display: none; }
  .day-head { grid-template-columns: 96px 1fr auto; }
  .day-thumb { height: 110px; }
  .day-loc { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img, .wave { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
