:root {
    color-scheme: light;
    --ink: #10223b;
    --muted: #66758a;
    --surface: #ffffff;
    --surface-soft: #f3f6fa;
    --line: #dce4ed;
    --navy: #0b1728;
    --blue: #176bdb;
    --green: #16a66a;
    --green-dark: #087c4b;
    --yellow: #f2ad20;
    --red: #e04b4b;
    --shadow: 0 16px 50px rgba(17, 35, 59, 0.18);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; }
body { color: var(--ink); background: var(--navy); }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; z-index: 9999; top: 8px; left: 8px;
    padding: 10px 14px; color: white; background: var(--navy);
    border-radius: 8px; transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.app-shell { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; }
.map-region, #map { position: absolute; inset: 0; }
#map {
    background-color: #dce5e2;
    -webkit-touch-callout: none;
    user-select: none;
}

.topbar {
    position: absolute; z-index: 1000; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 12px;
    padding: max(10px, env(safe-area-inset-top)) 12px 8px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(7, 19, 34, 0.82), rgba(7, 19, 34, 0));
}

.brand { display: none; align-items: center; gap: 9px; min-width: 190px; color: white; pointer-events: auto; }
.brand-mark {
    display: grid; place-items: center; width: 40px; height: 40px;
    font-weight: 900; color: var(--navy); background: #5ce0a2;
    border-radius: 13px 13px 13px 3px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; line-height: 1; letter-spacing: -.02em; }
.brand small { margin-top: 3px; font-size: 10px; opacity: .72; text-transform: uppercase; letter-spacing: .08em; }

.search {
    position: relative; display: flex; align-items: center; width: min(100%, 680px); height: 50px;
    margin: 0 auto; padding: 0 5px 0 15px; pointer-events: auto;
    background: rgba(255, 255, 255, .97); border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 15px; box-shadow: 0 8px 28px rgba(5, 20, 42, .2); backdrop-filter: blur(10px);
}
.search svg { width: 20px; flex: 0 0 auto; fill: none; stroke: #6d7b8f; stroke-width: 2; stroke-linecap: round; }
.search input { min-width: 0; flex: 1; height: 100%; padding: 0 10px; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search input::placeholder { color: #77869a; }
.search > button {
    height: 38px; padding: 0 14px; border: 0; border-radius: 11px;
    color: white; background: var(--navy); font-size: 13px; font-weight: 750; cursor: pointer;
}
.search:focus-within { border-color: #86b9fc; box-shadow: 0 8px 28px rgba(5, 20, 42, .2), 0 0 0 3px rgba(23, 107, 219, .18); }

.search-results {
    position: absolute; top: calc(100% + 7px); left: 0; right: 0; max-height: 250px;
    overflow-y: auto; padding: 6px; background: white; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow);
}
.search-results button, .search-results p {
    display: block; width: 100%; margin: 0; padding: 12px; text-align: left;
    color: var(--ink); background: transparent; border: 0; border-radius: 9px; font-size: 13px;
}
.search-results button { cursor: pointer; }
.search-results button:hover, .search-results button:focus-visible { background: var(--surface-soft); outline: none; }
.search-results .search-results-heading { padding: 7px 10px 5px; color: var(--green-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.search-results .search-result { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; }
.search-result > span:last-child, .search-result strong, .search-result small { display: block; min-width: 0; }
.search-result strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.search-result small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.search-result-icon { display: grid; place-items: center; width: 35px; height: 35px; color: white; background: var(--green-dark); border-radius: 11px 11px 11px 4px; font-size: 9px; font-weight: 900; }
.search-result-pin { position: relative; width: 27px; height: 27px; margin-left: 4px; background: var(--blue); border: 5px solid #dcecff; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); }
.search-result-pin::after { content: ''; position: absolute; inset: 5px; background: white; border-radius: 50%; }

.status-banner {
    position: absolute; z-index: 500; top: 72px; left: 50%;
    display: flex; align-items: center; gap: 8px; max-width: calc(100% - 28px);
    padding: 8px 12px; color: white; background: rgba(11, 23, 40, .88);
    border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
    box-shadow: 0 7px 22px rgba(10, 25, 45, .2); backdrop-filter: blur(10px);
    transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 700;
}
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: #5ce0a2; box-shadow: 0 0 0 4px rgba(92, 224, 162, .15); }
.status-banner[data-type="loading"] .status-pulse { animation: pulse 1.2s infinite; }
.status-banner[data-type="warning"] .status-pulse { background: var(--yellow); }
.status-banner[data-type="error"] .status-pulse { background: var(--red); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }

.map-action {
    position: absolute; z-index: 500; right: 12px; bottom: calc(39vh + 14px);
    display: grid; place-items: center; width: 46px; height: 46px;
    color: var(--blue); background: white; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 8px 25px rgba(17, 35, 59, .2); cursor: pointer;
    transition: bottom .3s ease, transform .2s ease;
}
.map-action:active { transform: scale(.94); }
.map-action svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.legend {
    position: absolute; z-index: 450; left: 10px; bottom: calc(39vh + 15px);
    display: none; align-items: center; gap: 12px; padding: 8px 10px;
    color: #45556a; background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
    border-radius: 10px; box-shadow: 0 5px 18px rgba(17, 35, 59, .12); font-size: 10px; font-weight: 700;
}
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-available { background: var(--green); }
.dot-low { background: var(--yellow); }
.dot-full { background: var(--red); }

.bottom-sheet {
    position: absolute; z-index: 800; left: 0; right: 0; bottom: 0;
    height: 39vh; height: 39dvh; min-height: 260px; max-height: calc(100dvh - 72px);
    padding: 0 14px max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98); border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 37, 63, .2); backdrop-filter: blur(18px);
    transition: height .3s cubic-bezier(.22, .7, .2, 1);
}
.bottom-sheet.is-expanded { height: calc(100dvh - 76px); }
.bottom-sheet.is-expanded ~ * { pointer-events: none; }
.bottom-sheet.is-expanded + .map-action { bottom: calc(100dvh - 60px); }

.sheet-handle { display: grid; place-items: center; width: 100%; height: 25px; padding: 0; background: transparent; border: 0; cursor: ns-resize; touch-action: none; }
.sheet-handle span { width: 40px; height: 4px; background: #cdd6e0; border-radius: 99px; }
.sheet-header { display: flex; align-items: flex-end; justify-content: space-between; padding: 1px 2px 10px; }
.eyebrow { margin: 0 0 2px; color: var(--green-dark); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.sheet-header h1 { margin: 0; font-size: 21px; line-height: 1.1; letter-spacing: -.035em; }
.count { display: inline-grid; place-items: center; min-width: 25px; height: 25px; margin-left: 4px; padding: 0 7px; color: white; background: var(--navy); border-radius: 99px; font-size: 11px; vertical-align: 3px; }
.sheet-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.gps-info { padding: 5px 8px; color: #4f6379; background: var(--surface-soft); border-radius: 8px; font-size: 10px; font-weight: 750; }
.gps-info.is-warning { color: #845a00; background: #fff3d2; }
.radius-label { display: flex; align-items: center; gap: 3px; height: 26px; padding: 2px 4px 2px 7px; color: #52657a; background: white; border: 1px solid var(--line); border-radius: 8px; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.radius-label select { max-width: 67px; padding: 2px 15px 2px 2px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 10px; font-weight: 850; text-transform: none; letter-spacing: 0; cursor: pointer; }

.recommendation {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0 0 10px; padding: 12px 13px; color: #0d5136;
    background: linear-gradient(120deg, #e3faee, #f3fcf7); border: 1px solid #aee5c9; border-radius: 15px;
}
.recommendation div, .recommendation strong, .recommendation span { display: block; }
.recommendation-kicker { margin-bottom: 3px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.recommendation strong { color: #092f23; font-size: 15px; }
.recommendation div > span:last-child { margin-top: 2px; color: #39705a; font-size: 11px; }
.recommendation button { flex: 0 0 auto; padding: 9px 11px; color: white; background: linear-gradient(135deg, #0a8a58, #087446); border: 0; border-radius: 10px; box-shadow: 0 5px 14px rgba(8, 116, 70, .18); font-size: 10px; font-weight: 850; cursor: pointer; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 9px; }
.segmented { display: flex; gap: 3px; padding: 3px; background: var(--surface-soft); border-radius: 10px; }
.segmented button { padding: 7px 8px; color: #607086; background: transparent; border: 0; border-radius: 8px; font-size: 10px; font-weight: 750; cursor: pointer; }
.segmented button.is-active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(17, 35, 59, .1); }
.segmented button[data-filter="available"]::after,
.segmented button[data-filter="full"]::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; vertical-align: 1px; }
.segmented button[data-filter="available"]::after { background: var(--green); }
.segmented button[data-filter="full"]::after { background: var(--red); }
.sort-label select { max-width: 116px; padding: 7px 24px 7px 8px; color: #53657a; background: white; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; font-weight: 700; }

.cto-list { height: calc(100% - 112px); overflow: auto; overscroll-behavior: contain; padding: 0 0 12px; scrollbar-width: thin; }
.recommendation:not([hidden]) ~ .toolbar + .empty-state + .cto-list,
.recommendation:not([hidden]) ~ .toolbar + .cto-list { height: calc(100% - 178px); }
.cto-card { position: relative; border-bottom: 1px solid #e9eef4; }
.cto-card:last-child { border-bottom: 0; }
.cto-card-main {
    display: grid; grid-template-columns: 31px minmax(0, 1fr) auto 12px; align-items: center; gap: 10px;
    width: 100%; padding: 12px 3px; text-align: left; color: inherit; background: transparent; border: 0; cursor: pointer;
}
.cto-card-main:hover, .cto-card-main:focus-visible { background: #f7f9fc; outline: none; }
.cto-status-icon { position: relative; width: 27px; height: 27px; border: 6px solid #d5f5e6; background: var(--green); border-radius: 50% 50% 50% 10%; transform: rotate(-45deg); }
.cto-card[data-status="low"] .cto-status-icon { border-color: #fff0c9; background: var(--yellow); }
.cto-card[data-status="full"] .cto-status-icon { border-color: #fde0e0; background: var(--red); }
.cto-status-icon::after { content: ''; position: absolute; inset: 5px; background: white; border-radius: 50%; }
.cto-copy, .cto-copy span { display: block; min-width: 0; }
.cto-name { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 820; text-overflow: ellipsis; white-space: nowrap; }
.cto-card.is-recommended .cto-name::after { content: ' ★'; color: var(--yellow); }
.cto-ports { margin-top: 2px; color: var(--muted); font-size: 10px; }
.cto-distance { padding: 5px 7px; color: #334a64; background: var(--surface-soft); border-radius: 7px; font-size: 10px; font-weight: 800; }
.cto-chevron { color: #64758a; font-size: 22px; font-weight: 400; line-height: 1; }
.cto-load-more { display: block; width: calc(100% - 8px); margin: 10px auto 2px; padding: 10px; color: #24405f; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
.cto-load-more:hover, .cto-load-more:focus-visible { color: #0750b7; background: #eaf3ff; border-color: #b9d5f8; outline: none; }

.empty-state { padding: 20px 18px 10px; text-align: center; color: var(--muted); }
.empty-state[hidden] { display: none; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 8px; color: var(--blue); background: #eaf3ff; border-radius: 50%; font-size: 25px; }
.empty-state h2 { margin: 0 0 4px; color: var(--ink); font-size: 15px; }
.empty-state p { max-width: 330px; margin: 0 auto 10px; font-size: 11px; line-height: 1.45; }
.empty-state button { padding: 8px 12px; color: white; background: var(--blue); border: 0; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }

.user-marker-wrap { overflow: visible !important; }
.user-marker { position: relative; display: block; width: 28px; height: 28px; background: rgba(34, 119, 232, .2); border-radius: 50%; animation: userPulse 2.2s infinite; }
.user-heading-rotator { position: absolute; z-index: -1; top: 50%; left: 50%; width: 0; height: 0; opacity: 0; transform: rotate(var(--user-heading, 0deg)); transition: opacity .2s ease; }
.has-heading .user-heading-rotator { opacity: 1; }
.user-heading { position: absolute; bottom: -2px; left: -42px; width: 84px; height: 100px; background: linear-gradient(to top, rgba(34, 119, 232, .34), rgba(34, 119, 232, .02) 88%); clip-path: polygon(50% 100%, 7% 0, 93% 0); }
.user-marker i { position: absolute; inset: 7px; background: #2277e8; border: 3px solid white; border-radius: 50%; box-shadow: 0 2px 8px rgba(18, 74, 150, .5); }
@keyframes userPulse { 50% { box-shadow: 0 0 0 8px rgba(34, 119, 232, 0); } }

.search-pin-wrap { overflow: visible !important; background: transparent !important; border: 0 !important; }
.search-pin { position: relative; display: block; width: 36px; height: 36px; color: white; background: var(--blue); border: 4px solid white; border-radius: 50% 50% 50% 8px; box-shadow: 0 7px 18px rgba(17, 55, 105, .35); transform: rotate(-45deg); }
.search-pin i { position: absolute; inset: 9px; background: white; border-radius: 50%; }
.search-pin.is-pending { background: var(--yellow); animation: searchPinPending .75s ease-in-out infinite alternate; }
@keyframes searchPinPending { to { transform: translateY(-5px) rotate(-45deg); } }

.cto-marker { position: relative; display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--green); border: 3px solid white; border-radius: 50% 50% 50% 8px; box-shadow: 0 5px 13px rgba(20, 50, 80, .35); transform: rotate(-45deg); }
.cto-marker b { font-size: 11px; transform: rotate(45deg); }
.cto-marker--low { background: var(--yellow); }
.cto-marker--full { background: var(--red); }
.cto-marker.is-recommended::after { content: '★'; position: absolute; top: -11px; right: -9px; display: grid; place-items: center; width: 18px; height: 18px; color: #754d00; background: #ffd468; border: 2px solid white; border-radius: 50%; font-size: 9px; transform: rotate(45deg); }
.cto-cluster-wrap { background: transparent !important; border: 0 !important; }
.cto-cluster { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: linear-gradient(135deg, #0b2747, #0b1728); border: 4px solid rgba(255, 255, 255, .92); border-radius: 50%; box-shadow: 0 6px 18px rgba(10, 29, 51, .34); font-size: 12px; font-weight: 900; }

.leaflet-control-zoom { margin-bottom: calc(39vh + 68px) !important; border: 0 !important; box-shadow: 0 5px 18px rgba(17, 35, 59, .18) !important; transition: margin .3s ease; }
.leaflet-control-zoom a { color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-rotate { margin-top: 124px !important; margin-right: 12px !important; background: white !important; border: 1px solid var(--line) !important; border-radius: 50% !important; box-shadow: 0 8px 25px rgba(17, 35, 59, .2) !important; overflow: hidden; }
.leaflet-control-rotate a { width: 46px !important; height: 46px !important; border-radius: 50% !important; }
.leaflet-control-rotate svg { width: 25px; height: 25px; }
.leaflet-control-attribution { bottom: 39vh; font-size: 8px !important; transition: bottom .3s ease; }
.leaflet-popup-content-wrapper { border: 1px solid rgba(212, 221, 231, .9); border-radius: 20px; box-shadow: 0 18px 50px rgba(13, 33, 58, .24); }
.leaflet-popup-content { margin: 17px; }
.leaflet-popup-close-button { top: 10px !important; right: 10px !important; display: grid !important; place-items: center; width: 32px !important; height: 32px !important; padding: 0 !important; color: #52657c !important; background: #f7f9fc !important; border: 1px solid var(--line) !important; border-radius: 50%; font-size: 24px !important; font-weight: 300 !important; }
.popup-card { min-width: 236px; color: var(--ink); }
.popup-card > strong { display: block; margin: 4px 42px 12px 0; color: #061d48; font-size: 20px; letter-spacing: -.02em; }
.popup-kicker { color: var(--green-dark); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.popup-grid span { padding: 10px; color: var(--muted); background: #fbfcfe; border: 1px solid var(--line); border-radius: 11px; font-size: 10px; }
.popup-grid b { display: block; margin-top: 3px; color: #061d48; font-size: 15px; }
.popup-card p { color: var(--muted); font-size: 11px; }
.availability-dot { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(22, 166, 106, .12); }
.popup-card button { width: 100%; padding: 11px; color: white; background: linear-gradient(135deg, #071d49, #00255f); border: 0; border-radius: 10px; box-shadow: 0 8px 18px rgba(0, 37, 95, .2); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; touch-action: manipulation; }
.popup-card button span { margin-right: 6px; }

.route-dialog {
    width: min(410px, calc(100% - 28px));
    margin: auto;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 22px;
    overflow: visible;
}
.route-dialog::backdrop { background: rgba(4, 15, 31, .56); }
.route-card { position: relative; padding: 22px; background: white; border-radius: 22px; box-shadow: 0 24px 70px rgba(5, 22, 45, .3); }
.route-close { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: #52657a; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.route-kicker { color: var(--green-dark); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.route-card h2 { margin: 4px 42px 5px 0; color: #061d48; font-size: 23px; letter-spacing: -.03em; }
.route-card > p { margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.route-card > p strong { color: var(--ink); }
.navigation-option { display: grid; grid-template-columns: 43px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 13px; color: var(--ink); text-decoration: none; background: #fbfcfe; border: 1px solid var(--line); border-radius: 14px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; touch-action: manipulation; }
.navigation-option.is-opening { opacity: .72; pointer-events: none; }
.navigation-option:hover, .navigation-option:focus-visible { border-color: #79a8ec; box-shadow: 0 7px 20px rgba(24, 93, 190, .13); outline: none; transform: translateY(-1px); }
.google-maps-mark { display: grid; place-items: center; width: 43px; height: 43px; color: white; background: linear-gradient(135deg, #4285f4 0 42%, #34a853 42% 63%, #fbbc05 63% 80%, #ea4335 80%); border: 3px solid white; border-radius: 50%; box-shadow: 0 3px 10px rgba(31, 70, 126, .2); font-size: 18px; font-weight: 900; }
.navigation-option strong, .navigation-option small { display: block; }
.navigation-option strong { color: #08214d; font-size: 14px; }
.navigation-option small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.navigation-arrow { color: #596d84; font-size: 26px; }
.route-cancel { width: 100%; margin-top: 10px; padding: 10px; color: #52657a; background: transparent; border: 0; border-radius: 9px; font-size: 12px; font-weight: 750; cursor: pointer; }
.route-cancel:hover { background: var(--surface-soft); }
.point-card > p { max-width: 310px; line-height: 1.45; }
.point-dialog-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 9px; }
.point-dialog-actions button { min-height: 44px; padding: 10px 12px; border-radius: 11px; font-size: 12px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.point-cancel { color: #52657a; background: var(--surface-soft); border: 1px solid var(--line); }
.point-confirm { color: white; background: linear-gradient(135deg, #176bdb, #0750b7); border: 0; box-shadow: 0 7px 18px rgba(23, 107, 219, .24); }

@media (min-width: 600px) {
    .topbar { padding: max(14px, env(safe-area-inset-top)) 18px 10px; }
    .brand { display: flex; }
    .search { margin: 0; }
    .status-banner { top: 82px; }
    .legend { display: flex; }
    .bottom-sheet { left: auto; right: 18px; bottom: 18px; width: 390px; height: min(560px, calc(100dvh - 108px)); max-height: calc(100dvh - 108px); padding: 0 16px 14px; border-radius: 22px; }
    .bottom-sheet.is-expanded { height: min(700px, calc(100dvh - 108px)); }
    .sheet-handle { display: none; }
    .sheet-header { padding-top: 17px; }
    .map-action { right: 426px; bottom: 28px; }
    .legend { bottom: 24px; }
    .leaflet-control-zoom { margin-right: 426px !important; margin-bottom: 28px !important; }
    .leaflet-control-rotate { margin-top: 82px !important; margin-right: 426px !important; }
    .leaflet-control-attribution { bottom: 0; }
}

@media (max-height: 700px) and (max-width: 599px) {
    .bottom-sheet { min-height: 235px; }
    .sheet-header h1 { font-size: 18px; }
    .recommendation { padding-block: 7px; }
    .cto-card-main { padding-block: 9px; }
}

@media (max-width: 599px) {
    .route-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; }
    .route-card { padding: 24px 18px max(16px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
}

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