:root {
  --ink: #17211d;
  --muted: #66706b;
  --paper: #f5f5f1;
  --white: #fff;
  --line: #d9ddd9;
  --green: #1f6a4d;
  --green-2: #dce9e1;
  --red: #b94a3d;
  --amber: #c78b2b;
  --blue: #2e6086;
  --shadow: 0 18px 50px rgba(20, 35, 27, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; color: white; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,15,.76), rgba(10,20,15,.18) 70%), linear-gradient(0deg, rgba(8,15,11,.68), transparent 55%); }
.topbar { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; padding: 22px clamp(22px,5vw,72px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.25); }
.brand { font-weight: 750; font-size: 14px; }
.brand span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; background: white; color: var(--ink); }
.top-actions { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.14); color: white; display: inline-grid; place-items: center; border-radius: 4px; }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.icon-btn svg { width: 18px; }
.icon-btn input { display: none; }
.hero-content { position: relative; z-index: 1; width: min(840px, 90vw); margin: 0 0 9vh clamp(22px,7vw,104px); }
.eyebrow { margin: 0 0 12px; color: #d6e4db; font-size: 12px; font-weight: 750; letter-spacing: 2px; }
.eyebrow.dark { color: var(--green); }
.hero h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(52px, 8vw, 104px); line-height: .98; font-weight: 500; }
.hero-content > p:not(.eyebrow) { max-width: 660px; margin: 22px 0; font-size: clamp(16px,2vw,21px); line-height: 1.7; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); }
.hero-stats span { color: #e7ebe8; font-size: 13px; }
.hero-stats strong { margin-right: 5px; color: white; font-size: 18px; }
.scroll-cue { position: absolute; z-index: 2; right: clamp(22px,5vw,72px); bottom: 35px; display: flex; align-items: center; gap: 9px; color: white; text-decoration: none; font-size: 12px; }
.scroll-cue svg { width: 18px; }

main { overflow: hidden; }
.route-overview, .budget-band, .reservation-band { padding: 88px clamp(18px,5vw,72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(34px,4vw,54px); font-weight: 500; }
.segmented { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.segmented button { min-width: 72px; padding: 10px 14px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); }
.segmented button:last-child { border-right: 0; }
.segmented button.active { color: white; background: var(--ink); }
.add-day-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; border: 1px solid var(--green); border-radius: 4px; color: var(--green); background: white; font-size: 12px; font-weight: 750; }
.add-day-btn svg { width: 16px; }

.planner-grid { display: grid; grid-template-columns: 170px minmax(420px, 1.35fr) minmax(340px, .85fr); min-height: 690px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.day-rail { overflow-y: auto; border-right: 1px solid var(--line); background: #fafaf7; }
.day-tab { width: 100%; min-height: 82px; padding: 14px 16px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
.day-tab:hover { background: #eef2ee; }
.day-tab.active { background: var(--ink); color: white; }
.day-num { font-family: Georgia, serif; font-size: 25px; }
.day-meta { min-width: 0; }
.day-meta strong, .day-meta small { display: block; }
.day-meta strong { margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.day-meta small { color: inherit; opacity: .65; font-size: 11px; }
.map-panel { position: relative; min-height: 690px; }
#map { width: 100%; height: 100%; min-height: 690px; background: #dfe8e2; }
.map-interaction-toggle { display: none; }
.map-reset { position: absolute; z-index: 600; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--green); background: rgba(255,255,255,.95); box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 11px; font-weight: 750; }
.map-reset.active { border-color: var(--green); color: white; background: var(--green); }
.map-reset svg { width: 15px; }
.map-legend { position: absolute; z-index: 600; left: 16px; bottom: 16px; display: flex; gap: 13px; padding: 10px 12px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 5px 18px rgba(0,0,0,.12); font-size: 11px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }
.dot.transit { background: var(--blue); }.dot.drive { background: var(--red); }.dot.sight { background: var(--amber); }
.leaflet-control-attribution { font-size: 9px; }
.route-marker { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--green); color: white; font-weight: 750; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.hotel-marker { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid white; border-radius: 4px; background: var(--blue); color: white; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.hotel-marker svg { width: 15px; }
.sight-marker { width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--amber); color: white; font-size: 11px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.3); animation: marker-arrive .38s ease-out both; }
.sight-marker.context { width: 24px; height: 24px; margin: 2px; background: var(--blue); opacity: .68; font-size: 9px; }
@keyframes marker-arrive {
  from { transform: translateY(7px) scale(.72); }
  to { transform: translateY(0) scale(1); }
}
.leaflet-popup-content strong, .leaflet-popup-content small { display: block; }
.leaflet-popup-content small { margin-top: 3px; color: var(--muted); }

.detail-panel { padding: 28px; overflow-y: auto; border-left: 1px solid var(--line); }
.detail-top { display: flex; justify-content: space-between; gap: 15px; }
.detail-top h3 { margin: 4px 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 500; }
.edit-btn { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid var(--line); background: white; border-radius: 4px; color: var(--green); }
.edit-btn svg { width: 17px; }
.date-line { color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: 1px; }
.mode-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.chip { padding: 6px 9px; border-radius: 3px; background: #eef1ee; color: #4e5953; font-size: 11px; }
.chip.drive { background: #f4e3df; color: #8b372e; }
.stop-sequence { margin: 0 0 18px; padding: 13px; background: #f4f6f4; border: 1px solid var(--line); }
.stop-sequence-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.stop-sequence-head > strong { font-size: 11px; }
.navigation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.navigation-actions a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--green); background: white; text-decoration: none; font-size: 9px; font-weight: 750; }
.navigation-actions svg { width: 12px; height: 12px; }
.stop-sequence > div { display: flex; flex-wrap: wrap; gap: 6px; }
.stop-sequence > div > a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; background: white; color: #445049; font-size: 10px; text-decoration: none; }
.stop-sequence > div > a.context { color: var(--blue); opacity: .72; }
.stop-sequence b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: white; background: var(--amber); font-size: 9px; }
.stop-sequence a.context b { background: var(--blue); }
.weather-panel { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); background: #eef4f5; }
.weather-panel > p { margin: 0; color: var(--muted); font-size: 11px; }
.weather-main { display: flex; align-items: center; gap: 11px; }
.weather-main > svg { width: 25px; color: var(--blue); }
.weather-main strong, .weather-main small { display: block; }
.weather-main strong { font-size: 13px; }
.weather-main small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.weather-metrics { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #cddadd; }
.weather-metrics span { color: var(--muted); font-size: 9px; }
.weather-metrics b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; }
.weather-metrics .weather-note { flex: 1 1 180px; align-self: center; line-height: 1.45; }
.connection-panel { margin: 0 0 18px; padding: 14px; border-left: 3px solid var(--green); background: #eef3ef; }
.connection-panel > strong { display: block; margin-bottom: 9px; font-size: 11px; }
.connection-row { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid #d6dfd8; }
.connection-row > svg { width: 16px; color: var(--green); }
.connection-row span, .connection-row b, .connection-row small { display: block; }
.connection-row span { color: var(--muted); font-size: 9px; }
.connection-row b { margin: 3px 0; font-size: 11px; }
.connection-row small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 52px 1fr; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.timeline-row time { color: var(--green); font-size: 12px; font-weight: 750; }
.timeline-row p { margin: 0; color: #344039; font-size: 13px; line-height: 1.6; white-space: pre-line; }
.info-box { margin-top: 18px; padding: 15px; border-left: 3px solid var(--amber); background: #fbf4e7; }
.info-box.danger { border-color: var(--red); background: #faeeec; }
.info-box strong { display: block; margin-bottom: 6px; font-size: 12px; }
.info-box p { margin: 0; color: #5e5142; font-size: 12px; line-height: 1.6; }
.stay-line { margin-top: 18px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.stay-line svg { width: 17px; color: var(--green); }
.hotel-tools { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 17px; }
.hotel-tools-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hotel-tools-head strong, .hotel-tools-head small { display: block; }
.hotel-tools-head strong { font-size: 13px; }
.hotel-tools-head small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.map-action { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--green); text-decoration: none; font-size: 10px; font-weight: 750; }
.map-action svg { width: 14px; }
.parking-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 13px; }
.parking-option { min-width: 0; padding: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: #fafafa; }
.parking-option strong, .parking-option small { display: block; }
.parking-option strong { margin: 6px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.parking-option small { color: var(--muted); font-size: 9px; }
.parking-status { font-size: 9px; font-weight: 800; }
.parking-status.free { color: var(--green); }
.parking-status.paid { color: var(--red); }
.parking-status.unknown { color: var(--amber); }
.parking-empty, .parking-caveat { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.budget-band { background: #f0f2ef; border-top: 1px solid var(--line); }
.budget-status { max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.budget-live-status { display: grid; justify-items: end; gap: 7px; }
.fx-status { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.fx-status:hover { color: var(--ink); }
.fx-status svg { width: 13px; height: 13px; }
.budget-layout { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.1fr); gap: 24px; align-items: stretch; }
.budget-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.budget-total { grid-column: 1 / -1; min-height: 150px; padding: 25px; display: flex; flex-direction: column; justify-content: center; color: white; background: var(--green); }
.budget-total span, .cost-card span { font-size: 12px; font-weight: 750; }
.budget-total strong { margin: 6px 0; font-family: Georgia, serif; font-size: 48px; font-weight: 500; }
.budget-total strong em, .cost-card strong em { display: block; margin-top: 4px; color: #d9e8df; font-family: inherit; font-size: .46em; font-style: normal; font-weight: 650; }
.budget-total small { color: #d9e8df; }
.cost-card { min-height: 130px; padding: 20px; display: flex; flex-direction: column; background: white; }
.cost-card span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.cost-card span svg { width: 16px; color: var(--green); }
.cost-card strong { margin: 12px 0 7px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.cost-card strong em { color: var(--green); }
.cost-card small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.budget-controls { padding: 24px; background: white; border: 1px solid var(--line); }
.control-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.control-head span, .control-head small { display: block; }
.control-head span { font-weight: 750; }
.control-head small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.text-btn { padding: 0; border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 750; }
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 18px; }
.control-grid label { color: var(--muted); font-size: 11px; font-weight: 700; }
.control-grid input { width: 100%; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: #fafafa; color: var(--ink); }
.drive-segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); }
.segment-card { min-height: 115px; padding: 17px; display: flex; flex-direction: column; text-align: left; border: 0; background: white; color: var(--ink); }
.segment-card:hover { background: #e7eee9; }
.segment-card span { color: var(--red); font-size: 11px; font-weight: 800; }
.segment-card strong { margin: 8px 0; font-size: 13px; line-height: 1.4; }
.segment-card small { margin-top: auto; color: var(--muted); font-size: 11px; }
.budget-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 34px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ticket-head span, .ticket-head small { display: block; }
.ticket-head span { font-weight: 750; }
.ticket-head small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.ticket-head strong { color: var(--green); font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.ticket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ticket-item { min-height: 155px; padding: 17px; position: relative; background: white; }
.ticket-item.disabled { background: #f6f6f3; opacity: .67; }
.ticket-check { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; font-size: 12px; font-weight: 750; line-height: 1.4; }
.ticket-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.ticket-price { display: flex; align-items: center; gap: 4px; margin: 13px 0 8px; }
.ticket-price span { color: var(--green); font-family: Georgia, serif; font-size: 20px; }
.ticket-price input { width: 82px; padding: 6px 7px; border: 1px solid var(--line); color: var(--ink); background: #fafafa; font-family: Georgia, serif; font-size: 20px; }
.ticket-price small { color: var(--muted); font-size: 10px; }
.ticket-item p { margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.ticket-item a { display: inline-flex; align-items: center; gap: 5px; color: var(--green); text-decoration: none; font-size: 10px; font-weight: 750; }
.ticket-item a svg { width: 13px; }

.reservation-band { background: #e9ece8; }
.reservation-note { max-width: 760px; margin: -10px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.progress-wrap { width: min(280px, 40vw); text-align: right; color: var(--muted); font-size: 12px; }
.progress { height: 5px; margin-top: 8px; overflow: hidden; background: #cbd1cc; }
.progress i { display: block; width: 0; height: 100%; background: var(--green); transition: width .25s; }
.booking-table { border-top: 1px solid #bac2bc; }
.booking-row { display: grid; grid-template-columns: 36px 88px minmax(150px,.8fr) minmax(190px,1.2fr) minmax(170px,.8fr) 110px; gap: 14px; align-items: center; padding: 17px 0; border-bottom: 1px solid #cbd1cc; }
.booking-row.popular-option { opacity: .7; }
.booking-row.in-trip { background: rgba(255,255,255,.32); }
.booking-row.booking-conflict { box-shadow: inset 3px 0 var(--red); background: #faeeec; }
.booking-check { width: 22px; height: 22px; accent-color: var(--green); }
.booking-date { color: var(--muted); font-size: 12px; }
.booking-name { font-weight: 700; line-height: 1.4; }
.booking-name b { display: block; margin-bottom: 4px; color: var(--red); font-size: 9px; }
.booking-note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.booking-note strong { display: block; margin-bottom: 4px; color: var(--red); font-size: 10px; }
.booking-time { color: var(--muted); font-size: 9px; font-weight: 750; }
.booking-time input { width: 100%; margin-top: 5px; padding: 8px; border: 1px solid #bdc6bf; border-radius: 3px; color: var(--ink); background: white; font-size: 10px; }
.booking-link { justify-self: end; display: inline-flex; align-items: center; gap: 6px; color: var(--green); text-decoration: none; font-size: 12px; font-weight: 750; }
.ticket-empty { grid-column: 1 / -1; padding: 26px; color: var(--muted); background: white; font-size: 12px; text-align: center; }
.booking-link svg { width: 15px; }

dialog { width: min(620px, 92vw); border: 0; border-radius: 5px; padding: 0; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(10,17,13,.68); }
#editForm { padding: 26px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.dialog-head h3 { margin: 0; font-family: Georgia, serif; font-size: 28px; }
.icon-btn.light { color: var(--ink); border-color: var(--line); background: white; }
#editForm label { display: block; margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.edit-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
#editForm input, #editForm textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: #fafafa; resize: vertical; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.45; }
.geocode-status { min-height: 16px; margin: 8px 0 0; color: var(--green); font-size: 10px; line-height: 1.45; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.primary, .secondary, .danger-btn { padding: 10px 18px; border-radius: 3px; }
.primary { border: 1px solid var(--green); color: white; background: var(--green); }
.secondary { border: 1px solid var(--line); background: white; }
.danger-btn { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d9aaa5; color: var(--red); background: white; }
.danger-btn svg { width: 15px; }

footer { padding: 28px clamp(18px,5vw,72px); display: flex; justify-content: space-between; gap: 20px; color: #98a39d; background: #101713; font-size: 11px; }
footer span { color: white; font-weight: 750; letter-spacing: 1px; }
footer p { margin: 0; }
footer a { color: #c8d3cc; }

@media (max-width: 1080px) {
  .planner-grid { grid-template-columns: 130px 1fr; }
  .detail-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .day-rail, .map-panel, #map { min-height: 540px; }
  .budget-layout { grid-template-columns: 1fr; }
  .drive-segments { grid-template-columns: repeat(2, 1fr); }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .hero { min-height: 78vh; }
  .hero-content { margin-bottom: 8vh; }
  .hero-stats { gap: 10px 18px; }
  .scroll-cue { display: none; }
  .route-overview, .budget-band, .reservation-band { padding: 58px 14px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .add-day-btn { width: 100%; justify-content: center; }
  .planner-grid { display: block; min-height: 0; }
  .day-rail { display: flex; min-height: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; border-right: 0; border-bottom: 1px solid var(--line); }
  .day-tab { flex: 0 0 clamp(230px, 68vw, 260px); width: auto; min-height: 96px; padding: 16px 18px; grid-template-columns: 36px minmax(0, 1fr); align-items: start; scroll-snap-align: start; border-right: 1px solid var(--line); border-bottom: 0; }
  .day-meta strong { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.35; }
  .day-meta small { white-space: nowrap; }
  .map-panel, #map { min-height: 430px; }
  .map-panel.mobile-scroll-mode #map { pointer-events: none; touch-action: pan-y !important; }
  .map-interaction-toggle { position: absolute; z-index: 700; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid var(--green); border-radius: 4px; color: var(--green); background: rgba(255,255,255,.96); box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 11px; font-weight: 750; }
  .map-interaction-toggle.active { color: white; background: var(--green); }
  .map-interaction-toggle svg { width: 15px; height: 15px; }
  .detail-panel { padding: 22px 18px; }
  .stop-sequence-head { align-items: flex-start; flex-direction: column; }
  .navigation-actions { justify-content: flex-start; }
  .map-legend { max-width: calc(100% - 24px); flex-wrap: wrap; left: 12px; bottom: 12px; }
  .booking-row { grid-template-columns: 30px 1fr 80px; gap: 10px; padding: 18px 4px; }
  .booking-date { grid-column: 2; grid-row: 2; }
  .booking-name { grid-column: 2; grid-row: 1; }
  .booking-note { grid-column: 2 / -1; grid-row: 3; }
  .booking-time { grid-column: 2 / -1; grid-row: 4; }
  .booking-link { grid-column: 3; grid-row: 1; }
  .progress-wrap { width: 100%; text-align: left; }
  .budget-live-status { justify-items: start; }
  .budget-status { text-align: left; }
  .budget-summary, .control-grid, .drive-segments, .ticket-grid { grid-template-columns: 1fr; }
  .budget-total { grid-column: auto; }
  .budget-total strong { font-size: 40px; }
  .parking-list { grid-template-columns: 1fr; }
  .edit-pair { grid-template-columns: 1fr; gap: 0; }
  .dialog-actions { flex-wrap: wrap; }
  .danger-btn { width: 100%; justify-content: center; margin-right: 0; }
  footer { flex-direction: column; }
}
