:root {
  --paper: #f7edda;
  --paper-deep: #ebd8b9;
  --ink: #28211b;
  --muted: #75695d;
  --cherry: #8b1f27;
  --cherry-dark: #68151c;
  --gold: #9a7435;
  --blue: #7898a6;
  --olive: #7d8561;
  --line: rgba(114, 81, 48, 0.22);
  --shadow: 0 18px 48px rgba(82, 49, 24, 0.13);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-width: 320px;
  padding-bottom: calc(94px + env(safe-area-inset-bottom));
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(rgba(90, 57, 31, 0.12) 0.55px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.85) 0.55px, transparent 0.7px);
  background-position:
    0 0,
    5px 7px;
  background-size: 9px 9px;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
}

.hero__heading {
  position: relative;
  text-align: center;
  padding: 32px 20px 22px;
}

.hero__cherries {
  position: absolute;
  left: max(20px, calc(50% - 210px));
  top: 30px;
  color: var(--cherry);
  font-size: 34px;
  transform: rotate(-9deg);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
}

h1 {
  margin-bottom: 0;
  color: var(--cherry-dark);
  font-size: clamp(48px, 13vw, 82px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero__dates {
  margin: 9px 0 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.map-stage {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  isolation: isolate;
  border-block: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}

.route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #d6d3bc;
}

.route-map::after {
  position: absolute;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(245, 234, 213, 0.12), rgba(245, 234, 213, 0.18)),
    radial-gradient(circle at center, transparent 35%, rgba(87, 57, 30, 0.12));
  mix-blend-mode: multiply;
}

.route-map .leaflet-tile-pane {
  filter: sepia(0.38) saturate(0.72) contrast(0.92) brightness(1.04);
}

.route-map .leaflet-control-zoom a {
  color: var(--cherry);
  background: rgba(250, 241, 224, 0.94);
  border-color: var(--line);
}

.route-map .leaflet-control-attribution {
  color: var(--muted);
  background: rgba(247, 237, 218, 0.86);
  font-size: 9px;
}

.route-map .leaflet-control-attribution a {
  color: var(--cherry);
}

.route-marker-shell {
  background: transparent;
  border: 0;
}

.route-marker {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff8ec;
  background: var(--cherry);
  border: 3px solid #f6dcc1;
  border-radius: 50% 50% 50% 10%;
  box-shadow: 0 7px 15px rgba(68, 23, 19, 0.3);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  transform: rotate(-45deg);
}

.route-marker.is-locked {
  background: var(--cherry-dark);
  box-shadow:
    0 0 0 3px rgba(154, 116, 53, 0.55),
    0 7px 15px rgba(68, 23, 19, 0.3);
}

.route-marker b {
  display: block;
  font: inherit;
  transform: rotate(45deg);
}

.map-popup {
  display: grid;
  gap: 4px;
  min-width: 190px;
  font-family: var(--sans);
}

.map-popup span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.map-popup strong {
  color: var(--cherry-dark);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}

.map-popup small {
  color: var(--muted);
  line-height: 1.35;
}

.map-popup a {
  margin-top: 4px;
  color: var(--cherry);
  font-weight: 700;
  text-decoration: none;
}

.map-stage__fallback {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 30px;
  text-align: center;
  color: var(--cherry-dark);
  background:
    linear-gradient(rgba(247, 237, 218, 0.92), rgba(235, 216, 185, 0.95)),
    url("assets/travel-vignettes.png") center / cover;
}

.map-stage__fallback[hidden] {
  display: none;
}

.map-stage__fallback i {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 34px;
}

.map-stage__fallback span {
  color: var(--muted);
  font-size: 12px;
}

.map-stage__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 14px;
  color: var(--ink);
  background: rgba(250, 241, 224, 0.9);
  border: 1px solid rgba(139, 31, 39, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  z-index: 600;
}

.map-stage__caption span {
  flex: none;
  color: var(--cherry);
  font-weight: 700;
}

.map-stage__caption strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  width: min(100% - 28px, 820px);
  margin: 0 auto;
}

.date-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 4px;
  align-items: center;
  margin: -1px -14px 0;
  padding: 14px 8px 12px;
  background: rgba(247, 237, 218, 0.96);
  border-bottom: 1px solid var(--line);
}

.date-nav__arrow {
  width: 36px;
  height: 50px;
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
}

.date-nav__arrow:disabled {
  opacity: 0.28;
}

.date-nav__scroller {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.date-nav__scroller::-webkit-scrollbar {
  display: none;
}

.date-chip {
  flex: 0 0 60px;
  min-height: 64px;
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: var(--ink);
  background: transparent;
  scroll-snap-align: center;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.date-chip strong,
.date-chip span {
  display: block;
}

.date-chip strong {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
}

.date-chip span {
  margin-top: 3px;
  font-size: 12px;
}

.date-chip.is-active {
  color: #fff8ec;
  background: var(--cherry);
  box-shadow: 0 8px 18px rgba(117, 22, 29, 0.2);
  transform: translateY(-2px);
}

.view {
  display: none;
  animation: reveal 260ms ease both;
}

.view--active {
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  padding: 32px 2px 16px;
}

.section-heading h2 {
  margin-bottom: 4px;
  color: var(--cherry-dark);
  font-size: clamp(36px, 10vw, 52px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
}

.day-note {
  margin: 4px 0 22px;
  padding: 13px 16px;
  color: #604a35;
  background: rgba(222, 203, 166, 0.32);
  border-left: 3px solid var(--gold);
  border-radius: 2px 14px 14px 2px;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 26px;
  bottom: 28px;
  left: 23px;
  width: 2px;
  content: "";
  background: var(--cherry);
}

.timeline-empty {
  padding: 24px 18px;
  text-align: center;
  border-block: 1px solid var(--line);
}

.timeline-empty i {
  color: var(--cherry);
  font-size: 24px;
}

.timeline-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  min-height: 186px;
  padding-bottom: 24px;
}

.timeline-item__marker {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff8ec;
  background: var(--cherry);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--cherry);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.timeline-item__content {
  min-width: 0;
  padding: 1px 0 22px;
  border-bottom: 1px dashed var(--line);
}

.timeline-item__meta {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 4px;
}

.timeline-item__interval {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.timeline-item__duration {
  padding: 2px 8px;
  color: var(--muted);
  background: rgba(120, 152, 166, 0.12);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
}

.timeline-item h3 {
  margin-bottom: 3px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.timeline-item__address,
.timeline-item__note {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.timeline-item__address {
  font-weight: 600;
}

.timeline-item__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.timeline-item__controls {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.timeline-item__controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--cherry);
  background: rgba(255, 250, 240, 0.54);
  cursor: pointer;
}

.timeline-item__controls button:disabled {
  cursor: default;
  opacity: 0.28;
}

.timeline-item.is-locked .timeline-item__marker {
  background: var(--cherry-dark);
  box-shadow:
    0 0 0 1px var(--cherry),
    0 0 0 5px rgba(154, 116, 53, 0.2);
  font-size: 16px;
}

.locked-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  color: var(--cherry-dark);
  background: rgba(154, 116, 53, 0.12);
  border-radius: 99px;
}

.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(139, 31, 39, 0.25);
  border-radius: 12px;
  color: var(--cherry);
  background: rgba(255, 250, 240, 0.46);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.timeline-item__art {
  display: none;
}

.route-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 6px 0 30px;
}

.builder-actions {
  display: flex;
  gap: 8px;
  margin: -18px 0 30px;
}

.builder-action {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border: 0;
  color: var(--cherry);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.builder-action:disabled {
  cursor: default;
  opacity: 0.32;
}

.button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 15px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  border: 1px solid var(--cherry);
  color: #fff8ec;
  background: var(--cherry);
  box-shadow: 0 10px 24px rgba(117, 22, 29, 0.19);
}

.button--secondary {
  border: 1px solid var(--cherry);
  color: var(--cherry);
  background: transparent;
}

.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.42;
}

.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  color: var(--cherry-dark);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.subheading i {
  color: var(--gold);
  font-size: 16px;
}

.optional-section__intro {
  margin: 12px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.alternative-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 0 14px 8px;
  scrollbar-width: none;
}

.alternative-filter {
  flex: none;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.42);
  font-size: 11px;
  font-weight: 700;
}

.alternative-filter.is-active {
  color: #fff8ec;
  background: var(--cherry);
  border-color: var(--cherry);
}

.optional-list {
  padding: 2px 0 12px;
}

.optional-place {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  gap: 11px;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}

.optional-place__icon,
.category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--cherry);
  background: rgba(139, 31, 39, 0.08);
  border-radius: 50%;
}

.optional-place strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.05;
}

.optional-place span {
  color: var(--muted);
  font-size: 11px;
}

.optional-place__map {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--cherry);
  border-radius: 50%;
  text-decoration: none;
}

.optional-place__choose {
  grid-column: 2 / -1;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 31, 39, 0.28);
  border-radius: 13px;
  color: var(--cherry);
  background: rgba(255, 250, 240, 0.52);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.show-more {
  width: 100%;
  min-height: 44px;
  margin-bottom: 26px;
  border: 1px dashed rgba(139, 31, 39, 0.34);
  border-radius: 14px;
  color: var(--cherry);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  background: rgba(42, 26, 16, 0.45);
  backdrop-filter: blur(3px);
  transition: opacity 180ms ease;
}

.sheet-backdrop.is-visible {
  opacity: 1;
}

.route-sheet {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(78vh, 720px);
  overflow-y: auto;
  padding: 14px 18px max(28px, env(safe-area-inset-bottom));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(45, 25, 14, 0.25);
  transform: translateY(105%);
  transition: transform 180ms ease;
}

.route-sheet.is-visible {
  transform: translateY(0);
}

.route-sheet__handle {
  width: 46px;
  height: 4px;
  margin: 0 auto 18px;
  background: rgba(117, 105, 93, 0.32);
  border-radius: 99px;
}

.route-sheet__close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cherry);
  background: rgba(255, 250, 240, 0.72);
}

.route-sheet h2 {
  max-width: calc(100% - 48px);
  margin-bottom: 6px;
  color: var(--cherry-dark);
  font-size: 32px;
  line-height: 1;
}

.route-sheet > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
}

.route-sheet__options {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.route-sheet__options h3 {
  margin: 10px 0 2px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheet-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.54);
  cursor: pointer;
}

.sheet-option > i {
  color: var(--cherry);
  text-align: center;
}

.sheet-option strong,
.sheet-option small {
  display: block;
}

.sheet-option strong {
  font-size: 12px;
}

.sheet-option small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.sheet-option:disabled {
  cursor: default;
  opacity: 0.52;
}

.sheet-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border-block: 1px solid var(--line);
}

.sheet-open {
  overflow: hidden;
}

.toast {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 92px;
  left: 18px;
  max-width: 480px;
  margin: 0 auto;
  padding: 13px 16px;
  color: #fff8ec;
  text-align: center;
  background: var(--cherry-dark);
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(45, 25, 14, 0.24);
  font-size: 12px;
  font-weight: 700;
}

.toast[data-tone="warning"] {
  color: #49321c;
  background: #dfbe78;
}

.home-idea {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: 22px;
  color: #f9ecda;
  background: var(--cherry-dark);
  border-radius: 20px;
}

.home-idea::after {
  position: absolute;
  right: -30px;
  bottom: -64px;
  width: 160px;
  height: 160px;
  content: "";
  background: url("assets/travel-vignettes.png") 100% center / 400% 100% no-repeat;
  border-radius: 50%;
  opacity: 0.22;
}

.home-idea i {
  margin-bottom: 10px;
  color: #dbb26b;
  font-size: 25px;
}

.home-idea h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 5px;
  font-size: 29px;
}

.home-idea p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 248, 236, 0.8);
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 0 14px 18px;
  scrollbar-width: none;
}

.filter-chip {
  display: inline-flex;
  flex: none;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 249, 238, 0.4);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff8ec;
  background: var(--cherry);
  border-color: var(--cherry);
}

.places-grid {
  display: grid;
  gap: 10px;
  padding-bottom: 28px;
}

.place-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 38px;
  gap: 13px;
  align-items: center;
  min-height: 86px;
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
}

.place-card__art {
  width: 66px;
  height: 66px;
  background-image: url("assets/travel-vignettes.png");
  background-repeat: no-repeat;
  background-size: 400% 100%;
  border: 1px solid rgba(120, 78, 40, 0.18);
  border-radius: 18px;
}

.art-couple {
  background-position: 0 center;
}

.art-palace {
  background-position: 33.333% center;
}

.art-cafe {
  background-position: 66.666% center;
}

.art-record {
  background-position: 100% center;
}

.place-card h3 {
  margin: 0 0 2px;
  font-size: 21px;
  line-height: 1.05;
}

.place-card p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.place-card__category {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.place-card > a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff8ec;
  background: var(--cherry);
  border-radius: 50%;
  text-decoration: none;
}

.ideas-list {
  display: grid;
  gap: 14px;
  padding-bottom: 30px;
}

.install-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px;
  background: rgba(255, 249, 239, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.install-card[hidden] {
  display: none;
}

.install-card img {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(82, 49, 24, 0.16);
}

.install-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.05;
}

.install-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.install-card .button {
  grid-column: 1 / -1;
  min-height: 48px;
}

.idea-card {
  position: relative;
  overflow: hidden;
  height: 230px;
  padding: 24px;
  color: #fff8ec;
  background: var(--cherry-dark);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.idea-card:nth-child(2) {
  color: var(--ink);
  background: #d7d6bc;
}

.idea-card__art {
  position: absolute;
  inset: 0 0 0 38%;
  background-image: url("assets/travel-vignettes.png");
  background-repeat: no-repeat;
  background-size: 400% 100%;
  opacity: 0.27;
}

.idea-card:nth-child(1) .idea-card__art {
  background-position: 100% center;
}

.idea-card:nth-child(2) .idea-card__art {
  background-position: 66.666% center;
  opacity: 0.34;
}

.idea-card--plasticine-date .idea-card__art {
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(74, 12, 25, 0.93) 0%, rgba(74, 12, 25, 0.76) 34%, rgba(74, 12, 25, 0.08) 66%),
    var(--idea-background);
  background-position: center;
  background-size: cover;
  opacity: 1;
}

.idea-card--plasticine-date {
  color: var(--ink);
  background: #dec39c;
}

.idea-card--plasticine-date .idea-card__art {
  background-image:
    linear-gradient(90deg, rgba(255, 246, 226, 0.98) 0%, rgba(255, 246, 226, 0.88) 38%, rgba(255, 246, 226, 0.04) 68%),
    var(--idea-background);
}

.idea-card i,
.idea-card h3,
.idea-card p {
  position: relative;
  z-index: 1;
}

.idea-card i {
  margin-bottom: 17px;
  color: #dbb26b;
  font-size: 27px;
}

.idea-card h3 {
  max-width: 360px;
  margin-bottom: 7px;
  font-size: 31px;
  line-height: 1;
}

.idea-card p {
  max-width: 430px;
  margin-bottom: 0;
  font-size: 13px;
}

.day-x-focus .hero,
.day-x-focus .date-nav {
  display: none;
}

.day-x-focus main {
  width: 100%;
  min-height: calc(100dvh - 94px);
}

.day-x-view.view--active {
  min-height: calc(100dvh - 94px);
}

.day-x-screen {
  display: grid;
  min-height: calc(100dvh - 94px);
  padding: 32px 28px 76px;
  place-items: center;
  text-align: center;
}

.day-x-screen h2 {
  max-width: 620px;
  margin: 0;
  color: var(--cherry-dark);
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 600;
  line-height: 1.03;
}

.day-x-screen--code {
  align-content: center;
  gap: 30px;
}

.day-x-screen--code form {
  display: grid;
  width: min(100%, 380px);
  gap: 12px;
}

.day-x-screen--code input {
  width: 100%;
  padding: 8px 2px 12px;
  color: var(--cherry-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(111, 73, 35, 0.56);
  border-radius: 0;
  outline: 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.15em;
  text-align: center;
}

.day-x-screen--code input:focus {
  border-bottom-color: var(--cherry);
  box-shadow: 0 2px 0 var(--cherry);
}

.day-x-error {
  margin: 0;
  color: var(--cherry);
  font-size: 12px;
  font-weight: 700;
}

.day-x-back {
  position: fixed;
  z-index: 22;
  bottom: 94px;
  left: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: rgba(91, 60, 31, 0.58);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.day-x-back:hover,
.day-x-back:focus-visible {
  color: var(--cherry);
  background: rgba(139, 31, 39, 0.06);
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(78px + env(safe-area-inset-bottom));
  padding:
    7px max(12px, calc((100vw - 520px) / 2))
    max(7px, env(safe-area-inset-bottom));
  background: rgba(247, 237, 218, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(68, 42, 21, 0.08);
  backdrop-filter: blur(15px);
}

.bottom-nav__item {
  display: grid;
  gap: 1px;
  place-items: center;
  border: 0;
  color: var(--gold);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav__item i {
  font-size: 22px;
}

.bottom-nav__item.is-active {
  color: var(--cherry);
}

:focus-visible {
  outline: 3px solid rgba(139, 31, 39, 0.35);
  outline-offset: 3px;
}

@media (min-width: 680px) {
  body {
    font-size: 16px;
  }

  .hero__heading {
    padding-top: 46px;
  }

  .map-stage {
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 26px;
  }

  main {
    width: min(100% - 48px, 820px);
  }

  .date-nav {
    position: sticky;
    top: 0;
    margin: 16px -8px 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(82, 49, 24, 0.08);
    backdrop-filter: blur(14px);
  }

  .date-nav__scroller {
    justify-content: center;
  }

  .timeline-item {
    grid-template-columns: 48px minmax(0, 1fr) 190px;
    min-height: 210px;
    gap: 18px;
  }

  .timeline-item__art {
    display: block;
    height: 164px;
    background-image: url("assets/travel-vignettes.png");
    background-repeat: no-repeat;
    background-size: 400% 100%;
    border: 1px solid rgba(120, 78, 40, 0.18);
    border-radius: 20px;
  }

  .places-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ideas-list {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 250px;
  }

  .idea-card {
    height: 100%;
  }

  .bottom-nav {
    right: 22px;
    bottom: 20px;
    left: auto;
    width: 370px;
    height: 66px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .day-x-back {
    bottom: 28px;
    left: 28px;
  }

  .route-sheet {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: min(520px, calc(100vw - 48px));
    border-radius: 26px;
  }

  .toast {
    right: 28px;
    bottom: 104px;
    left: auto;
    width: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
