:root {
  --bg: #f5efe4;
  --paper: rgba(255, 250, 244, 0.84);
  --ink: #24170f;
  --muted: #6f5746;
  --line: rgba(67, 40, 21, 0.12);
  --accent: #d67144;
  --accent-deep: #9f4826;
  --shadow: 0 28px 70px rgba(60, 38, 24, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 165, 82, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(214, 113, 68, 0.16), transparent 32%),
    linear-gradient(180deg, #fbf6ee 0%, var(--bg) 62%, #efe4d3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.trip-page h1,
.trip-page h2,
.trip-page h3,
.trip-page h4 {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.02em;
  line-height: 0.96;
}

p {
  margin: 0;
}

.eyebrow,
.section-label,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.hero-text,
.trip-hero__summary,
.destination-card__overview,
.budget-row p,
.note-card p,
.overview-panel__route p,
.gallery-card__body p,
.empty-state p {
  color: var(--muted);
  line-height: 1.68;
}

.metric-pill,
.filter-chip,
.mini-chip,
.trip-back,
.destination-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.overview-shell,
.trip-content {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.overview-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.overview-hero__copy,
.overview-toolbar,
.destination-card,
.overview-panel,
.story-section,
.empty-state {
  backdrop-filter: blur(16px);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.overview-hero__copy {
  padding: 40px;
  border-radius: var(--radius-xl);
}

.overview-hero__copy h1,
.trip-hero h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
}

.overview-hero__copy .hero-text {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 1.04rem;
}

.hero-metrics,
.trip-hero__metrics,
.destination-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.metric-pill,
.mini-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mosaic-card {
  min-height: 220px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: var(--shadow);
}

.mosaic-card:first-child {
  grid-column: 1 / -1;
  min-height: 300px;
}

.mosaic-card__content {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  color: #fff8f1;
}

.mosaic-card__content span {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 800;
}

.mosaic-card__content h3 {
  font-size: 2rem;
}

.mosaic-card__content p {
  margin-top: 10px;
  color: rgba(255, 248, 241, 0.84);
}

.overview-toolbar,
.story-section {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.overview-compare {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.overview-toolbar,
.story-section__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.overview-toolbar h2,
.story-section h2,
.empty-state h2,
.empty-state h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.toolbar-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.search-field {
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.search-field input {
  min-width: 280px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  color: var(--ink);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: rgba(214, 113, 68, 0.12);
  border-color: rgba(214, 113, 68, 0.45);
}

.overview-grid,
.gallery-grid,
.stay-grid,
.budget-list,
.note-stack {
  display: grid;
  gap: 18px;
}

.overview-grid {
  margin-top: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(73, 45, 23, 0.08);
  vertical-align: middle;
  text-align: left;
}

.compare-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-option {
  display: grid;
  gap: 4px;
}

.compare-option strong {
  font-size: 1rem;
}

.compare-option span {
  font-size: 0.85rem;
  color: var(--muted);
}

.score-meter {
  display: inline-flex;
  gap: 6px;
}

.score-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(117, 83, 61, 0.15);
}

.score-dot.is-filled {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.destination-card {
  --card-accent: var(--accent);
  --card-deep: var(--accent-deep);
  --card-wash: rgba(214, 113, 68, 0.12);
  --card-paper: rgba(255, 255, 255, 0.72);
  --card-glow: rgba(60, 38, 24, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 26px 70px var(--card-glow);
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(60, 38, 24, 0.18);
}

.destination-card__visual {
  min-height: 270px;
  padding: 22px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
}

.destination-card__visual-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff8f1;
  font-size: 0.92rem;
  font-weight: 800;
}

.destination-card__body {
  padding: 24px;
}

.destination-card__body h3 {
  font-size: 2.4rem;
  margin-top: 8px;
}

.destination-card__tagline {
  margin-top: 10px;
  font-weight: 800;
}

.destination-card__overview {
  margin-top: 14px;
}

.destination-card__decision,
.destination-card__scores {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.destination-card__decision {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decision-note {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--card-paper);
  border: 1px solid rgba(73, 45, 23, 0.08);
}

.decision-note span,
.score-row span {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--card-deep);
}

.decision-note p {
  color: var(--muted);
  line-height: 1.55;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--card-wash);
  border: 1px solid rgba(73, 45, 23, 0.08);
}

.score-row span {
  margin-bottom: 0;
}

.destination-card__list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.destination-card__list span {
  display: inline-block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--card-deep);
}

.destination-card__list p {
  line-height: 1.6;
}

.destination-card__link,
.trip-back {
  margin-top: 22px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff8f1;
  text-decoration: none;
  font-weight: 800;
}

.destination-card .score-dot.is-filled {
  background: linear-gradient(135deg, var(--card-accent), var(--card-deep));
}

.destination-card__link {
  background: linear-gradient(135deg, var(--card-accent), var(--card-deep));
}

.trip-page {
  background:
    radial-gradient(circle at top left, var(--theme-glow-a, rgba(212, 165, 82, 0.22)), transparent 30%),
    radial-gradient(circle at top right, var(--theme-glow-b, rgba(214, 113, 68, 0.16)), transparent 34%),
    linear-gradient(180deg, rgba(10, 8, 7, 0.08), rgba(245, 239, 228, 0.18)),
    linear-gradient(180deg, var(--theme-top, #fbf6ee) 0%, var(--bg) 58%, var(--theme-bottom, #efe4d3) 100%);
}

.trip-hero {
  min-height: 72vh;
  background-size: cover;
  background-position: center;
  color: #fff8f1;
}

.trip-hero__inner {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 84px;
  display: flex;
  min-height: 72vh;
  flex-direction: column;
  justify-content: end;
}

.trip-back {
  margin: 0 0 auto;
  width: fit-content;
  background: rgba(255, 248, 241, 0.18);
  border: 1px solid rgba(255, 248, 241, 0.28);
}

.trip-hero__summary {
  color: rgba(255, 248, 241, 0.84);
  max-width: 68ch;
  margin-top: 18px;
  font-size: 1.08rem;
}

.story-section--intro,
.story-section--split {
  display: grid;
  gap: 20px;
}

.story-section--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.overview-panel__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.overview-panel__facts article,
.budget-row,
.note-card,
.gallery-card__body {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(73, 45, 23, 0.08);
}

.overview-panel__facts article {
  padding: 16px;
  border-radius: var(--radius-md);
}

.overview-panel__facts span {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.overview-panel__facts strong {
  display: block;
  line-height: 1.45;
}

.trip-decision-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.trip-decision-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(73, 45, 23, 0.08);
}

.trip-decision-card span {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.live-map-shell {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(73, 45, 23, 0.08);
  box-shadow: var(--shadow);
}

.live-map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 22px 22px 0;
}

.live-map-toolbar h3 {
  font-size: 2rem;
}

.live-map-note,
.drawer-day__lead,
.timeline-item__body p {
  color: var(--muted);
  line-height: 1.6;
}

.live-route-map {
  height: 480px;
  margin: 18px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(73, 45, 23, 0.08);
}

.live-route-map .leaflet-control-attribution {
  font-size: 0.68rem;
}

.route-pin {
  background: transparent;
  border: 0;
}

.route-pin span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff8f1;
  border: 2px solid rgba(255, 248, 241, 0.92);
  box-shadow: 0 12px 22px rgba(36, 23, 15, 0.22);
  font-size: 0.84rem;
  font-weight: 800;
}

.route-popup h4 {
  margin: 4px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.route-popup p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.stay-grid {
  margin-top: 18px;
  gap: 20px;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(73, 45, 23, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.gallery-card__image {
  min-height: 250px;
  background-size: cover;
  background-position: center;
}

.gallery-card__body {
  padding: 16px 18px;
}

.stay-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  text-align: left;
  border: 1px solid rgba(73, 45, 23, 0.08);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow);
}

.stay-card__image {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.stay-card__body {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.stay-card__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.stay-card__body h3 {
  font-size: 1.8rem;
}

.stay-card__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.budget-list,
.note-stack {
  margin-top: 18px;
}

.budget-row,
.note-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.budget-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.budget-row h3,
.note-card h3 {
  font-size: 1.45rem;
}

.budget-row strong {
  white-space: nowrap;
}

.empty-state {
  padding: 44px 28px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 10, 0.42);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.activity-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  z-index: 21;
  transition: transform 220ms ease;
}

.activity-drawer[aria-hidden="true"] {
  transform: translateX(100%);
  pointer-events: none;
}

.activity-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.activity-drawer__panel {
  height: 100%;
  overflow-y: auto;
  background: rgba(255, 248, 241, 0.96);
  border-left: 1px solid rgba(73, 45, 23, 0.1);
  box-shadow: -24px 0 60px rgba(38, 24, 15, 0.18);
  padding: 24px;
}

.activity-drawer__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.activity-drawer__close {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.drawer-days {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.drawer-day {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(73, 45, 23, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.drawer-day__image {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.drawer-day__body {
  padding: 18px;
}

.drawer-day__body h3 {
  font-size: 1.7rem;
}

.drawer-day__lead {
  margin-top: 10px;
}

.moment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.moment-chip {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(214, 113, 68, 0.1);
  border: 1px solid rgba(214, 113, 68, 0.18);
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline-details {
  margin-top: 18px;
  border-top: 1px solid rgba(73, 45, 23, 0.08);
  padding-top: 16px;
}

.timeline-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent-deep);
  list-style: none;
}

.timeline-details summary::-webkit-details-marker {
  display: none;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
}

.timeline-item__time {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}

.timeline-item__body strong {
  display: block;
  line-height: 1.45;
}

.timeline-item__body p {
  margin-top: 6px;
}

@media (max-width: 1100px) {
  .overview-hero,
  .story-section--split,
  .overview-grid,
  .gallery-grid,
  .stay-card,
  .overview-panel__facts,
  .destination-card__decision,
  .trip-decision-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .overview-shell,
  .trip-content,
  .trip-hero__inner {
    width: min(100vw - 20px, 100%);
  }

  .overview-hero__copy,
  .overview-toolbar,
  .overview-compare,
  .story-section,
  .overview-panel,
  .empty-state {
    padding: 22px;
    border-radius: 24px;
  }

  .overview-hero__copy h1,
  .trip-hero h1 {
    font-size: 3rem;
  }

  .search-field input {
    min-width: 100%;
  }

  .toolbar-actions,
  .chip-group {
    width: 100%;
  }

  .budget-row {
    flex-direction: column;
  }

  .stay-card {
    grid-template-columns: 1fr;
  }

  .live-map-toolbar {
    flex-direction: column;
    align-items: start;
  }

  .live-route-map {
    height: 400px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
