/* Travel Atlas production theme. The countdown intentionally remains in styles.css. */
:root {
  --atlas-ivory: #f4efe4;
  --atlas-paper: #fffdf8;
  --atlas-paper-deep: #e7e0d2;
  --atlas-ink: #1f302e;
  --atlas-muted: #536864;
  --atlas-tea: #416c69;
  --atlas-tea-deep: #294d50;
  --atlas-tea-dark: #173638;
  --atlas-gold: #c8b783;
  --atlas-gold-ink: #806f3f;
  --atlas-line: rgba(35, 63, 61, 0.17);
  --atlas-line-strong: rgba(35, 63, 61, 0.3);
  --atlas-dock: 34;
  --atlas-sticky: 30;
  --atlas-backdrop: 40;
  --atlas-modal: 41;
}

body.page {
  color: var(--atlas-ink);
  background:
    radial-gradient(circle at 7% 7%, rgba(65, 108, 105, 0.13), transparent 24rem),
    radial-gradient(circle at 94% 34%, rgba(200, 183, 131, 0.12), transparent 22rem),
    var(--atlas-ivory);
}

.app-boot-fallback {
  display: none;
}

.page.app-boot-slow:not(.app-ready) .app-boot-fallback {
  display: grid;
  width: min(calc(100% - 32px), 520px);
  min-height: 320px;
  margin: max(18vh, 92px) auto 24px;
  padding: 28px;
  place-content: center;
  gap: 14px;
  color: var(--atlas-ink);
  border-radius: 14px;
  background: var(--atlas-paper);
  text-align: center;
}

.page.app-boot-slow:not(.app-ready) .app-boot-fallback h1,
.page.app-boot-slow:not(.app-ready) .app-boot-fallback p {
  margin: 0;
}

.page.app-boot-slow:not(.app-ready) .app-boot-fallback .primary-button {
  justify-self: center;
  margin-top: 6px;
}

body.page::before {
  top: auto;
  right: auto;
  bottom: -12rem;
  left: -12rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(41, 77, 80, 0.1), transparent 68%);
}

body.page::after {
  top: 8rem;
  right: -13rem;
  bottom: auto;
  left: auto;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(200, 183, 131, 0.08), transparent 68%);
}

.page #app {
  max-width: 1160px;
  padding: calc(92px + env(safe-area-inset-top, 0px)) 22px 86px;
}

.page main {
  position: relative;
}

.page a,
.page button,
.page summary,
.page input,
.page textarea {
  -webkit-tap-highlight-color: transparent;
}

.page :focus-visible {
  outline: 3px solid #e3b942;
  outline-offset: 3px;
}

.page h1,
.page h2,
.page h3 {
  text-wrap: balance;
}

.page p,
.page li {
  text-wrap: pretty;
}

/* Editorial page mastheads */
.page:not(.page-home) .site-header {
  display: flex;
  min-height: 290px;
  margin-bottom: 22px;
  padding: 48px 46px 42px;
  overflow: hidden;
  justify-content: flex-end;
  flex-direction: column;
  color: #fffdf6;
  border: 0;
  border-radius: 16px;
  background: var(--atlas-tea-deep);
  box-shadow: none;
  isolation: isolate;
}

.page:not(.page-home) .site-header::before {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 34px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fffdf6;
  border: 1px solid rgba(255, 253, 246, 0.58);
  border-radius: 50%;
  background: transparent;
  content: "旅";
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.page:not(.page-home) .site-header::after {
  z-index: 0;
  inset: 0;
  opacity: 0.84;
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) contrast(1.06);
}

body.page-hotels .site-header::after {
  background-image: linear-gradient(90deg, rgba(23, 54, 56, 0.82), rgba(23, 54, 56, 0.12)), url("./assets/day-galleries/hotel_tokyo.jpg");
}

body.page-itinerary .site-header::after {
  background-image: linear-gradient(90deg, rgba(23, 54, 56, 0.82), rgba(23, 54, 56, 0.1)), url("./assets/day-galleries/gion.jpg");
}

body.page-pass .site-header::after {
  background-image: linear-gradient(90deg, rgba(23, 54, 56, 0.84), rgba(23, 54, 56, 0.12)), url("./assets/day-galleries/shinkansen.jpg");
}

body.page-wishlist .site-header::after,
body.page-wishlist-foods .site-header::after {
  background-image: linear-gradient(90deg, rgba(23, 54, 56, 0.82), rgba(23, 54, 56, 0.1)), url("./assets/day-galleries/japanese_market.jpg");
}

body.page-wishlist-products .site-header::after {
  background-image: linear-gradient(90deg, rgba(23, 54, 56, 0.82), rgba(23, 54, 56, 0.1)), url("./assets/day-galleries/shibuya_new.jpg");
}

.page:not(.page-home) .site-header > * {
  z-index: 3;
  max-width: 720px;
}

.page:not(.page-home) .site-header h1 {
  position: absolute;
  top: 40px;
  left: 92px;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page:not(.page-home) .site-header h1::after {
  display: block;
  margin-top: 5px;
  color: rgba(255, 253, 246, 0.72);
  content: "TRAVEL ATLAS · 2026";
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.page:not(.page-home) .trip-subtitle {
  margin: 0;
  color: #fffdf6;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.page:not(.page-home) .trip-summary {
  max-width: 600px;
  margin: 14px 0 0;
  color: rgba(255, 253, 246, 0.84);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Home keeps the existing countdown artwork untouched. */
.page-home .site-header {
  margin: 0 0 22px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .site-header::before,
.page-home .site-header::after,
.page-home .site-header > h1,
.page-home .site-header > .trip-subtitle,
.page-home .site-header > .trip-summary {
  display: none;
}

/* Persistent atlas dock */
.page .section-nav {
  top: max(12px, env(safe-area-inset-top, 0px));
  z-index: var(--atlas-dock);
  gap: 4px;
  width: min(calc(100% - 44px), 1116px);
  min-height: 64px;
  padding: 7px 8px 7px 158px;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 12px rgba(23, 54, 56, 0.12);
  backdrop-filter: blur(18px);
}

.page .section-nav::before {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--atlas-tea-deep);
  content: "旅  JAPAN · 2026";
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  transform: translateY(-50%);
}

.page .section-nav-link {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 50px;
  padding: 0 12px;
  gap: 8px;
  color: var(--atlas-muted);
  border: 0;
  border-radius: 10px;
  font-size: 0.84rem;
}

.page .section-nav-link:hover,
.page .section-nav-link:focus-visible {
  color: var(--atlas-tea-deep);
  border: 0;
  background: rgba(65, 108, 105, 0.1);
}

.page .section-nav-link-active,
.page .section-nav-link-active:hover,
.page .section-nav-link-active:focus-visible {
  color: #fff;
  background: var(--atlas-tea-deep);
  box-shadow: none;
}

.page .section-nav-link-active::after {
  width: 4px;
  height: 4px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--atlas-gold);
  content: "";
}

.page .section-nav-link .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  color: currentColor;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Shared content language */
.page .overview,
.page .useful-info,
.page .itinerary,
.page .status-panel {
  margin-bottom: 20px;
  padding: 30px;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: none;
}

.page .overview::before,
.page .useful-info::before,
.page .itinerary::before,
.page .status-panel::before {
  display: none;
}

.page .section-header {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(280px, 1.3fr);
  gap: 30px;
  align-items: end;
  margin: 0 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--atlas-line);
}

.page .section-header h2 {
  margin: 0;
  color: var(--atlas-tea-dark);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.page .section-note,
.page .overview-card p,
.page .trip-summary {
  color: var(--atlas-muted);
}

.page .section-header .section-note {
  max-width: 620px;
  margin: 0;
  line-height: 1.6;
}

.page main .primary-button,
.page main .action-link,
.page .schedule-place-link {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
}

.page main .primary-button,
.page main .action-link-primary {
  color: #fff;
  border: 0;
  background: var(--atlas-tea-deep);
  box-shadow: none;
}

.page main .primary-button:hover,
.page main .primary-button:focus-visible,
.page main .action-link-primary:hover,
.page main .action-link-primary:focus-visible {
  color: #fff;
  background: var(--atlas-tea-dark);
  transform: translateY(-1px);
}

.page main .action-link:not(.action-link-primary),
.page .schedule-place-link {
  color: var(--atlas-tea-deep);
  border: 1px solid var(--atlas-line-strong);
  background: var(--atlas-paper);
}

.page .markdown-content {
  color: var(--atlas-ink);
}

.page .markdown-content a,
.page .simple-list a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  align-items: center;
  color: var(--atlas-tea-deep);
  border: 1px solid var(--atlas-line-strong);
  border-radius: 9px;
  background: var(--atlas-paper);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.page .markdown-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 0;
  border-radius: 10px;
  background: var(--atlas-paper);
  scrollbar-color: var(--atlas-tea) #dfe6e1;
  -webkit-overflow-scrolling: touch;
}

.page .markdown-content th,
.page .markdown-content td {
  min-width: 128px;
  padding: 12px 14px;
  border-color: var(--atlas-line);
}

.page .markdown-content th {
  color: #fff;
  background: var(--atlas-tea-deep);
}

.page .markdown-content tbody tr:nth-child(even) td {
  background: #edf0ea;
}

.page .overview-cards {
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--atlas-line);
  border-bottom: 1px solid var(--atlas-line);
}

.page .overview-card {
  min-width: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page .overview-cards > .overview-card + .overview-card {
  border-left: 1px solid var(--atlas-line);
}

.page .overview-icon {
  width: 44px;
  height: 44px;
  color: var(--atlas-tea-deep);
  background: #dce7e1;
}

.page .overview-card h3 {
  margin-top: 14px;
  color: var(--atlas-tea-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Home after the countdown */
.page-home .home-trip-accordion {
  margin: 18px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--atlas-paper);
  box-shadow: none;
}

.page-home .home-trip-accordion-summary {
  min-height: 72px;
  padding: 16px 62px 16px 20px;
  color: var(--atlas-ink);
}

.page-home .home-trip-accordion-summary::after {
  right: 18px;
  color: var(--atlas-tea-deep);
  background: #dce7e1;
}

.page-home .home-trip-accordion-body {
  padding: 4px 20px 20px;
}

.page-home .trip-meta {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-home .trip-meta > div {
  border-color: var(--atlas-line);
}

.page-home .home-route-band {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--atlas-line);
  border-radius: 12px;
  background: #edf0ea;
}

.page-home .route-stop {
  position: relative;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-home .route-stop + .route-stop {
  border-left: 1px solid var(--atlas-line);
}

.page-home .route-stop-name {
  font-family: var(--font-display);
  font-weight: 600;
}

.page-home .homepage-section {
  background: var(--atlas-paper);
}

.page-home .home-grid {
  gap: 18px;
}

.page-home .current-day-card {
  position: relative;
  min-height: 230px;
  padding: 32px;
  overflow: hidden;
  color: #fffdf6;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(23, 54, 56, 0.94), rgba(23, 54, 56, 0.42)),
    url("./assets/day-galleries/hotel_tokyo.jpg") center / cover;
  box-shadow: none;
}

.page-home .current-day-card > * {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.page-home .current-day-kicker {
  color: #e2d39c;
  letter-spacing: 0.13em;
}

.page-home .current-day-card h3 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
}

.page-home .current-day-card p:not(.current-day-kicker) {
  color: rgba(255, 253, 246, 0.82);
}

.page-home main .current-day-card .primary-button {
  margin-top: 15px;
  color: var(--atlas-tea-dark);
  background: #fffdf8;
}

/* Hotel key cards */
.page-hotels .base-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-hotels .base-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  grid-auto-rows: min-content;
  gap: 8px 30px;
  min-height: 390px;
  padding: 0 30px 26px 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #edf0ea;
  box-shadow: none;
}

.page-hotels .base-card::before {
  display: none;
}

.page-hotels .base-card-media {
  grid-column: 1;
  grid-row: 1 / 20;
  min-height: 390px;
  margin: 0;
  border-radius: 0;
}

.page-hotels .base-card-media img {
  min-height: 390px;
  filter: saturate(0.78) contrast(1.04);
}

.page-hotels .base-card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(23, 54, 56, 0.68));
  content: "";
}

.page-hotels .base-card-badge {
  z-index: 2;
  top: 18px;
  left: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(23, 54, 56, 0.54);
  backdrop-filter: blur(8px);
}

.page-hotels .base-card > :not(.base-card-media) {
  grid-column: 2;
}

.page-hotels .base-date {
  margin: 30px 0 3px;
  color: var(--atlas-gold-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hotels .base-card h3 {
  margin: 0;
  color: var(--atlas-tea-dark);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.02;
}

.page-hotels .base-hotel {
  margin: 1px 0 10px;
  color: var(--atlas-tea);
  font-size: 1.05rem;
  font-weight: 700;
}

.page-hotels .base-card p {
  margin-block: 3px;
  color: var(--atlas-muted);
}

.page-hotels .base-links {
  align-self: end;
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--atlas-line);
}

.page-hotels .hotel-action-link {
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 50%;
}

/* Itinerary rail view */
.page-itinerary .itinerary-launch {
  color: #fff;
  background: var(--atlas-tea-deep);
}

.page-itinerary .itinerary-launch .section-header h2,
.page-itinerary .itinerary-launch .section-note,
.page-itinerary .itinerary-launch-copy h3,
.page-itinerary .itinerary-launch-copy p {
  color: #fffdf6;
}

.page-itinerary .itinerary-launch .section-header {
  border-color: rgba(255, 255, 255, 0.2);
}

.page-itinerary .itinerary-launch-kicker,
.page-itinerary .itinerary-launch-meta {
  color: #ddcf9c;
}

.page-itinerary .itinerary-launch .primary-button {
  color: var(--atlas-tea-dark);
  background: var(--atlas-paper);
}

.page-itinerary .itinerary-compact-accordion {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-itinerary .itinerary-compact-accordion + .itinerary-compact-accordion {
  border-top: 1px solid var(--atlas-line);
}

.page-itinerary .itinerary-compact-summary {
  min-height: 70px;
  padding: 15px 58px 15px 4px;
}

.page-itinerary .itinerary-compact-summary::after {
  right: 4px;
  background: #dce7e1;
}

.page-itinerary .itinerary-practical-panel,
.page-itinerary .itinerary-link-card {
  border: 0;
  border-radius: 12px;
  background: #edf0ea;
  box-shadow: none;
}

.page-itinerary .itinerary-link-card {
  padding: 18px;
}

.page-itinerary .itinerary-practical-pills li {
  color: var(--atlas-tea-deep);
  border-color: var(--atlas-line);
  background: var(--atlas-paper);
}

.page-itinerary .itinerary-calendar {
  padding: 22px;
  border: 0;
  border-radius: 14px;
  background: #edf0ea;
  box-shadow: none;
}

.page-itinerary .itinerary-calendar-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--atlas-line);
}

.page-itinerary .itinerary-calendar-kicker {
  color: var(--atlas-tea);
}

.page-itinerary .itinerary-calendar-header h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

.page-itinerary .itinerary-calendar-day {
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.page-itinerary .itinerary-calendar-day-active {
  color: var(--atlas-ink);
  background: var(--atlas-paper);
}

.page-itinerary .itinerary-calendar-day-current,
.page-itinerary .itinerary-calendar-day-suggested {
  color: #fff;
  background: var(--atlas-tea-deep);
}

.page-itinerary .itinerary-calendar-dot {
  background: var(--atlas-tea);
}

.page-itinerary .itinerary-calendar-day-current .itinerary-calendar-dot,
.page-itinerary .itinerary-calendar-day-suggested .itinerary-calendar-dot {
  background: var(--atlas-gold);
}

.page-itinerary .days-list {
  gap: 12px;
  margin-top: 24px;
}

.page-itinerary .day-card {
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #edf0ea;
  box-shadow: none;
}

.page-itinerary .day-card[open] {
  background: var(--atlas-paper);
}

.page-itinerary .day-summary {
  position: relative;
  min-height: 92px;
  padding: 20px 68px 20px 22px;
  align-items: center;
}

.page-itinerary .day-summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--atlas-tea-deep);
  border-radius: 50%;
  background: #dce7e1;
  content: "+";
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.page-itinerary .day-card[open] > .day-summary::after {
  content: "−";
}

.page-itinerary .day-date {
  margin-bottom: 5px;
  color: var(--atlas-tea);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-itinerary .day-heading h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 600;
}

.page-itinerary .meta-pill {
  padding: 7px 10px;
  color: var(--atlas-tea-deep);
  background: #dce7e1;
  font-size: 0.74rem;
}

.page-itinerary .meta-pill-soft {
  color: var(--atlas-muted);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--atlas-line);
}

.page-itinerary .day-body {
  padding: 0 22px 22px;
}

.page-itinerary .day-intro-gallery {
  padding-top: 0;
  border: 0;
}

.page-itinerary .day-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 7px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.page-itinerary .day-gallery-card {
  min-height: 210px;
  border-radius: 10px;
}

.page-itinerary .day-gallery-card img {
  aspect-ratio: 3 / 4;
  filter: saturate(0.82) contrast(1.03);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-itinerary .day-gallery-card:hover img,
.page-itinerary .day-gallery-card:focus-visible img {
  transform: scale(1.035);
}

.page-itinerary .day-panel {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px 0 var(--atlas-line);
}

.page-itinerary .day-panel[open] {
  background: transparent;
}

.page-itinerary .day-panel-summary,
.page-itinerary .day-panel[open] .day-panel-summary {
  min-height: 70px;
  padding: 14px 58px 14px 4px;
  border: 0;
  background: transparent;
}

.page-itinerary .day-panel-summary::after {
  right: 4px;
  top: 50%;
  width: 40px;
  height: 40px;
  background: #dce7e1;
  transform: translateY(-50%);
}

.page-itinerary .day-panel-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.page-itinerary .day-panel-meta {
  color: var(--atlas-muted);
}

.page-itinerary .day-panel-body {
  padding: 0 4px 18px;
}

.page-itinerary .day-map-frame {
  padding: 7px;
  border: 0;
  border-radius: 12px;
  background: var(--atlas-tea-deep);
  box-shadow: none;
}

.page-itinerary .day-map-expand {
  min-width: 44px;
  min-height: 44px;
}

.page-itinerary .simple-list a {
  min-width: 44px;
}

.page-itinerary .day-map {
  border-radius: 8px;
}

.page-itinerary .day-schedule {
  --timeline-time-column: 52px;
  --timeline-axis-column: 18px;
  gap: 0;
  padding: 0;
}

.page-itinerary .day-schedule::after {
  display: none;
}

.page-itinerary .day-schedule li {
  grid-template-columns: var(--timeline-time-column) var(--timeline-axis-column) minmax(0, 1fr);
  gap: 8px;
  min-height: 64px;
  padding: 0;
}

.page-itinerary .day-schedule li::after {
  display: none;
}

.page-itinerary .schedule-axis {
  position: relative;
  align-self: stretch;
  grid-column: 2;
  grid-row: 1;
  min-height: 44px;
}

.page-itinerary .schedule-axis::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: #91aaa5;
  content: "";
}

.page-itinerary .schedule-axis::after {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--atlas-paper);
  border-radius: 50%;
  background: var(--atlas-tea-deep);
  box-shadow: 0 0 0 1px #91aaa5;
  content: "";
  transform: translate(-50%, -50%);
}

.page-itinerary .day-schedule li:first-child .schedule-axis::before {
  top: 22px;
}

.page-itinerary .day-schedule li:last-child .schedule-axis::before {
  bottom: calc(100% - 22px);
}

.page-itinerary .schedule-time {
  position: static;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  align-self: start;
  justify-content: flex-end;
  min-height: 44px;
  padding: 0;
  color: var(--atlas-tea);
  background: transparent;
  font-size: 0.78rem;
}

.page-itinerary .schedule-copy {
  grid-column: 3;
  grid-row: 1;
  padding-bottom: 20px;
}

.page-itinerary .day-schedule li:last-child .schedule-copy {
  padding-bottom: 0;
}

.page-itinerary .schedule-title-row {
  min-height: 44px;
}

.page-itinerary .schedule-title-button {
  min-height: 44px;
  color: var(--atlas-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.page-itinerary .schedule-map-icon {
  width: 44px;
  height: 44px;
  border: 0;
  background: #dce7e1;
}

/* Passes as travel documents */
.page-pass .pass-overview-panel {
  padding: 26px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: var(--atlas-tea-deep);
  box-shadow: none;
}

.page-pass .pass-overview-copy h3,
.page-pass .pass-overview-copy p,
.page-pass .pass-overview-copy .trip-kicker {
  color: #fffdf6;
}

.page-pass .pass-overview-copy .trip-kicker {
  color: #dfd09a;
}

.page-pass .pass-kpi-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
}

.page-pass .pass-kpi-card {
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.page-pass .pass-kpi-card + .pass-kpi-card {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.page-pass .pass-kpi-card dt {
  color: rgba(255, 255, 255, 0.72);
}

.page-pass .pass-kpi-card dd {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.page-pass .pass-decision-grid,
.page-pass .pass-buy-grid,
.page-pass .pass-benefit-grid {
  gap: 14px;
}

.page-pass .pass-decision-card,
.page-pass .pass-buy-card,
.page-pass .pass-benefit-card {
  border: 0;
  border-radius: 12px;
  background: #edf0ea;
  box-shadow: none;
}

.page-pass .pass-decision-card,
.page-pass .pass-buy-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.page-pass .pass-decision-card::after,
.page-pass .pass-buy-card::after {
  position: absolute;
  top: -7px;
  right: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--atlas-paper);
  content: "";
  box-shadow: 0 calc(100% + 236px) 0 var(--atlas-paper);
}

.page-pass .pass-decision-card h3,
.page-pass .pass-buy-card h3,
.page-pass .pass-benefit-heading h3 {
  color: var(--atlas-tea-dark);
  font-family: var(--font-display);
  font-weight: 600;
}

.page-pass .pass-decision-meta {
  gap: 0;
  border-top: 1px solid var(--atlas-line);
  border-bottom: 1px solid var(--atlas-line);
}

.page-pass .pass-decision-meta > div {
  padding: 12px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-pass .pass-decision-meta > div + div {
  border-left: 1px solid var(--atlas-line);
}

.page-pass .pass-status,
.page-pass .pass-fit-tag,
.page-pass .pass-buy-price {
  color: var(--atlas-tea-deep);
  border: 0;
  background: #d7e4de;
}

.page-pass .pass-benefit-top {
  padding: 22px;
  border-radius: 12px 12px 0 0;
  background: var(--atlas-tea-deep);
}

.page-pass .pass-benefit-top h3,
.page-pass .pass-benefit-top p,
.page-pass .pass-benefit-top dt,
.page-pass .pass-benefit-top dd {
  color: #fffdf6;
}

.page-pass .pass-stat-grid {
  gap: 1px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
}

.page-pass .pass-stat {
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

.page-pass .pass-benefit-body {
  padding: 20px 22px 22px;
  border-radius: 0 0 12px 12px;
  background: var(--atlas-paper);
}

.page-pass .pass-detail-block,
.page-pass .pass-accordion,
.page-pass .pass-reference-accordion {
  border-color: var(--atlas-line);
  background: transparent;
}

.page-pass .pass-accordion-summary {
  min-height: 58px;
}

.page-pass .pass-excluded {
  border: 0;
  border-radius: 12px;
  background: #eee8dc;
}

/* Wishlist collection */
.page-wishlist .wishlist-overview-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-wishlist .wishlist-route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-wishlist .wishlist-route-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: var(--atlas-tea-deep);
  box-shadow: none;
}

.page-wishlist .wishlist-route-card:nth-child(2) {
  color: var(--atlas-ink);
  background: #dfe8e2;
}

.page-wishlist .wishlist-route-card::after {
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.18;
  content: "";
}

.page-wishlist .wishlist-route-card h3 {
  margin-top: auto;
  color: inherit;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.page-wishlist .wishlist-route-card p,
.page-wishlist .wishlist-route-top,
.page-wishlist .wishlist-route-cta {
  color: inherit;
}

.page-wishlist .wishlist-route-cta {
  position: relative;
  z-index: 2;
  min-height: 44px;
  margin-top: 18px;
  padding-inline: 15px;
  justify-content: center;
  color: #fff;
  background: var(--atlas-tea-deep);
}

.page-wishlist .wishlist-route-card:first-child .wishlist-route-cta {
  color: var(--atlas-tea-dark);
  background: #fffdf8;
}

.page-wishlist-foods .overview,
.page-wishlist-products .overview {
  padding-bottom: 34px;
}

.page .wishlist-page-switcher {
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #e2ded4;
}

.page .wishlist-page-tab {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: transparent;
}

.page .wishlist-page-tab-active {
  color: var(--atlas-tea-deep);
  background: var(--atlas-paper);
  box-shadow: 0 3px 7px rgba(23, 54, 56, 0.09);
}

.page .wishlist-column {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page .wishlist-column-head {
  margin-top: 24px;
  padding: 22px;
  color: #fff;
  border-radius: 14px;
  background: var(--atlas-tea-deep);
}

.page .wishlist-column-head h3,
.page .wishlist-column-head p,
.page .wishlist-column-head .day-intro-kicker {
  color: #fffdf6;
}

.page .wishlist-column-head .day-intro-kicker {
  color: #dfd09a;
}

.page .wishlist-progress-pill {
  color: var(--atlas-tea-dark);
  border: 0;
  background: #f0e4ba;
}

.page .wishlist-list-toolbar {
  justify-content: flex-end;
  margin: 16px 0;
}

.page .wishlist-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.page .wishlist-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 0;
  border-radius: 14px;
  background: #edf0ea;
  box-shadow: none;
}

.page .wishlist-card-media {
  position: relative;
  min-height: 210px;
}

.page .wishlist-thumb {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border: 0;
  border-radius: 0;
}

.page .wishlist-thumb img {
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.page .wishlist-thumb-placeholder {
  min-height: 210px;
  color: #e5d59e;
  background: var(--atlas-tea-deep);
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.page .wishlist-toggle {
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 253, 248, 0.92);
}

.page .wishlist-toggle-checked {
  color: #fff;
  background: var(--atlas-tea-deep);
}

.page .wishlist-card-copy {
  display: flex;
  min-height: 142px;
  padding: 16px;
  justify-content: space-between;
  flex-direction: column;
}

.page .wishlist-card-copy h4 {
  color: var(--atlas-tea-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.page .wishlist-card-checked {
  opacity: 0.58;
  filter: saturate(0.35);
}

.page .wishlist-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--atlas-line);
}

.page .wishlist-action-button,
.page .wishlist-delete-button {
  min-height: 44px;
  color: var(--atlas-tea-deep);
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.page .wishlist-delete-button {
  color: #70473e;
}

/* Dialogs and inputs */
.page .modal-backdrop {
  z-index: var(--atlas-backdrop);
  background: rgba(13, 34, 35, 0.62);
  backdrop-filter: blur(8px);
}

.page .detail-modal {
  padding: 28px;
  border: 0;
  border-radius: 16px;
  background: var(--atlas-paper);
  box-shadow: 0 8px 14px rgba(13, 34, 35, 0.22);
}

.page .detail-modal h2 {
  color: var(--atlas-tea-dark);
  font-family: var(--font-display);
  font-weight: 600;
}

.page .detail-modal-kicker {
  color: var(--atlas-tea);
}

.page .detail-modal-close {
  min-height: 44px;
  color: var(--atlas-tea-deep);
  border: 0;
  background: #dce7e1;
}

.page .detail-modal-list {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #edf0ea;
}

.page .wishlist-modal-form input,
.page .wishlist-modal-form textarea {
  min-height: 50px;
  color: var(--atlas-ink);
  border: 1px solid var(--atlas-line-strong);
  border-radius: 10px;
  background: #fff;
}

.page .wishlist-modal-form textarea {
  min-height: 116px;
}

.page .wishlist-modal-form input::placeholder,
.page .wishlist-modal-form textarea::placeholder {
  color: #5f706c;
  opacity: 1;
}

.page .wishlist-file-field input[type="file"] {
  min-height: 58px;
  border-radius: 10px;
  background: #edf0ea;
}

.page .wishlist-file-field input[type="file"]::file-selector-button {
  min-height: 44px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: var(--atlas-tea-deep);
}

/* Purposeful, low-cost motion */
@media (prefers-reduced-motion: no-preference) {
  .page:not(.page-home) .site-header::after {
    animation: atlas-masthead-drift 18s ease-in-out infinite alternate;
  }

  .page .overview,
  .page .itinerary,
  .page .useful-info {
    animation: atlas-section-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes atlas-masthead-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -5px, 0); }
}

@keyframes atlas-section-in {
  from { opacity: 0.92; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: calc(14px + env(safe-area-inset-top, 0px));
  }

  .page #app {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 10px calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .page .section-nav {
    top: auto;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: auto;
    min-height: 72px;
    padding: 5px;
    transform: none;
    border: 1px solid var(--atlas-line);
    border-radius: 16px;
    box-shadow: 0 8px 14px rgba(23, 54, 56, 0.18);
  }

  .page .section-nav::before {
    display: none;
  }

  .page .section-nav-link {
    min-height: 60px;
    padding: 5px 2px;
    gap: 3px;
    flex-direction: column;
    border-radius: 12px;
    font-size: 0.63rem;
    line-height: 1;
  }

  .page .section-nav-link-active::after {
    position: absolute;
    top: 6px;
    right: 14px;
    margin: 0;
  }

  .page .section-nav-link .ui-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .page:not(.page-home) .site-header {
    min-height: 268px;
    margin-bottom: 12px;
    padding: 104px 22px 26px;
    border-radius: 14px;
  }

  .page:not(.page-home) .site-header::before {
    top: 22px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .page:not(.page-home) .site-header h1 {
    top: 33px;
    left: 72px;
    font-size: 0.62rem;
  }

  .page:not(.page-home) .trip-subtitle {
    font-size: clamp(2.15rem, 11vw, 3.25rem);
  }

  .page:not(.page-home) .trip-summary {
    font-size: 0.88rem;
  }

  .page .overview,
  .page .useful-info,
  .page .itinerary,
  .page .status-panel {
    margin-bottom: 12px;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .page .section-header {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .page .section-header h2 {
    font-size: 2rem;
  }

  .page .section-header .section-note {
    font-size: 0.88rem;
  }

  .page .overview-cards,
  .page-wishlist .wishlist-overview-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page .overview-card {
    padding: 12px 8px;
  }

  .page .overview-icon {
    width: 38px;
    height: 38px;
  }

  .page .overview-card h3 {
    margin-top: 8px;
    font-size: 0.86rem;
  }

  .page .overview-card p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .page-home .home-trip-accordion-summary {
    min-height: 66px;
  }

  .page-home .home-route-band {
    grid-template-columns: 1fr;
  }

  .page-home .route-stop + .route-stop {
    border-top: 1px solid var(--atlas-line);
    border-left: 0;
  }

  .page-home .current-day-card {
    min-height: 260px;
    padding: 24px 20px;
  }

  .page-hotels .base-card {
    display: flex;
    min-height: 0;
    padding: 0 18px 18px;
    flex-direction: column;
    gap: 7px;
  }

  .page-hotels .base-card-media {
    width: calc(100% + 36px);
    min-height: 260px;
    margin: 0 -18px 8px;
  }

  .page-hotels .base-card-media img {
    min-height: 260px;
  }

  .page-hotels .base-date {
    margin-top: 13px;
  }

  .page-hotels .base-card h3 {
    font-size: 2rem;
  }

  .page-hotels .base-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .page-hotels .hotel-action-link {
    width: 100%;
    height: 56px;
    border-radius: 10px;
  }

  .page-itinerary .itinerary-launch-grid {
    gap: 18px;
  }

  .page-itinerary .itinerary-calendar {
    margin-inline: -6px;
    padding: 15px 8px;
  }

  .page-itinerary .itinerary-calendar-header {
    padding-inline: 8px;
  }

  .page-itinerary .itinerary-calendar-day {
    min-width: 0;
    min-height: 46px;
    padding: 3px;
  }

  .page-itinerary .itinerary-calendar-range {
    font-size: 0.65rem;
  }

  .page-itinerary .day-summary {
    min-height: 94px;
    padding: 17px 58px 17px 16px;
  }

  .page-itinerary .day-summary::after {
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .page-itinerary .day-meta {
    margin-top: 9px;
    justify-content: flex-start;
  }

  .page-itinerary .day-body {
    padding: 0 14px 16px;
  }

  .page-itinerary .day-gallery-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    gap: 10px;
    padding: 0 1px 6px;
    overflow-x: auto;
    background: transparent;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .page-itinerary .day-gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .page-itinerary .day-gallery-card {
    min-height: 0;
    border-radius: 12px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .page-itinerary .day-gallery-card img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .page-itinerary .day-schedule {
    --timeline-time-column: 42px;
    --timeline-axis-column: 16px;
  }

  .page-pass .pass-overview-panel {
    padding: 20px;
  }

  .page-pass .pass-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-pass .pass-kpi-card {
    padding: 12px 7px;
  }

  .page-pass .pass-kpi-card dt {
    font-size: 0.66rem;
  }

  .page-pass .pass-kpi-card dd {
    font-size: 0.96rem;
  }

  .page-pass .pass-decision-grid,
  .page-pass .pass-buy-grid,
  .page-pass .pass-benefit-grid {
    grid-template-columns: 1fr;
  }

  .page-wishlist .wishlist-route-grid {
    grid-template-columns: 1fr;
  }

  .page-wishlist .wishlist-route-card {
    min-height: 225px;
    padding: 22px;
  }

  .page .wishlist-column-head {
    margin-top: 18px;
    padding: 18px;
  }

  .page .wishlist-list-toolbar {
    position: sticky;
    z-index: var(--atlas-sticky);
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  .page .wishlist-add-trigger {
    min-height: 52px;
    pointer-events: auto;
  }

  .page .wishlist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page .wishlist-card-media,
  .page .wishlist-thumb,
  .page .wishlist-thumb img,
  .page .wishlist-thumb-placeholder {
    min-height: 170px;
  }

  .page .wishlist-card-copy {
    min-height: 156px;
    padding: 12px;
  }

  .page .wishlist-card-copy h4 {
    font-size: 1rem;
  }

  .page .wishlist-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .page .wishlist-action-button,
  .page .wishlist-delete-button {
    padding-inline: 4px;
    font-size: 0.75rem;
  }

  .page .modal-backdrop {
    align-items: end;
    padding: 8px;
  }

  .page .detail-modal {
    width: 100%;
    max-height: 90dvh;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 12px 12px;
  }
}

@media (max-width: 390px) {
  .page .section-nav-link {
    font-size: 0.57rem;
  }

  .page .overview-card h3 {
    font-size: 0.78rem;
  }

  .page .wishlist-list {
    grid-template-columns: 1fr;
  }

  .page .wishlist-card {
    display: grid;
    grid-template-columns: 42% 1fr;
  }

  .page .wishlist-card-media,
  .page .wishlist-thumb,
  .page .wishlist-thumb img,
  .page .wishlist-thumb-placeholder {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page:not(.page-home) .site-header::after,
  .page .overview,
  .page .itinerary,
  .page .useful-info,
  .page-itinerary .day-gallery-card img {
    animation: none;
    transition: none;
    transform: none;
  }
}
