:root {
  --paper: #f2f4f3;
  --surface: #ffffff;
  --ink: #13262f;
  --muted: #4b5c62;
  --line: #dde3e0;
  --lake: #1d6577;
  --lake-soft: #e3eff2;
  --forest: #245941;
  --terracotta: #9e4728;
  --warning: #982c1e;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow: 0 8px 24px rgba(19, 38, 47, 0.045);
  --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: 0;
  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: visible; overflow-x: clip; }
.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: calc(var(--topbar-offset, 56px) + var(--mobile-filter-offset, 0px) + 12px); }
.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__airlines { margin-top: 7px; color: #7599a0; font-size: 10px; }
.flight-flow { margin-top: 17px; display: grid; grid-template-columns: var(--route-columns); align-items: start; }
.flight-stop { min-width: 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: 0; 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-map-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in; }
.route-map-button img { width: 100%; height: auto; }
.route-map-button span { position: absolute; right: 12px; bottom: 12px; padding: 9px 12px; border-radius: 999px; color: white; background: rgba(19,38,47,.86); font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); }
.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; }
.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: 1fr auto; gap: 12px; cursor: pointer; }
.day-meta { color: var(--lake); font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.day-title { margin-top: 5px; font-size: 17px; font-weight: 740; line-height: 1.35; }
.day-locations { margin-top: 5px; 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-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-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 { border-color: #cbdcca; background: #f1f7f0; }
.schedule-ticket.is-purchased summary { color: #43654a; }
.ticket-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.schedule-ticket__body { padding: 0 10px 11px 23px; }
.schedule-ticket__body p { margin: 0; color: #614b42; font-size: 11px; line-height: 1.5; }
.schedule-ticket__body span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.schedule-ticket__body a { min-height: 34px; margin-top: 5px; display: inline-flex; align-items: center; color: var(--lake); font-size: 10px; font-weight: 750; }
.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; }

.tickets-section { padding-top: 40px; }
.tickets-summary { margin: -5px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ticket-filters { display: flex; gap: 7px; margin-bottom: 14px; overflow-x: auto; }
.ticket-filters button { min-height: 38px; padding: 0 14px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 720; }
.ticket-filters button.is-active { border-color: var(--ink); color: white; background: var(--ink); }
.ticket-list { display: grid; gap: 11px; }
.ticket-card { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.78); }
.ticket-card.is-purchased { background: rgba(241,247,240,.82); }
.ticket-card__date { color: var(--lake); font: 740 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.ticket-card__head { margin-top: 9px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ticket-card__head h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.ticket-card__head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.ticket-badge { min-height: 25px; padding: 5px 8px; flex: 0 0 auto; border-radius: 999px; color: #8f492e; background: #f6e2d8; font-size: 9px; font-weight: 760; }
.ticket-badge.is-advance-recommended { color: #205e6b; background: #ddecf0; }
.ticket-badge.is-purchased { color: #43654a; background: #dfeade; }
.ticket-card__guidance { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.ticket-card__guidance span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.ticket-card__guidance strong { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; }
.ticket-details { margin-top: 7px; }
.ticket-details > summary { min-height: 38px; display: inline-flex; align-items: center; color: var(--lake); cursor: pointer; font-size: 11px; font-weight: 750; }
.ticket-details dl { margin: 4px 0 0; }
.ticket-details dl div { padding: 8px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 11px; line-height: 1.5; }
.ticket-details dt { color: var(--muted); }
.ticket-details dd { margin: 0; }
.ticket-uncertainties { margin-top: 8px; padding: 11px; border-radius: 10px; background: #f2f3ef; color: #52605d; font-size: 10px; }
.ticket-uncertainties ul { margin: 5px 0 0; padding-left: 16px; }
.ticket-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-actions a, .ticket-actions button { min-height: 40px; display: inline-flex; align-items: center; font-size: 10px; font-weight: 740; }
.ticket-actions a { color: var(--lake); }
.ticket-actions span { color: var(--muted); font-size: 10px; }
.ticket-actions button { padding: 0 12px; border: 0; border-radius: 10px; color: white; background: var(--lake); cursor: pointer; }
.tickets-empty { padding: 28px 0; color: var(--muted); text-align: center; font-size: 12px; }

.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: grid; gap: 10px; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); overflow: hidden; }
.accordion summary { min-height: 54px; padding: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 740; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--lake); }
.accordion[open] summary::after { content: "−"; }
.accordion ul { margin: 0; padding: 0 18px 18px 38px; color: #47575b; }
.accordion li { margin: 9px 0; font-size: 12px; line-height: 1.65; }

.packing-progress { height: 4px; margin: -8px 0 24px; border-radius: 99px; background: #dbe3e0; overflow: hidden; }
.packing-progress span { display: block; width: 0; height: 100%; background: var(--lake); transition: width .2s ease; }
.packing-group + .packing-group { margin-top: 25px; }
.packing-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.packing-item { min-height: 52px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.packing-item input { appearance: none; width: 22px; height: 22px; margin: 0; flex: 0 0 22px; border: 1.5px solid #93a5a2; border-radius: 7px; background: transparent; display: grid; place-items: center; }
.packing-item input::after { content: "✓"; color: white; font-size: 14px; opacity: 0; transform: scale(.6); transition: .15s ease; }
.packing-item input:checked { border-color: var(--lake); background: var(--lake); }
.packing-item input:checked::after { opacity: 1; transform: scale(1); }
.packing-item:has(input:checked) span { color: #87928f; text-decoration: line-through; }
.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; }

.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; }

.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: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 7px; }
.schedule-ticket__status { color: #995137; font-size: 9px; font-weight: 780; }
.schedule-ticket__content strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-ticket__content small { grid-column: 1 / -1; 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; }

.accordion-stack { margin-top: 14px; display: block; }
.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-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-item { min-height: 54px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.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-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-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;}
.travel-map-canvas svg {display:block;width:100%;height:auto;}
.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;}
.transport-pin {position:absolute;transform:translate(-50%,-50%);font-size:11px;line-height:1.2;border:1px solid var(--route-color);background:white;color:var(--ink);padding:5px 7px;border-radius:20px;cursor:pointer;box-shadow:0 2px 6px #13262f22;white-space:nowrap;}
.transport-pin::before {content:"";position:absolute;inset:-6px;}
.transport-pin[aria-expanded="true"] {background:var(--route-color);color:white;}
.transport-popover {position:fixed;z-index:100;width:min(300px,calc(100vw - 16px));padding:16px 30px 14px 16px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 8px 32px #13262f30;font-size:14px;line-height:1.6;}
.transport-popover strong {font-size:13px;}
.transport-popover p {margin:7px 0 0;}
.transport-popover button {position:absolute;right:4px;top:4px;background:transparent;border:0;width:28px;height:28px;cursor:pointer;}
.route-list-overview {border-top:1px solid var(--line);}
.route-list-overview a {display:flex;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:14px;}
.route-list-overview span {white-space:nowrap;color:var(--muted);font-size:12px;}
.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;}
@media(min-width:1000px) {.route-section {width:min(1100px,calc(100vw - 64px));max-width:none;margin-left:50%;transform:translateX(-50%);} .travel-map-canvas {min-width:0;}}
.is-overview .travel-map-canvas {min-width:0;}

/* 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;transform:translate(-50%,-50%);width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;display:grid;place-items:center;cursor:pointer;}
.map-place-dot span {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);}
.map-place-dot:hover span,.map-place-dot[aria-expanded="true"] span {box-shadow:0 0 0 4px #ffffffa8,0 0 0 5px var(--route-color);}
.transport-pin {transform:translate(-50%,-50%);width:28px;height:28px;display:grid;place-items:center;padding:6px;border-radius:8px;border:1px solid var(--route-color);color:var(--route-color);box-shadow:0 2px 5px #13262f18;}
.transport-pin::before {inset:-3px;}
.transport-pin svg {width:15px;height:15px;}
.transport-pin[aria-expanded="true"] {background:var(--route-color);color:white;}
.route-popover {position:fixed;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);}
.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 {width:min(320px,calc(100vw - 16px));padding-right:32px;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) {
  .is-daily .map-place-dot {width:14px;height:14px;}
  .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;}
}


/* ==========================================================================
   Brazil 2027 Prototype Additions: Steppers, Detours, Calendar, Flights, Sync
   ========================================================================== */

/* 1. Inline Stay Night Steppers */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.stepper button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.stepper button:hover:not(:disabled) {
  border-color: var(--lake);
  color: var(--lake);
  background: var(--lake-soft);
}
.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.stepper input {
  width: 36px;
  height: 28px;
  padding: 0 2px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: white;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #e4ebe7;
  color: var(--muted);
}
.pill.green {
  background: #d8ecdc;
  color: #2b6a38;
}
.pill.amber {
  background: #f8edd1;
  color: #8c6014;
}
.pill.lake {
  background: var(--lake-soft);
  color: var(--lake);
}
.stay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.stay-title-group {
  min-width: 0;
}
.stay-region-tag {
  font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--lake);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stay-linked-bookings {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef5f1;
  border-left: 3px solid var(--forest);
  font-size: 11px;
  line-height: 1.45;
  color: #214332;
}

/* 2. General City Detours */
.detours-section {
  padding-top: 36px;
}
.detours-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.detour-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(19, 38, 47, 0.04);
  transition: border-color .15s ease;
}
.detour-card.is-active {
  border-color: var(--lake);
  background: white;
}
.detour-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.detour-title-group {
  min-width: 0;
}
.detour-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
}
.detour-title {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}
.detour-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.detour-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.detour-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}
.detour-badge.day-trip {
  background: #e1f0f2;
  color: var(--lake);
}
.detour-badge.overnight {
  background: #faeedb;
  color: #935a16;
}
.detour-badge.promoted {
  background: #d8ecdc;
  color: #2b6a38;
}
.detour-badge.optional {
  background: #eee;
  color: var(--muted);
}
.detour-badge.guest {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}
.detour-badge.private {
  background: #f1f3f4;
  color: #5f6368;
  border: 1px solid #dadce0;
}
.detour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.detour-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: all .15s ease;
}
.detour-btn:hover {
  border-color: var(--lake);
  color: var(--lake);
}
.detour-btn.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.detour-btn.primary:hover {
  background: var(--lake);
  border-color: var(--lake);
}
.detour-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.6);
  display: grid;
  gap: 10px;
}
.detour-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.detour-form input, .detour-form select, .detour-form textarea {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  background: white;
}

/* 3. Booked Travel Monthly Calendar & Reservation Items */
.bookings-section {
  padding-top: 36px;
}
.booking-month-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.booking-month-title {
  font-size: 17px;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.month-btn-group {
  display: flex;
  gap: 6px;
}
.month-btn {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
}
.month-btn:hover {
  border-color: var(--lake);
  color: var(--lake);
}
.month-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}
.booking-day-header {
  text-align: center;
  padding: 6px 2px;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}
.booking-day-cell {
  min-height: 80px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  overflow: hidden;
}
.booking-day-cell.other-month {
  opacity: 0.35;
  background: transparent;
}
.booking-day-cell.today {
  border-color: var(--lake);
  background: #f0f8fa;
}
.booking-day-number {
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  margin-bottom: 2px;
}
.booking-pill {
  display: block;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.booking-pill.flight {
  background: #dbeaf0;
  color: #1a5666;
  border-left: 2px solid #287b90;
}
.booking-pill.hotel {
  background: #faeedb;
  color: #7b4a10;
  border-left: 2px solid #b65c3a;
}
.booking-pill.warning {
  background: #fde8e4;
  color: #9a2c1b;
  border-left: 2px solid #b84635;
}
.reservations-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.reservation-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 2px 6px rgba(19, 38, 47, 0.03);
}
.reservation-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.reservation-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}
.reservation-card__meta {
  margin-top: 4px;
  color: var(--muted);
  font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.reservation-card__details {
  margin-top: 8px;
  font-size: 12px;
  color: #47575b;
  line-height: 1.5;
  white-space: pre-line;
}
.reservation-card__warning {
  margin-top: 6px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #fef3f1;
  border-left: 3px solid var(--warning);
  color: #982c1e;
  font-size: 11px;
}

/* 4. Dynamic Flight Placeholders & Warning Badges */
.flight-card.is-dynamic-placeholder {
  background: linear-gradient(135deg, #182e38 0%, #1e3c49 100%);
  border: 1px dashed rgba(143, 198, 208, 0.45);
}
.flight-card .warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(184, 70, 53, 0.22);
  color: #ff9b8c;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 8px;
}
.flight-card .warning-badge.amber {
  background: rgba(224, 169, 131, 0.22);
  color: #f7caaa;
}
.flight-card .dynamic-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(40, 123, 144, 0.35);
  color: #a9e0ec;
  font-size: 10px;
  font-weight: 700;
  margin-left: 8px;
}
.avios-valuation-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
}
.avios-valuation-card h4 {
  margin: 0;
  color: #eff8f8;
  font-size: 13px;
  font-weight: 750;
}
.avios-input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}
.avios-input-row input {
  padding: 6px 8px;
  border: 1px solid rgba(143, 198, 208, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 12px;
  font-family: inherit;
}
.avios-result {
  font-size: 12px;
  color: #d7e7e8;
  line-height: 1.4;
}

/* 5. Topbar Sync / Backup Modal */
.sync-modal-dialog {
  width: min(100% - 24px, 580px);
  max-height: min(90vh, 740px);
  padding: 0;
  border: 1px solid rgba(19, 38, 47, 0.15);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(19, 38, 47, 0.25);
  overflow: hidden;
}
.sync-modal-dialog::backdrop {
  background: rgba(7, 18, 22, 0.6);
  backdrop-filter: blur(4px);
}
.sync-modal-dialog[open] {
  display: flex;
  flex-direction: column;
}
.sync-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.sync-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.sync-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  gap: 16px;
}
.sync-section-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-top: 4px;
}
.sync-field {
  display: grid;
  gap: 5px;
}
.sync-field label {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.sync-field input {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  background: white;
}
.sync-field input:focus {
  border-color: var(--lake);
  outline: none;
}
.sync-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.sync-notice {
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
  background: #e7eee2;
  color: #245941;
}
.sync-notice.error {
  background: #fde8e4;
  color: #9a2c1b;
}
.sync-btn {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: all .15s ease;
}
.sync-btn:hover {
  border-color: var(--lake);
  color: var(--lake);
}
.sync-btn.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.sync-btn.primary:hover {
  background: var(--lake);
  border-color: var(--lake);
}
.sync-btn.danger {
  background: #fff2ed;
  color: #b84635;
  border-color: #eecbc4;
}
.sync-btn.danger:hover {
  background: #b84635;
  color: white;
}

/* ==========================================================================
   6. Screenshot-Inspired Responsive Brazil Dashboard Shell (Issue #9)
   ========================================================================== */

html body.dashboard-body {
  background: var(--paper);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

.dashboard-body button,
.dashboard-body input,
.dashboard-body select,
.dashboard-body textarea,
.dashboard-body time,
.dashboard-body .summary-metric-card__value,
.dashboard-body .rail-count,
.dashboard-body .booking-calendar-daynum,
.dashboard-body .reservation-card__meta {
  font-variant-numeric: tabular-nums;
}

.dashboard-body a:focus-visible,
.dashboard-body button:focus-visible,
.dashboard-body summary:focus-visible,
.dashboard-body input:focus-visible,
.dashboard-body select:focus-visible,
.dashboard-body textarea:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 2px;
}

/* Topbar inside Dashboard */
html body.dashboard-body .topbar {
  position: sticky;
  top: 0;
  z-index: 32;
  height: auto;
  min-height: calc(56px + var(--safe-top));
  padding: calc(6px + var(--safe-top)) 20px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(19, 38, 47, 0.03);
}

.topbar__identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
}

html body.dashboard-body .wordmark {
  min-height: 44px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

html body.dashboard-body .wordmark__title {
  display: inline;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.topbar__dates {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

html body.dashboard-body .topbar .primary-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.plan-version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 190px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f5f7f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.topbar-btn:hover {
  border-color: var(--lake);
  color: var(--lake);
  background: #f5fafb;
}

.topbar-btn--share {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.topbar-btn--share:hover {
  background: var(--lake);
  border-color: var(--lake);
  color: #ffffff;
}

html body.dashboard-body .travel-navigation > summary {
  min-height: 44px;
  min-width: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
}

html body.dashboard-body .travel-navigation > summary::after {
  content: none !important;
  display: none !important;
}

/* Mobile Pinned Lock / Conflict Bar (nested inside sticky #topbar) */
.mobile-lock-bar-wrap {
  flex: 1 1 100%;
  width: 100%;
  padding: 6px 0 2px;
  border-top: 1px solid var(--line);
}

body.dashboard-body[data-active-view="ledger"] .mobile-lock-bar-wrap {
  display: none;
}

.mobile-lock-indicator {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #cdd7d4;
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(19, 38, 47, 0.04);
}

.mobile-lock-indicator__summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-lock-indicator__cta {
  flex: 0 0 auto;
  color: var(--lake);
  font-size: 11px;
  font-weight: 750;
}

/* Shell Layout Grid */
.dashboard-shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 16px calc(98px + var(--safe-bottom));
}

.dashboard-workspace {
  min-width: 0;
  width: 100%;
}

.travel-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.workspace-notice {
  margin: 0;
}

/* Left Sidebar */
.dashboard-sidebar {
  display: none;
}

.sidebar-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.sidebar-trip-card {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar-eyebrow {
  margin: 0;
  color: var(--lake);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-trip-title {
  margin: 5px 0 0;
  font-size: 19px;
  font-weight: 820;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.sidebar-trip-dates {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-trip-meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.sidebar-group-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
}

.sidebar-nav-list a {
  min-height: 40px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 680;
  transition: background-color .14s ease, color .14s ease;
}

.sidebar-nav-list--compact a {
  min-height: 36px;
  font-size: 12px;
}

.sidebar-nav-list a:hover {
  background: #f2f6f5;
  color: var(--ink);
}

.sidebar-nav-list a[aria-current="page"],
.sidebar-nav-list a.is-active {
  background: var(--lake-soft);
  color: var(--ink);
  font-weight: 760;
}

.sidebar-month-section {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sidebar-month-list {
  display: grid;
  gap: 5px;
}

.sidebar-month-btn {
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfb;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}

.sidebar-month-btn small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.sidebar-month-btn:hover {
  border-color: var(--lake);
  background: #f2f8f9;
}

.sidebar-month-btn.is-active,
.sidebar-month-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.sidebar-month-btn.is-active small,
.sidebar-month-btn[aria-pressed="true"] small {
  color: #cfe3e8;
}

/* Central Workspace Panels */
html body.dashboard-body .overview-panel {
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 20px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.overview-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

html body.dashboard-body .hero__eyebrow {
  margin: 0;
  color: var(--lake);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

html body.dashboard-body .overview-panel h1 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4.2vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 830;
  color: var(--ink);
}

html body.dashboard-body .hero__date {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.tablet-constraints-jump {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f9f8;
  color: var(--lake);
  text-decoration: none;
  font-size: 12px;
  font-weight: 740;
}

/* Real-Data Summary Cards (#dashboard-summary-strip) */
.dashboard-summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-metric-card {
  padding: 13px 14px;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8faf9;
  min-width: 0;
}

.summary-metric-card--amber {
  background: #fdf5ea;
  border-color: #ead1b0;
}

.summary-metric-card__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-metric-card__value {
  color: var(--ink);
  font-size: 19px;
  font-weight: 810;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.summary-metric-card--amber .summary-metric-card__value {
  color: #8a4212;
}

.summary-metric-card__detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

/* Workspace Section Cards */
html body.dashboard-body .panel-section {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
  min-width: 0;
}

html body.dashboard-body .route-section {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  transform: none;
}

html body.dashboard-body .section-heading {
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px 12px;
}

html body.dashboard-body .section-heading h2 {
  font-size: clamp(20px, 3vw, 24px);
}

/* Inline Month Toolbar */
.inline-month-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.inline-month-chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9f8;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}

.inline-month-chip:hover {
  border-color: var(--lake);
  color: var(--lake);
}

.inline-month-chip.is-active,
.inline-month-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.month-filter-banner {
  margin-bottom: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid #c9dde1;
  border-radius: 10px;
  background: #eef6f8;
  color: var(--ink);
  font-size: 12px;
}

.balance-selector-bar {
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8faf9;
}

html body.dashboard-body .timeline::before {
  top: 78px;
}

.balance-selector-bar__label {
  font-size: 12px;
  font-weight: 740;
  color: var(--ink);
}

.balance-selector-bar__select {
  min-height: 38px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
}

.stay-note-input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.stay-region-tag--amber {
  color: #8a4212;
}

.day-dot--gap {
  border-color: #b56522;
  background: #fdf4e7;
}

.day-dot--transit {
  border-color: var(--lake);
  background: var(--lake-soft);
}

.gap-card {
  margin: 6px 0 10px;
  padding: 12px 14px;
  border: 1px dashed #d8a96e;
  border-radius: 10px;
  background: #fdf6ec;
}

.transit-card {
  margin: 6px 0 10px;
  padding: 12px 14px;
  border: 1px solid #c6dce1;
  border-radius: 10px;
  background: #f1f7f9;
}

html body.dashboard-body .day-toggle {
  flex-wrap: wrap;
  gap: 10px;
}

html body.dashboard-body .stay-linked-bookings {
  overflow-wrap: anywhere;
}

/* Monthly Calendar Grid Fix & Overflow Safety */
html body.dashboard-body .booking-month-controls {
  flex-wrap: wrap;
  gap: 8px 12px;
}

html body.dashboard-body .month-btn-group {
  flex-wrap: wrap;
}

html body.dashboard-body .month-btn {
  min-height: 38px;
  padding: 6px 11px;
}

html body.dashboard-body .booking-calendar-grid {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fafcfb;
  padding: 8px;
}

.booking-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.booking-calendar-week {
  padding: 5px 0 9px;
  min-height: 78px;
  border-top: 1px solid var(--line);
}

.booking-calendar-weekdays + .booking-calendar-week {
  border-top: 0;
}

.booking-calendar-days-row,
.booking-calendar-bar-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.booking-calendar-bar-row {
  margin-top: 3px;
}

.booking-calendar-daynum {
  padding: 2px 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 720;
  min-width: 0;
}

.booking-calendar-daynum.is-outside {
  color: var(--muted);
  opacity: 0.42;
}

html body.dashboard-body .booking-pill {
  min-width: 0;
  max-width: 100%;
  font-size: 10px;
}

/* Active Reservations & Collapsed Historical Archive */
.reservations-subhead {
  margin-top: 20px;
}

.reservations-subhead__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -0.015em;
}

html body.dashboard-body .reservation-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

html body.dashboard-body .reservation-card__header {
  flex-wrap: wrap;
}

.reservation-card__checkout-note {
  margin-top: 7px;
  padding: 6px 9px;
  border-radius: 6px;
  border-left: 3px solid #c07022;
  background: #fdf5ea;
  color: #7c3f0e;
  font-size: 11px;
  line-height: 1.45;
}

.historical-bookings-archive {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f7f9f8;
  overflow: hidden;
}

.historical-bookings-archive > summary {
  min-height: 46px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.historical-bookings-archive > summary::-webkit-details-marker {
  display: none;
}

.historical-bookings-archive > summary::after {
  content: "Show ▾";
  flex: 0 0 auto;
  color: var(--lake);
  font-size: 11px;
  font-weight: 750;
}

.historical-bookings-archive[open] > summary::after {
  content: "Hide ▴";
}

.historical-bookings-archive__note {
  margin: 0;
  padding: 0 14px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.historical-bookings-archive__list {
  padding: 0 14px 14px;
  display: grid;
  gap: 8px;
}

.reservation-card--historical {
  background: #fbfcfb;
}

/* Flights & Detour Form Overflow Safety */
.flight-card__ref {
  margin-left: auto;
}

html body.dashboard-body .flight-card__top {
  flex-wrap: wrap;
}

html body.dashboard-body .flight-card {
  flex: 0 0 min(100%, 420px);
  min-width: 0;
  max-width: 100%;
}

html body.dashboard-body .avios-input-row {
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

html body.dashboard-body .avios-input-row input {
  min-width: 0;
  width: 100%;
}

.detour-form__title {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
}

.detour-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.detour-form__checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}

html body.dashboard-body .detour-form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

html body.dashboard-body .detour-form input[type="text"],
html body.dashboard-body .detour-form select {
  min-width: 0;
  width: 100%;
}

html body.dashboard-body .footer {
  padding: 20px 6px 8px;
  flex-wrap: wrap;
  gap: 8px;
}

/* Right Constraint Rail (#constraints-rail) & Sheet Content */
.constraints-rail {
  display: none;
}

.constraints-rail__inner {
  display: grid;
  gap: 12px;
}

.rail-conflict-banner {
  padding: 12px 14px;
  border: 1px solid #e7b5ab;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-md);
  background: #fef2f0;
  color: var(--warning);
}

.rail-conflict-banner strong {
  display: block;
  font-size: 12px;
}

.rail-conflict-banner p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.rail-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
  min-width: 0;
}

.rail-card__head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rail-card__title {
  margin: 0;
  font-size: 13px;
  font-weight: 790;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.rail-count {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.rail-list-item {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rail-list-item:first-child {
  border-top: 0;
  padding-top: 10px;
}

.rail-list-item:last-child {
  padding-bottom: 2px;
}

.rail-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.rail-item-top strong {
  font-size: 12px;
  font-weight: 740;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.rail-item-sub {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.rail-checkout-note {
  margin-top: 3px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #fdf5ea;
  border-left: 2px solid #c07022;
  color: #7c3f0e;
  font-size: 10.5px;
  line-height: 1.4;
}

.rail-review-text {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.rail-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.rail-badge--teal {
  background: var(--lake-soft);
  color: var(--lake);
}

.rail-badge--green {
  background: #dceee1;
  color: var(--forest);
}

.rail-badge--amber {
  background: #faecd8;
  color: #8a4212;
}

.rail-badge--neutral {
  background: #edf1ef;
  color: var(--muted);
}

/* Mobile Bottom Navigation (#mobile-bottom-nav) */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 4px 4px calc(4px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(19, 38, 47, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-bottom-nav__item {
  min-width: 44px;
  min-height: 48px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.mobile-bottom-nav__item[aria-current="page"],
.mobile-bottom-nav__item.is-active {
  background: var(--lake-soft);
  color: var(--ink);
  font-weight: 800;
}

.mobile-bottom-nav__label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Constraints Sheet & Safe Share Modal */
.constraints-sheet-dialog,
.share-modal-dialog {
  width: min(100% - 20px, 560px);
  max-height: min(88dvh, 740px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(19, 38, 47, 0.14);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(19, 38, 47, 0.25);
  overflow: hidden;
}

.constraints-sheet-dialog::backdrop,
.share-modal-dialog::backdrop {
  background: rgba(7, 18, 22, 0.56);
  backdrop-filter: blur(4px);
}

.constraints-sheet-dialog[open],
.share-modal-dialog[open] {
  display: flex;
  flex-direction: column;
}

.constraints-sheet__header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.constraints-sheet__header h2 {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.constraints-sheet__body {
  padding: 14px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.share-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e4f2e8;
  border: 1px solid #c7e3cf;
  color: var(--forest);
  font-size: 11px;
  font-weight: 760;
}

.share-modal__lead {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.share-status-box {
  padding: 12px 14px;
  border: 1px solid #ead1b0;
  border-radius: 10px;
  background: #fdf5ea;
}

.share-status-box.is-ready {
  border-color: #c5dfd0;
  background: #ecf6f0;
}

.share-status-box strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
}

.share-status-box p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.share-modal__feedback {
  margin: 0;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}

.sync-status-row,
.sync-reset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.sync-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.sync-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Ledger Workspace Integration */
html body.dashboard-body .ledger-view {
  min-height: 0;
  background: transparent;
}

html body.dashboard-body .ledger-view .ledger-app {
  width: 100%;
  max-width: 780px;
  min-height: 0;
  padding: 18px 4px calc(104px + var(--safe-bottom));
}

/* Responsive Breakpoints */

/* Ultra-narrow safety (320px - 420px) */
@media (max-width: 480px) {
  html body.dashboard-body .topbar {
    padding-inline: 12px;
  }
  .topbar__dates {
    width: 100%;
    font-size: 11px;
  }
  .dashboard-shell {
    padding-inline: 10px;
  }
  html body.dashboard-body .overview-panel,
  html body.dashboard-body .panel-section {
    padding: 14px;
  }
  .dashboard-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .constraints-sheet-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: var(--safe-bottom);
  }
}

@media (max-width: 380px) {
  html body.dashboard-body .wordmark__title {
    display: inline;
  }
  html body.dashboard-body .ledger-person-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html body.dashboard-body .ledger-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop 2-Column Layout (>= 1024px) */
@media (min-width: 1024px) {
  .mobile-bottom-nav,
  .mobile-city-filter-bar {
    display: none !important;
  }

  html body.dashboard-body .topbar {
    padding-inline: 24px;
  }

  .dashboard-shell {
    max-width: 1380px;
    padding: 20px 24px 56px;
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .dashboard-sidebar {
    display: block;
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: calc(68px + var(--safe-top));
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }

  .dashboard-workspace {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (min-width: 1280px) {
  html body.dashboard-body .topbar {
    padding-inline: max(24px, calc((100vw - 1380px) / 2));
  }

  .dashboard-summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================================================================
   ISSUE #10: MONTH-GROUPED DESTINATION CARDS, STAY EDITOR & UNIFIED ROUTE
   ========================================================================= */

html body.dashboard-body .timeline::before {
  display: none;
}

.timeline-month-group {
  margin-top: 18px;
}

.timeline-month-group:first-of-type {
  margin-top: 10px;
}

.timeline-month-group__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid #d5e0dd;
  border-radius: 12px;
  background: #eef4f2;
}

.timeline-month-group__title {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.timeline-month-group__meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.timeline-month-group__cards {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.timeline-month-group__cards::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: #d8e2df;
}

html body.dashboard-body .day-card {
  min-width: 0;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(19, 38, 47, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

html body.dashboard-body .day-card + .day-card {
  margin-top: 0;
}

html body.dashboard-body .day-dot {
  left: 12px;
  top: 20px;
  border-color: #ffffff;
  background: var(--lake);
  box-shadow: 0 0 0 1px var(--lake);
}

.day-dot--gap {
  background: #d97706 !important;
  box-shadow: 0 0 0 1px #d97706 !important;
}

.day-dot--transit {
  background: #1e40af !important;
  box-shadow: 0 0 0 1px #1e40af !important;
}

.day-dot--proposal {
  background: #9ca3af !important;
  box-shadow: 0 0 0 1px #9ca3af !important;
}

html body.dashboard-body .day-card--fixed {
  border-color: #bdd4ce;
  background: #fbfdfc;
}

html body.dashboard-body .day-card--locked {
  border-color: #b8d3da;
  background: #f8fcfd;
}

html body.dashboard-body .day-card--gap {
  border: 1.5px dashed #d97706;
  background: #fffbeb;
}

html body.dashboard-body .day-card--transit {
  border-color: #c7d9e8;
  background: #f5f9fc;
}

html body.dashboard-body .day-card--proposal {
  border: 1.5px dashed #b4c0bd;
  background: #f9fbfa;
}

html body.dashboard-body .day-card--conflict {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

/* Drag & drop states */
html body.dashboard-body .day-card[draggable="true"] {
  cursor: grab;
}

html body.dashboard-body .day-card.is-dragging {
  opacity: 0.55;
  border-style: dashed;
}

html body.dashboard-body .day-card.is-drop-before {
  box-shadow: 0 -3px 0 0 var(--lake), 0 2px 6px rgba(19, 38, 47, 0.06);
}

html body.dashboard-body .day-card.is-drop-after {
  box-shadow: 0 3px 0 0 var(--lake), 0 2px 6px rgba(19, 38, 47, 0.06);
}

.stay-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 5px;
  background: #eef2f1;
  color: #5b6a67;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -1px;
  cursor: grab;
  user-select: none;
}

/* Card Top Layout */
html body.dashboard-body .stay-card-top {
  width: 100%;
  min-height: 0;
  padding: 2px 0 10px;
  border-bottom: 1px solid #e7eeec;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stay-title-group {
  flex: 1 1 240px;
  min-width: 0;
}

.stay-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.stay-region-tag {
  color: var(--lake);
  font: 760 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stay-region-tag--amber {
  color: #b45309;
}

.stay-visit-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7f1f4;
  border: 1px solid #c5dde4;
  color: #1c5b6d;
  font-size: 10px;
  font-weight: 780;
}

.stay-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.stay-status-badge--fixed {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.stay-status-badge--locked {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.stay-status-badge--flight {
  background: #e6eff4;
  color: #184e63;
  border: 1px solid #c3dae6;
}

.stay-status-badge--hotel {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.stay-status-badge--balance {
  background: #e6f2f5;
  color: #1f5f70;
  border: 1px solid #c5dfe6;
}

.stay-status-badge--flexible {
  background: #f1f5f4;
  color: #465754;
  border: 1px solid #dae3e0;
}

.stay-status-badge--proposal {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px dashed #9ca3af;
}

.stay-dates-strip {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
}

.stay-date-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #f3f7f6;
  border: 1px solid #e0e8e6;
  font-size: 11px;
}

.stay-date-chip small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.stay-date-arrow {
  color: var(--muted);
  font-weight: 700;
}

.stay-nights-chip {
  padding: 3px 8px;
  border-radius: 7px;
  background: #13262f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 760;
}

.stay-coverage-chip {
  padding: 3px 8px;
  border-radius: 7px;
  background: #f5f5f4;
  color: #57534e;
  border: 1px solid #e7e5e4;
  font-size: 11px;
  font-weight: 680;
}

.stay-coverage-chip.has-bookings {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.stay-proposal-sub {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 650;
}

/* Controls Toolbar */
.stay-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.stay-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.stay-action-btn {
  min-height: 36px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #c9d5d2;
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  white-space: nowrap;
}

.stay-action-btn:hover:not(:disabled) {
  border-color: var(--lake);
  background: #f4f9fa;
}

.stay-action-btn.is-locked {
  border-color: #0284c7;
  background: #e0f2fe;
  color: #0369a1;
}

.stay-action-btn--primary {
  border-color: var(--lake);
  background: var(--lake);
  color: #ffffff;
}

.stay-action-btn--primary:hover:not(:disabled) {
  background: #1f6476;
  color: #ffffff;
}

.stay-action-btn--amber {
  border-color: #d97706;
  background: #fef3c7;
  color: #92400e;
}

.stay-lock-immutable {
  min-height: 36px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  background: #eef6f0;
  border: 1px solid #cde2d2;
  color: #1f5e32;
  font-size: 11px;
  font-weight: 740;
}

.stay-move-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stay-move-btn {
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d5d2;
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.stay-move-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.stay-gap-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Flight Indicators, Linked Bookings, Proposals & Inline Conflicts */
.stay-flight-links {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.stay-flight-chip {
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-radius: 9px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.stay-flight-chip.is-unverified {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  color: #78350f;
}

.stay-unverified-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fde68a;
  color: #78350f;
  font-size: 10px;
  font-weight: 780;
}

.dynamic-badge--unverified {
  background: rgba(245, 158, 11, 0.24) !important;
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde68a !important;
}

.stay-linked-bookings {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f5faf7;
  border: 1px solid #d1e7dd;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.stay-linked-bookings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #14532d;
  margin-bottom: 5px;
}

.stay-linked-bookings__list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  color: #1f2937;
}

.stay-linked-checkout {
  display: block;
  color: #92400e;
  font-weight: 680;
}

.stay-inline-reviews {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #cbd5e1;
  display: grid;
  gap: 4px;
}

.stay-inline-review-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: #57534e;
  font-size: 11px;
}

.stay-linked-proposals {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}

.stay-proposal-chip {
  padding: 6px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1px dashed #9ca3af;
  border-radius: 9px;
  background: #f9fafb;
  color: #374151;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.stay-proposal-chip__badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #1f2937;
  font-size: 10px;
  font-weight: 780;
}

.stay-inline-conflict {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.stay-inline-conflict__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stay-inline-conflict__dismiss {
  border: 1px solid #fca5a5;
  border-radius: 6px;
  background: #ffffff;
  color: #991b1b;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.stay-inline-conflict__list {
  margin: 5px 0 0;
  padding-left: 16px;
}

/* Card Body & Nested Activities + Notes */
html body.dashboard-body .stay-card-body {
  display: block;
  padding: 8px 0 2px;
}

.stay-transfer-line {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.stay-activities-notes {
  border: 1px solid #e2e9e7;
  border-radius: 10px;
  background: #f9fbfa;
  overflow: hidden;
}

.stay-activities-notes__summary {
  min-height: 38px;
  padding: 7px 11px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 740;
  color: var(--ink);
}

.stay-activities-notes__summary::-webkit-details-marker {
  display: none;
}

.stay-activities-notes__summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.stay-activities-notes__body {
  padding: 8px 11px 11px;
  border-top: 1px solid #e6ecea;
  display: grid;
  gap: 8px;
}

.stay-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.stay-activity-item {
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dfe7e5;
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
}

.stay-activity-item.is-done .stay-activity-text {
  text-decoration: line-through;
  color: var(--muted);
}

.stay-activity-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.stay-activity-delete {
  flex: 0 0 auto;
  min-width: 28px;
  min-height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  color: #6b7280;
  font-size: 11px;
  cursor: pointer;
}

.stay-activity-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stay-activity-input {
  flex: 1 1 160px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #ccd7d4;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 12px;
}

/* Validated Stay Editor Modal / Mobile Bottom Sheet (#stay-edit-sheet) */
.stay-edit-sheet {
  width: min(100% - 28px, 600px);
  max-width: 600px;
  max-height: min(88vh, 760px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 22px 54px rgba(19, 38, 47, 0.24);
}

.stay-edit-sheet::backdrop {
  background: rgba(19, 38, 47, 0.48);
  backdrop-filter: blur(2px);
}

.stay-edit-sheet__body {
  padding: 16px 18px;
  display: grid;
  gap: 14px;
  max-height: calc(88vh - 142px);
  overflow-y: auto;
}

.stay-edit-sheet__footer {
  padding: 12px 18px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: #f8faf9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.stay-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 10px;
}

.stay-edit-donor-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}

.stay-edit-form input,
.stay-edit-select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #c9d5d2;
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}

.stay-edit-window-hint {
  margin: 10px 0 0;
  padding: 8px 11px;
  border-radius: 9px;
  background: #f3f7f6;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stay-edit-preview-region {
  display: grid;
  gap: 10px;
}

.stay-edit-status {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 720;
}

.stay-edit-status.is-valid {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.stay-edit-status.is-unchanged {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.stay-edit-conflicts {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.stay-edit-conflicts ul {
  margin: 6px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 5px;
}

.stay-edit-conflict-kind {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fee2e2;
  color: #7f1d1d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.stay-edit-diff-box,
.stay-edit-flight-shifts {
  padding: 10px 12px;
  border: 1px solid #dde6e4;
  border-radius: 11px;
  background: #f9fbfa;
}

.stay-edit-diff-box h4,
.stay-edit-flight-shifts h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lake);
}

.stay-edit-diff-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.stay-edit-diff-item {
  padding: 7px 9px;
  border: 1px solid #e4ecea;
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
}

.stay-edit-diff-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.stay-edit-diff-item__dates {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.stay-edit-flight-shifts ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.stay-edit-gap-note {
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px dashed #d97706;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
}

#stay-edit-apply-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Route Month Toolbar & Leg Banners */
.route-month-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.route-tab-unverified {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
}

.route-selected-leg-banner {
  margin-bottom: 10px;
  padding: 8px 11px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5e2df;
  border-radius: 10px;
  background: #f5f9f8;
  font-size: 12px;
}

.route-selected-leg-banner.is-unverified {
  border-style: dashed;
  border-color: #f59e0b;
  background: #fffbeb;
}

.route-leg-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2ece9;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.route-leg-badge.is-booked-flight {
  background: #dbeafe;
  color: #1e40af;
}

.route-leg-badge.is-unverified {
  background: #fde68a;
  color: #78350f;
}

.map-place-dot.is-inactive-place {
  opacity: 0.65;
}

/* Calendar Stay Segment Overlay Pill */
.booking-pill.stay-segment {
  background: #edf5f7;
  border: 1px solid #bcd6de;
  color: #174957;
  font-weight: 720;
}

.booking-pill.stay-segment.is-candidate-preview {
  border-style: dashed;
  border-color: #0284c7;
  background: #e0f2fe;
}

/* Mobile & Tablet Bottom Sheet + Touch Target Sizing (<= 1023px) */
@media (max-width: 1023px) {
  .stay-edit-sheet {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }

  .stay-move-btn {
    min-width: 42px;
    min-height: 42px;
  }

  .stay-action-btn {
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .timeline-month-group__cards::before {
    left: 13px;
  }

  html body.dashboard-body .day-card {
    padding: 11px 10px 11px 30px;
  }

  html body.dashboard-body .day-dot {
    left: 7px;
    width: 11px;
    height: 11px;
  }

  .stay-controls-bar {
    width: 100%;
    justify-content: flex-start;
  }

  .route-day-tabs button {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    height: auto;
    min-height: 36px;
    padding-block: 6px;
  }
}



/* =========================================================================
   STREAMLINED PLANNER REDESIGN: CITY QUICK FILTER, PER-DAY CARDS,
   GANTT SLIDING BARS, MANUAL ADD STAY & INTERACTIVE LEAFLET MAP
   ========================================================================= */

#full-workspace-sections {
  display: grid;
  gap: 16px;
  min-width: 0;
}

#full-workspace-sections[hidden],
#city-detail-view[hidden] {
  display: none !important;
}

/* Sidebar City Quick Filter */
.sidebar-city-section {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sidebar-city-list {
  display: grid;
  gap: 4px;
}

.sidebar-city-btn {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfb;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease, color .14s ease;
}

.sidebar-city-btn:hover {
  border-color: var(--lake);
  background: #f2f8f9;
}

.sidebar-city-btn.is-active,
.sidebar-city-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.sidebar-city-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

.sidebar-city-btn__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-city-btn__meta {
  flex: 0 0 auto;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}

.sidebar-city-btn.is-active .sidebar-city-btn__meta {
  color: #cfe3e8;
}

/* Mobile / Tablet City Quick Filter Strip */
.mobile-city-filter-bar {
  position: sticky;
  top: var(--topbar-offset, calc(56px + var(--safe-top)));
  z-index: 29;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 10px;
  border: 1px solid rgba(19, 38, 47, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(19, 38, 47, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: thin;
}

.mobile-city-pill {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-city-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.mobile-city-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

/* City Detail Workspace View (#city-detail-view) */
.city-detail-section {
  display: grid;
  gap: 20px;
  scroll-margin-top: calc(var(--topbar-offset, 56px) + var(--mobile-filter-offset, 0px) + 12px);
}

.city-detail-header {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.city-detail-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.city-detail-header__map-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.city-detail-title {
  margin: 4px 0 0;
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 830;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.city-detail-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.city-stays-summary-list {
  display: grid;
  gap: 12px;
}

.city-stay-summary-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
  display: grid;
  gap: 12px;
}

.city-stay-summary-box__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.city-stay-summary-box__dates {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.city-stay-summary-box__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.city-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}

.city-day-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(19, 38, 47, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.city-day-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7eeec;
}

.city-day-card__eyebrow {
  display: block;
  color: var(--lake);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.city-day-card__title {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.city-day-card__iso {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f4;
  color: var(--muted);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.city-day-card__bookings {
  display: grid;
  gap: 6px;
}

.city-day-card__bookings.is-unbooked {
  padding: 6px 10px;
  border-radius: 8px;
  background: #f9fbfa;
  border: 1px dashed #d5e0dd;
}

.city-day-unbooked-hint {
  font-size: 11px;
  color: var(--muted);
}

.city-day-booking {
  padding: 8px 10px;
  border-radius: 9px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.4;
}

.city-day-booking strong {
  display: block;
  font-size: 12px;
}

.city-day-booking--hotel {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.city-day-booking--checkout {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

.city-day-booking--flight {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.city-day-card__body {
  display: grid;
  gap: 12px;
}

.city-day-empty-text {
  margin: 4px 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.card-editor-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-notes-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.45;
  resize: vertical;
}

.card-activities-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.card-activity-item {
  padding: 6px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dfe7e5;
  border-radius: 8px;
  background: #f9fbfa;
  font-size: 12.5px;
}

.card-activity-item.is-done span {
  text-decoration: line-through;
  color: var(--muted);
}

.card-activity-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-activity-delete {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #64748b;
  width: 24px;
  height: 24px;
  font-size: 11px;
  cursor: pointer;
  flex: 0 0 auto;
}

.card-activity-add {
  display: flex;
  gap: 6px;
}

.card-activity-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
}

/* Brief Flexible Itinerary Gantt Sliding Bars (#itinerary / #timeline) */
.itinerary-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
}

.itinerary-controls-bar__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.itinerary-controls-bar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.balance-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 680;
}

.balance-stay-select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.add-stay-drawer {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #b8d3da;
  border-radius: 12px;
  background: #f3f9fa;
}

.add-stay-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
  align-items: end;
}

.add-stay-presets {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #c5dde4;
}

.add-stay-presets__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.timeline-feedback-banner {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.timeline-feedback-banner.is-conflict {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.timeline-feedback-banner.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.timeline-feedback-banner__dismiss {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
}

.gantt-timeline {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.gantt-header {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  background: #f2f6f5;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.gantt-header__info {
  padding: 9px 14px;
  border-right: 1px solid var(--line);
}

.gantt-header__ruler {
  display: flex;
  align-items: center;
  min-width: 0;
}

.gantt-month-segment {
  padding: 9px 8px;
  border-right: 1px dashed #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-month-segment:last-child {
  border-right: none;
}

.gantt-body {
  display: grid;
}

.gantt-row {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  border-bottom: 1px solid #edf2f0;
  align-items: center;
  min-height: 52px;
  transition: background-color .12s ease;
}

.gantt-row:last-child {
  border-bottom: none;
}

.gantt-row:hover {
  background: #fafcfb;
}

.gantt-row__info {
  padding: 8px 12px;
  border-right: 1px solid #edf2f0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.gantt-row__title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.gantt-city-link {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.gantt-city-link:hover .gantt-row__title {
  color: var(--lake);
  text-decoration: underline;
}

.gantt-city-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 9px;
}

.gantt-row__dates {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.gantt-row__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.gantt-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1dbd8;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.gantt-step-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.gantt-step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gantt-stepper .night-val {
  padding: 0 6px;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gantt-mini-btn {
  height: 24px;
  padding: 0 7px;
  border: 1px solid #d1dbd8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 720;
  cursor: pointer;
}

.gantt-mini-btn:hover:not(:disabled) {
  border-color: var(--lake);
  color: var(--lake);
}

.gantt-mini-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gantt-mini-btn.is-locked {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.gantt-mini-btn.is-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.gantt-row__track {
  position: relative;
  height: 44px;
  margin: 0 10px;
  background-image: linear-gradient(to right, rgba(19, 38, 47, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  border-radius: 8px;
}

.gantt-bar {
  position: absolute;
  top: 7px;
  height: 30px;
  min-width: 18px;
  border-radius: 8px;
  background: var(--bar-color, #1d6577);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-shadow: 0 2px 5px rgba(19, 38, 47, 0.14);
  user-select: none;
  overflow: hidden;
  transition: box-shadow .12s ease;
}

.gantt-bar.is-locked {
  opacity: 0.86;
}

.gantt-bar.is-transit {
  background: #1e40af;
}

.gantt-bar.is-gap {
  background: #fef3c7;
  border: 1.5px dashed #d97706;
  color: #92400e;
}

.gantt-bar.is-dragging {
  z-index: 5;
  box-shadow: 0 6px 16px rgba(19, 38, 47, 0.28);
}

.gantt-bar__label {
  font-size: 11px;
  font-weight: 740;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  cursor: pointer;
}

.gantt-handle {
  width: 9px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  cursor: ew-resize;
  flex: 0 0 9px;
  transition: background-color .12s ease, transform .12s ease;
}

.gantt-handle:hover,
.gantt-handle:focus-visible {
  background: #ffffff;
  transform: scaleX(1.18);
}

@media (max-width: 820px) {
  .gantt-header {
    display: none;
  }

  .gantt-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 6px 0;
  }

  .gantt-row__info {
    border-right: none;
  }

  .gantt-row__track {
    height: 36px;
    margin: 2px 12px 6px;
  }

  .gantt-bar {
    top: 3px;
    height: 28px;
  }
}

/* Interactive Real Geographic Map (Leaflet) */
.leaflet-map-wrapper {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #dcebe7;
}

.leaflet-route-map {
  width: 100%;
  height: 440px;
  z-index: 1;
}

@media (max-width: 640px) {
  .leaflet-route-map {
    height: 320px;
  }
}

.route-active-leg {
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid #d5e2df;
  border-radius: 10px;
  background: #f6faf9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.route-active-leg__main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.brazil-map-pin {
  background: transparent;
  border: none;
}

.brazil-map-pin__badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(19, 38, 47, 0.32);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.brazil-map-pin.is-dimmed {
  opacity: 0.42;
}

.brazil-map-pin__label {
  position: absolute;
  left: 30px;
  top: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 38, 47, 0.14);
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(19, 38, 47, 0.12);
  pointer-events: none;
}

.brazil-map-popup strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.brazil-map-popup p {
  margin: 4px 0 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.brazil-map-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-place-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-place-pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.map-place-pill:hover {
  border-color: var(--lake);
  color: var(--lake);
}

.map-place-pill__dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.city-stay-summary-box__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detour-btn.is-danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff5f5;
}

.detour-btn.is-danger:hover {
  color: #991b1b;
  border-color: #f87171;
  background: #fee2e2;
}

