/* Altay winter journal: visual theme only; layout is defined in index.html. */
@font-face {
  font-family: "Xiaolai Travel";
  src: url("fonts/Xiaolai-Travel.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f5f8fa;
  --white: #fffefa;
  --ink: #294a60;
  --green: #416e87;
  --muted: #708898;
  --line: #d7e5ec;
  --soft: #eaf2f6;
  --gold: #ad6846;
  --serif: "Xiaolai Travel", "Hiragino Maru Gothic ProN", "PingFang SC", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --accent: #d99470;
  --accent-soft: #fff1e6;
  --card-shadow: 0 3px 14px #476b8010, 0 1px 2px #476b8008;
}

body {
  background-color: var(--paper);
  background-image: linear-gradient(180deg, #f2f7fa 0%, #fbfcfb 42%, #f8f5ef 100%);
  font-weight: 500;
}

::selection { background: #dbeaf3; color: #274e65; }
button:focus-visible, a:focus-visible, summary:focus-visible,
.check-item input:focus-visible { outline-color: #cc8862; }
.icon { stroke-width: 1.7; }

.topbar {
  background: #f8fbfde8;
  border-color: #dae7ef;
  box-shadow: 0 2px 14px #597c9107;
}
.brand-name { color: #355e77; text-shadow: 0 1px 0 #fff; }
.brand small { color: #7b97a8; }
.brand-mark { filter: drop-shadow(0 1px 2px #52788d18); }
.nav-links { border-color: var(--line); }
.nav-links a { color: #6d8797; }
.nav-links a:hover, .nav-links a.active { color: #335f7b; }
.nav-links a.active:after { height: 3px; border-radius: 3px; background: var(--accent); }

.hero {
  border-radius: 12px;
  outline: none;
  box-shadow: 0 9px 25px #2a556d18;
  background: #9dbaca;
}
.hero:after {
  background:
    linear-gradient(90deg, #173d57a6, #35647b29 65%, #c4dce607),
    linear-gradient(0deg, #234b644d, transparent 55%);
}
.hero h1 { font-weight: 600; text-shadow: 0 3px 16px #1739514d; }
.hero-location { border-left: 2px solid #f2d0a9c9; }
.hero-location span { color: #fffdf5; }
.button {
  background: #4a7893;
  border-radius: 12px;
  box-shadow: 0 3px 0 #244b631a;
}
.button:hover { background: #365f7a; }
.button.light {
  color: #385b72;
  background: #fff9eb;
  box-shadow: inset 0 0 0 1px #ffffffd9, 0 3px 0 #173b5433;
}
.button.light:hover { background: #fff0d8; }
.section-kicker { color: #995d3b; font-size: 11px; }
.section-heading { color: #355d75; font-weight: 600; }
.route-stop strong { font-family: var(--serif); font-weight: 500; }
.route-stop small { font-family: var(--sans); font-size: 12px; letter-spacing: .2px; }

.route-strip {
  background: transparent;
  border: 0;
  border-top: 1px solid #c6dbe6;
  border-bottom: 1px solid #c6dbe6;
  border-radius: 0;
  box-shadow: none;
  padding-left: 8px;
  padding-right: 8px;
}
.route-stop:after { border-color: #b8cfdd; }
.route-dot {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  color: #547e97;
  background: #eff6fa;
  border-color: #cfdfeb;
  box-shadow: 0 2px 0 #e2edf3;
}
.route-stop.is-current .route-dot {
  color: #fff;
  background: #6b98b3;
  border-color: #6b98b3;
  box-shadow: 0 3px 0 #dde9f0;
}
.route-stop.is-current strong { color: #315b75; }
.route-stop:hover .route-dot { box-shadow: 0 0 0 3px #52788d14; }
.route-stop strong { color: #315b75; font-size: 14px; }
.route-stop small { color: #a95e3d; font-size: 12px; font-weight: 600; }
#stage-altay .stage-photo { object-position: center 24%; }
#stage-homeward .stage-photo { object-position: center 55%; }

.itinerary-toolbar { border-bottom-style: solid; border-color: #bfd6e2; }
.itinerary-label {
  border-radius: 6px;
  color: #fff;
  background: #638da7;
  box-shadow: 0 2px 0 #3c657f1f, inset 0 1px 0 #ffffff33;
}
.timeline:before { border-left-style: dashed; border-color: #b8d0df; }
.stage-marker {
  color: #5d7f95;
  background: #f4f9fc;
  border-color: #c2d9e6;
  box-shadow: 0 2px 0 #e2edf4;
}
.stage[data-type="stay"] .stage-marker {
  color: #a76d45;
  background: #fff0df;
  border-color: #ebcdb1;
}
.stage details {
  background: #fffefa;
  border-radius: 9px;
  border-color: #c7dce7;
  box-shadow: var(--card-shadow);
  transition: border-color .2s, box-shadow .2s;
}
.stage details:hover { border-color: #b4d0e0; box-shadow: 0 6px 23px #476b8017; }
.stage details[open] { border-color: #a8c8dc; }
.stage summary:hover { background: #f1f7fb; }
.stage details[open]>summary { background: #edf5fa; }
.stage-title h3 { color: #355e78; font-weight: 600; }
.stage-title small { color: #527188; font-size: 11px; }
.stage-toggle { color: #466f89; font-size: 12px; }
.duration { border-radius: 8px; background: #e7f1f8; color: #416b86; font-size: 12px; }
.duration.pending { color: #766344; background: #f6f0e4; }
.chevron { color: #8ca4b4; }

.stage summary.stage-cover { background: #8cabbc; border-radius: 8px 8px 0 0; }
.stage-cover:after {
  background:
    linear-gradient(0deg, #193e58df, #315c712e 62%, #31546b08),
    linear-gradient(180deg, #1a3e5873, transparent 45%);
}
.stage-cover-meta { color: #fffdf7; font-size: 12px; text-shadow: 0 1px 6px #173e5955; }
.stage-cover-meta .duration { font-size: 11px; }
.stage-cover-meta .duration {
  color: #805334;
  background: #fff0dbe8;
  border-color: #fff4e5b3;
  border-radius: 8px;
  text-shadow: none;
}
.stage-cover .stage-title h3 { color: #fffefa; font-weight: 600; text-shadow: 0 2px 8px #17394e3b; }
.stage-cover .stage-title small { color: #f0f6fa; }
.stage-cover .stage-toggle {
  color: #fffefa;
  font-size: 12px;
  background: #e7f4ff17;
  border-color: #e5f3fd99;
  border-radius: 10px;
}
.stage-cover:hover .stage-toggle { background: #e7f4ff35; }
.stage[data-type="transit"] .stage-cover .stage-title h3 { font-size: 24px; letter-spacing: 1px; }

.stage-desc { color: #4f6c80; border-color: #dfeaf1; font-size: 14px; }
.day-plan { background: #f0f7fb; border-color: #dceaf2; border-radius: 9px; }
.day-label { color: #995d3b; font-size: 12px; }
.detail-item span { color: #48677d; }
.day-slots li { font-size: 13px; line-height: 1.8; }
.slot-label { color: #4f7088; font-size: 12px; }
.slot-text { color: #435f74; border-color: #c7dce9; }
.stage-note { color: #9a734b; }
.detail-item { background: #fffefa; border-color: #dbe7ef; border-radius: 8px; color: #526f83; font-size: 12px; }
.detail-grid > .detail-item:only-child { grid-column: 1 / -1; }
.detail-item strong { color: #416a84; font-size: 11px; }
.confirm-title { color: #7c95a7; }
.confirm-list li { color: #718da0; background: #f9fcfe; border-color: #c6dce9; border-radius: 7px; }
.user-note { color: #5a7c91; background: #f0f7fb; border-color: #e2ae86; border-radius: 0 10px 10px 0; }

.map-card {
  background: #fffefa;
  border-color: #c9d9dd;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}
.map-header { padding: 16px 18px 13px; background: #294e60; }
.map-header h3 { color: #fffdf6; font-size: 19px; }
.map-art { margin: 0; }

.prep-card { background: #fffefa; border-color: #d4e3ec; border-radius: 10px; box-shadow: var(--card-shadow); }
.prep-heading h3 { color: #426c85; font-weight: 600; }
.prep-heading h3 .icon { color: #6d98b1; }
.prep-heading>span { color: #9d896c; }
.packing-progress span { color: #4c7088; font-size: 11px; }
.packing-progress progress { background: #e4eff6; accent-color: #89afc7; border-radius: 6px; }
.packing-progress progress::-webkit-progress-bar { background: #e4eff6; }
.packing-progress progress::-webkit-progress-value { background: #89afc7; border-radius: 6px; }
.packing-progress progress::-moz-progress-bar { background: #89afc7; border-radius: 6px; }
.packing-group legend { color: #3f6c87; font-size: 13px; border-bottom-style: dashed; border-color: #cddfe9; }
.packing-group legend>span { color: #66849a; font-size: 10px; }
.check-item { border-radius: 10px; }
.check-item:hover { background: #f0f6fa; }
.check-item input { border-color: #bad1e0; border-radius: 5px; box-shadow: 0 1px 0 #dfebf3; }
.check-item input:checked { background: #729bb5; border-color: #729bb5; }
.check-copy strong { color: #436b84; font-size: 12px; }
.check-copy small { color: #5d788c; font-size: 11px; }
.check-item:has(input:checked) { background: #edf5fa; }
.check-item:has(input:checked) strong { color: #6b8498; }

.outline-button { color: #557b94; background: #f8fcfe; border-color: #c9dce8; }
.outline-button:hover { background: #e7f1f8; }
.footer { color: #627f92; font-size: 11px; border-top-style: dashed; border-color: #c5dbe8; }
.footer-brand { color: #557b94; }
.toast { background: #4d7590; border-radius: 14px; box-shadow: 0 6px 24px #345c7829; }

@media (max-width: 760px) {
  .hero { border-radius: 10px; }
  .hero:after { background: linear-gradient(90deg, #173e58b5, #325e7724), linear-gradient(0deg, #31556e50, transparent); }
  .route-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 13px 0;
    border-top-color: #c1d8e4;
    border-bottom-color: #c1d8e4;
  }
  .route-strip:before {
    content: "";
    position: absolute;
    left: 20px;
    top: 46px;
    bottom: 46px;
    border-left: 1px dashed #afc9d8;
  }
  .route-stop {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 12px;
    align-items: center;
    min-height: 58px;
    padding: 6px 0;
    text-align: left;
  }
  .route-stop:after { display: none; }
  .route-stop:last-child { grid-column: auto; }
  .route-dot {
    grid-row: 1 / span 2;
    margin: 0;
    justify-self: center;
  }
  .route-stop strong, .route-stop small { grid-column: 2; }
  .route-stop strong { grid-row: 1; }
  .route-stop small { grid-row: 2; margin-top: 2px; }
}
@media (max-width: 480px) {
  .route-strip:before { left: 20px; top: 44px; bottom: 44px; }
  .route-stop { grid-template-columns: 40px minmax(0, 1fr); min-height: 56px; padding: 5px 0; }
  .route-stop strong { font-size: 13px; }
  .route-stop small { font-size: 11px; }
}
@media (max-width: 480px) {
  .stage[data-type="transit"] .stage-cover .stage-title h3 { font-size: 20px; letter-spacing: .5px; }
  .stage-cover-meta { font-size: 11px; }
  .stage-cover-meta .duration { font-size: 11px; }
  .stage-cover .stage-toggle { font-size: 11px; }
  .stage-title small { font-size: 11px; }
  .duration { font-size: 11px; }
  .route-stop small { font-size: 11px; }
  .stage-desc { font-size: 13px; }
  .day-slots li { font-size: 12px; }
  .slot-label { font-size: 11px; }
  .check-copy strong { font-size: 12px; }
  .check-copy small { font-size: 11px; }
  .footer { font-size: 11px; }
}
.hero { height: 380px; }
@media (max-width: 1050px) { .hero { height: 360px; } }
@media (max-width: 760px) { .hero { height: 340px; } }
@media (max-width: 480px) { .hero { height: 320px; } }
@media print {
  body { background: #fff; }
  .topbar, .route-strip, .stage details, .map-card, .prep-card { box-shadow: none; }
  .hero { outline: none; box-shadow: none; }
}
