/* MyanMyanGo / City Paper — inspired by the supplied taxi UI reference. */
:root{--bg:#f1f2f3;--surface:#fff;--raised:#f5f6f7;--text:#14171b;--muted:#636a73;--line:#e3e5e8;--accent:#687600;--on-accent:#252a31}
:root[data-theme=night]{--bg:#101113;--surface:#1a1c20;--raised:#22252a;--text:#f1f2f4;--muted:#aeb4be;--line:#34383e;--accent:#88b6ff;--on-accent:#edf0f4}
body{line-height:1.65}header,.site-header{max-width:1320px;min-height:84px;border-bottom:0}.brand{font-size:1.625rem;letter-spacing:-1.2px}.brand>span{color:var(--text)}.brand .dot{color:var(--accent)}.city{color:var(--muted)}.portal-nav{border-bottom:0;padding:0 0 15px;gap:6px}.portal-nav a{border:0;background:transparent;color:var(--muted);font-size:0.8125rem;padding:10px 23px;border-radius:40px}.portal-nav a[aria-current=page]{background:var(--text);color:var(--surface)}header nav .active{border-color:var(--text);color:var(--text)}.hero{padding:24px 0 36px;gap:24px;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)}.booking{background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:24px;box-shadow:0 12px 45px #151a2510}.trip-topline{margin:0 0 8px}.trip-topline button{color:var(--muted);border:0}.trip-steps{gap:12px;margin-bottom:22px}.trip-steps button{font-size:0.75rem;border-bottom-color:var(--line)}.trip-steps button>span{border:0;background:var(--raised);color:var(--muted)}.trip-steps button[aria-current=step]{border-color:var(--text)}.trip-steps button[aria-current=step]>span{background:var(--text);color:var(--surface)}.time-switch{background:var(--raised);padding:4px;border-radius:40px;gap:3px}.time-switch button{flex:1;border:0;background:transparent;border-radius:30px;color:var(--muted);padding:10px 8px}.time-switch .selected{background:var(--surface);color:var(--text);box-shadow:0 2px 8px #0000000b}.location-picker{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:15px;min-height:80px}.location-label{font-weight:500;color:var(--muted);font-size:0.75rem}.location-value{font-weight:600}.field-number.pickup-color{background:var(--text);color:var(--surface);border:0}.field-number.dropoff-color{background:#eaf1ff;color:var(--accent);border:0}.location-pin-icon{width:21px;color:var(--accent)}.pickup-note input{background:var(--raised);border:0;border-radius:12px}.location-tools button{background:var(--raised);border:0;border-radius:12px;color:var(--accent)}.price-btn,.primary,.action,button[type=submit]{background:var(--text);color:var(--surface);border:1px solid var(--text);border-radius:40px;box-shadow:none;min-height:52px}.price-btn:hover,.primary:hover,.action:hover,button[type=submit]:hover{background:var(--text);color:var(--surface);filter:brightness(.9);box-shadow:0 5px 16px #00000020}.price-btn span:last-child{display:grid;place-items:center;width:30px;height:30px;background:var(--surface);color:var(--text);border-radius:50%;font-size:1.25rem}.real-map-panel{border:1px solid var(--line);border-radius:26px;overflow:hidden;background:var(--surface);box-shadow:0 12px 45px #151a2510;margin-top:0}.map-head{padding:18px 20px}.map-mode{gap:5px}.map-mode button{border-radius:30px;background:var(--raised);border:0;color:var(--muted)}.map-mode button[aria-pressed=true]{border:0;background:var(--text);color:var(--surface);box-shadow:none}.map-instruction{color:var(--muted)}#map{height:440px;background:#e3e7e8}#map .leaflet-tile-pane{filter:grayscale(.88) saturate(.28) contrast(.88) brightness(1.06)}:root[data-theme=night] #map .leaflet-tile-pane{filter:grayscale(.88) brightness(.65) contrast(.95)}.map-home{border-radius:30px;box-shadow:0 3px 12px #00000015}.map-actions button{border-radius:30px;background:var(--raised);border:0;color:var(--text)}#confirm-pin{background:var(--text);color:var(--surface);border-radius:30px}#cancel-pin{border-radius:30px}.pin-confirmation{border-radius:18px}.fleet-panel{background:var(--raised);border:0;border-radius:18px}.fleet-filters button{background:var(--surface);border:1px solid var(--line);border-radius:30px}.fleet-filters button[aria-pressed=true]{background:var(--text);color:var(--surface);border-color:var(--text)}.rides{border-top:0;padding-top:15px}.section-title{margin-bottom:20px}.section-title h2{font-weight:700}.eyebrow{color:var(--muted);font-size:0.75rem;letter-spacing:1.6px}.vehicle-grid{gap:12px}.vehicle{border:1px solid var(--line);border-radius:20px;background:var(--surface);min-height:132px;padding:22px;box-shadow:none}.vehicle.selected{border-color:var(--text);box-shadow:0 0 0 1px var(--text)}.vehicle .check{background:var(--text);color:var(--surface);width:20px;height:20px;display:grid;place-items:center;border-radius:50%}.vehicle .tag{font-size:0.75rem;color:var(--accent)}.vehicle svg{width:112px;filter:drop-shadow(0 6px 4px #00000013)}.fare-list{gap:0;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden}.fare-card{border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);padding:20px 15px;min-height:110px}.fare-card:last-child{border-bottom:0}.fare-card.selected{background:var(--raised);border:0;border-bottom:1px solid var(--line);box-shadow:inset 4px 0 var(--text);padding:20px 15px}.fare-art svg{width:85px}.trip-summary{background:var(--raised);border:0;border-radius:18px}.summary-row{border-color:var(--line)}.text-button{color:var(--accent)}dialog{border:1px solid var(--line);border-radius:26px;box-shadow:0 24px 100px #00000030}.choice,.driver{border-radius:16px}.theme-setting select{border-radius:30px;background:var(--surface)}.driver-card,.side-card,.upload-card,.driver-auth,#dispatch-settings{border-radius:22px}footer{border-color:var(--line)}.fleet-marker{border-color:var(--text);box-shadow:0 3px 10px #00000026}.ride-pin.pickup>span{background:#16191e;color:white}.ride-pin.dropoff>span{background:var(--accent);color:white}.leaflet-tooltip.pin-label{background:var(--text);color:var(--surface);border-color:var(--text);border-radius:8px}.leaflet-tooltip-top.pin-label:before{border-top-color:var(--text)}.search-panel{border:1px solid var(--line);border-radius:18px}.status-pill{background:#e6f5ee;color:#176744}:root[data-theme=night] .status-pill{background:#183b2d;color:#a0dfb9}
@media(min-width:1000px){.real-map-panel{top:18px}.vehicle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.hero{gap:18px}.booking{padding:18px}.vehicle{padding:18px 14px}}
@media(max-width:720px){header,.site-header{padding:13px 18px 8px;gap:8px;min-height:74px}.brand{font-size:1.5rem}.theme-setting{margin-top:0;font-size:0.75rem}.theme-setting select{min-height:36px;font-size:0.75rem}.portal-nav{padding:8px 0 6px}.portal-nav a{min-height:40px;padding:8px 12px;font-size:0.75rem}.hero{display:flex;flex-direction:column;padding:14px 0 24px;gap:14px}.real-map-panel{order:-1;width:100%;border-radius:22px;position:static}.booking{width:100%;border-radius:22px;padding:18px;box-shadow:0 5px 20px #151a2508}#map{height:300px;max-height:42vh;min-height:230px}.map-head{padding:12px 16px}.map-mode{padding:0 12px 10px}.map-mode button{min-height:42px;font-size:0.75rem}.map-instruction{padding:0 14px 10px;font-size:0.75rem;min-height:0}.map-zoom-hint{padding-top:6px}.map-footer{padding-bottom:10px}.fleet-panel{margin:0 11px 11px;padding:10px}.fleet-filters button{font-size:0.75rem}.vehicle-grid{grid-template-columns:1fr;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden}.vehicle{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px 20px;min-height:112px;box-shadow:none}.vehicle:last-child{border-bottom:0}.vehicle:hover{transform:none;box-shadow:none}.vehicle.selected{background:var(--raised);border:0;border-bottom:1px solid var(--line);box-shadow:inset 4px 0 var(--text)}.vehicle h3{font-size:1rem}.vehicle p{font-size:0.75rem}.vehicle .tag{margin-top:9px}.vehicle svg{width:106px}.rides{padding:10px 0 30px}.section-title h2{font-size:1.375rem}.section-title{margin-bottom:16px}.trip-steps{margin-bottom:18px}footer{padding:22px 0}.fare-art svg{width:76px}}

/* Readable type and legacy color aliases across passenger, driver and admin. */
:root{font-size:100%;--panel:var(--surface);--border:var(--line);--green:var(--accent);--ink:var(--text);--paper:var(--raised);--dark:var(--text)}
:root[data-text-size=large]{font-size:112.5%}:root[data-text-size=extra-large]{font-size:125%}
html{ -webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:.9375rem;line-height:1.75}button,input,select,textarea{font-family:inherit;line-height:1.65}input:not([type=checkbox]):not([type=radio]),select,textarea,.location input,.pickup-note input{font-size:1rem}p,.intro,.pickup-note,.field-status,.map-instruction,.fleet-disclaimer,.summary-note,.scope-note{line-height:1.85}.intro,.note,.muted,.vehicle p,.fare-name small,.location-label,.trip-topline p,.summary-row small,.summary-detail,.map-footer,.map-zoom-hint{color:var(--muted)}.location-value,.vehicle h3,.fare-name strong{color:var(--text)}.vehicle p,.fare-name small,.location-label,.trip-steps button,.portal-nav a,.map-mode button,.map-actions button,.fleet-filters button,.theme-setting{font-size:.8125rem}.field-status,.note,.summary-detail,.fleet-disclaimer,.map-footer{font-size:.75rem}.vehicle .tag{font-size:.75rem;letter-spacing:.3px}.price-btn,.primary,.action,button.primary,button[type=submit]{font-size:.9375rem;background:var(--text);color:var(--surface);border-color:var(--text)}button.primary:hover{background:var(--text);color:var(--surface)}.passenger-request-status button{color:#fff}.status-pill{color:#176744}dialog{color-scheme:inherit}.leaflet-popup-content{color:var(--text)}.appearance-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-left:auto;flex-wrap:wrap}.appearance-controls .theme-setting{margin:0;width:auto;order:initial;gap:6px}.theme-setting label{display:inline;font-size:.75rem;color:var(--muted)}.theme-setting select{font-size:.8125rem;min-height:44px;max-width:none;padding:7px 10px;min-width:0}.text-size-icon{font-weight:750;font-size:.9375rem;letter-spacing:-1px;color:var(--accent);line-height:1}.theme-setting svg{flex-shrink:0}.theme-setting label,.theme-setting select{white-space:normal}header,.site-header{flex-wrap:wrap}.head-right,.header-right{margin-left:auto}.time-switch button,.map-mode button,.fleet-filters button,.vehicle-grid,.trip-steps{min-width:0}.time-switch button,.map-mode button,.fleet-filters button{overflow-wrap:anywhere}.vehicle h3,.fare-name strong{overflow-wrap:anywhere}.vehicle .tag{line-height:1.8}.trip-steps button{height:auto;min-height:76px}.vehicle,.fare-card{height:auto}.fare-card{flex-wrap:wrap}.fare-name{flex-basis:110px}.vehicle>div{min-width:0}.vehicle svg{max-width:35%;flex-shrink:0}.field-number{font-size:.8125rem!important}.fleet-filters{grid-template-columns:repeat(2,minmax(0,1fr))}:root[data-text-size=extra-large] .vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1000px){.appearance-controls{flex-basis:100%;padding-bottom:8px}.theme-setting label{display:inline}.site-header{gap:12px}}
@media(max-width:720px){.appearance-controls{width:100%;gap:8px;justify-content:space-between;padding:6px 0 4px}.appearance-controls .theme-setting{gap:5px}.theme-setting label{display:none}.theme-setting select{font-size:.8125rem;max-width:calc(100vw - 95px);min-height:44px}.trip-steps{gap:8px}.trip-steps button{font-size:.75rem}.vehicle-grid,:root[data-text-size=extra-large] .vehicle-grid{grid-template-columns:1fr}.portal-nav a{font-size:.8125rem}.vehicle p{font-size:.8125rem}.location-picker{min-height:86px}.fleet-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.map-mode button{font-size:.8125rem}.section-title h2{line-height:1.7}#portal{padding:18px}.brand{flex-shrink:0}}
@media(max-width:380px){.appearance-controls{justify-content:flex-start}.appearance-controls .theme-setting{flex:1 1 100%;justify-content:space-between}.theme-setting label{display:inline}.theme-setting select{margin-left:auto}.vehicle{gap:8px}}
/* Compact map symbols: a 32px visual inside a 44px pointer target. */
#map .fleet-marker{width:44px!important;height:44px!important;border:0!important;background:transparent!important;box-shadow:none!important;isolation:isolate}
#map .fleet-marker::before{content:"";position:absolute;inset:6px;border:1px solid #cbd5e1;background:#fff;border-radius:50%;box-shadow:0 2px 6px #14223424;z-index:-1}
#map .fleet-marker.fleet-selected::before{border:2px solid var(--accent);background:#edf5ff}
#map .fleet-carriage{width:26px;height:28px}#map .fleet-carriage svg{width:19px;height:25px}
#map .approved-marker>svg{width:27px!important;height:24px!important}
#map .fleet-type-badge{display:none;font-size:10px;line-height:1.4;padding:2px 5px;bottom:-8px;white-space:nowrap;background:#294663;color:white}
#map .fleet-selected .fleet-type-badge{display:block}#map .fleet-type-badge[hidden]{display:none!important}
#map .fleet-selected-check{width:13px;height:13px;top:2px;right:2px;font:700 9px/11px Manrope,sans-serif;background:var(--accent);border:1px solid #fff}
#map .fleet-tricycle::before,#map .fleet-shared-tricycle::before{background:#edf9f5;border-color:#92cfc4}
#map .fleet-motorbike::before{background:#fff8ec;border-color:#e5c58d}
#map .fleet-marker[class*="fleet-deli-"]::before{background:#f1effa;border-color:#b8acd8}
#map .fleet-school-car::before{background:#fff8df;border-color:#dec66c}
.map-my-location{position:absolute;right:12px;bottom:35px;z-index:600;display:flex;align-items:center;gap:7px;border:1px solid #d1d9e3;border-radius:28px;background:var(--surface);color:var(--accent);box-shadow:0 3px 14px #152b4824;min-height:44px;padding:9px 13px;font-size:.8125rem;font-weight:600}
.map-my-location svg{width:20px;height:20px;flex-shrink:0}.map-my-location.has-location{border-color:var(--accent)}.map-my-location:disabled{opacity:.65;cursor:wait}
.my-location-label{font-family:Manrope,'Noto Sans Myanmar',sans-serif;font-size:.75rem;background:var(--surface);color:var(--text);border:1px solid #8bb4ec;border-radius:8px;padding:6px 9px}
#map .leaflet-tooltip.pin-label{max-width:150px;white-space:normal;font-size:.75rem;padding:5px 8px;line-height:1.6}
@media(max-width:720px){.map-home{font-size:.75rem;max-width:60%;padding:7px 10px}.map-my-location{font-size:.75rem;padding:8px 11px}.map-my-location span{max-width:120px}#map .leaflet-tooltip.pin-label{max-width:120px}}
/* Preserve the basemap's geographic colors: parks, water and road hierarchy. */
#map .leaflet-tile-pane{filter:saturate(.78) contrast(.96) brightness(1.02)}
:root[data-theme=night] #map .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) saturate(.65) brightness(1.2) contrast(.78)}
#map .fleet-marker::before{inset:5px;border:0;background:transparent;box-shadow:none}
#map .fleet-tricycle::before,#map .fleet-shared-tricycle::before,#map .fleet-motorbike::before,#map .fleet-marker[class*="fleet-deli-"]::before,#map .fleet-school-car::before{background:transparent;border:0}
#map .fleet-marker.fleet-selected::before{inset:3px;border:2px solid var(--accent);background:#ddecff77;box-shadow:0 0 0 2px #ffffffaa}
#map .fleet-carriage{width:30px;height:34px}#map .fleet-carriage svg{width:27px;height:34px;filter:drop-shadow(0 1px 1px #ffffffcc)}
#map .approved-marker>svg{width:27px!important;height:34px!important;filter:drop-shadow(0 1px 1px #ffffffcc)}
:root[data-theme=night] #map .fleet-carriage svg,:root[data-theme=night] #map .approved-marker>svg{filter:drop-shadow(0 1px 2px #00000088)}
.road-summary{margin:14px;padding:16px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:16px}.road-summary p,.arrival-note{font-size:.8125rem;line-height:1.8;color:var(--muted);margin:8px 0}.road-metrics{display:flex;gap:25px;flex-wrap:wrap}.road-metrics strong{font-size:1.25rem}.road-metrics small{font-size:.8125rem;font-weight:500}.road-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.road-summary button{background:var(--raised);color:var(--accent);border:1px solid var(--line);border-radius:24px;padding:9px 14px;min-height:44px;font-size:.8125rem}.road-actions a{font-size:.75rem;color:var(--muted)}.driver-arrival{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.driver-arrival small{color:var(--muted);font-size:.75rem;line-height:1.8}.expanded .road-summary{margin:6px 12px;padding:8px 12px}.expanded .road-summary p{margin:3px 0}.expanded .road-metrics strong{font-size:1rem}
/* Landscape map viewport: four units wide by three units high. */
.real-map-panel:not(.expanded) #map{width:100%;height:auto;aspect-ratio:4 / 3;min-height:0;max-height:none}

:root[data-text-size=largest]{font-size:150%}
:root[data-text-size=largest] .vehicle-grid{grid-template-columns:1fr}

/* The fleet selector must use the same foreground and surface in both themes. */
.fleet-source{min-width:0;flex-wrap:wrap;align-items:flex-end;color:var(--text)}
.fleet-source label{flex:1 1 15rem;min-width:0;max-width:100%}
.fleet-source select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:3rem;height:auto;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;font-size:1rem;line-height:1.8;color-scheme:light;opacity:1}
:root[data-theme=night] .fleet-source select{color-scheme:dark}
.fleet-source select option{background:var(--surface);color:var(--text)}
.fleet-source>button{flex:1 1 12rem;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#fleet-source-note{display:block;margin-top:7px;color:var(--muted);font-size:.75rem;line-height:1.8;overflow-wrap:anywhere}

/* Match the lighter night tiles while new map images load. */
:root[data-theme=night] #map{background:#28313b}
