@import url('./product-catalogue.css');
:root {
    color-scheme: light;
    --navy: #102635;
    --ink: #173141;
    --muted: #526673;
    --teal: #214e6a;
    --mint: #e4edf3;
    --sand: #f4f6f8;
    --line: #d9e1e2;
    --white: #fff;
    --error: #9e3221;
    font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--sand);
    font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
:focus-visible { outline: 3px solid #ba6b28; outline-offset: 3px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; z-index: 3000; padding: 12px; background: var(--white); }
.top { background: var(--navy); border-bottom: 1px solid #263e4a; color: var(--white); }
.top-inner { max-width: 1376px; padding: 0 32px; margin: auto; min-height: 66px; display: flex; align-items: center; gap: 22px; }
.brand { display: grid; align-items: center; width: 138px; min-height: 52px; flex: none; }
.brand img { display: block; width: 136px; max-height: 47px; object-fit: contain; }
.area { padding-left: 22px; border-left: 1px solid #4b606a; font-size: .85rem; color: #e4eeef; white-space: nowrap; }
.account { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.account label { font-size: .75rem; color: #d4e4e6; }
.account select { background: #1d3948; border: 1px solid #496371; color: white; border-radius: 7px; padding: 7px 8px; min-height: 39px; max-width: 180px; font-size: .84rem; }
.shell { max-width: 1376px; margin: auto; padding: 28px 32px 40px; }
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
h1 { font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.1; font-weight: 720; letter-spacing: -.037em; color: var(--navy); }
.heading p { margin-top: 9px; color: var(--muted); font-size: .96rem; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 9px 3px 11px; color: var(--muted); font-size: .9rem; font-weight: 650; border-bottom: 3px solid transparent; }
.tab[aria-current="page"] { color: var(--teal); border-color: var(--teal); }
.status { min-height: 15px; font-size: .83rem; color: var(--teal); }
.status:not(:empty) { min-height: 32px; padding: 8px 0 5px; }
.status.error { color: var(--error); }
.board { display: grid; grid-template-columns: minmax(350px, .82fr) minmax(0, 1.18fr); gap: 18px; align-items: start; grid-template-areas: "quote quote" "panel map"; }
.board:has(.quote-summary[hidden]) { grid-template-areas: "panel map"; }
body.internal .board { grid-template-columns: minmax(350px, 447px) minmax(0, 1fr); }
.panel, .map-card, .record-card, .empty-pane { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 12px #1a3b4308; }
.panel { grid-area: panel; padding: 18px; min-width: 0; }
.section-head, .row, .stop-inner, .map-bar, .map-footer { display: flex; align-items: center; gap: 10px; }
.section-head { justify-content: space-between; margin-bottom: 12px; }
h2 { font-size: 1.19rem; letter-spacing: -.022em; }
h3 { font-size: .95rem; }
.section-label { margin: 16px 0 7px; display: flex; justify-content: space-between; gap: 8px; }
.section-label span, .small { font-size: .79rem; color: var(--muted); line-height: 1.44; }
.label { display: grid; gap: 4px; font-size: .79rem; font-weight: 650; margin: 0 0 11px; }
.label small { font-size: .74rem; font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-width: 0; color: var(--ink); border: 1px solid #c8d5d7; border-radius: 7px; background: white; padding: 9px 10px; min-height: 40px; }
textarea { resize: vertical; min-height: 78px; }
.fields { display: grid; grid-template-columns: 1.3fr .9fr; gap: 8px; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c7d7d8; border-radius: 8px; min-height: 40px; padding: 8px 12px; color: var(--teal); background: var(--white); font-weight: 650; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.button:hover, .icon-button:hover { background: var(--mint); border-color: #91b4b4; }
.button.primary { background: var(--teal); border-color: var(--teal); color: white; }
.button.primary:hover { background: #103f49; }
.button:disabled, .icon-button:disabled { opacity: .48; }
.button.compact { min-height: 35px; padding: 5px 9px; }
.icon-button { min-width: 34px; min-height: 35px; padding: 4px 7px; }
.button[aria-pressed="true"] { background: var(--mint); border-color: var(--teal); }
.badge { align-self: flex-start; display: inline-block; border-radius: 30px; background: #e8f1f2; color: #285966; font-size: .73rem; font-weight: 650; padding: 4px 8px; white-space: nowrap; }
.badge.draft { background: #f8eeca; color: #704d0d; }
.badge.delivered { background: #dff1e9; color: #255b49; }
.stops, .records { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.stop { border: 1px solid #dce5e6; border-radius: 10px; padding: 7px; }
.stop-inner { min-width: 0; gap: 7px; }
.stop-index { width: 26px; height: 26px; border-radius: 50%; color: white; background: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: .76rem; flex: none; }
.stop-main { text-align: left; flex: 1; min-width: 0; border: 0; background: transparent; padding: 4px 0; color: var(--ink); cursor: pointer; display: grid; gap: 3px; }
.stop-main strong, .film-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.stop-main:hover strong { text-decoration: underline; }
.stop-main small { color: var(--muted); font-size: .72rem; }
.stop-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.stop-edit { color: var(--teal); font-size: .75rem; font-weight: 650; }
.stop-buttons { display: flex; flex: none; gap: 3px; }
.stop-buttons .icon-button { min-width: 30px; padding: 1px 4px; }
.duration { display: grid; grid-template-columns: 40px 1fr 40px; gap: 5px; }
.duration input { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.duration .icon-button { font-size: 1.15rem; }
.summary { margin: 11px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.actions { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); justify-content: space-between; flex-wrap: wrap; }
.actions .primary { flex: 1; }
details > summary { cursor: pointer; color: var(--teal); font-size: .83rem; font-weight: 650; padding: 7px 0; }
details p { line-height: 1.45; }
.map-card { grid-area: map; position: relative; overflow: hidden; min-width: 0; }
.map-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px 0; }
.map-header h2 { font-size: .99rem; }
.map-search { position: relative; z-index: 4; }
.map-bar { padding: 10px; align-items: stretch; gap: 8px; }
.map-pick-help { padding: 0 12px 9px; color: #85500f; font-size: .82rem; font-weight: 700; }
.app-theme-dark .map-pick-help { color: #efc789; }
.touch-help { display: none; }
@media (hover: none), (pointer: coarse) { .touch-help { display: inline; } .pointer-help { display: none; } }
.format-caption { margin: 0 0 12px; color: var(--teal); font-size: .86rem; }
.stop-instructions { margin-bottom: 12px; }
.stop-instructions summary { margin-bottom: 5px; }
.search { flex: 1; position: relative; min-width: 0; }
.search input { border-color: var(--line); padding-right: 61px; background: #f8faf9; }
.search-icon { position: absolute; top: 2px; right: 2px; border: 0; background: transparent; min-width:52px; font-size: .77rem; }
.map { width: 100%; height: clamp(385px, 59vh, 600px); background: #d6e6e8; z-index: 0; }
.map-card.picking .leaflet-container { cursor: crosshair; }
.map-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.map-footer { padding: 11px 12px; justify-content: space-between; }
.map-footer strong, .map-footer span { display: block; font-size: .85rem; }
.map-footer span { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.map-footer .button { align-self: center; }
.coverage-legend { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .25rem .95rem; padding: .5rem .75rem; font-size: .78rem; }
.coverage-legend summary, .coverage-disabled { display: inline-flex; align-items: center; gap: .4rem; }
.coverage-legend summary { cursor: pointer; font-weight: 700; }
.coverage-legend summary::before, .coverage-disabled::before { content: ""; flex: none; width: .9rem; }
.coverage-legend summary::before { border-top: 3px solid #2fb08a; }
.coverage-disabled::before { border-top: 2px dashed currentColor; }
.coverage-legend summary::after { content: "▾"; }
.coverage-legend details[open] summary::after { content: "▴"; }
.coverage-legend p { margin: .32rem 0; line-height: 1.4; }
.results { position: absolute; z-index: 5; top: calc(100% - 5px); left: 10px; right: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; overflow: auto; max-height: min(320px, 46dvh); box-shadow: 0 7px 19px #16434b30; }
.results button { display: block; width: 100%; padding: 10px; text-align: left; background: white; border: 0; border-bottom: 1px solid #e6eded; color: var(--ink); }
.results button:hover, .results button:focus-visible { background: var(--mint); }
.results small { display: block; margin-top: 3px; color: var(--muted); }
.results p { padding: 10px; }
.pin-number { background: var(--teal); border: 2px solid white; color: white; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 3px 12px #122b49a0; font-weight: 750; font-size: .82rem; }
.pin-number.active { background: #ad531e; }
.pin-film { border: 2px solid white; background: var(--navy); color: white; border-radius: 9px; overflow: hidden; box-shadow: 0 3px 12px #122b4980; }
.pin-film img { width: 100%; height: 100%; object-fit: cover; }
.pin-film span { height: 100%; display: grid; place-items: center; }
.pin-film.has-photo span { position: absolute; height: 18px; background: #102635e3; bottom: 0; left: 0; right: 0; font-size: .65rem; }
.route-guide { padding: 0 12px 12px; font-size: .83rem; }
.route-guide ol { max-height: 180px; margin: 0; padding-left: 22px; overflow: auto; }
.route-guide li { margin: 5px 0; }
.film-card { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: white; padding: 6px; border-radius: 9px; color: var(--ink); margin-top: 8px; }
.film-card:hover { background: #f1f7f6; }
.film-photo { width: 73px; height: 47px; object-fit: cover; display: grid; place-items: center; background: var(--navy); color: white; border-radius: 5px; flex: none; font-size: 1.1rem; }
.film-text { display: grid; min-width: 0; gap: 4px; }
.film-text small { font-size: .73rem; color: var(--muted); }
.empty { color: var(--muted); font-size: .84rem; line-height: 1.45; padding: 7px 0; }
.empty-pane { padding: 22px; }
.empty-pane p { margin: 9px 0 13px; }
.records { grid-template-columns: repeat(auto-fill, minmax(min(100%, 258px), 1fr)); gap: 12px; }
.record-card { text-align: left; padding: 16px; display: grid; gap: 8px; }
.record-card button { justify-self: start; }
.record-list { display: grid; gap: 6px; max-height: 225px; overflow: auto; margin-bottom: 10px; padding: 1px 1px 2px; }
.record-choice { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); padding: 7px 8px; }
.record-choice.active { border-color: var(--teal); background: var(--mint); }
.record-choice .small { display: block; }
.detail { padding-top: 11px; border-top: 1px solid var(--line); }
.detail p { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail .small { margin: 5px 0; }
.match { padding: 8px; margin-top: 6px; border-radius: 7px; background: var(--mint); display: grid; gap: 4px; }
.match .button { justify-self: start; }
dialog { width: min(445px, calc(100% - 24px)); max-height: calc(100% - 28px); padding: 18px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: 0 15px 60px #0a1b32a0; }
dialog::backdrop { background: #061c32a8; }
dialog .dialog-photo { width: 100%; max-height: 206px; object-fit: cover; border-radius: 8px; margin-bottom: 11px; }
dialog .footnote { padding-top: 8px; margin-top: 10px; color: var(--muted); font-size: .73rem; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .81rem; margin: 8px 0; }
.check input { min-height: 18px; width: 18px; flex: none; }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 800px) {
    .top-inner { padding: 0 14px; gap: 9px; min-height: 57px; }
    .brand, .brand img { width: 95px; min-height: 0; }
    .area { padding-left: 9px; font-size: .72rem; }
    .account { gap: 4px; display: grid; align-content: center; }
    .account label { text-align: right; font-size: .66rem; }
    .account select { min-height: 32px; padding: 2px 4px; font-size: .75rem; max-width: 125px; }
    .shell { padding: 17px 12px 25px; }
    .heading { align-items: flex-start; margin-bottom: 9px; }
    .heading p { font-size: .82rem; line-height: 1.35; margin-top: 5px; }
    .heading .button { margin-top: 1px; min-height: 34px; padding: 5px 7px; font-size: .73rem; }
    .tabs { gap: 12px; }
    .tab { font-size: .77rem; padding: 7px 2px; }
    .board, body.internal .board { grid-template-columns: minmax(0, 1fr); gap: 10px; grid-template-areas: "map" "quote" "panel"; }
    .board:has(.quote-summary[hidden]) { grid-template-areas: "map" "panel"; }
    .map { height: clamp(220px, 38vh, 350px); }
    .map-bar { padding: 7px; align-items: center; }
    .map-footer { padding: 8px; }
    .map-button { padding: 6px; }
    .search input { padding-left: 7px; }
    .panel { padding: 13px; }
    .button, .icon-button { min-height: 40px; }
    .button.compact { min-height: 34px; }
    .stop-buttons .icon-button { min-width: 35px; }
}
@media (max-width: 365px) { .area { display: none; } }


.pin-film > div { height: 100%; }


.quote-summary { grid-area:quote; display:grid; grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr); gap:12px; min-width:0; }
.quote-cost { min-height:100px; display:grid; align-content:center; gap:4px; border-radius:12px; background:#102f45; color:#fff; padding:13px 16px; }
.quote-cost h2 { font-weight:650; font-size:.9rem; color:#e4f0f6; }
.quote-cost strong { font-size:clamp(1.2rem,3vw,1.9rem); letter-spacing:-.025em; line-height:1.15; }
.quote-cost small { font-size:.77rem; color:#dfebf5; }
.quote-group {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 84px;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
}
.quote-group input { text-align: center; font-variant-numeric: tabular-nums; }
#quote-terms { grid-column: 1 / -1; margin-top: 3px; line-height: 1.45; }
#quote-interactive { grid-column: 1 / -1; margin: 3px 0; padding-inline-start: 1.25em; overflow-wrap: anywhere; }
#quote-language-fees { grid-column: 1 / -1; font-weight: 700; }
.app-theme-dark #quote-language-fees { color: #efc789; }
#quote-languages, #quote-submit { grid-column: 1 / -1; }
#quote-languages .tour-languages { margin: 6px 0 0; }
#quote-submit { margin-top: 7px; }
.draft-save-status { margin: 0 0 8px; color: var(--muted); font-size: .78rem; }
.draft-save-status[data-state="error"] { color: var(--error); }
.mobile-quote { display: none; }
.quote-route { min-width:0; background:var(--white); border:1px solid var(--line); border-radius:12px; }
.quote-route h3 { padding:10px 12px 7px; font-size:.83rem; }
.quote-summary dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; align-items:stretch; }
.quote-summary dl div { min-width:0; padding:8px 10px; display:grid; align-content:center; gap:6px; }
.quote-summary dl div + div { border-left:1px solid var(--line); }
.quote-summary dt { font-size:.75rem; color:var(--muted); font-weight:640; }
.quote-summary dd { margin:0; font-size:clamp(.98rem,1.9vw,1.28rem); line-height:1.15; font-weight:750; font-variant-numeric:tabular-nums; }
.quote-summary dl small { display:block; margin-top:4px; font-size:.72rem; font-weight:400; color:var(--muted); }
.quote-summary dl div:last-child { background:#edf3f7; border-radius:0 11px 11px 0; color:var(--navy); }
.stop { padding:8px 10px; }
.stop-leg { display:flex; justify-content:space-between; gap:8px; margin-bottom:7px; padding-bottom:7px; border-bottom:1px solid var(--line); color:var(--muted); font-size:.74rem; }
.stop-leg strong { color:var(--teal); text-align:right; }
.stop-content { list-style:none; padding:0; margin:6px 0 0; color:var(--navy); display:grid; gap:5px; }
.stop-content li { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 9px; font-size:.78rem; background:#edf3f7; border-radius:6px; padding:5px 7px; }
.stop-content li span:first-child { flex:1; }
.stop-content li small { display:block; margin-top:3px; font-size:.75rem; color:var(--muted); }
.price-panel { max-width:650px; }
.price-row { display:flex; justify-content:space-between; flex-wrap:wrap; gap:7px; padding:12px 0; border-bottom:1px solid var(--line); font-size:.89rem; }
.price-panel .button { margin-top:12px; }
#preview-loading { color:var(--muted); }
@media(max-width:800px) {
    .quote-summary { grid-template-columns:1fr; gap:6px; }
    .quote-cost { min-height:68px; padding:8px 10px; }
    .quote-summary dl div { padding:8px 5px; }
    .quote-summary dt { line-height:1.17; }
    .quote-summary dd { font-size:.92rem; }
}

.map-body { position:relative; }
.map-credit { position:absolute; z-index:2; right:2px; bottom:2px; color:#3d505c; }
.map-credit summary { display:grid; width:32px; height:32px; place-items:end; padding:3px; list-style:none; }
.map-credit summary::-webkit-details-marker { display:none; }
.map-credit summary::marker { content:""; }
.map-credit summary span { display:grid; width:18px; height:18px; place-items:center; background:#fff; border:1px solid var(--line); border-radius:50%; font-size:13px; line-height:1; }
.map-credit-links { position:absolute; right:3px; bottom:100%; display:grid; gap:7px; min-width:max-content; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; box-shadow:0 2px 8px #122b4925; font-size:12px; }
.map-credit:not([open]) .map-credit-links { display:none; }
.map-credit-links a { color:inherit; text-decoration:underline; text-underline-offset:1px; }
@media (pointer:coarse) { .map-credit summary { width:44px; height:44px; } }
.results .result-item { display:flex; align-items:center; justify-content:space-between; gap:7px; }
.results .result-action { flex:none; font-size:.73rem; font-weight:700; color:var(--teal); }
.results .results-source { padding:6px 9px; font-size:.72rem; }
.tour-languages { min-width: 0; margin: 0 0 12px; padding: 8px 11px 10px; border: 1px solid var(--line); border-radius: 10px; }
.tour-languages legend { padding: 0 5px; font-size: .83rem; font-weight: 700; }
.language-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.language-option { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .82rem; }
.language-option:has(:checked) { border-color: var(--teal); background: var(--mint); }
.language-option input { width: 1rem; height: 1rem; min-height: 0; margin: 0; accent-color: var(--teal); }
.visit-schedule { margin-top:5px; color:var(--muted); font-size:.75rem; }
.visit-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }

.map-loading { position:absolute; left:50%; top:53%; transform:translate(-50%,-50%); z-index:2; padding:7px 10px; border-radius:6px; background:#fff; color:var(--ink); font-size:.8rem; text-align:center; pointer-events:none; }
.pin-hint { position:absolute; bottom:10px; left:10px; z-index:2; max-width:calc(100% - 60px); padding:8px 11px; color:var(--ink); background:var(--white); border:1px solid var(--line); border-radius:10px; font-size:.86rem; pointer-events:none; }

/* City Reveal public Tour, Tema scuro. Tokens and tile filter from the app's styles.css. */
body.app-theme-dark {
    --cr-bg: #101927;
    --cr-panel: #172338;
    --cr-panel-raised: #1d2c43;
    --cr-ink: #f1f6ff;
    --cr-muted: #b0c2d9;
    --cr-line: #344961;
    --cr-accent: #77c6f4;
    --cr-accent-ink: #10243c;
    --cr-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --cr-radius-control: 10px;
    --cr-radius-card: 16px;
    --cr-radius-sheet: 24px;
    --navy: var(--cr-ink);
    --ink: var(--cr-ink);
    --muted: var(--cr-muted);
    --teal: var(--cr-accent);
    --mint: var(--cr-panel-raised);
    --line: var(--cr-line);
    --white: var(--cr-panel);
    --error: #f2b794;
    color-scheme: dark;
    background: var(--cr-bg);
    color: var(--cr-ink);
    font-family: var(--cr-font);
    min-height: 100dvh;
}
.app-theme-dark :focus-visible { outline-color: var(--cr-accent); }
.app-theme-dark .top { background: var(--cr-bg); color: var(--cr-ink); border-color: var(--cr-line); }
.app-theme-dark .top-inner { min-height: 62px; }
.app-theme-dark .area, .app-theme-dark .account label { color: var(--cr-muted); }
.app-theme-dark .area { border-color: var(--cr-line); }
.app-theme-dark .account select { background: var(--cr-panel); border-color: var(--cr-line); color: var(--cr-ink); }
.app-theme-dark .shell { padding-top: 20px; }
.app-theme-dark h1 { font-size: clamp(1.6rem, 3vw, 1.96rem); font-weight: 650; letter-spacing: -.025em; }
.app-theme-dark .heading p { margin-top: 6px; }
.app-theme-dark .tabs { gap: 6px; align-items: stretch; padding-bottom: 10px; }
.app-theme-dark .tab { min-height: 41px; border: 1px solid transparent; border-radius: var(--cr-radius-control); padding: 6px 13px; }
.app-theme-dark .tab:hover { background: var(--cr-panel); }
.app-theme-dark .tab[aria-current="page"] { background: var(--cr-panel-raised); border-color: var(--cr-accent); }
.app-theme-dark .board { grid-template-columns: minmax(0, 1fr) minmax(350px, 405px); grid-template-areas: "map quote" "map panel"; gap: 12px 16px; }
.app-theme-dark .board:has(.quote-summary[hidden]) { grid-template-areas: "map panel"; }
.app-theme-dark .map-card { position: sticky; top: 12px; }
.app-theme-dark .panel, .app-theme-dark .map-card, .app-theme-dark .record-card, .app-theme-dark .empty-pane {
    border-radius: var(--cr-radius-card);
}
.app-theme-dark .map-header { padding: 9px 12px 0; }
.app-theme-dark .map-bar { padding: 9px 12px 10px; }
.app-theme-dark .map { height: clamp(300px, calc(100dvh - 350px), 640px); background: #20262b; }
.app-theme-dark #map .leaflet-tile-pane { filter: grayscale(1) invert(.94) sepia(.6) hue-rotate(155deg) saturate(1.5) brightness(.9) contrast(.9); }
.app-theme-dark #map .leaflet-bar a {
    background: var(--cr-panel); color: var(--cr-accent); border-color: var(--cr-line); width: 34px; height: 34px; line-height: 34px;
}
.app-theme-dark #map .leaflet-bar { border: 1px solid var(--cr-line); border-radius: var(--cr-radius-control); overflow: hidden; }
.app-theme-dark .map-loading,
.app-theme-dark .map-credit-links { background: var(--cr-panel); color: var(--cr-ink); }
.app-theme-dark .map-credit summary span { background: var(--cr-panel); color: var(--cr-muted); font-size: 10px; }
.app-theme-dark .map-footer { border-top: 1px solid var(--cr-line); }
.app-theme-dark input, .app-theme-dark select, .app-theme-dark textarea { background: var(--cr-bg); border-color: var(--cr-line); border-radius: var(--cr-radius-control); }
.app-theme-dark input::placeholder, .app-theme-dark textarea::placeholder { color: var(--cr-muted); opacity: 1; }
.app-theme-dark .button, .app-theme-dark .icon-button {
    background: var(--cr-panel-raised); color: var(--cr-ink); border-color: var(--cr-line); border-radius: var(--cr-radius-control); font-weight: 600;
}
.app-theme-dark .button:hover, .app-theme-dark .icon-button:hover, .app-theme-dark .button[aria-pressed="true"] { border-color: var(--cr-accent); color: var(--cr-accent); }
.app-theme-dark .button.primary { background: var(--cr-accent); border-color: var(--cr-accent); color: var(--cr-accent-ink); }
.app-theme-dark .button.primary:hover { background: #a4ddff; }
.app-theme-dark .search-icon { background: transparent; color: var(--cr-accent); }
.app-theme-dark .results { background: var(--cr-panel); box-shadow: 0 20px 52px #0006; }
.app-theme-dark .results button { background: var(--cr-panel); border-color: var(--cr-line); }
.app-theme-dark .results button:is(:hover,:focus-visible) { background: var(--cr-panel-raised); }
.app-theme-dark .results .result-item { min-height: 52px; }
.app-theme-dark .results .result-item > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.app-theme-dark .quote-summary { grid-template-columns: 1fr; gap: 8px; }
.app-theme-dark .quote-cost {
    min-height: 0; padding: 11px 14px; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; align-items: baseline;
    background: linear-gradient(120deg,#283045,#1b2537); border: 1px solid rgba(223,181,125,.23); color: #edf4fc;
}
.app-theme-dark .quote-cost h2 { color: inherit; }
.app-theme-dark .quote-cost strong { color: #efc789; font-size: 1.12rem; }
.app-theme-dark .quote-cost small { grid-column: 1 / -1; color: var(--cr-muted); }
.app-theme-dark .quote-route { border-radius: var(--cr-radius-card); }
.app-theme-dark .quote-route h3 { padding: 10px 12px; border-bottom: 1px solid var(--cr-line); color: var(--cr-ink); }
.app-theme-dark .quote-summary dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
.app-theme-dark .quote-summary dl div { padding: 8px 12px; gap: 4px; }
.app-theme-dark .quote-summary dl div:nth-child(3) { border-left: 0; }
.app-theme-dark .quote-summary dl div:nth-child(n + 3) { border-top: 1px solid var(--cr-line); }
.app-theme-dark .quote-summary dd { font-size: 1.04rem; }
.app-theme-dark .quote-summary dl div:last-child { background: var(--cr-panel-raised); color: var(--cr-accent); border-radius: 0 0 15px 0; }
.app-theme-dark .empty-tour { display: grid; gap: 12px; }
.app-theme-dark .empty-tour p { color: var(--cr-muted); font-size: .9rem; line-height: 1.45; }
.app-theme-dark .empty-tour .small { font-size: .79rem; }
.app-theme-dark .empty-tour button { justify-self: start; }
.app-theme-dark .stops { gap: 9px; }
.app-theme-dark .stop { padding: 10px; background: var(--cr-bg); border-color: var(--cr-line); border-radius: var(--cr-radius-control); }
.app-theme-dark .stop-main strong, .app-theme-dark .film-text strong { white-space: normal; overflow-wrap: anywhere; }
.app-theme-dark .stop-inner { align-items: flex-start; }
.app-theme-dark .stop-index, .app-theme-dark .pin-number { color: var(--cr-accent-ink); background: var(--cr-accent); }
.app-theme-dark .pin-number { border-color: var(--cr-bg); }
.app-theme-dark .pin-number.active { background: #efc789; }
.app-theme-dark .stop-content li { background: #1b2b43; color: var(--cr-ink); padding: 6px 8px; }
.app-theme-dark .stop-content strong { color: #a0d6db; white-space: nowrap; }
.app-theme-dark .stop-content li span:nth-child(3) { color: #efc789; }
.app-theme-dark .badge { background: var(--cr-panel-raised); color: var(--cr-ink); }
.app-theme-dark .badge.draft { color: #efc789; }
.app-theme-dark .match, .app-theme-dark .film-card, .app-theme-dark .film-card:hover { background: var(--cr-panel-raised); }
.app-theme-dark .film-photo, .app-theme-dark .pin-film { background: var(--cr-bg); border-color: var(--cr-line); }
.app-theme-dark dialog { background: var(--cr-panel); border-color: var(--cr-line); border-radius: var(--cr-radius-sheet); padding: 20px; }
.app-theme-dark dialog form > .primary { width: 100%; }
@media (max-width: 800px) {
    .app-theme-dark .top-inner { min-height: 54px; }
    .app-theme-dark .account label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    .app-theme-dark .shell { padding-top: 13px; }
    .app-theme-dark .tabs { padding-bottom: 7px; }
    .app-theme-dark .tab { min-height: 36px; padding-inline: 8px; }
    .app-theme-dark .board { grid-template-columns: minmax(0,1fr); grid-template-areas: "map" "quote" "panel"; gap: 9px; }
    .app-theme-dark .board:has(.quote-summary[hidden]) { grid-template-areas: "map" "panel"; }
    .app-theme-dark .map-card { position: relative; top: auto; }
    .app-theme-dark .map { height: clamp(216px, 32dvh, 312px); }
    .app-theme-dark .map-header { padding-inline: 8px; }
    .app-theme-dark .map-header h2 { font-size: .89rem; }
    .app-theme-dark .map-header .button { font-size: .72rem; }
    .app-theme-dark .map-bar { padding: 7px 8px 8px; }
    .app-theme-dark .map-footer { align-items: flex-start; }
    .app-theme-dark .quote-cost { padding: 9px 11px; }
    .app-theme-dark .quote-cost strong { font-size: 1rem; }
    .app-theme-dark .stop-inner { gap: 5px; }
    .app-theme-dark .stop-buttons { gap: 2px; }
    .app-theme-dark .stop-buttons .icon-button { min-width: 29px; min-height: 36px; }
}
@media (max-width: 365px) {
    .app-theme-dark .map-bar { align-items: stretch; flex-wrap: wrap; }
    .app-theme-dark .map-bar .search { flex-basis: 100%; }
    .app-theme-dark .map-button { margin-left: auto; }
}
@media (max-width: 800px) {
    #quote-summary { scroll-margin-top: 78px; }
    .app-theme-dark:has(#mobile-quote:not([hidden])) .shell { padding-bottom: calc(105px + env(safe-area-inset-bottom)); }
    .mobile-quote {
        position: fixed;
        z-index: 9;
        inset: auto 0 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 9px;
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
        background: var(--cr-panel);
        color: var(--cr-ink);
        border-top: 1px solid var(--cr-line);
        box-shadow: 0 -5px 18px #10192766;
    }
    .mobile-quote strong, .mobile-quote small { display: block; }
    .mobile-quote strong { color: #efc789; font-size: .99rem; }
    .mobile-quote small { margin-top: 3px; color: var(--cr-muted); font-size: .72rem; }
    .mobile-quote .button { flex-shrink: 0; }
}

.pricing-example {margin:12px 0;border:1px solid var(--cr-line,#cfdae1);border-radius:10px;padding:12px}
.pricing-example summary {cursor:pointer;font-weight:650}
.pricing-example dl {margin:10px 0}
.pricing-example dl>div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:baseline;gap:8px;padding:7px 0;border-bottom:1px solid var(--cr-line,#cfdae1)}
.pricing-example dt,.pricing-example dd {margin:0}
.pricing-example dd {display:flex;align-items:baseline;flex-wrap:wrap;justify-content:flex-end;gap:4px 12px;font-variant-numeric:tabular-nums}
.pricing-example dd span,.pricing-example p {font-size:.83rem;color:var(--cr-muted,#445462)}
.pricing-example dd strong {white-space:nowrap}
.pricing-example p {line-height:1.5;margin:0}
#quote-value {text-align:end;font-variant-numeric:tabular-nums}
#quote-tax {margin-bottom:2px}


.tour-agency .bp-brand .portal-brand-lockup {display:inline-flex;gap:11px;align-items:center;min-width:0}
.tour-agency .bp-brand .portal-brand-lockup img {width:151px;height:54px;object-fit:cover;object-position:center}
.portal-brand-motto {color:#fff;font-size:.72rem;font-weight:650;text-transform:uppercase;line-height:1.25}
.format-rate .rate-amount {flex:none;max-width:45%;text-align:end}
.rate-amount span {overflow-wrap:anywhere}
@media (max-width:680px) {
    .tour-agency .bp-topbar {min-height:75px}
    .tour-agency .bp-top-actions {flex:none}
    .tour-agency .bp-top-actions .bp-button {width:auto;white-space:nowrap;padding-inline:10px}
    .tour-agency .bp-brand .portal-brand-lockup {display:grid;gap:0;flex:0 1 120px}
    .tour-agency .bp-brand .portal-brand-lockup img {width:104px;height:38px}
    .portal-brand-motto {font-size:.61rem}
    #mobile-quote-tax {line-height:1.25}
}
