html[data-theme=light]{color-scheme:light;--ink:#202326;--paper:#f7f4ee;--white:#fff;--muted:#606368;--line:#d9d7d2;--gold:#c6a779;--accent:#78562c;--soft:#f0e7d9;--error:#a32a22;--alert:#fff0ed}
html[data-theme=dark]{color-scheme:dark;--ink:#f4f2ee;--paper:#161819;--white:#232627;--muted:#b6b9ba;--line:#454849;--gold:#c6a779;--accent:#e0bd86;--soft:#302b23;--error:#ffb5ab;--alert:#3b2020}
html,body{background:var(--paper)!important;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:18px;line-height:1.45;min-height:100%;scroll-padding-top:90px}
body{padding-bottom:env(safe-area-inset-bottom)}
.pwa-header{background:#232527;color:#c6a779;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px max(20px,env(safe-area-inset-right)) 14px max(20px,env(safe-area-inset-left));max-width:640px;margin:auto;min-height:74px}
.pwa-brand{display:flex;align-items:center;min-height:44px}.pwa-brand img{width:139px;height:auto}.pwa-settings{border:1px solid #76634a;color:#e5cda7;background:transparent;border-radius:12px;padding:10px 14px;font-size:16px;min-height:46px}
.booking{max-width:640px;margin:auto;border:0;border-radius:0;background:var(--paper);box-shadow:none;padding-bottom:20px;overflow:visible}
.top{display:block!important;border:0;padding:24px 20px 16px!important}.top h1{font-size:28px!important;line-height:1.2;letter-spacing:-.7px;margin:20px 0 0}.pwa-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:15px;color:var(--muted)}.pwa-bars{display:flex;gap:7px;width:46%}.pwa-bars i{display:block;flex:1;height:6px;background:var(--line);border-radius:8px}.pwa-bars i.active{background:var(--gold)}
.tabs{margin:0 20px;padding:5px!important;gap:4px!important;border:1px solid var(--line);border-radius:14px;background:var(--white)}.tab{flex:1;justify-content:center;padding:12px 6px!important;border:0;border-radius:10px;font-size:17px!important;min-height:52px;color:var(--muted);white-space:normal!important}.tab svg{display:none}.tab[aria-selected=true]{background:var(--gold);color:#201d18}
.content,.route-stage .content{padding:22px 20px!important}.booking .steps,.booking.route-stage .steps{display:none!important}.field,.route-stage .field{margin-bottom:20px}.field>span,.label{font-size:15px!important;font-weight:600;margin-bottom:8px;line-height:1.4}.field input,.field select,input[type=date],input[type=time],.route-stage input,.route-stage select{height:58px;padding:14px;font-size:18px!important;border-radius:12px;line-height:1.4;background:var(--white);color:var(--ink);border-color:var(--line)}textarea{font-size:18px;min-height:112px;border-radius:12px;background:var(--white)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input[type=checkbox]{width:24px;height:24px;min-width:24px;accent-color:var(--gold)}.grid2{gap:14px!important}.pickup-schedule{grid-template-columns:1fr 1fr!important}
.location-actions{margin:0 0 10px;gap:6px!important;flex-wrap:wrap}.location-actions button,.map-choice{font-size:14px!important;min-height:44px!important;color:var(--accent);padding:8px 0}#destination-field>.map-choice{position:static;max-width:none;float:right;margin:-10px 0 0}.address-status{font-size:14px;line-height:1.5;margin-top:7px}.listbox{background:var(--white);border-radius:12px;box-shadow:0 10px 30px #0003;max-height:45vh!important;z-index:30}.place{font-size:18px;min-height:58px;padding:14px;background:var(--white);color:var(--ink);border-color:var(--line)}.place small{font-size:14px}.primary,.route-stage .primary{font-size:18px;min-height:58px;background:var(--gold);color:#201d18;border-radius:12px;padding:15px 18px;font-weight:700}.primary:hover{background:#d7b989}.secondary{background:var(--white);color:var(--ink);font-size:17px;min-height:50px;border-radius:12px}.primary:disabled{opacity:.55}.pwa-next-hint{font-size:16px;color:var(--muted);margin:6px 0 20px;line-height:1.5}
#choose-vehicle{display:none} .route-stage #choose-vehicle{display:flex!important;position:sticky;bottom:max(12px,env(safe-area-inset-bottom));z-index:10;box-shadow:0 0 0 10px var(--paper)}
#calculate{position:sticky;bottom:max(12px,env(safe-area-inset-bottom));z-index:10;box-shadow:0 0 0 10px var(--paper)}
.pwa-party{margin:20px 0 8px}.pwa-counter{display:flex;align-items:center;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--white);padding:4px}.pwa-counter button{min-width:40px;min-height:48px;border:0;border-radius:9px;background:var(--soft);color:var(--ink);font-size:24px}.pwa-counter input{border:0!important;padding:4px!important;text-align:center;height:48px!important;appearance:textfield;box-shadow:none}.pwa-counter input::-webkit-inner-spin-button{appearance:none}
.sectionlabel{font-size:16px;letter-spacing:0;text-transform:none;color:var(--ink);margin:16px 0}.fleet{grid-template-columns:1fr!important;gap:14px!important}.vehicle,.fleet .bus25-request{display:grid!important;grid-template-columns:105px minmax(0,1fr);column-gap:16px;align-items:center;background:var(--white);padding:16px!important;min-height:122px;border-radius:14px;color:var(--ink)}.vehicle[hidden],.fleet .vehicle[hidden],.fleet .bus25-request[hidden]{display:none!important}.vehicle:last-child{display:grid!important}.vehicle img,.vehicle:last-child img,.fleet .bus25-request img{grid-column:1;grid-row:1/4;width:100%;height:66px!important;margin:0;transform:none!important;mix-blend-mode:normal;background:#fff;border-radius:8px;padding:5px}.vehicle strong,.fleet .bus25-request strong{font-size:18px}.vehicle small,.fleet .bus25-request small{font-size:14px;line-height:1.5}.vehicle-price{font-size:22px;color:var(--accent);margin-top:6px}.vehicle[aria-pressed=true]{background:var(--soft);border:2px solid var(--gold)}.vehicle:disabled .vehicle-price{font-size:15px;color:var(--muted)}
.help,.cancellation-note,#regional-note,.price-hint,.carcap,.rule,.summary dl,.consent,summary,.result-note,.error,.contact,.linkbutton,.addstop{font-size:15px!important;line-height:1.6}.help,.cancellation-note,#regional-note,.price-hint,.contact{color:var(--muted)}.linkbutton,.addstop,.contact a{color:var(--accent)}#edit-route{min-height:44px;text-align:left}.consent{align-items:center;min-height:48px;gap:12px}.summary,.review{background:var(--white);border-color:var(--line);border-radius:14px}.review{font-size:17px}.summary .amount{font-size:32px}.price-label{font-size:14px;color:var(--accent)}.result-note{background:var(--soft);border-color:var(--line);color:var(--ink)}.error{background:var(--alert);color:var(--error);border-color:var(--error)}.preview-note{display:none}.timing-note{background:var(--soft);font-size:15px}.booking .footerbuttons{flex-wrap:wrap;gap:12px}.footerbuttons .secondary{min-width:80px}
.pwa-dialog,#point-dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:20px;width:calc(100% - 32px);max-width:480px;padding:24px;max-height:85dvh;overflow:auto}.pwa-dialog::backdrop{background:#0009}.pwa-dialog h2{font-size:24px}.pwa-dialog .primary{margin-top:20px}.pwa-languages{display:flex;gap:12px;margin:16px 0}.pwa-languages a{padding:12px 18px;border:1px solid var(--line);border-radius:10px;text-decoration:none}.pwa-languages [aria-current]{background:var(--gold);color:#201d18}.pwa-account{display:block;padding:16px 0;color:var(--accent)}.pwa-offline{max-width:640px;margin:auto;padding:12px 20px;color:var(--error);background:var(--alert);font-size:15px}
@media(min-width:641px){body{padding-top:24px}.pwa-header{border-radius:20px 20px 0 0}.booking{border-radius:0 0 20px 20px}.top{padding-top:28px!important}}
@media(max-width:360px){.content,.route-stage .content{padding:18px 14px!important}.top{padding:20px 14px 14px!important}.tabs{margin:0 14px}.pwa-counter button{min-width:34px}.pickup-schedule{gap:10px!important}input[type=date],input[type=time]{padding:10px!important}.vehicle{grid-template-columns:85px minmax(0,1fr)}}

@media(max-width:360px){.pickup-schedule{grid-template-columns:1fr!important;gap:0!important}}

/* One profile entry keeps the booking form near the top. */
.pwa-header{flex-direction:row;align-items:center;gap:12px}.pwa-profile-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;flex-shrink:0}.pwa-profile-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.pwa-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.pwa-profile-heading h2{margin:0}.pwa-profile-close{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--ink);font-size:28px;line-height:1}.pwa-profile-row,.pwa-profile-section>summary{min-height:60px;padding:18px 0;font-size:18px!important;font-weight:600;color:var(--ink);text-decoration:none;cursor:pointer}.pwa-profile-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.pwa-profile-section{border-bottom:1px solid var(--line)}.pwa-profile-section .field{margin:0 0 20px}.pwa-profile-section select{width:100%;min-height:52px;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:17px;background:var(--white);color:var(--ink)}.pwa-profile .pwa-languages{flex-wrap:wrap;gap:8px;margin:0 0 20px}.pwa-profile .pwa-languages a{font-size:16px;padding:12px}.pwa-support-link{display:block;padding:12px 0 20px;color:var(--accent)}.pwa-profile-section .secondary{width:100%;margin-bottom:16px}.pwa-profile{padding:20px;overscroll-behavior:contain}.pwa-profile-section>summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

.pwa-profile-button{border:0;background:transparent;padding:8px;min-width:48px;min-height:48px;border-radius:0}.pwa-profile-button svg{width:32px;height:32px}.pwa-contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 20px}.pwa-contact-button{display:flex;flex:1;align-items:center;justify-content:center;min-height:52px;padding:12px 18px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);font-size:17px;font-weight:600;text-decoration:none}.pwa-contact-button:hover{background:var(--soft)}

.pwa-step-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.pwa-back{min-height:44px;padding:8px 12px;border:1px solid var(--gold);border-radius:10px;background:var(--soft);color:var(--accent);font-size:16px;font-weight:600;white-space:nowrap}.pwa-progress{gap:12px}.pwa-bars{flex:1;max-width:46%;min-width:64px}.pwa-step-nav>span{white-space:nowrap}


.pwa-brand{background:transparent;border-radius:0;padding:0}.pwa-brand img{display:block;width:170px;height:auto;max-width:46vw}


/* Long translations must fit inside the embedded booking form. */
.pwa-next-hint{white-space:normal!important;overflow-wrap:anywhere;max-width:100%;min-width:0}

/* The progress header owns back navigation; retain hidden controls for its handlers. */
.booking:has(#pwa-back) #edit-route,
.booking:has(#pwa-back) #back-journey,
.booking:has(#pwa-back) #back-contact{display:none!important}

/* Confirmation follows the selected theme, overriding the shared form's inline palette. */
html[data-theme=dark] #booking-success{background:#19372a!important;color:#d7f3e2!important;border-color:#52866a!important}

.pwa-header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.pwa-whatsapp{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:48px;padding:8px}
.pwa-whatsapp img{width:28px;height:28px}
.pwa-menu-whatsapp{gap:12px;justify-content:flex-start}
.pwa-menu-whatsapp:before{content:'';width:24px;height:24px;flex-shrink:0;background:url('/whatsapp.svg') center/contain no-repeat}
.pwa-profile .pwa-languages a{flex:1;text-align:center}

/* Two primary cards must override the PWA's legacy horizontal vehicle rows. */
.booking.vehicle-stage #fleet > .vehicle,
.booking.vehicle-stage #fleet > .vehicle:last-child{
 display:flex!important;flex-direction:column;align-items:stretch;justify-content:flex-start;
 min-width:0;min-height:0;padding:12px 10px!important;gap:0;text-align:left;
}
.booking.vehicle-stage #fleet > .vehicle img{
 grid-area:auto;width:100%;max-width:100%;height:54px!important;
 object-fit:contain;flex:none;margin:0 0 8px!important;padding:4px;border-radius:8px;
}
.booking.vehicle-stage #fleet > .vehicle strong,
.booking.vehicle-stage #fleet > .vehicle small,
.booking.vehicle-stage #fleet > .vehicle .vehicle-price{
 grid-area:auto;min-width:0;max-width:100%;white-space:normal;overflow-wrap:normal;word-break:normal;
}
.booking.vehicle-stage #fleet > .vehicle strong{font-size:16px;line-height:1.3}
.booking.vehicle-stage #fleet > .vehicle small{font-size:12px;line-height:1.4;margin-top:4px}
.booking.vehicle-stage #fleet > .vehicle .vehicle-price{font-size:20px;line-height:1.3;margin-top:auto;padding-top:8px;color:var(--accent)}
.booking.vehicle-stage #fleet > .vehicle:disabled .vehicle-price{font-size:12px}
.booking.vehicle-stage #fleet > .vehicle[aria-pressed=true]:after{right:7px;top:5px;font-size:16px}
.booking.vehicle-stage .pwa-party{margin:12px 0 4px}
.booking.vehicle-stage .pwa-party .field{margin-bottom:10px}
.booking.vehicle-stage #regional-note{font-size:12px!important;line-height:1.45;margin:0 0 10px}
.booking.vehicle-stage .sectionlabel{margin:10px 0}

.booking.vehicle-stage #fleet > .vehicle[hidden]{display:none!important}

/* Theme only the raster tiles so the gold route and pins keep their contrast. */
html[data-theme=dark] .booking-route-map .leaflet-tile-pane,html[data-theme=dark] #point-map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(1.6) contrast(1.25)}
html[data-theme=dark] .leaflet-container{background:#232627}
html[data-theme=dark] .leaflet-bar a,html[data-theme=dark] .leaflet-control-attribution{background:#232627;color:#f4f2ee}
html[data-theme=dark] .leaflet-control-attribution a{color:#e0bd86}

/* Make additional vehicle classes easy to discover beneath the two main cards. */
#more-categories{margin:18px 0 22px}
#more-categories>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:56px;padding:14px 18px!important;border:2px solid var(--gold);border-radius:12px;background:var(--soft);color:var(--accent);font-size:17px!important;font-weight:700;list-style:none;cursor:pointer}
#more-categories>summary::-webkit-details-marker{display:none}
#more-categories>summary::after{content:'+';font-size:28px;line-height:1}
#more-categories[open]>summary::after{content:'−'}
#more-categories>summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#more-categories[open]>summary{margin-bottom:14px}
