:root {
  --bg: #f8f7ff;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.96);
  --text: #16181d;
  --muted: #5d6474;
  --accent: #5b5cf0;
  --accent-2: #ff5fa2;
  --accent-3: #7c3aed;
  --accent-soft: rgba(91, 92, 240, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 22px 60px rgba(59, 42, 122, 0.12);
  --shadow-soft: 0 12px 32px rgba(91, 92, 240, 0.14);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 92, 240, 0.16), transparent 24%),
    radial-gradient(circle at 85% 8%, rgba(255, 95, 162, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.1), transparent 30%),
    linear-gradient(180deg, #fcfbff 0%, #f7f3ff 42%, #f8f7ff 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.section-card,
.day-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero::before,
.section-card::before,
.day-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.48), rgba(255,255,255,0.08));
  pointer-events: none;
}

.hero {
  padding: 34px;
  margin-bottom: 24px;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.eyebrow,
.section-kicker,
.day-date {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 800;
  margin: 0;
}

.hero-badge,
.vibe-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(91, 92, 240, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: #4136c5;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero-badge {
  padding: 10px 14px;
  font-size: 0.83rem;
}

.vibe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vibe-pill {
  padding: 9px 13px;
  font-size: 0.83rem;
}

.hero h1,
.section-card h2,
.day-header h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 0.98;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  max-width: 10ch;
}

.section-card h2 {
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.day-header h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 16px 0 0;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,243,255,0.88));
  border: 1px solid rgba(91, 92, 240, 0.1);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
}

.section-card {
  padding: 28px;
  margin-bottom: 24px;
}

.section-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bullet-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.55;
}

.tabs-shell {
  position: relative;
  z-index: 1;
}

.day-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin: 0 0 8px;
  scrollbar-width: thin;
}

.day-tab {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  min-width: 172px;
  padding: 14px 16px;
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(91, 92, 240, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(91, 92, 240, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.day-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 92, 240, 0.22);
  box-shadow: var(--shadow-soft);
}

.day-tab.is-active {
  background: linear-gradient(135deg, rgba(91, 92, 240, 0.16), rgba(255, 95, 162, 0.14));
  border-color: rgba(91, 92, 240, 0.24);
}

.day-tab:focus-visible {
  outline: 3px solid rgba(91, 92, 240, 0.24);
  outline-offset: 2px;
}

.day-tab-date {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
}

.day-tab-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.day-panels {
  display: block;
}

.day-panel[hidden] {
  display: none;
}

.day-card {
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.day-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 68px rgba(59, 42, 122, 0.16);
  border-color: rgba(91, 92, 240, 0.14);
}

.day-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.day-title-wrap p {
  margin: 0;
}

.day-subtitle {
  margin-top: 10px;
  color: var(--muted);
  max-width: 800px;
  line-height: 1.6;
}

.day-cost {
  min-width: 185px;
  background: linear-gradient(135deg, rgba(91, 92, 240, 0.14), rgba(255, 95, 162, 0.14));
  color: #3129a8;
  padding: 12px 14px;
  border-radius: 18px;
  font-weight: 800;
  text-align: right;
  border: 1px solid rgba(91, 92, 240, 0.1);
  box-shadow: var(--shadow-soft);
}

.day-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 1fr);
  gap: 20px;
}

.route-list,
.notes-box,
.budget-box {
  border: 1px solid rgba(91, 92, 240, 0.08);
  border-radius: 22px;
  padding: 16px;
  background: var(--card-strong);
  box-shadow: 0 6px 22px rgba(91, 92, 240, 0.06);
}

.route-list ol {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.route-list li {
  color: var(--text);
  line-height: 1.45;
}

.route-list li span,
.notes-box li,
.budget-box li {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  gap: 16px;
}

.map {
  width: 100%;
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(91, 92, 240, 0.1);
  box-shadow: 0 10px 30px rgba(91, 92, 240, 0.08);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(91, 92, 240, 0.1);
  color: var(--text);
  background: white;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.link-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(91, 92, 240, 0.18);
}

.link-chip.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: white;
  border-color: transparent;
}

.muted-label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.budget-box ul,
.notes-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  line-height: 1.55;
}

.leaflet-popup-content-wrapper {
  border-radius: 16px;
}

@media (max-width: 900px) {
  .day-body {
    grid-template-columns: 1fr;
  }

  .day-header,
  .hero-topline {
    flex-direction: column;
    align-items: start;
  }

  .day-cost {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .section-card,
  .day-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero h1 {
    max-width: none;
  }

  .day-tabs {
    gap: 10px;
    padding-bottom: 12px;
  }

  .day-tab {
    min-width: 150px;
    padding: 12px 14px;
  }

  .map {
    height: 300px;
  }

  .vibe-row {
    gap: 8px;
  }
}
