@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/jakarta.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url('/assets/poppins-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url('/assets/poppins-semibold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --white: #fff;
  --ink: #171717;
  --muted: #545454;
  --forest: var(--ink);
  --leaf: #f5f5f5;
  --rust: #262626;
  --line: #ebebeb;
  --focus: #444;
  --card-radius: 13px;
  --gutter: clamp(15px, 5vw, 22px);
  font: 400 1rem/1.5 Poppins, 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100dvh; background: var(--paper); }
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; text-align: inherit; }
button, input[type=checkbox], a { cursor: pointer; }
button:disabled { cursor: wait; opacity: .64; }
button:active, a:active { filter: brightness(.92); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: 0; }
ul, ol, figure, h1, h2, h3, p { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.58rem, 5vw, 2.35rem); font-weight: 600; letter-spacing: -.04em; }
h2 { font-size: 1.13rem; font-weight: 600; letter-spacing: -.035em; }
small { line-height: 1.28; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 12; inset: 8px auto auto 8px; padding: 12px; color: var(--ink); background: var(--white); }
.loading { padding: 18px var(--gutter); }

.app { position: relative; max-width: 1232px; margin-inline: auto; }
main { min-height: calc(100vh - 64px); padding-bottom: calc(106px + env(safe-area-inset-bottom, 0px)); }
.topbar { position: relative; height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 8px var(--gutter); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1.04rem; font-weight: 800; letter-spacing: -.06em; }
.brand-icon { display: block; width: 29px; height: 29px; flex: none; }

.icon-button { display: inline-flex; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--forest); }
.icon-button svg { width: 18px; height: 18px; }
.topbar > .icon-button { color: var(--rust); }
.icon-button:hover { background: var(--leaf); border-color: var(--forest); }
body[data-screen=home] .topbar { position: absolute; inset: 0 0 auto; z-index: 2; color: #fffdf7; }
body[data-screen=home] .topbar > .icon-button { border-color: #fffcf7; }
body[data-screen=home] .topbar :focus-visible, .hero :focus-visible { outline-color: var(--white); }

.primary {
  position: fixed;
  z-index: 4;
  inset: auto max(11px, env(safe-area-inset-right, 0px)) max(9px, env(safe-area-inset-bottom, 0px)) max(11px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  min-height: 65px;
  padding: 5px 5px 4px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--white);
  box-shadow: 0 6px 23px #1717170e;
}
.primary a { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 54px; padding: 2px; border-radius: 15px; color: var(--muted); font-size: .72rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.primary a > span { display: grid; place-items: center; width: 43px; min-height: 28px; border-radius: 10px; }
.primary a[aria-current] { color: var(--forest); font-weight: 600; }
.primary a[aria-current] > span { color: var(--white); background: var(--forest); }
.primary a:not([aria-current]):hover { background: var(--leaf); }
.hero { position: relative; isolation: isolate; min-height: 244px; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-photo { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; z-index: -2; }
.hero-photo { object-position: 52% 46%; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ''; }
.hero::after { background: linear-gradient(180deg, #171717c9, transparent 39%, #171717a8 53%, #171717ed); }
.hero-copy { container-type: inline-size; padding: 70px var(--gutter) 32px; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: .72rem; font-weight: 600; }
.hero-tag svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(1.125rem, 6.55cqi, 4.6rem); margin-block: 9px; line-height: 1.12; }
.hero h1 em { font-style: normal; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: .75rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; }

.home-body { position: relative; margin-top: -18px; padding: 13px var(--gutter) 0; border-radius: 23px 23px 0 0; background: var(--paper); }
.home-weather > .section-title { min-height: 40px; }
.home-weather .page-map { min-height: 44px; }
.home-forecast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--white); }
.home-forecast li { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 5px 2px; text-align: center; line-height: 1.2; }
.home-forecast li + li { border-inline-start: 1px solid var(--line); }
.home-forecast time { font-size: .68rem; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.forecast-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--leaf); color: #526477; }
.forecast-icon svg { width: 17px; height: 17px; }
.forecast-icon[data-sky=sun] { color: #85591b; background: #fff4df; }
.forecast-icon[data-sky=rain] { color: #245b91; background: #ecf4fc; }
.forecast-icon[data-sky=storm] { color: #644787; background: #f4eef9; }
.forecast-temperatures { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 1px 3px; font-size: .83rem; font-variant-numeric: tabular-nums; }
.forecast-temperatures small, .weather-status { color: var(--muted); font-size: .68rem; }
.weather-status:not(:empty) { margin-top: 4px; }
.weather-status:empty { display: none; }
.update-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--leaf); color: var(--forest); }
.update-icon svg { width: 17px; height: 17px; }

.journey { margin-top: 8px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 42px; }
.section-title small { color: var(--muted); font-size: .73rem; font-weight: 650; }
.text-action { display: inline-flex; align-items: center; justify-content: start; gap: 6px; min-height: 44px; color: var(--forest); font-size: .78rem; font-weight: 760; }
.text-action:hover { color: var(--rust); text-decoration: underline; }
.text-action svg { width: 16px; height: 16px; }
.journey-cards { display: grid; gap: 5px; }
.journey-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 6px 9px 6px 12px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--white);
  color: var(--ink);
}
.journey-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 44%; }
.journey-art::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, var(--white), #ffffffbf 25%, #fff0 63%); }
.journey-photo { width: 100%; height: 100%; object-fit: cover; }
.journey-copy { display: grid; gap: 2px; max-width: 67%; overflow-wrap: anywhere; }
.journey-copy small { font-size: .67rem; color: var(--muted); }
.journey-copy strong { font-size: .89rem; font-weight: 600; line-height: 1.26; }
.journey-card .activity-chevron { background: var(--white); }
.journey-card:hover .activity-chevron { background: var(--leaf); }
.update { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; margin-top: 12px; border-top: 1px solid var(--line); }
.update small, .update strong { display: block; }
.update small { color: var(--muted); font-size: .67rem; }
.update strong { font-size: .83rem; }
.update > svg { color: var(--muted); width: 16px; }
.update:hover strong { text-decoration: underline; }

.during .hero-copy { padding-bottom: 31px; }
.active-title { display: grid; gap: 3px; margin-bottom: 9px; }
.active-title p { color: var(--rust); font-size: .7rem; font-weight: 750; }
.active-title h2 { font-size: 1.34rem; }
.next-stop { padding: 11px 13px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--forest); border-radius: 12px; }
.next-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.next-heading span { color: var(--forest); font-size: .77rem; font-weight: 760; }
.next-heading small { color: var(--muted); font-weight: 650; }
.next-heading time { font-size: 1.06rem; font-weight: 800; }
.next-detail { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.next-detail:hover strong { text-decoration: underline; }
.next-detail strong { font-size: 1.04rem; }
.next-stop .activity-detail { margin: 0; border-color: var(--line); }
.meet-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; align-items: center; min-height: 49px; }
.meet-row > svg { width: 17px; color: var(--forest); }
.meet-row small, .meet-row strong { display: block; line-height: 1.28; }
.meet-row small { color: var(--muted); font-size: .68rem; }
.meet-row strong { font-size: .81rem; }
.active-actions { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 6px; margin: 7px 0 9px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 11px; border-radius: 10px; font-size: .78rem; font-weight: 770; line-height: 1.28; }
.button svg { width: 16px; height: 16px; }
.primary-button { background: var(--forest); color: var(--white); }
.primary-button:hover { background: #373737; }
.next-nav { margin-top: 4px; padding: 5px 2px; min-height: 44px; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.next-nav:hover { color: var(--rust); }

.page { padding: 6px var(--gutter) 28px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 11px; margin-bottom: 15px; }
.overline { color: var(--rust); font-weight: 750; font-size: .75rem; margin-bottom: 4px; }
.itinerary-dates { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 5px; margin-bottom: 14px; }
.days a { display: grid; min-height: 51px; align-content: center; justify-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; line-height: 1.2; text-align: center; background: var(--white); }
.days strong { font-size: .79rem; font-weight: 600; }
.days small { font-size: .67rem; color: var(--muted); }
.days a[aria-current] { border-color: #dedede; background: #f3f3f3; box-shadow: inset 0 -2px #232323; }
.days a:not([aria-current]):hover { background: var(--leaf); }
.day-side { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.day-title { font-size: .9rem; font-weight: 600; }
.day-area { color: var(--muted); font-size: .72rem; }
.day-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 7px; color: var(--muted); font-size: .69rem; }
.day-facts span { display: inline-flex; align-items: center; gap: 4px; }
.day-facts svg { width: 13px; height: 13px; }
.schedule > .section-title { min-height: 50px; }
.page-map { display: inline-flex; align-items: center; min-height: 44px; font-size: .73rem; white-space: nowrap; }
.page-map span { padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; }
.page-map:hover span { background: var(--leaf); border-color: #d3d3d3; }
.timeline, .packing, .discover-list { display: grid; border: 1px solid #efefef; border-radius: 18px; background: #f6f6f6; }
.timeline { padding: 5px 8px 5px 4px; }
.timeline > li { display: grid; grid-template-columns: clamp(49px, 15vw, 72px) 22px minmax(0, 1fr); gap: 4px; padding-block: 3px; }
.timeline-clock { color: #252525; padding-top: 12px; text-align: right; font-size: .68rem; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.timeline-clock small { display: block; margin-top: 2px; font-size: .59rem; color: var(--muted); }
.timeline-clock .timeline-end { display: none; }
.timeline > li:has(details[open]) .timeline-end { display: block; margin-top: 6px; }
.timeline-rail { position: relative; display: flex; justify-content: center; align-items: start; margin-block: -3px; padding-top: 12px; }
.timeline-rail::before { content: ''; position: absolute; width: 1px; inset-block: 0; background: #bcbcbc; }
.timeline > li:first-child .timeline-rail::before { inset-block-start: 21px; }
.timeline > li:last-child .timeline-rail::before { inset-block-end: auto; height: 21px; }
.timeline-rail > span { z-index: 1; min-width: 18px; height: 18px; padding-inline: 3px; border-radius: 999px; background: #244a3e; color: white; font: 600 10px/18px 'Plus Jakarta Sans', system-ui, sans-serif; text-align: center; }
.timeline > .drive-row .timeline-rail > span { display: grid; place-items: center; min-width: 17px; height: 18px; padding: 0; border-radius: 0; background: #f6f6f6; color: #545454; }
.timeline > .drive-row .timeline-rail svg { width: 15px; height: 15px; }
.timeline > li > details { min-width: 0; }
.stop-row > details, .packing > li, .budget-list > li { border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--white); }
.activity, .next-detail { cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.activity::-webkit-details-marker, .next-detail::-webkit-details-marker { display: none; }
.activity { display: grid; grid-template-columns: 41px minmax(0, 1fr) 25px; align-items: center; gap: 8px; min-height: 59px; padding: 7px 7px; border-radius: 12px; }
.activity > .activity-chevron { width: 25px; height: 25px; }
.drive-line { display: flex; align-items: center; min-width: 0; min-height: 35px; padding-inline: 2px; color: var(--muted); font-size: .68rem; line-height: 1.3; }
.drive-copy { display: flex; gap: 3px; min-width: 0; white-space: nowrap; }
.drive-name, .drive-time { overflow: hidden; text-overflow: ellipsis; }
.drive-name { color: var(--ink); }
.drive-name-compact, .drive-elapsed-compact { display: none; }
.drive-time { flex: none; max-width: 70%; }
@media (max-width: 900px) {
  .drive-name-full { display: none; }
  .drive-name-compact { display: inline; }
}
@media (max-width: 420px) {
  .drive-line[data-long] .drive-verb, .drive-elapsed { display: none; }
  .drive-elapsed-compact { display: inline; }
}
.activity:hover .activity-chevron { background: #e9e9e9; }
.activity-chevron { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #f4f4f4; color: #242424; }
.activity-chevron svg { width: 15px; height: 15px; }
details[open] > summary .activity-chevron { background: #ebebeb; }
details[open] > summary .activity-chevron svg { transform: rotate(90deg); }
:is(.activity, .next-detail):active .activity-chevron { background: #dedede; }
.activity-visual { width: 41px; height: 41px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; color: #424242; background: #f4f4f4; }
.activity-photo { width: 100%; height: 100%; object-fit: cover; }
.activity-photo[src$="padang-besar-street.webp"] { object-fit: contain; }
.activity-photo[src$="pekan-rabu-alor-setar.webp"] { object-position: center bottom; }
.activity-photo[src$="firdaus-front.webp"] { object-position: 80% center; }
.activity-copy { min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
.activity-copy strong { font-size: .89rem; font-weight: 600; line-height: 1.26; }
.activity-duration { color: var(--muted); font-size: .69rem; line-height: 1.35; }
.activity-detail { margin: 0 1px 8px; padding: 5px 9px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.activity-detail p + p { margin-top: 4px; }
.activity-detail strong { color: var(--ink); font-weight: 600; }
.detail-location { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; }
.detail-location + p { margin-top: 4px; }
.detail-place { display: flex; align-items: baseline; gap: 5px; color: var(--ink); }
.detail-place svg { width: 13px; height: 13px; align-self: center; }
.detail-caption { font-size: .67rem; }
.detail-directions { min-height: 44px; flex: none; font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.detail-directions svg { width: 13px; height: 13px; }

.stop-map { margin-block-start: 18px; scroll-margin-top: 10px; }
.stop-map [hidden] { display: none; }
.stop-map-canvas { position: relative; isolation: isolate; height: clamp(260px, 50vw, 345px); border: 1px solid #e1e5e1; border-radius: 15px; background: #e7ebe8; }
.stop-map-canvas .leaflet-tile-pane { filter: saturate(.42) contrast(.92); }
.stop-map-canvas .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.stop-map-canvas .leaflet-control-zoom a:focus-visible { outline-offset: -3px; }
.map-route { font-weight: 600; }
.stop-map-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.stop-map-status { font-size: .72rem; color: var(--muted); }
.stop-map-status:empty { display: none; }
.stop-map-status:not(:empty) { padding-block: 6px; flex-basis: 100%; }
.road-map-key { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .7rem; padding-block: 6px; }
.road-map-key span { flex: 0 0 18px; height: 3px; border-radius: 4px; background: #245ca8; }
.road-map-key a { text-decoration: underline; }
.stop-pan { flex: none; margin-inline-start: auto; font-weight: 600; }
.stop-pan[aria-pressed=true] { text-decoration: underline; }
.stop-map-canvas .leaflet-marker-icon.stop-marker { pointer-events: none; }
.stop-marker[data-offset]::before { content: ''; position: absolute; top: 18px; left: 18px; width: 8px; height: 8px; border: 1px solid #fff; border-radius: 50%; background: #28624e; }
.stop-marker-badge, .stop-code { display: inline-grid; place-items: center; border-radius: 999px; background: #28624e; color: #fff; font-weight: 600; }
.stop-marker-badge { position: absolute; inset: 8px; width: 30px; height: 26px; transform: translate(var(--pin-x, 0), var(--pin-y, 0)); border: 2px solid white; box-shadow: 0 1px 5px #18332850; font-size: 11px; pointer-events: auto; cursor: pointer; }
.stop-marker:focus-visible { outline: none; }
.stop-marker:focus-visible .stop-marker-badge { outline: 2px solid #202020; outline-offset: 2px; }
.stop-marker[aria-pressed=true] .stop-marker-badge { background: #171717; }
.stop-selection { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 9px; margin-block: 6px; border: 1px solid #dedede; border-radius: 10px; font-size: .78rem; }
.stop-selection p { color: var(--muted); font-size: .7rem; }
.stop-selection a { text-decoration: underline; font-weight: 600; }
.stop-activities { grid-column: 1 / -1; display: grid; gap: 5px; border-top: 1px solid var(--line); padding-block: 7px; }
.stop-activities li { display: flex; align-items: baseline; gap: 8px; }
.stop-activities time { flex: none; color: var(--muted); font-size: .69rem; }
.stop-activities li > span { overflow-wrap: anywhere; }
.stop-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 7px; margin-block-start: 7px; }
.stop-key button { display: flex; align-items: center; gap: 6px; min-height: 44px; width: 100%; padding: 4px; border-radius: 8px; font-size: .72rem; line-height: 1.25; overflow-wrap: anywhere; }
.stop-key button:hover, .stop-key button[aria-pressed=true] { background: #f2f2f2; }
.stop-code { flex: none; min-width: 27px; min-height: 22px; padding: 2px; font-size: .62rem; }
.stop-key small { display: block; margin-top: 2px; color: var(--muted); }

@media (max-width: 355px) {
  .timeline > li { grid-template-columns: 48px 17px minmax(0, 1fr); gap: 3px; }
  .activity { grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 6px; padding-inline: 5px; }
  .activity-visual { width: 34px; height: 34px; }
  .activity > .activity-chevron { width: 22px; height: 22px; }
  .drive-line .drive-verb, .drive-line .drive-mode:not([data-show-on-mobile]) { display: none; }
}

.discover-menus { display: grid; grid-template-columns: 1.15fr .73fr 1.08fr .83fr 1.06fr; gap: 4px; margin-bottom: 14px; }
.discover-menus a { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 48px; padding: 5px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-align: center; }
.discover-menus a[aria-current] { border-color: #dedede; background: #f3f3f3; box-shadow: inset 0 -2px #232323; }
.discover-menus a:hover { background: var(--leaf); }
.discover-menus a > span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--leaf); }
.discover-menus a[aria-current] > span { background: var(--white); }
.discover-menus svg { width: 14px; height: 14px; }
.discover-menus strong { min-width: 0; font-size: clamp(.62rem,2.65vw,.82rem); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.discover-list { gap: 5px; padding: 6px; }
.discover-list .activity-visual > svg { width: 17px; height: 17px; }
.discover-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.discover-caption { margin: 0 0 8px; }
.essentials-grid { display: grid; gap: 7px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.essentials-grid > :is(#weather, #guide) { grid-column: 1 / -1; }
.info-block { scroll-margin-block-start: 10px; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 10px; background: var(--white); }
.info-block h2 { margin-bottom: 6px; font-size: 1.06rem; }
.info-block h3 { font-size: .91rem; }
.info-value { font-size: .89rem; font-weight: 600; }
.subtle { color: var(--muted); font-size: .76rem; }
.map-action:hover { background: var(--leaf); color: var(--rust); }
.discover-table-frame { border: 1px solid var(--line); border-radius: var(--card-radius); overflow: hidden; }
.discover-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: clamp(.625rem, 2.1vw, .82rem); line-height: 1.25; font-variant-numeric: tabular-nums; }
.discover-table :is(th, td) { padding: 7px 3px; text-align: center; vertical-align: top; overflow-wrap: anywhere; }
.discover-table th { font-weight: 600; }
.discover-table thead { background: var(--leaf); }
.discover-table th:first-child { width: 15%; }
.discover-table tbody tr { border-top: 1px solid var(--line); }
.discover-table small { display: block; margin-top: 2px; color: var(--muted); font-size: .9em; font-weight: 400; }
.discover-table time { font-weight: 600; }
.forecast-reading { display: grid; justify-items: center; gap: 2px; }
.forecast-placeholder { color: var(--muted); }
.weather-table .forecast-icon { width: 24px; height: 24px; }
.trip-forecast-values { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 1px 4px; }
.trip-forecast-rain { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; color: var(--muted); font-size: .9em; }
.trip-forecast-rain svg, #weather .discover-caption svg { width: 11px; height: 11px; color: #245b91; }
.trip-forecast-rain svg { margin-inline-end: 1px; }
.budget-list li { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.budget-list li small { display: block; color: var(--muted); font-size: .68rem; }
.budget-list li strong { font-size: .82rem; font-weight: 600; }
.credits-action { margin-inline-start: 8px; }
.budget-page { max-width: 760px; margin-inline: auto; }
.budget-value { font-size: 1.45rem; font-weight: 600; letter-spacing: -.04em; }
.budget-list li { min-height: 46px; padding: 6px 9px; }
.budget-list li > strong { flex: none; }
@media (max-width: 520px) {
  .discover-menus a { flex-direction: column; gap: 3px; }
}

.checklist-page { max-width: 760px; margin-inline: auto; }
.checklist-total { align-self: center; color: var(--muted); font-size: .76rem; }
:is(.checklist-pills, .budget-scopes) { display: grid; gap: 3px; margin-bottom: 14px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); isolation: isolate; }
.checklist-pills { grid-template-columns: minmax(0, 1.27fr) minmax(0, .83fr) minmax(0, 1.16fr) minmax(0, 1fr) minmax(0, .8fr); }
.budget-scopes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.checklist-pills, .budget-scopes) a { position: relative; display: grid; align-content: center; min-height: 44px; padding: 4px 1px; border-radius: 999px; font-size: clamp(.625rem, 2.8vw, .79rem); font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.budget-scopes a { display: flex; align-items: center; justify-content: center; gap: 5px; }
.budget-scopes a svg { flex: none; width: 17px; height: 17px; }
:is(.checklist-pills, .budget-scopes) a:not([aria-current]):hover { background: var(--leaf); }
:is(.checklist-pills, .budget-scopes) a:focus-visible { outline-offset: -2px; }
.checklist-thumb, .budget-scopes a[aria-current]::before { position: absolute; z-index: -1; inset: 0; border: 1px solid #dedede; border-radius: inherit; background: #f3f3f3; transform-origin: left center; pointer-events: none; }
.budget-scopes a[aria-current]::before { content: ''; }
.packing { gap: 5px; padding: 6px; }
.packing li { min-width: 0; scroll-margin-top: 12px; }
.packing-row { display: flex; align-items: center; gap: 4px; padding-inline-end: 3px; }
.packing label { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 0; min-height: 46px; padding: 6px 9px; border-radius: 13px; font-size: .82rem; cursor: pointer; overflow-wrap: anywhere; }
.packing label:hover span { text-decoration: underline; }
.packing input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--ink); }
.packing input:checked + span { text-decoration: line-through; color: var(--muted); }
.packing :focus-visible { outline-offset: 1px; }
.packing .icon-button { border-color: transparent; background: transparent; }
.packing .icon-button:hover .activity-chevron { background: var(--line); }
.packing-note { margin: 0 10px 8px 36px; color: var(--muted); font-size: .71rem; overflow-wrap: anywhere; }
.packing-note .text-action { min-height: 30px; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.packing-note .text-action svg { width: 13px; height: 13px; }

.sheet { z-index: 8; inset: auto 0 0; margin: 0 auto; width: min(100%, 530px); max-width: initial; max-height: min(86svh, 730px); padding: 0; border: solid 1px var(--line); border-radius: 23px 23px 0 0; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: var(--white); }
.sheet::backdrop { background: #171717b2; }
.sheet-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; padding: 9px var(--gutter); background: var(--white); border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.3rem; }
.sheet-body { padding: 12px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); }
.sheet-body > p { margin: 5px 0 8px; font-size: .85rem; }
.sheet-body .button { margin-block: 3px; }
.contact-group { padding: 7px 0; border-top: 1px solid var(--line); }
.contact-group h3 { font-size: .9rem; }
.contact-group a { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 44px; font-size: .81rem; }
.contact-group a:hover span { text-decoration: underline; }
.contact-group strong { display: flex; align-items: center; gap: 4px; color: var(--rust); }
.contact-group svg { width: 15px; }
.pin-list { margin-top: 6px; }
.pin-list li + li { border-top: 1px solid var(--line); }
.credits-list li { display: flex; flex-wrap: wrap; gap: 4px 11px; align-items: center; font-size: .82rem; }
.credits-list li > span { flex-basis: 100%; padding-top: 7px; }
.empty { font-size: .83rem; color: var(--muted); }

@media (max-width: 349px) {
  .hero { min-height: 207px; }
  .hero-copy { padding-block: 63px 27px; }
  .hero-meta { gap: 4px 8px; }
  .journey-cards { gap: 4px; }
  .journey-card { min-height: 50px; }
}

@media (max-width: 700px) and (max-height: 760px) {
  .home-layout:not(.during) .hero { min-height: clamp(180px, 55vw, 215px); }
  .home-layout:not(.during) .hero-copy { padding-block: 60px 26px; }
  .home-body { padding-block-start: 8px; }
  .journey { margin-block-start: 5px; }
  .home-weather > .section-title, .journey > .section-title { min-height: 44px; }
  .home-forecast li { gap: 1px; padding-block: 4px; }
  .forecast-icon { width: 22px; height: 22px; }
}

@media (min-width: 701px) {
  :root { --gutter: clamp(25px, 5vw, 56px); }
  main { min-height: calc(100vh - 73px); padding-bottom: 30px; }
  .topbar, body[data-screen=home] .topbar { position: relative; height: 73px; color: var(--ink); }
  body[data-screen=home] .topbar :focus-visible { outline-color: var(--focus); }
  body[data-screen=home] .topbar > .icon-button { border-color: var(--line); }
  .primary { position: absolute; z-index: 3; inset: 36.5px auto auto 50%; transform: translate(-50%, -50%); width: clamp(405px, 56vw, 600px); min-height: 49px; padding: 3px; border-radius: 14px; box-shadow: none; }
  .primary a { display: flex; justify-content: center; align-items: center; min-height: 44px; min-width: 0; padding: 3px; border-radius: 10px; gap: 5px; font-size: .73rem; }
  .primary a > span { width: auto; min-height: 0; padding: 0; }
  .primary a[aria-current] { color: var(--white); background: var(--forest); }
  .primary a svg { width: 15px; height: 15px; }
  .home-layout { display: grid; grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr); align-items: stretch; gap: clamp(15px,3vw,30px); padding: 9px var(--gutter); }
  .hero { min-height: 420px; border-radius: 23px; }
  .hero-copy { padding: 26px; }
  .home-body { margin: 0; padding: 1px 0 0; border-radius: 0; }
  .page-heading { margin-bottom: 17px; }
  .days a, .budget-scopes a { min-height: 50px; }
  .itinerary-grid { display: grid; grid-template-columns: minmax(190px, .43fr) minmax(0, 1fr); align-items: start; gap: clamp(18px,4vw,42px); }
  .day-side { position: sticky; top: 16px; margin-top: 50px; padding: 15px; }
  .day-title { font-size: 1.04rem; }
  .sheet { inset: 0; margin: auto; height: max-content; border-radius: 23px; }
}

@media (prefers-reduced-motion: no-preference) {
  .icon-button, .button, .journey-card .activity-chevron, .primary a { transition: background-color .15s, color .15s; }
}
.discover-rank { display: inline-block; min-inline-size: 2.25em; color: var(--muted); font-variant-numeric: tabular-nums; }
.discover-list .photo-uncropped { object-fit: contain; }
.discover-photo-credit a { text-decoration: underline; }

.map-route-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
