:root {
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --ink: #2c2420;
  --ink-soft: #6b5f57;
  --gold: #b8956a;
  --gold-light: #e8d5b5;
  --rose: #c45c5c;
  --rose-soft: #f5e8e8;
  --paris: #c45c5c;
  --brussels: #4a7c59;
  --shadow: 0 8px 32px rgba(44, 36, 32, 0.08);
  --radius: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Segoe UI", sans-serif;
  --font-emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  padding-top: 52px;
}

/* Site nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ebe4dc;
}

.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav-link {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: all 0.15s;
}

.site-nav-link:hover {
  background: var(--bg);
  color: var(--ink);
}

.site-nav-link.active {
  background: var(--ink);
  color: #fff;
}

/* Flag icons (replace 🇫🇷 🇧🇪 — not visible on many Windows fonts) */
.flag {
  display: inline-block;
  width: 1.1em;
  height: 0.78em;
  border-radius: 2px;
  vertical-align: -0.08em;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.flag-lg {
  width: 2rem;
  height: 1.4rem;
  vertical-align: middle;
}

.flag-fr {
  background: linear-gradient(90deg, #0055a4 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%);
}

.flag-be {
  background: linear-gradient(90deg, #000 33.33%, #fdda25 33.33% 66.66%, #ef3340 66.66%);
}

.flag-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.hero-flags .flag,
.hotel-mini .flag,
.hub-icon.flag-lg {
  margin-right: 0.15em;
}

.emoji {
  font-family: var(--font-emoji);
  font-style: normal;
}

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(44, 36, 32, 0.55) 0%, rgba(196, 92, 92, 0.35) 50%, rgba(74, 124, 89, 0.4) 100%),
    url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=1600&q=80") center/cover no-repeat;
  color: #fff;
  padding: 3rem 1.5rem 5rem;
}

.hero-compact {
  min-height: 42vh;
  padding: 2.5rem 1.5rem 3rem;
}

.hero-paris {
  background:
    linear-gradient(135deg, rgba(44, 36, 32, 0.55), rgba(196, 92, 92, 0.45)),
    url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=1600&q=80") center/cover no-repeat;
}

.hero-brussels {
  background:
    linear-gradient(135deg, rgba(44, 36, 32, 0.55), rgba(74, 124, 89, 0.5)),
    url("https://images.unsplash.com/photo-1559113513-d5e09c1b99dd?w=1600&q=80") center/cover no-repeat;
}

.hero-prewedding {
  background:
    linear-gradient(135deg, rgba(44, 36, 32, 0.5), rgba(196, 92, 92, 0.55)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?w=1600&q=80") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(0, 0, 0, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-tag {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 1rem;
}

.hero h1 .flag-text {
  justify-content: center;
  gap: 0.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hero h1 span {
  font-style: italic;
  font-weight: 500;
  opacity: 0.95;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.92;
  margin: 0 0 1.5rem;
}

.hero-flags {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.95rem;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.hero-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rose);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  animation: bounce 2s infinite;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.section-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Map */
.map-section {
  margin-top: 0;
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

#map {
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ebe4dc;
}

.map-legend {
  background: var(--bg);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.82rem;
}

.map-legend h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.map-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.paris { background: var(--paris); }
.dot.brussels { background: var(--brussels); }
.dot.tour { background: var(--gold); }
.dot.hotel { background: #5b7fa5; }

.line-sample {
  width: 22px;
  height: 3px;
  background: var(--paris);
  border-radius: 2px;
  flex-shrink: 0;
}

.line-sample.train {
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px);
}

/* Day tabs */
.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.day-tab {
  border: 1px solid #e5ddd4;
  background: var(--bg);
  color: var(--ink-soft);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-tab:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.day-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.day-tab.active.paris { background: var(--paris); border-color: var(--paris); }
.day-tab.active.brussels { background: var(--brussels); border-color: var(--brussels); }

.day-tab.all.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* Pre-wedding section */
.prewedding-section {
  margin-bottom: 3rem;
  background: linear-gradient(180deg, #fff 0%, var(--rose-soft) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border: 1px solid #f0dede;
}

.prewedding-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  align-items: start;
}

.prewedding-meta {
  margin-bottom: 1.25rem;
}

.pw-couple {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.04em;
}

.pw-date {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.pw-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.5rem;
  border-left: 2px solid #ecd9d9;
}

.pw-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.85rem;
  padding: 0 0 1.1rem 0.85rem;
}

.pw-item:last-child {
  padding-bottom: 0;
}

.pw-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 0.35rem;
  margin-left: -1.45rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ecd9d9;
}

.pw-row-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.2rem;
}

.pw-time {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.pw-kind {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pw-activity {
  margin: 0;
  font-size: 0.95rem;
}

.pw-loc {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.pw-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}

.pw-item:hover .pw-activity {
  color: var(--rose);
}

.prewedding-aside {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.15rem;
  border: 1px solid #ebe4dc;
  position: sticky;
  top: 1rem;
}

.prewedding-aside h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.shoot-route-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.shoot-route-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #ebe4dc;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s;
}

.shoot-route-list li:hover {
  color: var(--rose);
}

.shoot-route-list li:last-child {
  border-bottom: none;
}

.route-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-time {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 0.1rem;
}

.pw-map-btn {
  width: 100%;
  margin-top: 0;
}

.pw-source {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.pw-link {
  display: inline-block;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--rose);
  text-decoration: none;
  font-weight: 500;
}

.pw-link:hover {
  text-decoration: underline;
}

/* Itinerary cards */
.itinerary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.day-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 1rem;
}

.day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44, 36, 32, 0.12);
}

.day-card.paris { border-left-color: var(--paris); }
.day-card.brussels { border-left-color: var(--brussels); }

.day-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.25rem;
  padding: 1.35rem 1.5rem 0.75rem;
}

.day-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: 10px;
  text-align: center;
}

.day-badge .num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.day-badge .date {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.day-card-title {
  flex: 1;
  min-width: 200px;
}

.day-card-title h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.day-card-title .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.day-emoji {
  font-size: 2rem;
  line-height: 1;
}

.day-card-body {
  padding: 0 1.5rem 1.35rem;
}

.theme-pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose);
  margin-bottom: 0.85rem;
}

.day-card.brussels .theme-pill {
  background: #e8f0ea;
  color: var(--brussels);
}

.transport-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}

.slots {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.slots li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #ebe4dc;
  font-size: 0.92rem;
}

.slots li:last-child { border-bottom: none; }

.slots .time {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.highlight-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  background: var(--bg);
  border-radius: 6px;
  color: var(--ink-soft);
}

.stops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.stop-chip {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #e5ddd4;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}

.stop-chip:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--ink);
}

.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  background: #fff9f0;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.map-btn {
  margin-top: 0.75rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}

.map-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* Summary */
.summary h2 {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.summary-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.summary-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.summary-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.summary-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pw-hotel {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Hub page */
.hub-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(44, 36, 32, 0.12);
}

.hub-card.paris { border-top-color: var(--paris); }
.hub-card.brussels { border-top-color: var(--brussels); }
.hub-card.prewedding { border-top-color: var(--rose); }

.hub-icon {
  display: block;
  margin-bottom: 0.5rem;
}

.hub-icon:not(.flag-lg):not(.hub-emoji) {
  font-size: 2rem;
}

.hub-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.hub-card p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex: 1;
}

.hub-hotel {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.hub-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rose);
}

.hotels-overview h2 {
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 1rem;
}

.hotels-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.hotel-mini {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.hotel-mini.paris { border-left-color: var(--paris); }
.hotel-mini.brussels { border-left-color: var(--brussels); }

.hotel-mini span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.hotel-mini strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.hotel-mini small {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Hotel card on city pages */
.hotel-card-wrap {
  margin: 1.5rem 0 0;
}

.hotel-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.hotel-card.paris { border-left-color: var(--paris); }
.hotel-card.brussels { border-left-color: var(--brussels); }

.hotel-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.hotel-card-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.hotel-card-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.hotel-card-address,
.hotel-card-dates {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hotel-map-btn {
  margin-top: 0.5rem;
}

footer a {
  color: var(--rose);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid #ebe4dc;
}

/* Leaflet popup */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  font-family: var(--font-body);
}

.popup-title {
  font-weight: 500;
  margin: 0 0 0.25rem;
}

.popup-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .prewedding-layout {
    grid-template-columns: 1fr;
  }

  .prewedding-aside {
    position: static;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
  }

  .map-legend h3 {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .map-legend ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  #map {
    height: 360px;
  }

  .slots li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
