:root {
  --cream: #fff9ee;
  --cream-soft: #fff3d6;
  --paper: #ffffff;
  --navy: #12344d;
  --slate: #44596b;
  --coral: #e85d2a;
  --lemon: #f5b700;
  --lemon-bright: #ffd12e;
  --azure: #1b6ca8;
  --azure-soft: #eaf4fc;
  --leaf: #2e7d4f;
  --leaf-soft: #eef8f2;
  --border-warm: #e6d2aa;
  --shadow: 0 10px 28px rgba(18, 52, 77, 0.08);
  --radius: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 224, 102, 0.28), transparent 40%),
    radial-gradient(circle at 90% 82%, rgba(186, 224, 255, 0.25), transparent 45%),
    #f6eedc;
  line-height: 1.55;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

.airmail-bar {
  height: 10px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--lemon) 0 22px,
    transparent 22px 26px,
    var(--azure) 26px 48px,
    transparent 48px 52px,
    var(--coral) 52px 74px,
    transparent 74px 78px,
    var(--leaf) 78px 100px,
    transparent 100px 104px
  );
}

.page-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 12px 24px;
}

.postcard-frame {
  background: var(--cream);
  border: 1.5px solid var(--border-warm);
  border-radius: 22px;
  padding: 18px 16px 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.postcard-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(242, 201, 76, 0.78);
  border-radius: 16px;
  pointer-events: none;
}

.postcard-frame > * {
  position: relative;
  z-index: 1;
}

/* ================= HERO ================= */
.hero {
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-warm);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffe7ba;
  border: 1px solid var(--lemon);
  color: #8a5000;
  font-size: clamp(0.64rem, 2.5vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
}

.hero-stamp-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.postmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px dashed rgba(27, 108, 168, 0.55);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.48rem;
  font-weight: 800;
  line-height: 1.2;
  color: rgba(27, 108, 168, 0.78);
  transform: rotate(-8deg);
}

.stamp {
  width: 70px;
  padding: 4px;
  background: #fff;
  border: 1px dashed #d6c39e;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(18, 52, 77, 0.12);
  transform: rotate(3deg);
}

.stamp-inner {
  background: linear-gradient(180deg, #1b6ca8, #45a2d6);
  border-radius: 3px;
  padding: 6px 4px 5px;
  text-align: center;
  color: #fff;
}

.stamp-lemon {
  width: 42px;
  height: 42px;
  display: block;
  margin: 0 auto 2px;
}

.stamp-inner strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.stamp-inner small {
  display: block;
  font-size: 0.54rem;
  font-weight: 700;
  color: #ffe066;
}

.hero-greeting {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.55rem, 5.6vw, 2.15rem);
  font-weight: 700;
  color: var(--coral);
  margin: 12px 0 4px;
  line-height: 1.2;
}

.heart-inline {
  color: #ff5c77;
  font-size: 0.85em;
}

.hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 7vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--navy);
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.date-pill {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 10px;
}

.countdown-chip {
  background: var(--leaf-soft);
  border: 1px solid rgba(46, 125, 79, 0.25);
  color: var(--leaf);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 10px;
}

.gift-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--cream-soft);
  border: 1px solid #f2c94c;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.gift-icon {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.gift-callout h2 {
  margin: 0 0 4px;
  font-size: 1.04rem;
  color: var(--navy);
}

.gift-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: #243e52;
}

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

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 93, 42, 0.24);
}

.btn-secondary {
  background: var(--lemon-bright);
  color: var(--navy);
}

.btn-azure {
  background: var(--azure);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--azure);
  border-color: #b7d7f0;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  border-color: var(--border-warm);
}

/* ================= SECTIONS ================= */
.section {
  padding-top: 22px;
  scroll-margin-top: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
}

.section-hint {
  font-size: 0.84rem;
  color: var(--slate);
  font-weight: 600;
}

.section-intro {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #294458;
}

.status-pill {
  background: var(--leaf-soft);
  color: var(--leaf);
  border: 1px solid rgba(46, 125, 79, 0.22);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-warm {
  background: #fff0e8;
  color: var(--coral);
  border-color: rgba(232, 93, 42, 0.25);
}

/* ================= POLAROID GALLERY ================= */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.polaroid {
  position: relative;
  background: #fff;
  border: 1px solid #eadfcd;
  border-radius: 8px;
  padding: 8px 8px 10px;
  box-shadow: 0 6px 16px rgba(18, 52, 77, 0.1);
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease;
}

.polaroid:hover {
  transform: rotate(0deg) translateY(-2px);
}

.tilt-left { transform: rotate(-1.2deg); }
.tilt-right { transform: rotate(1.3deg); }
.tilt-left-sm { transform: rotate(0.9deg); }
.tilt-right-sm { transform: rotate(-1deg); }

.polaroid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.polaroid-cap {
  display: block;
  margin-top: 6px;
  font-family: "Caveat", cursive;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

.washi {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 11px;
  border-radius: 2px;
  opacity: 0.82;
}

.washi-gold { background: var(--lemon); }
.washi-coral { background: var(--coral); }
.washi-azure { background: var(--azure); }
.washi-green { background: var(--leaf); }

/* ================= HOTEL CARD ================= */
.hotel-card {
  background: var(--paper);
  border: 1px solid #cfe2f2;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(18, 52, 77, 0.06);
}

.hotel-card-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hotel-thumb {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 12px;
}

.hotel-body h3 {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.hotel-address {
  margin: 0 0 10px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--azure);
}

.hotel-address span {
  display: inline-block;
  margin-top: 3px;
  font-weight: 400;
  color: var(--slate);
}

.hotel-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
  font-size: 0.93rem;
}

.gps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.gps-actions .btn {
  flex: 1 1 170px;
}

.booking-details {
  margin-top: 14px;
  border-top: 1px dashed #d9e7f3;
  padding-top: 10px;
}

.booking-details summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate);
  padding: 4px 0;
}

.booking-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.booking-details-grid > div {
  background: #f7fafd;
  border-radius: 10px;
  padding: 8px 10px;
}

.booking-details-grid span {
  display: block;
  font-size: 0.74rem;
  color: var(--slate);
}

.booking-details-grid strong {
  font-size: 0.88rem;
  color: var(--navy);
}

/* ================= MAP & POIS ================= */
.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-warm);
  background: #fff;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

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

.map-box {
  height: 310px;
  border-radius: var(--radius);
  border: 1px solid #cfe2f2;
  overflow: hidden;
  background: #e9f2fa;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  z-index: 1;
}

.map-loading {
  color: var(--slate);
  font-size: 0.9rem;
  padding: 16px;
  text-align: center;
}

.custom-pin {
  background: #fff;
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(18, 52, 77, 0.28);
}

.custom-pin.pin-hotel { border-color: var(--azure); background: #eaf4fc; }
.custom-pin.pin-citron { border-color: var(--lemon); background: #fff9db; }
.custom-pin.pin-balade { border-color: var(--leaf); background: #eef8f2; }

.poi-list {
  display: grid;
  gap: 10px;
}

.poi-card {
  background: #fff;
  border: 1px solid #eadfcd;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.poi-card h4 {
  margin: 0 0 3px;
  font-size: 0.98rem;
}

.poi-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--leaf);
  margin-bottom: 3px;
}

.poi-desc {
  margin: 0;
  font-size: 0.87rem;
  color: var(--slate);
}

.poi-gps-btn {
  flex-shrink: 0;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--azure-soft);
  color: var(--azure);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  border: 1px solid #c5dff5;
}

/* ================= PROGRAM TABS ================= */
.day-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.day-tab {
  min-height: 44px;
  border: 1px solid var(--border-warm);
  background: #fff;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
}

.day-tab.active {
  background: var(--navy);
  color: var(--lemon-bright);
  border-color: var(--navy);
}

.day-panel {
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 4px 14px rgba(18, 52, 77, 0.05);
}

.day-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  color: #fff;
  margin-bottom: 8px;
}

.day-panel h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fdfaf3;
  border-radius: 12px;
  padding: 10px 12px;
}

.time-tag {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--azure);
  background: var(--azure-soft);
  padding: 3px 8px;
  border-radius: 8px;
  margin-top: 2px;
}

/* ================= WISHLIST ================= */
.checklist-card {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.checklist-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.checklist-card small {
  font-weight: 500;
  color: var(--slate);
}

.wishlist {
  display: grid;
  gap: 8px;
}

.wish-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #faf6ec;
  cursor: pointer;
  font-size: 0.92rem;
}

.wish-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--leaf);
  flex-shrink: 0;
}

.wish-item.done span {
  text-decoration: line-through;
  color: var(--slate);
}

/* ================= DISCOVER MENTON ================= */
.discover-grid {
  display: grid;
  gap: 12px;
}

.info-card {
  background: #fff;
  border: 1px solid #eadfcd;
  border-radius: var(--radius);
  padding: 14px 16px;
}

.info-emoji {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 4px;
}

.info-card h3 {
  margin: 0 0 5px;
  font-size: 1.03rem;
}

.info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate);
}

.tips-banner {
  margin-top: 12px;
  background: var(--azure-soft);
  border: 1px solid #c5dff5;
  border-radius: var(--radius);
  padding: 13px 15px;
  font-size: 0.92rem;
  color: var(--navy);
}

/* ================= FOOTER ================= */
.footer-love {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-warm);
  text-align: center;
}

.footer-hearts {
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  color: var(--coral);
  margin-bottom: 6px;
}

.footer-script {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--coral);
  line-height: 1.25;
  margin: 0 0 6px;
}

.footer-sub {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
}

/* ================= BOTTOM NAV ================= */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(94vw, 520px);
  background: rgba(18, 52, 77, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 10px 28px rgba(18, 52, 77, 0.28);
  z-index: 40;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: rgba(255, 249, 238, 0.8);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 2px;
  border-radius: 999px;
}

.nav-item span {
  font-size: 1.05rem;
  line-height: 1.1;
}

.nav-item.active {
  background: rgba(255, 209, 46, 0.18);
  color: var(--lemon-bright);
}

/* ================= LIGHTBOX & TOAST ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 28, 42, 0.9);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 80;
}

.lightbox[hidden] { display: none; }

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
}

.lb-figure {
  margin: 0;
  max-width: 720px;
  width: 100%;
  background: #fff;
  padding: 10px 10px 14px;
  border-radius: 12px;
  text-align: center;
}

.lb-figure img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.lb-figure figcaption {
  margin-top: 10px;
  font-family: "Caveat", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.toast[hidden] { display: none; }

/* ================= TABLET / DESKTOP ================= */
@media (min-width: 680px) {
  .postcard-frame {
    padding: 28px 30px 32px;
  }

  .polaroid-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .hotel-card-main {
    flex-direction: row;
    align-items: center;
  }

  .hotel-thumb {
    width: 230px;
    height: 175px;
    flex-shrink: 0;
  }

  .discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
