:root {
  --paper: #f3f6f2;
  --surface: #ffffff;
  --ink: #13262f;
  --muted: #66757a;
  --line: #d7dfdc;
  --lake: #287b90;
  --lake-soft: #d9ebee;
  --forest: #516b55;
  --terracotta: #b65c3a;
  --warning: #b84635;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 16px 48px rgba(25, 47, 55, 0.08);
  --content: 720px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[data-module][hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(40, 123, 144, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
}
.skip-link:focus { top: calc(12px + var(--safe-top)); }

.topbar {
  position: sticky;
  top: 78px;
  z-index: 20;
  height: calc(48px + var(--safe-top));
  padding: var(--safe-top) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(19, 38, 47, 0.08);
  background: rgba(243, 246, 242, 0.91);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.wordmark { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: 0.06em; font-size: 12px; }
.wordmark span { color: var(--muted); font-weight: 600; }
.topbar nav { display: flex; gap: 2px; }
.topbar nav a {
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.topbar nav a:active { color: var(--lake); }

main { overflow: hidden; }
.hero, .section, .footer { width: min(100%, var(--content)); margin-inline: auto; }
.hero { padding: 32px 18px 24px; min-height: 188px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--lake);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.hero h1 { margin: 0; max-width: 620px; font-size: clamp(38px, 12vw, 64px); line-height: 0.98; letter-spacing: -0.06em; font-weight: 820; }
.hero__date { margin: 14px 0 0; font: 650 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.03em; }

.section { padding: 44px 18px; scroll-margin-top: 126px; }
.flights-section { padding-top: 24px; padding-bottom: 34px; }
.section-heading { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -0.04em; }
.section-index, .soft-label { margin: 0; color: var(--muted); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }

.flight-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 2px 0 14px;
}
.flight-carousel::-webkit-scrollbar { display: none; }
.flight-card {
  flex: 0 0 calc(100% - 20px);
  scroll-snap-align: center;
  min-height: 330px;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: #eff8f8;
  background: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.flight-card__top { color: #a9c3c8; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.flight-card__title { margin-top: 9px; color: #eff8f8; font-size: 17px; font-weight: 740; line-height: 1.25; }
.flight-card__date { margin-top: 3px; color: #9db7bc; font: 700 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.flight-card__airlines { margin-top: 7px; color: #7599a0; font-size: 10px; }
.flight-flow { margin-top: 17px; display: flex; align-items: start; }
.flight-stop { min-width: 0; flex: 1 1 0; text-align: center; }
.flight-stop:first-child { text-align: left; }
.flight-stop:last-child { text-align: right; }
.flight-stop__code { display: block; color: #fff; font: 760 clamp(25px, 8vw, 36px)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.05em; }
.flight-stop__city { display: block; min-height: 30px; margin-top: 5px; color: #b8cccf; font-size: 11px; line-height: 1.25; }
.flight-stop__dot { position: relative; z-index: 1; display: inline-block; width: 9px; height: 9px; margin: 8px 0 10px; border: 2px solid #8fc6d0; border-radius: 50%; background: var(--ink); }
.flight-stop__timing { display: flex; flex-direction: column; gap: 3px; color: #9db7bc; font-size: 9px; line-height: 1.3; }
.flight-stop__timing b { color: #eff8f8; font-size: 10px; font-weight: 720; }
.flight-stop__timing em { color: #e0a983; font-style: normal; font-size: 9px; }
.flight-segment { min-width: 34px; flex: .5 1 34px; padding-top: 53px; color: #91b9c0; text-align: center; }
.flight-segment span { display: block; overflow: hidden; font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.flight-segment i { display: block; height: 1px; margin-top: 9px; background: rgba(143,198,208,.5); color: #8fc6d0; font-style: normal; font-size: 13px; line-height: 1px; text-align: right; }
.flight-card__countdown-row { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.flight-countdown { text-align: left; }
.flight-countdown span { display: block; color: #a9c3c8; font-size: 11px; }
.flight-countdown strong { display: block; margin-top: 5px; color: #fff; font: 760 clamp(22px, 7vw, 30px)/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.flight-placeholder { margin: 34px 0 22px; }
.flight-placeholder__eyebrow { color: #e0a983; font: 760 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.flight-placeholder h3 { margin: 9px 0 0; color: #fff; font-size: clamp(24px, 7vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.flight-placeholder p { max-width: 520px; margin: 12px 0 0; color: #b8cccf; font-size: 12px; line-height: 1.7; }
.flight-placeholder ul { margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.flight-placeholder li { padding: 6px 9px; border: 1px solid rgba(143,198,208,.3); border-radius: 999px; color: #d7e7e8; background: rgba(255,255,255,.04); font-size: 10px; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; }
.carousel-dot { width: 6px; height: 6px; border: 0; padding: 0; border-radius: 50%; background: #aebbb8; transition: width .2s ease; }
.carousel-dot.is-active { width: 22px; border-radius: 99px; background: var(--lake); }

.route-caption { margin: 12px 4px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 22px; bottom: 26px; width: 1px; background: var(--line); }
.day-card { position: relative; padding-left: 48px; scroll-margin-top: 136px; }
.day-card + .day-card { margin-top: 8px; }
.day-dot { position: absolute; left: 12px; top: 25px; z-index: 1; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: #a5b1ae; box-shadow: 0 0 0 1px #a5b1ae; }
.day-card.is-today .day-dot { background: var(--terracotta); box-shadow: 0 0 0 3px rgba(182,92,58,.18); }
.day-toggle { width: 100%; min-height: 78px; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; cursor: pointer; }
.day-toggle-copy { min-width: 0; }
.day-heading { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; }
.day-meta { color: var(--lake); font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.day-title { margin: 0; font-size: 17px; font-weight: 740; line-height: 1.35; }
.day-summary { margin-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; color: var(--muted); }
.day-locations { color: var(--muted); font-size: 12px; line-height: 1.45; }
.day-ticket-summary { display: inline-flex; min-height: 24px; margin-top: 9px; padding: 4px 8px; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 760; }
.day-summary .day-ticket-summary { margin-top: 0; }
.day-ticket-summary.has-pending { color: #8f492e; background: #f6e2d8; }
.day-ticket-summary.is-complete { color: #43654a; background: #dfeade; }
.day-chevron { width: 36px; height: 36px; align-self: center; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--lake); transition: transform .2s ease; }
.day-toggle[aria-expanded="true"] .day-chevron { transform: rotate(45deg); }
.day-detail { padding: 18px 0 26px; }
.day-detail[hidden] { display: none; }
.schedule { margin: 0; padding: 0; list-style: none; }
.schedule-item { position: relative; padding: 0 0 21px 82px; min-height: 50px; }
.schedule-item::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 0; width: 1px; background: #dce4e2; }
.schedule-item:last-child::before { display: none; }
.schedule-time { position: absolute; left: 0; top: 0; width: 62px; color: var(--muted); font: 700 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.schedule-item::after { content: ""; position: absolute; left: 66px; top: 5px; width: 9px; height: 9px; border: 2px solid var(--lake); border-radius: 50%; background: var(--paper); }
.schedule-text { font-size: 13px; line-height: 1.65; }
.schedule-stay-item { padding-bottom: 0; }
.schedule-stay { min-height: 68px; padding-top: 1px; display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 12px; }
.schedule-stay-button { width: 100%; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.schedule-stay-button:hover .stay-name, .schedule-stay-button:focus-visible .stay-name { color: var(--lake); }
.stay-logo { width: 56px; height: 56px; padding: 3px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--lake); text-align: center; }
.stay-logo img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.22); mix-blend-mode: multiply; }
.stay-logo--marriott img { transform: scale(1.45); }
.stay-logo--autograph-collection img { transform: scale(1.35); }
.stay-logo--sheraton img { transform: scale(1.5); }
.stay-logo--marriott-hotels img { transform: scale(1.6); }
.stay-logo--property img { transform: scale(1); }
.stay-logo--pullman img { transform: scale(1); }
.stay-logo--design-hotels img { transform: scale(1.3); }
.stay-logo--hilton-garden-inn img { transform: scale(1.3); }
.stay-logo-fallback { padding: 3px; font: 800 13px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em; }
.stay-content { min-width: 0; }
.stay-name { display: block; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.stay-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.schedule-map-links { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-map-link { min-height: 32px; padding: 6px 9px; display: inline-flex; align-items: center; border: 1px solid #c8dadc; border-radius: 999px; color: #205e6b; background: #edf6f5; text-decoration: none; font-size: 11px; font-weight: 700; }
.schedule-ticket { margin-top: 9px; border: 1px solid #e8c8b8; border-radius: 12px; background: #fff8f4; overflow: hidden; }
.schedule-ticket summary { min-height: 38px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; list-style: none; color: #8f492e; cursor: pointer; font-size: 10px; font-weight: 750; }
.schedule-ticket summary::-webkit-details-marker { display: none; }
.schedule-ticket summary b { margin-left: auto; color: var(--ink); font-size: 11px; }
.schedule-ticket.is-purchased summary { color: #43654a; }
.detail-note { margin: 8px 0 0; padding: 12px 14px; border-left: 2px solid var(--terracotta); background: rgba(182,92,58,.06); color: #6d4c3e; font-size: 12px; line-height: 1.6; }
.costs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.cost-tag { padding: 7px 9px; border-radius: 8px; background: #e8eeeb; color: #53615e; font-size: 11px; }

.rental-panel { overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: white; box-shadow: var(--shadow); }
.return-deadline { padding: 22px; background: #fff0e5; color: #713d27; border-bottom: 3px solid #bd6941; }
.return-deadline__label { display: block; font-size: 12px; font-weight: 800; }
.return-deadline > strong { display: block; margin: 12px 0 6px; font-size: clamp(23px,7vw,34px); line-height: 1.3; }
.return-deadline time { font-variant-numeric: tabular-nums; }
.return-deadline > span:not(:first-child), .return-deadline small { font-size: 11px; line-height: 1.6; }
.return-deadline p { margin: 10px 0; font-size: 12px; overflow-wrap: anywhere; }
.return-deadline__timer { padding: 12px 0; border-block: 1px solid #e7c6ad; font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
.return-deadline__warning { font-weight: 750; }
.return-deadline.is-urgent { background: #ffe1da; color: #8c291f; border-color: #b84635; }
.rental-countdown { padding: 24px; background: var(--lake); }
.rental-countdown span { display: block; color: #d6ebee; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.rental-countdown strong { display: block; margin-top: 8px; font: 760 clamp(28px, 9vw, 44px)/1.05 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.05em; }
.rental-countdown small { display: block; margin-top: 10px; color: #d6ebee; line-height: 1.5; }
.rental-details { padding: 22px; }
.rental-car { font-size: 19px; font-weight: 750; }
.rental-sub { margin-top: 5px; color: #abc0c4; font-size: 12px; }
.rental-stops { margin-top: 24px; display: grid; gap: 16px; }
.rental-stop { display: grid; grid-template-columns: 58px 1fr; gap: 12px; }
.rental-stop__label { color: #7fa8b0; font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.rental-stop b { display: block; font-size: 14px; }
.rental-stop span { display: block; margin-top: 4px; color: #abc0c4; font-size: 12px; line-height: 1.5; }
.rental-price { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; color: #abc0c4; font-size: 12px; }
.rental-price strong { color: white; font: 720 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.accordion-stack { margin-top: 14px; display: block; }
.accordion-stack:has(> .accordion) { display: grid; gap: 10px; }

.text-button { min-height: 44px; margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }

.footer { padding: 46px 20px calc(50px + var(--safe-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.footer p { margin: 0; font-weight: 750; letter-spacing: .08em; }
.footer a { min-height: 44px; margin-top: -15px; display: flex; align-items: center; text-decoration: none; }

/* Narrow desktop/in-app browser windows should still show two cards. */
.map-dialog { width: 100%; max-width: 760px; height: 100%; max-height: none; margin: 0; padding: calc(56px + var(--safe-top)) 0 var(--safe-bottom); border: 0; background: #0e1b21; overflow: auto; }
.map-dialog::backdrop { background: rgba(7,18,22,.88); }
.map-dialog.is-fallback-open { position: fixed; inset: 0; z-index: 50; display: block; }
.map-dialog img { width: 100%; height: auto; }
.dialog-close { position: fixed; z-index: 2; top: calc(10px + var(--safe-top)); right: 12px; min-width: 54px; min-height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700; }
.loading-error { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--safe-bottom)); z-index: 30; padding: 16px; border-radius: 14px; color: white; background: var(--warning); box-shadow: var(--shadow); }
.loading-error strong, .loading-error span { display: block; }
.loading-error span { margin-top: 5px; font-size: 12px; line-height: 1.5; }

:focus-visible { outline: 3px solid rgba(40,123,144,.45); outline-offset: 3px; }

.travel-app-page.place-map-open { overflow: hidden; }
.place-map-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(7,18,22,.6); display: flex; align-items: flex-end; justify-content: center; }
.place-map-overlay[hidden] { display: none; }
.place-map-sheet { width: min(100%,720px); height: 85vh; height: 85dvh; display: flex; flex-direction: column; background: var(--paper); border-radius: 20px 20px 0 0; overflow: hidden; padding-bottom: var(--safe-bottom); }
.place-map-sheet header { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.place-map-sheet h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.place-map-sheet button { flex-shrink: 0; min-height: 44px; min-width: 48px; border: 0; background: transparent; color: var(--lake); }
.place-map-sheet iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: #e8eeeb; }
.place-map-sheet footer { padding: 10px 16px; }
.place-map-sheet footer p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.place-map-sheet footer a { display: flex; min-height: 44px; align-items: center; color: var(--lake); font-size: 13px; font-weight: 700; }

/* Compact ticket completion, driving notes and user-managed trip preparation */
.schedule-ticket { min-height: 58px; padding: 9px 10px; background: #fff2ed; display: grid; grid-template-columns: 21px minmax(0,1fr) auto; align-items: flex-start; gap: 9px; }
.schedule-ticket__toggle { display: contents; cursor: pointer; }
.schedule-ticket input { position: absolute; opacity: 0; pointer-events: none; }
.schedule-ticket__check { width: 21px; height: 21px; margin-top: 1px; flex: 0 0 21px; border: 1.5px solid #ba765d; border-radius: 7px; color: transparent; display: grid; place-items: center; font-size: 12px; }
.schedule-ticket__content { min-width: 0; display: block; }
.schedule-ticket__status { color: #995137; font-size: 9px; font-weight: 780; }
.schedule-ticket__content strong { display: block; margin-top: 3px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-ticket__content small { display: block; margin-top: 3px; color: #795c50; font-size: 9px; line-height: 1.45; }
.schedule-ticket__open { align-self: center; min-width: 44px; min-height: 36px; padding: 0 8px; border: 0; border-left: 1px solid rgba(153,81,55,.18); background: transparent; color: #8f492e; cursor: pointer; font-size: 10px; font-weight: 760; }
.schedule-ticket.is-purchased { border-color: #cbdcca; background: #eaf3e9; }
.schedule-ticket.is-purchased .schedule-ticket__check { border-color: var(--forest); color: white; background: var(--forest); }
.schedule-ticket.is-purchased .schedule-ticket__status { color: var(--forest); }
.schedule-ticket.is-purchased .schedule-ticket__content strong { color: #708072; text-decoration: line-through; }
.schedule-ticket.is-purchased .schedule-ticket__content small { display: none; }
.schedule-ticket.is-purchased .schedule-ticket__open { color: var(--forest); border-left-color: rgba(81,107,85,.2); }

.ticket-dialog { width: min(100% - 28px,720px); max-height: min(88dvh,820px); padding: 0; border: 1px solid rgba(19,38,47,.12); border-radius: 20px; background: var(--paper); box-shadow: 0 22px 70px rgba(19,38,47,.2); overflow: hidden; }
.ticket-dialog[open] { display: flex; flex-direction: column; }
.ticket-dialog::backdrop { background: rgba(7,18,22,.58); backdrop-filter: blur(3px); }
.ticket-dialog > header { min-height: 76px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.ticket-dialog > header span { display: block; color: var(--lake); font-size: 10px; font-weight: 780; letter-spacing: .12em; }
.ticket-dialog > header h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.035em; }
.ticket-dialog > header button { min-width: 52px; min-height: 40px; border: 0; border-radius: 999px; background: white; color: var(--lake); cursor: pointer; font-size: 12px; font-weight: 720; }
.ticket-dialog__body { min-height: 0; padding: 18px; overflow: auto; flex: 1 1 auto; }
.ticket-dialog__status { margin: 0; color: var(--terracotta); font-size: 11px; font-weight: 780; }
.ticket-dialog__guidance { margin: 8px 0 16px; color: #47575b; font-size: 13px; line-height: 1.65; }
.ticket-dialog__preview { width: 100%; min-height: min(58dvh,520px); max-height: 62dvh; border: 1px solid var(--line); border-radius: 12px; background: white; object-fit: contain; }
.ticket-dialog__preview--pdf { display: block; height: min(68dvh,680px); max-height: none; object-fit: initial; }
.ticket-dialog__empty { margin: 18px 0; padding: 24px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }
.ticket-dialog__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-dialog__links a { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid #c8dadc; border-radius: 999px; color: #205e6b; background: #edf6f5; text-decoration: none; font-size: 12px; font-weight: 720; }

.drive-note-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.drive-note-tabs button { position: relative; min-width: 0; min-height: 48px; padding: 12px 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 650; }
.drive-note-tabs button::after { content: ""; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; border-radius: 2px; background: transparent; }
.drive-note-tabs button[aria-expanded="true"] { color: var(--ink); font-weight: 780; }
.drive-note-tabs button[aria-expanded="true"]::after { background: var(--lake); }
.drive-note-panel { padding: 8px 4px 4px; }
.drive-note-panel[hidden] { display: none; }
.drive-note-panel ul { margin: 0; padding: 0; list-style: none; color: #47575b; }
.drive-note-panel li { position: relative; margin: 0; padding: 12px 0 12px 14px; font-size: 12px; line-height: 1.7; }
.drive-note-panel li + li { border-top: 1px solid var(--line); }
.drive-note-panel li::before { content: ""; position: absolute; left: 0; top: 20px; width: 4px; height: 4px; border-radius: 50%; background: #8ca5a7; }

.todo-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.todo-tabs { display: flex; margin: 5px 0 16px; border-bottom: 1px solid var(--line); }
.todo-tab { position: relative; flex: 1; min-height: 42px; padding: 0 14px; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.todo-tab::after { content: ""; position: absolute; right: 18%; bottom: -1px; left: 18%; height: 2px; border-radius: 2px; background: transparent; transition: background .18s ease; }
.todo-tab.is-active { color: var(--ink); font-weight: 750; }
.todo-tab.is-active::after { background: var(--lake); }
.todo-tab.is-drag-over { color: var(--lake); background: rgba(40,123,144,.08); }
.todo-tab:focus-visible { outline: 2px solid var(--lake); outline-offset: -3px; border-radius: 6px 6px 0 0; }
.todo-form input { min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.8); font: inherit; font-size: 13px; outline: none; }
.todo-form input:focus { border-color: var(--lake); box-shadow: 0 0 0 3px rgba(40,123,144,.1); }
.todo-form button { min-width: 64px; min-height: 48px; border: 0; border-radius: 13px; color: white; background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 750; }
.todo-list { margin-top: 13px; }
.todo-list.is-drag-over { min-height: 54px; background: rgba(40,123,144,.04); }
.todo-item { min-height: 54px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; transition: background .15s ease, opacity .15s ease; }
.todo-item[draggable="true"] { cursor: grab; }
.todo-item.is-dragging { opacity: .45; }
.todo-item.is-drag-over { border-top: 2px solid var(--lake); background: rgba(40,123,144,.06); }
.todo-item label { min-width: 0; min-height: 54px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.todo-item input { position: absolute; opacity: 0; pointer-events: none; }
.todo-check { width: 22px; height: 22px; flex: 0 0 22px; border: 1.5px solid #93a5a2; border-radius: 7px; color: transparent; display: grid; place-items: center; font-size: 12px; }
.todo-text { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.todo-drag-handle { width: 24px; color: #9aa8a6; font-size: 20px; line-height: 1; letter-spacing: -5px; cursor: grab; user-select: none; touch-action: none; }
.todo-item.is-complete .todo-check { border-color: var(--forest); color: white; background: var(--forest); }
.todo-item.is-complete .todo-text { color: #87928f; text-decoration: line-through; }
.todo-delete { min-width: 44px; min-height: 44px; padding: 0; border: 0; color: #9a7062; background: transparent; cursor: pointer; font-size: 10px; }
.todo-empty { margin: 0; padding: 22px 0 8px; color: var(--muted); text-align: center; font-size: 11px; }

@media (min-width: 700px) {
  .topbar { padding-inline: max(24px, calc((100vw - var(--content)) / 2)); }
  .hero { min-height: 260px; padding-inline: 0; }
  .section { padding-inline: 0; }
  .flight-card { flex-basis: 86%; min-height: 350px; }
  .rental-stops { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Map is the main surface; date controls remain compact. */
.route-region-tabs,.route-day-tabs { display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:10px; }
.route-region-tabs button,.route-day-tabs button { border:0;background:transparent;padding:7px 10px;font-size:13px;border-radius:6px;cursor:pointer; }
.route-region-tabs button[aria-pressed="true"] {background:var(--ink);color:white;}
.route-day-tabs button {font-size:12px;padding:7px 8px;}
.route-day-tabs button[aria-pressed="true"] {background:white;box-shadow:inset 0 0 0 1px var(--line);}
.route-day-tabs i {display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--route-color);margin-right:5px;}
.travel-map-block {--route-color:var(--lake);}
.travel-map-scroll {overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;border-radius:12px;border:1px solid var(--line);background:#f6f6f1;}
.travel-map-canvas {position:relative;min-width:700px;aspect-ratio:4 / 3;}
.travel-map-canvas svg {display:block;width:100%;height:100%;}
.map-utility {display:flex;justify-content:space-between;align-items:center;margin:5px 0 12px;font-size:12px;color:var(--muted);}
.map-utility button {border:0;background:transparent;font-size:12px;padding:8px;cursor:pointer;}
.day-detail .travel-map-block {margin:0 0 22px;}
#map-dialog {width:96vw;max-width:1448px;overflow:auto;padding:48px 12px 12px;background:#f6f6f1;}
#map-dialog-content {overflow:auto;}
#map-dialog-content .travel-map-canvas {min-width:1100px;}
button:focus-visible,a:focus-visible {outline:2px solid var(--lake);outline-offset:3px;}
.travel-loading { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; color: var(--ink); background: var(--paper); text-align: center; opacity: 1; visibility: visible; transition: opacity .32s ease, visibility .32s ease; }
.travel-loading[hidden] { display: none; }
.travel-loading.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
.travel-loading strong { font-size: 15px; letter-spacing: .02em; }
.travel-loading span { color: var(--muted); font-size: 11px; }
.travel-loading__spinner { width: 52px; height: 52px; border: 3px solid var(--lake-soft); border-top-color: var(--lake); border-right-color: var(--terracotta); border-radius: 50%; animation: travel-loading-spin .85s linear infinite; }
@keyframes travel-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .travel-loading__spinner { animation-duration: 1.8s; } }
@media(min-width:1000px) {.route-section {width:min(100%,var(--content));max-width:var(--content);margin-inline:auto;transform:none;} .travel-map-canvas {min-width:0;}}
.is-overview .travel-map-canvas {min-width:0;}

/* Keep the overview map fully in view on desktop; daily maps keep their shared canvas. */
@media (min-width: 700px) {
  #route-explorer .travel-map-block { width: min(780px, 100%); margin-inline: auto; }
}

/* Daily and Overview deliberately share one full-map canvas and viewport. */
.is-daily .travel-map-scroll {overflow:hidden;}
.is-daily .travel-map-canvas {width:100%;min-width:0;}
.map-place-dot {position:absolute;z-index:3;transform:translate(-50%,-50%);width:42px;height:42px;padding:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;}
.map-place-dot.has-leader::before {content:"";position:absolute;z-index:-1;left:50%;top:50%;width:var(--leader-length);height:1px;transform-origin:0 50%;transform:translateY(-50%) rotate(var(--leader-angle));background:var(--route-color);opacity:.55;pointer-events:none;}
.map-place-dot span {position:relative;z-index:1;display:block;width:11px;height:11px;border:1.5px solid #fffdf6;background:var(--route-color);border-radius:50%;box-shadow:0 0 0 1px var(--route-color);transition:transform .2s ease,box-shadow .2s ease;}
.map-place-dot:hover span,.map-place-dot:focus-visible span,.map-place-dot[aria-expanded="true"] span {transform:scale(1.35);box-shadow:0 0 0 4px #ffffffa8,0 0 0 5px var(--route-color);}
.transport-pin {position:absolute;z-index:3;transform:translate(-50%,-50%);width:28px;height:28px;display:grid;place-items:center;padding:6px;border:1px solid var(--route-color);border-radius:8px;color:var(--route-color);background:white;cursor:pointer;box-shadow:0 2px 5px #13262f18;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,color .18s ease;}
.transport-pin::before {content:"";position:absolute;inset:-3px;}
.transport-pin svg {width:15px;height:15px;}
.transport-pin:hover {transform:translate(-50%,-50%) scale(1.08);box-shadow:0 4px 10px #13262f24;}
.transport-pin[aria-expanded="true"] {background:var(--route-color);color:white;}
.transport-popover strong {font-size:13px;}
.transport-popover p {margin:7px 0 0;}
.transport-popover button {position:absolute;right:4px;top:4px;width:28px;height:28px;border:0;background:transparent;cursor:pointer;}
.route-popover {position:fixed;left:50%;bottom:max(8px,env(safe-area-inset-bottom));z-index:100;width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:16px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 10px 36px #13262f33;color:var(--ink);transform:translateX(-50%);}
.route-popover .route-popover-close {position:absolute;right:5px;top:5px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;font-size:20px;cursor:pointer;}
.route-place-popover header {padding-right:22px;margin-bottom:10px;}
.route-place-popover header small {display:block;color:var(--muted);font-size:12px;margin-bottom:4px;}
.route-place-popover header strong {font-size:15px;}
.route-place-popover iframe {display:block;width:100%;height:min(240px,35dvh);border:1px solid var(--line);border-radius:8px;background:#edf1ea;}
.route-place-popover footer {display:flex;flex-direction:column;gap:7px;margin-top:10px;font-size:13px;}
.route-place-popover footer small {font-size:12px;color:var(--muted);}
.popup-place-options {display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px;}
.popup-place-options button {padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:white;font-size:12px;cursor:pointer;}

.ledger-confirm-dialog { width: min(100% - 40px, 380px); padding: 0; border: 1px solid rgba(19,38,47,.14); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 22px 70px rgba(19,38,47,.28); }
.ledger-confirm-dialog::backdrop { background: rgba(7,18,22,.55); backdrop-filter: blur(3px); }
.ledger-confirm-card { padding: 24px 22px 18px; }
.ledger-confirm-card p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.55; text-align: center; }
.ledger-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.ledger-confirm-actions button { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; font-size: 14px; font-weight: 720; cursor: pointer; }
.ledger-confirm-actions .ledger-confirm-danger { border-color: rgba(171,67,55,.28); background: #fff1ee; color: #a13f34; }
.popup-place-options button[aria-pressed="true"] {background:var(--ink);color:white;}
.transport-popover {position:fixed;z-index:100;width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:16px 32px 14px 16px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 8px 32px #13262f30;color:var(--ink);font-size:14px;line-height:1.65;}
.transport-leg + .transport-leg {margin-top:10px;padding-top:10px;border-top:1px solid var(--line);}
.transport-leg strong {font-size:13px;}
.transport-leg p {margin:5px 0 0;}
#map-dialog-content .daily-fullscreen {min-width:850px;}

@media (max-width:699px) {
  .travel-app-page .topbar { top: 68px; }
  .travel-app-page .section { scroll-margin-top: 116px; }
  .is-daily .map-place-dot {width:42px;height:42px;}
  .is-daily .map-place-dot span {width:8px;height:8px;border-width:1px;}
  .is-daily .transport-pin {width:24px;height:24px;padding:5px;border-radius:7px;}
  .is-daily .transport-pin svg {width:13px;height:13px;}
  #map-dialog-content .daily-fullscreen {width:100%;min-width:0;}
}
