:root{--forest:#082d4c;--green:#0b395f;--orange:#00b9ff;--ink:#142737;--muted:#65756c;--line:#dce5ed;--paper:#fff;--soft:#f2f6f9}
html{background:var(--paper)}body{background:var(--paper);color:var(--ink);font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}header{background:#fff;padding:16px 20px;min-height:72px;border-bottom:0;position:sticky;top:0;z-index:3}.brand{color:var(--forest);font-size:34px;letter-spacing:-2px;line-height:1;font-weight:950}.brand span{color:var(--orange)}.brandmark{display:none}.profile-button{color:var(--forest);border-color:#d7e2eb;background:#eaf0f4;width:42px;height:42px;box-shadow:none}main{background:white;padding:4px 16px 100px;max-width:1000px}h1,h2,h3,h4{color:var(--ink);letter-spacing:-.7px}p{line-height:1.5}button.primary,.primary{background:var(--forest);color:white;border-radius:16px;box-shadow:none}button.secondary,.secondary{background:var(--soft);color:var(--forest);border:1px solid #d7e1ea;border-radius:16px}input,select,textarea{color:var(--ink);border-color:#d7e1ea;background:#fafbfc;border-radius:13px}input:focus,select:focus,textarea:focus{outline:2px solid #0c416c;outline-offset:2px}label,.note,.muted{color:var(--muted)}a{color:var(--green)}.badge,.smalltag{background:#e7eef3;color:var(--forest)}.search{box-shadow:0 5px 20px #0a345608;border-color:var(--line)}.card,.manage-trip,.rental-manage,.journey-trip-link{border-color:var(--line);color:var(--ink)}.journey-bubble.mine,.message.mine{background:var(--forest);color:white}.journey-bubble.theirs{background:#ebf0f5;color:var(--ink)}.journey-bubble.system{background:#f2f5f8;color:var(--muted)}.profile-completion{background:#f0f4f7;border-color:#d5e1ea}.profile-completion progress{accent-color:var(--green)}.success-icon,.num{background:var(--green);color:white}.error{color:#175eb2}.driver-photo,.profile-photo-preview{border-color:var(--green)}.profile-identity{color:var(--ink)}.price,.time{color:var(--ink)}.counter button,.back,.close,.results-back{background:#edf1f5;color:var(--forest)}nav{background:#ffffffed;backdrop-filter:blur(15px);border-color:var(--line);padding:10px 8px calc(10px + env(safe-area-inset-bottom));gap:0;box-shadow:0 -4px 18px #082c4a10}nav button{color:#64756c;flex:1;max-width:140px}nav button.active{color:var(--forest)}nav .active .navicon{background:#e6edf2;color:var(--forest)}dialog{background:white;color:var(--ink);border-radius:24px;box-shadow:0 20px 70px #07253e25}dialog::backdrop{background:#0e243677}.modal-head,.topbar{border-color:var(--line)}.rental-hero{background:#f1f5f8;border:1px solid var(--line);border-radius:20px;padding:20px}.rental-card{color:var(--ink);border-color:var(--line)}.rental-card img{border-radius:16px}.payment-card{background:linear-gradient(120deg,#082d4c,#0d4879)}.payment-card strong{color:white}.payment-state{background:#f0f4f7;border-color:#d7e1ea}
.home-planner{display:grid;grid-template-columns:1.1fr .9fr;gap:10px;margin-bottom:12px}.home-planner button{background:#fff;border:1px solid var(--line);border-radius:17px;min-height:63px;box-shadow:0 2px 8px #0f355408;text-align:left}.home-planner #planBanner{margin:0;padding:11px 12px;display:flex;gap:9px;width:100%;min-width:0}.home-planner #planBanner .tile-icon{background:none;color:var(--forest);font-size:27px;padding:0;flex:none}.home-planner #planBanner>span:nth-child(2){min-width:0}.home-planner #planBanner strong{font-size:13px;line-height:1.3;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-planner #planBanner small{font-size:10px;line-height:1.25;color:var(--muted);display:block;margin-top:2px}.home-planner #planBanner>span:last-child{margin-left:auto;color:var(--forest)}.date-choice{display:flex;align-items:center;gap:9px;padding:12px;font-size:13px;color:var(--ink)}.date-choice svg{width:23px;flex:none;stroke:var(--forest);fill:none;stroke-width:2}.date-choice>span:last-child{margin-left:auto;color:var(--forest)}.market-search{display:flex;align-items:center;gap:10px;padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 2px 8px #0f355408}.market-search>span{font-size:28px;color:var(--muted)}.market-search input{background:none;border:none;margin:0;padding:13px 0;font-size:13px;min-width:0}.market-search input:focus{outline:none}.market-search:focus-within{outline:2px solid var(--green)}.market-search button{background:none;color:var(--green);padding:9px}.category-strip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:14px 0 12px;padding-bottom:3px;scroll-snap-type:x mandatory}.category-strip button{background:none;flex:0 0 65px;padding:0;color:var(--ink);scroll-snap-align:start}.category-strip img{width:65px;height:60px;object-fit:cover;border-radius:15px;background:#f6f7f5;display:block}.category-strip span{display:block;font-size:10px;margin-top:4px}.home-shortcuts{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:8px 0 14px}.home-shortcuts button{flex-shrink:0;border:1px solid var(--line);background:white;color:var(--forest);border-radius:20px;font-size:11px;padding:9px 12px}.remote-explainer{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);border-radius:19px;background:#f7f9fb;text-align:left;padding:13px 14px;color:var(--forest)}.remote-explainer>span:first-child{color:var(--orange);font-size:36px}.remote-explainer>span:nth-child(2){flex:1}.remote-explainer strong{font-size:14px;display:block;letter-spacing:-.3px}.remote-explainer small{color:var(--muted);font-size:11px;display:block;margin-top:3px}.scene-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 2px 10px;color:var(--muted);font-size:11px}.scene-toolbar button{color:var(--forest);font-size:11px;background:none;padding:8px 3px}.macro-card{border:1px solid var(--line);border-radius:20px;overflow:hidden;margin-bottom:16px;background:white;box-shadow:0 3px 12px #0c31500d}.marketplace-home .welcome.with-scene{padding:0;display:block;background:white;color:var(--ink);border-radius:20px;grid-template-columns:none}.macro-heading{display:flex;align-items:center;gap:9px;background:#fff;position:relative;padding:13px;z-index:1;color:var(--ink)}.macro-heading>div{min-width:0;flex:1}.macro-heading h1,.macro-heading h2{font-size:22px;letter-spacing:-.8px;line-height:1.1;margin:0;color:#13212d;font-weight:850}.macro-heading p{margin:4px 0 0;color:#395770;font-size:11px;line-height:1.2}.sector-symbol{display:grid;place-items:center;border-radius:12px;background:var(--forest);color:white;width:43px;height:43px;font-size:30px;flex:none}.sector-symbol svg{width:28px;height:28px}.sector-symbol.orange{background:var(--orange)}.scene-tag{font-size:9px;align-self:flex-start;border-radius:12px;padding:5px 7px;background:#f3f6f9;color:#3f5f7a;white-space:nowrap}.marketplace-home .welcome.with-scene .welcome-art{width:100%;height:auto;display:block;min-height:0;position:relative;max-width:none;border-radius:0;overflow:hidden}.marketplace-home .road-scene{display:block;width:100%;height:auto;max-height:350px;aspect-ratio:400/252;object-fit:cover;border-radius:0}.macro-actions{display:flex;align-items:center;gap:8px;padding:12px}.macro-actions button{font-size:12px;padding:11px 14px;min-height:42px}.macro-actions .primary{flex:1}.marketplace-home .map-controls{padding:0 12px 10px;margin:0;color:var(--muted);display:flex;align-items:center;justify-content:space-between;font-size:10px;gap:8px;background:white}.marketplace-home .map-controls button{background:#eef3f6;color:var(--forest);font-size:10px;padding:7px 10px;min-height:32px}.marketplace-home .map-dialogue-note{margin:0;padding:0 12px 10px;color:var(--muted);font-size:9px;justify-content:flex-start;background:white}.marketplace-home .copy-map-phrase{font-size:9px;min-height:29px;padding:5px 10px}.marketplace-home .map-preview{background:#f4f7fa;border:1px solid var(--line);color:var(--ink);margin:0 12px 12px;box-shadow:none}.illustration-wrap{position:relative;overflow:hidden;aspect-ratio:827/321;background:#edf2f6}.illustration-wrap video{width:100%;height:100%;display:block;object-fit:fill}.illustrated-card .macro-heading{position:absolute;top:0;left:0;right:0;background:linear-gradient(100deg,#fff 45%,#ffffffdb 80%,#ffffff90);padding:10px 12px}.illustrated-card .macro-heading h2{font-size:22px}.objects-macro .macro-heading{min-height:62px}.scene-cta{position:absolute;bottom:7%;left:2%;background:var(--orange);color:white;border:2px solid #fff;border-radius:25px;padding:10px 16px;font-size:14px;font-weight:750;box-shadow:0 2px 6px #22497620;min-height:39px}.macro-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;font-size:11px;color:var(--muted)}.macro-caption button{font-size:11px;background:none;color:var(--forest);font-weight:700;padding:8px 0}.remote-macro .illustration-wrap{aspect-ratio:827/509}.remote-macro .macro-heading{min-height:51px}.remote-macro .macro-heading h2{font-size:17px}.remote-macro .sector-symbol{width:35px;height:35px;border-radius:10px;font-size:24px}.remote-macro .scene-tag{font-size:8px;padding:4px 5px}.remote-card-foot{padding:12px 14px 14px;background:#f7f9fb}.remote-card-foot p{font-size:12px;margin:0 0 10px;color:#39576f}.remote-card-foot button{width:100%;font-size:13px;padding:12px}.remote-card-foot small{display:block;font-size:10px;line-height:1.4;margin-top:10px;color:var(--muted)}.home-footnote{text-align:center;color:var(--muted);font-size:11px;margin:20px auto 12px;max-width:340px}.sector-intro{padding:20px 5px 25px}.sector-intro>span{font-size:11px;color:var(--green);font-weight:800;letter-spacing:1px}.sector-intro h2{font-size:29px;margin:10px 0}.sector-intro p{color:var(--muted);font-size:14px}.sector-intro button{font-size:12px}#rideSearchScreen .search{margin:0 0 20px}#rideSearchScreen .publish-tile{background:#f2f5f8;color:var(--forest)}#rideSearchScreen .tile-icon{background:#e0e9f0;color:var(--forest)}.hub-grid{display:grid;gap:13px;margin:24px 0}.hub-grid button{display:flex;align-items:center;gap:16px;text-align:left;border:1px solid var(--line);border-radius:19px;background:#f6f8fa;padding:20px;color:var(--ink)}.hub-grid .sector-symbol{font-size:25px}.hub-grid strong,.hub-grid small{display:block}.hub-grid small{color:var(--muted);font-size:12px;margin-top:5px}.hub-grid button>span:last-child{margin-left:auto}.prototype-label{font-size:10px;text-align:center;color:var(--muted);background:#fafbfc;padding:10px;border-radius:15px}.screen:not([hidden]){animation:scene-enter .35s ease-out}#body{animation:scene-enter .25s ease-out}.option,.choice{border-color:var(--line)}button:focus-visible,a:focus-visible{outline:3px solid #519df6;outline-offset:3px}button{touch-action:manipulation}#homeScreen [hidden],#rideSearchScreen[hidden]{display:none!important}
@keyframes scene-enter{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:720px){header{max-width:1000px}.brand{font-size:40px}.home-planner{max-width:100%}.marketplace-home{max-width:820px;margin:auto}.category-strip{justify-content:space-between}.category-strip button{flex-basis:82px}.category-strip img{width:82px;height:76px}.category-strip span{font-size:12px}.macro-heading h1,.macro-heading h2{font-size:29px}.macro-heading p{font-size:14px}.macro-heading{padding:18px}.marketplace-home .road-scene{max-height:450px}.illustrated-card .macro-heading h2{font-size:29px}.objects-macro .macro-heading{min-height:88px}.remote-macro .macro-heading h2{font-size:25px}.remote-macro .macro-heading{min-height:60px}.scene-tag{font-size:11px}.scene-cta{font-size:21px;padding:14px 24px}.macro-caption{font-size:14px}.macro-actions button{font-size:16px}.remote-card-foot p{font-size:16px}.remote-card-foot button{font-size:16px}.remote-card-foot small{font-size:12px}}
@media(max-width:360px){.macro-heading h1,.macro-heading h2,.illustrated-card .macro-heading h2{font-size:19px}.macro-heading p{font-size:10px}.sector-symbol{width:36px;height:36px}.scene-tag{font-size:8px;padding:4px}.scene-cta{font-size:12px;padding:8px 12px}.remote-macro .macro-heading h2{font-size:15px}.remote-macro .scene-tag{display:none}.home-planner #planBanner strong{font-size:12px}.brand{font-size:30px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.continuation-map{border-radius:19px;overflow:hidden;border:1px solid var(--line);margin:0 0 22px;background:#f5f8fa}.continuation-map svg{width:100%;height:auto;max-height:250px;display:block}.continuation-map p{font-size:11px;color:var(--muted);padding:10px 13px;margin:0}.mode-tabs button.chosen{background:#e2eaf0;color:var(--forest)}.map-preview button{background:var(--forest);color:white;border-radius:16px}.map-preview-top button{background:#e7eef3;color:var(--forest)}.rental-search{padding:16px;border:1px solid var(--line);border-radius:20px;background:#fbfcfd}.rental-search .primary{background:var(--orange)}.option{color:var(--ink)}.journey-thread-arrow{color:var(--green)}.avatar-preview-wrap{background:#f0f4f7}.completion-checklist button>span:first-child{color:var(--green)}
.continuation-illustration{position:relative;overflow:hidden;border-radius:19px;border:1px solid var(--line);margin:18px 0}.continuation-illustration video{display:block;width:100%;height:auto}.continuation-illustration small{display:block;background:#fff;font-size:10px;color:var(--muted);padding:10px}.swap{background:#e9eff4;color:var(--forest)}.search .swap{background:#e9eff4;color:var(--forest)}.welcome-art .selectable-car{filter:drop-shadow(1px 2px 1px #17253155)}.map-controls span{color:var(--muted)}
:root{--violet:#0b395f;--ink:#142737;--lilac:#eaf0f5;--soft:#f2f6f9}
body{max-width:none;width:100%;box-shadow:none}header{max-width:1000px;margin:0 auto;flex:none}main{width:100%;max-width:1000px;margin:0 auto;padding-bottom:24px;min-height:0}nav{position:static;flex:none;width:100%;border-top:1px solid var(--line)}nav button.active .navicon{background:#e6edf2;color:var(--forest)}.marketplace-home .welcome.with-scene .welcome-art{margin:0;transform:none}.marketplace-home .welcome-art .traffic-map{transform:none;margin:0;border-radius:0}.marketplace-home .welcome.with-scene .macro-heading h1{font-size:22px;margin:0;line-height:1.1;color:var(--ink);max-width:none}.marketplace-home .welcome.with-scene .macro-heading p{font-size:11px;line-height:1.2;color:#395770;margin:4px 0 0}.marketplace-home .welcome.with-scene{max-width:none;margin:0 0 16px}.marketplace-home .welcome.with-scene .map-dialogue-note{font-size:9px;color:var(--muted);margin:0}.marketplace-home .welcome.with-scene .map-preview p{color:var(--muted)}.profile-button{border:1px solid #d7e2eb;color:var(--forest)}
@media(min-width:720px){.marketplace-home .welcome.with-scene .macro-heading h1{font-size:29px}.marketplace-home .welcome.with-scene .macro-heading p{font-size:14px}}
@media(max-width:360px){.marketplace-home .welcome.with-scene .macro-heading h1{font-size:19px}}
.object-thought{position:absolute;right:5%;top:35%;max-width:47%;border:1px solid #d5e1ea;border-radius:15px 16px 16px 5px;background:#f9fcfff5;padding:9px 11px;color:var(--ink);box-shadow:0 3px 10px #172a3a20;pointer-events:none}.object-thought small{display:block;font-size:8px;color:#1d518e;margin-bottom:4px}.object-thought strong{display:block;font-size:10px;line-height:1.25}.object-thought span{display:block;font-size:9px;line-height:1.3;margin-top:4px;color:var(--green)}.continuation-illustration .object-thought{top:35%}.continuation-illustration .object-thought small{background:none;padding:0;font-size:8px;color:#1d518e}@media(min-width:720px){.object-thought{padding:14px;max-width:35%}.object-thought small{font-size:10px}.object-thought strong{font-size:16px}.object-thought span{font-size:13px}}
/* Identical card skeleton: heading, scene, actions. */
.marketplace-home .macro-card .macro-heading{position:relative;inset:auto;min-height:78px;height:78px;padding:12px;background:white;box-sizing:border-box}
.marketplace-home .macro-card .macro-heading h1,.marketplace-home .macro-card .macro-heading h2{font-size:21px;line-height:1.1}
.marketplace-home .macro-card .sector-symbol{width:40px;height:40px;border-radius:12px;font-size:28px}
.marketplace-home .macro-card .macro-heading p{font-size:11px;margin:4px 0 0}
.marketplace-home .macro-card .scene-tag{font-size:8px;padding:4px;white-space:nowrap}
.marketplace-home .macro-card .macro-actions{height:68px;padding:12px;box-sizing:border-box;margin:0}
.marketplace-home .macro-card .macro-actions button{font-size:12px;min-height:42px}
.marketplace-home .welcome.with-scene .welcome-art,.story-scene{aspect-ratio:400/252;height:auto;position:relative;overflow:hidden;background:#e0e8ef}
.marketplace-home .welcome-art svg{width:100%;height:100%;max-height:none;aspect-ratio:400/252;display:block}
.story-images,.story-image{position:absolute;inset:0;width:100%;height:100%}.story-image{object-fit:fill;opacity:0;transition:opacity .9s ease;transform:scale(1.025)}.story-image.current{opacity:1;animation:story-camera 9s ease-in-out infinite alternate}
.story-city{position:absolute;top:9px;left:10px;background:#fffffff2;border-radius:20px;padding:6px 9px;font-size:11px;font-weight:750;color:var(--forest);box-shadow:0 2px 8px #12253420}
.story-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,#062239f5,#062239cf);color:white;padding:10px 12px;min-height:53px;box-sizing:border-box;padding-right:65px}.story-caption strong,.story-caption span{display:block;font-size:11px;line-height:1.4}.story-caption span{font-weight:400;color:#e6eef5;font-size:10px}
.story-pagination{position:absolute;right:8px;bottom:9px;display:flex;align-items:center;gap:5px;color:white;font-size:9px}.story-pagination button{width:28px;height:30px;border-radius:50%;padding:0;background:white;color:var(--forest);font-size:23px}
.story-route{position:absolute;left:12%;top:35%;width:72%;height:55px;border-top:3px dashed #4194f5;border-radius:50%;filter:drop-shadow(0 1px 2px #fff);pointer-events:none}.route-start,.route-end{position:absolute;top:-16px;font-size:25px;color:var(--orange);background:#fff;border-radius:50%;width:30px;height:30px;text-align:center}.route-start{left:-10px}.route-end{right:-10px;color:var(--forest)}.story-parcel{position:absolute;top:-20px;left:0;font-size:28px;transition:left 2.4s ease-in-out,transform 2.4s ease-in-out;filter:drop-shadow(0 3px 3px #162c3e40)}[data-phase="1"] .story-parcel,[data-phase="2"] .story-parcel{left:calc(100% - 25px);transform:rotate(8deg)}[data-phase="2"] .route-end{background:#bfdcf3;animation:received .9s ease-in-out infinite alternate}.story-paused *{animation-play-state:paused!important}.scene-options{color:var(--muted);font-size:10px;margin:0 0 12px}.scene-options summary{cursor:pointer;padding:6px}.scene-options .map-controls,.scene-options .map-dialogue-note{font-size:10px;margin:6px;background:white;color:var(--muted)}.continuation-illustration{width:100%;max-height:none;margin:16px 0}
@keyframes story-camera{from{transform:scale(1.025) translateX(-.4%)}to{transform:scale(1.07) translateX(.4%)}}@keyframes received{to{transform:scale(1.12)}}
@media(min-width:720px){.marketplace-home .macro-card .macro-heading{height:92px;min-height:92px;padding:16px}.marketplace-home .macro-card .macro-heading h1,.marketplace-home .macro-card .macro-heading h2{font-size:28px}.marketplace-home .macro-card .macro-heading p{font-size:14px}.story-city{font-size:15px}.story-caption{padding:13px 16px;min-height:68px}.story-caption strong{font-size:15px}.story-caption span{font-size:13px}.macro-card .story-pagination{bottom:16px}}
@media(max-width:360px){.marketplace-home .macro-card .macro-heading h1,.marketplace-home .macro-card .macro-heading h2{font-size:18px}.marketplace-home .macro-card .scene-tag{display:none}}
/* Mobile overview uses the actual available viewport, including browser bars. */
.home-discovery{min-width:0}.home-macro-grid{min-width:0}
@media(max-width:719px){
 body:has(#homeScreen:not([hidden])) header{height:48px;min-height:48px;padding:8px 14px}
 body:has(#homeScreen:not([hidden])) .brand{font-size:29px}
 body:has(#homeScreen:not([hidden])) .profile-button{width:32px;height:32px;font-size:14px}
 body:has(#homeScreen:not([hidden])) main{padding:2px 12px 8px;overflow:hidden;display:flex;flex-direction:column}
 #homeScreen:not([hidden]){flex:1;min-height:0;width:100%;display:flex;flex-direction:column;gap:6px;animation:none}
 .home-discovery{flex:none;display:grid;grid-template-columns:1fr;gap:5px}
 .home-planner{gap:7px;margin:0;grid-template-columns:1.1fr .9fr}
 .home-planner button,.home-planner #planBanner{min-height:35px;height:35px;border-radius:12px;padding:5px 8px;box-shadow:none}
 .home-planner #planBanner{gap:6px}.home-planner #planBanner strong{font-size:11px}.home-planner #planBanner small{display:none}.home-planner #planBanner .tile-icon{font-size:20px}
 .date-choice{gap:6px;font-size:11px}.date-choice svg{width:17px}
 .market-search{height:33px;min-height:33px;border-radius:16px;box-shadow:none;gap:7px;padding:0 9px}.market-search input{padding:5px 0;font-size:12px;height:31px}.market-search>span{font-size:21px}.market-search button{padding:5px 8px}
 .category-strip{gap:6px;margin:0;padding:0;height:46px;align-items:start}.category-strip button{flex-basis:49px}.category-strip img{width:49px;height:31px;object-fit:contain;border-radius:8px}.category-strip span{font-size:8px;margin:1px 0;line-height:12px}
 .remote-explainer{border:none;min-height:20px;height:20px;padding:0 3px;border-radius:0;background:none;gap:4px;font-size:10px;line-height:1;color:var(--forest)}.remote-explainer>span:first-child{font-size:10px;color:var(--forest);flex:1}.remote-explainer>span:nth-child(2){flex:0}
 .scene-toolbar{margin:0;height:19px;min-height:19px;font-size:9px}.scene-toolbar button{padding:2px;font-size:9px;min-height:19px}
 .scene-options{display:none}
 .home-macro-grid{display:block;min-height:0}
 body:has(#homeScreen:not([hidden])) main{display:block;overflow:auto;padding-bottom:16px}
 #homeScreen:not([hidden]){display:block;height:auto;min-height:0}
 .home-discovery{margin-bottom:10px}
 .marketplace-home .home-macro-grid .macro-card,.marketplace-home .welcome.with-scene{margin:0 0 12px;border-radius:18px}
 .marketplace-home .home-macro-grid .macro-card .macro-heading{position:relative;height:70px;min-height:70px;padding:10px 12px}
 .marketplace-home .home-macro-grid .macro-card .macro-heading h1,.marketplace-home .home-macro-grid .macro-card .macro-heading h2{font-size:21px;line-height:1.1}
 .marketplace-home .home-macro-grid .macro-card .macro-heading p{display:block;font-size:11px}
 .marketplace-home .home-macro-grid .macro-card .macro-actions{position:relative;height:62px;padding:10px 12px}
 .marketplace-home .home-macro-grid .macro-card .macro-actions button{font-size:12px;min-height:40px}
 .marketplace-home .home-macro-grid .welcome-art,.home-macro-grid .story-scene{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:400/235}
 .marketplace-home .home-macro-grid .welcome-art svg{width:100%;height:auto;display:block;aspect-ratio:400/235}
 .home-macro-grid .story-image{object-fit:fill}
}
 .brand{font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,-apple-system,sans-serif;font-weight:900;white-space:nowrap;display:inline-flex;align-items:center;gap:0;letter-spacing:-1.7px;line-height:1}.brand span{margin:0;padding:0}
@media(max-width:719px){body:has(#homeScreen:not([hidden])) header{height:41px;min-height:41px;padding:5px 14px}body:has(#homeScreen:not([hidden])) .brand{font-size:24px;letter-spacing:-1.6px}body:has(#homeScreen:not([hidden])) .profile-button{width:29px;height:29px}}
.home-motion-button{display:none}
@media(max-width:719px){
 body:has(#homeScreen:not([hidden])) header{gap:8px}.brand{margin-right:auto}.home-motion-button{display:block;background:#eef3f6;color:var(--forest);height:29px;width:29px;padding:0;border-radius:10px;font-size:13px}
 body:has(#homeScreen:not([hidden])) main{display:flex;flex-direction:column;overflow:hidden;padding:0 10px 5px}
 #homeScreen:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0;gap:5px}
 .home-discovery{margin:0;gap:4px}.remote-explainer,.scene-toolbar,.scene-options{display:none}
 .home-macro-grid{flex:1;min-height:0;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:6px}
 .marketplace-home .home-macro-grid .macro-card,.marketplace-home .welcome.with-scene{position:relative;height:100%;min-height:0;margin:0;padding:0;border-radius:14px;overflow:hidden}
 .marketplace-home .home-macro-grid .macro-card .macro-heading{position:absolute;top:0;left:0;right:0;height:29px;min-height:29px;z-index:2;padding:3px 8px;gap:6px;background:#fffffff0}
 .marketplace-home .home-macro-grid .macro-card .macro-heading h1,.marketplace-home .home-macro-grid .macro-card .macro-heading h2{font-size:15px;line-height:1.1;letter-spacing:-.4px}.marketplace-home .home-macro-grid .macro-card .macro-heading p{display:none}
 .marketplace-home .home-macro-grid .macro-card .sector-symbol{width:22px;height:22px;border-radius:6px;font-size:17px}.home-macro-grid .sector-symbol svg{width:17px;height:17px}.home-macro-grid .scene-tag{font-size:7px;padding:3px;align-self:center}
 .marketplace-home .home-macro-grid .welcome-art,.home-macro-grid .story-scene{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;margin:0;min-height:0}
 .marketplace-home .home-macro-grid .welcome-art svg{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;max-height:none}
 .home-macro-grid .story-image{object-fit:cover;object-position:center}
 .marketplace-home .home-macro-grid .macro-card .macro-actions{position:absolute;bottom:0;left:0;right:0;height:31px;z-index:2;padding:3px 6px;gap:5px;background:#fffffff0}
 .marketplace-home .home-macro-grid .macro-card .macro-actions button{height:25px;min-height:25px;padding:3px 7px;font-size:10px;line-height:1.1;border-radius:9px;white-space:nowrap}
 .home-macro-grid .story-city{top:33px;left:7px;font-size:8px;padding:3px 5px;line-height:1.1}.home-macro-grid .story-caption{bottom:31px;height:20px;min-height:20px;padding:3px 52px 3px 7px;background:#07253ebf}.home-macro-grid .story-caption strong{display:none}.home-macro-grid .story-caption span{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:14px}
 .home-macro-grid .story-pagination{bottom:32px;right:5px;font-size:7px;gap:3px}.home-macro-grid .story-pagination button{width:22px;height:19px;font-size:19px;padding:0;border-radius:6px}
 .home-macro-grid .story-route{top:54%;height:24px;border-top-width:2px}.home-macro-grid .story-parcel{font-size:18px;top:-13px}.home-macro-grid .route-start,.home-macro-grid .route-end{font-size:16px;top:-11px;width:20px;height:20px}
 .home-macro-grid .map-controls,.home-macro-grid .map-dialogue-note,.home-macro-grid .map-preview{display:none!important}
 body:has(#homeScreen:not([hidden])) nav{min-height:49px;padding:4px 5px calc(4px + env(safe-area-inset-bottom))}body:has(#homeScreen:not([hidden])) nav button{font-size:10px;padding:1px}body:has(#homeScreen:not([hidden])) .navicon{height:25px;min-height:25px;margin-bottom:1px}body:has(#homeScreen:not([hidden])) .navicon svg{width:21px;height:21px}
}
@media(max-width:719px) and (max-height:450px){body:has(#homeScreen:not([hidden])) main{overflow:auto}#homeScreen:not([hidden]){min-height:455px}.home-macro-grid{min-height:300px}}
/* Give recovered whitespace to the three scene panels. */
@media(max-width:719px){
 body:has(#homeScreen:not([hidden])) header{height:35px;min-height:35px;padding:2px 10px}
 body:has(#homeScreen:not([hidden])) main{padding:0 7px 1px;gap:0}
 #homeScreen:not([hidden]){gap:2px}
 .home-discovery{gap:3px}
 .home-planner button,.home-planner #planBanner{height:31px;min-height:31px;padding:3px 7px}
 .market-search{height:29px;min-height:29px}.market-search input{height:27px;padding:3px 0}
 .category-strip{height:40px;gap:5px}.category-strip button{flex-basis:48px}.category-strip img{height:27px;width:48px}.category-strip span{line-height:10px;margin-top:1px}
 .home-macro-grid{gap:3px}
 .marketplace-home .home-macro-grid .macro-card,.marketplace-home .welcome.with-scene{border-radius:12px;box-shadow:none}
 .marketplace-home .home-macro-grid .macro-card .macro-heading{height:27px;min-height:27px;padding:2px 7px}
 .marketplace-home .home-macro-grid .macro-card .macro-actions{height:28px;padding:1px 4px 2px;gap:4px}
 .home-macro-grid .story-caption{bottom:28px}.home-macro-grid .story-pagination{bottom:29px}.home-macro-grid .story-city{top:29px}
 body:has(#homeScreen:not([hidden])) main>.prototype-label{flex:none;min-height:12px;height:12px;line-height:12px;font-size:8px;margin:1px 0 0;padding:0;border-radius:0;background:none;color:#6b7971;box-shadow:none;white-space:nowrap}
 body:has(#homeScreen:not([hidden])) nav{min-height:46px;padding-top:2px;padding-bottom:calc(2px + env(safe-area-inset-bottom))}
}
/* Entire scenes stay visible; actions float inside instead of occupying a footer. */
.story-scene{isolation:isolate}.story-scene::before{content:'';position:absolute;inset:-10px;background-image:var(--story-backdrop);background-size:cover;background-position:center;filter:blur(12px);opacity:.25;z-index:-1}
.story-image,.home-macro-grid .story-image{object-fit:contain;object-position:center;transform:none}.story-image.current,.home-macro-grid .story-image.current{animation:none!important}
@media(max-width:719px){
 .marketplace-home .home-macro-grid .welcome-art,.home-macro-grid .story-scene{inset:27px 0 0;height:calc(100% - 27px);background:#d7e1ea}
 .marketplace-home .home-macro-grid .macro-card .macro-actions{left:6px;right:6px;bottom:5px;height:25px;padding:0;background:none;gap:5px;justify-content:flex-end;pointer-events:none}
 .marketplace-home .home-macro-grid .macro-card .macro-actions button{pointer-events:auto;flex:none;min-height:25px;height:25px;padding:4px 9px;border:1px solid #ffffffc9;border-radius:12px;box-shadow:0 1px 6px #12293b20}
 .marketplace-home .home-macro-grid .macro-card .macro-actions .primary{background:#082d4cee;margin-left:auto;font-size:10px}.marketplace-home .home-macro-grid .macro-card .macro-actions .secondary{background:#fffffff0;font-size:9px}
 .home-macro-grid .story-city{top:4px;left:6px}.home-macro-grid .story-caption{bottom:33px;left:6px;right:auto;max-width:calc(100% - 65px);height:auto;min-height:17px;padding:2px 6px;border-radius:8px;background:#07253ecf}.home-macro-grid .story-caption span{font-size:8px;line-height:13px}.home-macro-grid .story-pagination{bottom:33px;right:6px;border-radius:9px;padding-left:4px;background:#07253ea6}
 .home-macro-grid .story-route{top:50%;width:66%;left:16%;opacity:.75}
}
/* Labels belong to their scenes: no white title strip between panels. */
@media(max-width:719px){
 .marketplace-home .home-macro-grid .welcome-art,.home-macro-grid .story-scene{inset:0;height:100%}
 .marketplace-home .home-macro-grid .macro-card .macro-heading{top:5px;left:6px;right:auto;width:max-content;max-width:calc(100% - 12px);height:25px;min-height:25px;padding:2px 7px 2px 3px;gap:5px;border-radius:10px;background:#fffffff0;box-shadow:0 1px 5px #172b3b20}
 .marketplace-home .home-macro-grid .macro-card .macro-heading h1,.marketplace-home .home-macro-grid .macro-card .macro-heading h2{font-size:14px;line-height:1.1}
 .marketplace-home .home-macro-grid .macro-card .sector-symbol{height:21px;width:21px;font-size:16px;border-radius:7px}
 .home-macro-grid .scene-tag{display:block;font-size:7px;padding:2px 3px;background:none;color:#446783}
 .home-macro-grid .story-city{top:33px;left:7px;padding:2px 5px}
}
.delivery-entry{width:100%;margin:12px 0;font-size:14px;padding:14px}.delivery-cost{padding:16px;border-radius:16px;background:#eef3f7;border:1px solid #d5e0e9;margin:15px 0}.delivery-cost strong,.delivery-cost small{display:block}.delivery-cost small{font-size:12px;color:var(--muted);line-height:1.5;margin-top:6px}.delivery-route{border-left:3px solid var(--orange);margin:18px 0 18px 7px;padding-left:18px}.delivery-route p{margin:0 0 18px}.delivery-route span,.delivery-route small{display:block;font-size:13px;color:var(--muted);line-height:1.5}.delivery-progress{list-style:none;padding:0;display:grid;gap:7px;margin:18px 0}.delivery-progress li{font-size:12px;color:var(--muted);padding:8px 10px;border-radius:10px;background:#f6f9fb}.delivery-progress li::before{content:'○';margin-right:9px}.delivery-progress .done{background:#e5edf4;color:var(--forest)}.delivery-progress .done::before{content:'✓'}

/* Rental map fills the central panel without letterbox bands. */
.home-macro-grid .objects-macro .story-image{object-fit:fill;object-position:center}

/* Rentals reveal local choices calmly; only rides have travelling cars. */
.rental-discovery-pins{position:absolute;inset:0;pointer-events:none}
.rental-discovery-pins span{position:absolute;top:48%;left:18%;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#fffffff2;border:2px solid #2c88f4;font-size:18px;box-shadow:0 3px 10px #152a3b30;opacity:0;transform:translateY(7px) scale(.9);transition:opacity 1.3s ease,transform 1.3s ease,box-shadow 1.3s ease}
.rental-discovery-pins span:nth-child(2){top:43%;left:48%;border-color:#0d4674}.rental-discovery-pins span:nth-child(3){top:54%;left:77%;border-color:#0878ba}
[data-story="objects"] .rental-discovery-pins span:first-child,[data-story="objects"][data-phase="1"] .rental-discovery-pins span:nth-child(2),[data-story="objects"][data-phase="2"] .rental-discovery-pins span{opacity:1;transform:translateY(0) scale(1)}
[data-story="objects"][data-phase="2"] .rental-discovery-pins span:last-child{box-shadow:0 0 0 7px #ffffff55,0 3px 10px #152a3b30}
[data-story="objects"] .story-image{transition:opacity 1.8s ease!important}
@media(prefers-reduced-motion:reduce){.rental-discovery-pins span,[data-story="objects"] .story-image{transition:none!important}}

.delivery-options{margin:12px 0;padding:10px 12px;border:1px solid #d9e3ec;border-radius:12px;background:#f8fafb}.delivery-options summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--forest);min-height:24px;line-height:24px}.delivery-options[open] summary{margin-bottom:10px}.delivery-stage{font-size:12px;color:var(--forest);margin:12px 0 4px}.delivery-options .form-pair{margin-top:8px}

.delivery-leg{border:1px solid #d9e3ec;border-radius:16px;padding:14px;margin:12px 0;background:white}.delivery-leg h3{margin:0 0 8px}.delivery-leg .delivery-route p{margin-bottom:10px}

/* Restore the realistic panoramic scenes; keep secondary overlay icons small. */
.rental-discovery-pins span{width:20px;height:20px;font-size:12px;border-width:1px;box-shadow:0 2px 5px #345b7820}
[data-story="objects"] .story-image{object-fit:fill!important;filter:none;transition:opacity 1.8s ease!important}
[data-story="objects"] .story-caption,[data-story="objects"] .story-pagination{background:#345b78d9!important}
[data-story="remote"] .story-image{object-fit:cover!important;transition:opacity 1.8s ease!important}
.rental-suggestions,.rental-category-chips{display:flex;gap:7px;overflow-x:auto;padding:7px 0}
.rental-suggestions button,.rental-category-chips button{white-space:nowrap;background:#fff;border:1px solid #cfdae0;color:#345b78;border-radius:18px;padding:9px 12px;font-size:13px;min-height:40px}
.rental-category-chips button[aria-pressed="true"]{background:#345b78;color:white}
.rental-search{background:#f3f7fa!important;padding:14px!important}
.rental-map-panel{margin:12px 0;padding:12px;background:#f3f7fa;border-radius:16px}
.rental-map-panel summary{min-height:40px;cursor:pointer;color:#345b78;font-weight:700}
.rental-real-map{height:240px;width:100%;border-radius:12px;overflow:hidden;margin-top:8px}
.rental-map-note{font-size:12px;color:#61747b}
.rental-hero{padding:8px 0!important}.rental-hero h3{margin:6px 0}
@media(prefers-reduced-motion:reduce){.rental-town *{animation:none!important}}

[data-story="remote"] .story-image.current{animation:remote-camera 9s ease-in-out infinite alternate!important}
@keyframes remote-camera{from{transform:scale(1)}to{transform:scale(1.025) translateX(-.5%)}}
.story-paused[data-story="remote"] .story-image.current{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){[data-story="remote"] .story-image.current{animation:none!important}}

.town-cloud{animation:town-cloud 20s ease-in-out infinite alternate}
.town-trace{animation:town-trace 15s linear infinite}
@keyframes town-cloud{to{transform:translateX(22px)}}
@keyframes town-trace{0%,20%{opacity:.2;stroke-dashoffset:40}50%,100%{opacity:1;stroke-dashoffset:0}}
[data-story="remote"] .story-route{display:none}

.rental-map-first{padding:8px;margin:8px 0 12px;background:#edf4f7}
.rental-map-first h3{font-size:16px;margin:4px 4px 8px;color:#345b78}
.rental-map-first .rental-real-map{height:clamp(260px,43dvh,420px);margin:0}
.rental-product-pin{display:flex;align-items:center;gap:5px;background:white;border:1px solid #345b78;border-radius:18px;padding:3px 7px 3px 3px;box-shadow:0 2px 8px #17354030;width:max-content;max-width:110px;height:34px;color:#244357}
.rental-product-pin img{width:27px;height:27px;border-radius:50%;object-fit:cover}.rental-product-pin span{font-size:19px}.rental-product-pin b{font-size:11px;white-space:nowrap}
.rental-product-marker{background:transparent;border:0}
.gps-hint{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:6px;padding:2px 8px}.gps-hint button{padding:4px 8px;font-size:11px}.explore-place{display:flex;gap:8px}.explore-place input{flex:1;min-width:0}.explore-canvas{position:relative;margin:12px 0;border-radius:22px;overflow:hidden}.explore-canvas #exploreMapCanvas{height:52dvh;min-height:300px;background:#e1e9f0}.explore-center{position:absolute;top:50%;left:50%;z-index:500;color:#20c7ff;font-size:30px;pointer-events:none;transform:translate(-50%,-50%)}#exploreHere{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:500;white-space:nowrap;padding:10px 16px}.explore-price{display:block;padding:5px 9px;background:white;border:2px solid #093356;color:#093356;border-radius:20px;font-weight:bold;white-space:nowrap}.explore-actions button{width:100%}.leaflet-popup-content button{display:block;margin:6px 0;padding:8px;font-size:13px}
/* Map-first layout: compact header, large canvas, controls in a bottom sheet. */
#body:has(.explore-screen){padding:0!important}#modal:has(.explore-screen){padding:0!important;background:#f8fbff}#modal:has(.explore-screen)>.close{display:none}.explore-screen{display:flex;flex-direction:column;min-height:90dvh;background:#f8fbff;color:#11283b}.explore-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 4px}.explore-header strong{font-size:25px;letter-spacing:-1.4px;color:#093356}.explore-header strong span{color:#20c7ff}.explore-header button{border:0;background:#edf2f6;border-radius:50%;width:36px;height:36px;padding:0;font-size:22px;color:#093356}.explore-screen h2{margin:8px 16px 2px;font-size:23px;line-height:1.15}.explore-place{margin:0 14px 7px;align-items:center;gap:4px}.explore-place input{border:none!important;background:transparent!important;padding:7px 3px!important;font-size:15px!important;font-weight:650}.explore-place button{background:#edf1f5;border:0;border-radius:50%;width:34px;height:34px;padding:0;color:#093356;font-size:22px}.explore-canvas{flex:1;margin:0;border-radius:0;min-height:52dvh}.explore-canvas #exploreMapCanvas{height:58dvh;min-height:340px}.explore-center{font-size:24px;text-shadow:0 1px 5px white}#exploreHere{bottom:auto;top:12px;border:0;background:#093356;color:white;font-size:13px;font-weight:700;box-shadow:0 3px 12px #0003;padding:9px 18px;border-radius:24px}.explore-sheet{position:relative;z-index:600;margin-top:-18px;background:#f8fbff;border-radius:25px 25px 0 0;padding:9px 14px 16px;box-shadow:0 -3px 16px #0002}.sheet-handle{display:block;width:40px;height:4px;background:#d8d8ce;border-radius:9px;margin:0 auto 8px}#exploreStatus{font-size:13px;line-height:1.35;margin:5px 0 10px}.explore-actions{display:grid;gap:7px}.explore-actions button{font-size:14px;font-weight:650;min-height:42px;border-radius:14px;padding:10px;background:#093356;color:white;border:0}.explore-actions button.secondary{background:#ecf1f5;color:#093356;border:1px solid #d3dfe9}.explore-sheet details{font-size:11px;color:#66746c;margin-top:9px}.explore-price{display:flex;flex-direction:column;align-items:center;border:0;background:none;padding:0;gap:2px}.explore-thumb{display:flex;align-items:center;justify-content:center;width:49px;height:49px;border-radius:50%;background:#deecfd;border:3px solid white;box-shadow:0 3px 9px #0005;font-size:29px;overflow:hidden}.explore-thumb img{width:100%;height:100%;object-fit:cover}.explore-price b{background:white;border-radius:14px;box-shadow:0 2px 8px #0003;padding:3px 8px;color:#182d3f;font-size:12px}#exploreCards{position:absolute;z-index:550;bottom:26px;left:12px;right:12px}.explore-selected{background:#f8fbff;border-radius:16px;box-shadow:0 3px 18px #0004;padding:9px 12px}.explore-selected>button{float:right;border:0;background:transparent;color:#093356}.explore-selected div button{display:block;background:transparent;border:0;color:#1685ff;font-size:14px;text-align:left;padding:5px}
#exploreFilters>input:not([type=hidden]){width:100%;padding:10px 13px;border:1px solid #d7e1ea;background:#f3f2ed;border-radius:14px;font-size:14px}.explore-chips{display:flex;gap:6px;overflow-x:auto;padding:8px 0;scrollbar-width:none}.explore-chips button{white-space:nowrap;padding:7px 11px;border:0;border-radius:18px;background:#e8f4f4;color:#143855;font-size:12px}.explore-chips button:nth-child(3n){background:#cbe2fc}.explore-chips button[aria-pressed=true]{background:#093356;color:white}.explore-date-filters{margin:2px 0 8px!important}.explore-date-filters summary{padding:9px;background:#f0f1eb;border-radius:12px;color:#17354d;font-size:13px}.explore-date-filters div{display:flex;gap:8px;padding:8px 0}.explore-date-filters label{flex:1;min-width:0}.explore-date-filters input{width:100%;min-width:0;font-size:13px;padding:7px}.explore-date-filters button{background:#093356;color:white;border:0;border-radius:12px;padding:7px 12px}.explore-screen:has(#exploreFilters) .explore-canvas #exploreMapCanvas{height:50dvh}
/* Match the approved three-screen composition, including the persistent tab bar. */
#modal:has(.explore-screen){width:100%;max-width:720px;height:100dvh;max-height:100dvh;margin:0 auto;border-radius:0;overflow:hidden}.explore-screen{height:100dvh;min-height:0;overflow:hidden}.explore-header{padding:12px 16px 2px;flex-shrink:0}.explore-header strong{font-size:24px;letter-spacing:-1px}.explore-header>div{display:flex;gap:8px}.explore-header button{width:32px;height:32px;font-size:21px;border:1px solid #e5e8df;background:#f8fbff}.explore-screen h2{font-size:21px;margin:6px 16px 0;flex-shrink:0}.explore-place{margin-bottom:4px;flex-shrink:0}.explore-place input{font-size:13px!important;padding:4px 2px!important}.explore-place>span{font-size:13px}.explore-place button{width:27px;height:27px;font-size:18px}.explore-canvas{min-height:0;flex:1;position:relative}.explore-canvas #exploreMapCanvas,.explore-screen:has(#exploreFilters) .explore-canvas #exploreMapCanvas{height:100%;min-height:0}.explore-sheet{flex-shrink:0;margin-top:-16px;padding:8px 14px 12px;max-height:38dvh;overflow:auto}.explore-sheet>#exploreStatus{font-size:11px;line-height:1.3;margin:0 0 5px;color:#476c8b}.explore-sheet>details{display:none}.explore-actions.ride-control-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:6px;padding:12px 0 9px}.ride-control-row button{font-size:12px;background:#efeee7;color:#182a39;min-height:40px;padding:8px 6px}.explore-actions button[hidden]{display:none!important}.explore-chips{padding:7px 0;gap:5px}.explore-chips button{padding:5px 10px;font-size:11px}#exploreFilters>input:not([type=hidden]){padding:9px 12px;font-size:13px}.explore-date-filters summary{display:flex;justify-content:space-between;font-size:12px;padding:9px 12px}.remote-map-message{text-align:center;font-size:16px;line-height:1.35;color:#1c2a36;margin:7px 0 14px}.explore-nav{display:flex;justify-content:space-around;align-items:center;background:#f8fbff;border-top:1px solid #e8e8df;flex-shrink:0;padding:8px 4px max(9px,env(safe-area-inset-bottom));z-index:650}.explore-nav button{display:flex;flex-direction:column;gap:3px;align-items:center;background:transparent;border:0;color:#243746;font-size:22px;padding:1px 9px}.explore-nav small{font-size:10px;font-weight:500;color:#57655e}.explore-nav button:first-child,.explore-nav button:first-child small{color:#093356;font-weight:bold}#explorePlaceStatus:empty{display:none}.explore-screen .place-suggestions:empty{display:none}
@media(min-width:800px){#modal:has(.explore-screen){height:94dvh;max-height:94dvh;margin:3dvh auto;border-radius:24px}.explore-screen{height:94dvh}}
.explore-map-tools{position:absolute;right:12px;bottom:92px;z-index:550;display:flex;flex-direction:column;gap:9px}.explore-map-tools button{display:flex;align-items:center;justify-content:center;width:43px;height:43px;padding:0;border-radius:50%;border:1px solid #e4e8df;background:#f8fbff;color:#172d3f;box-shadow:0 2px 9px #0003;font-size:24px}.explore-map-tools #mapNorth{flex-direction:column;gap:0;font-size:14px;line-height:14px;font-weight:bold}.explore-map-tools #mapNorth span{color:#00c9ef;font-size:11px}.explore-map-tools #mapLocate{transform:none;font-size:22px}

/* Real 3D exploration keeps the existing map-first composition. */
#exploreMapCanvas gmp-map-3d{display:block;width:100%;height:100%}
.explore-gps-dot{display:block;width:16px;height:16px;background:#1689ef;border:3px solid white;border-radius:50%;box-shadow:0 0 0 12px #1689ef33}
.explore-map-tools{bottom:105px}
gmp-marker .explore-price{cursor:pointer}

/* Keep the app frame still: only the map camera follows gestures. */
html:has(.explore-screen),body:has(.explore-screen){overflow:hidden;overscroll-behavior:none}
#modal:has(.explore-screen){height:100svh;max-height:100svh;overscroll-behavior:none}
#body:has(.explore-screen){height:100%;overflow:hidden}
.explore-screen{height:100%;position:relative;overscroll-behavior:none}
.explore-canvas{overflow:hidden;contain:layout paint;touch-action:none}
#exploreMapCanvas{position:absolute;inset:0;width:100%;height:100%!important}
#exploreMapCanvas gmp-map-3d{touch-action:none}
.explore-place input{font-size:16px!important}
#explorePlaceStatus{height:16px;min-height:16px;max-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;padding:0 16px;flex-shrink:0}
#explorePlaceStatus:empty{display:block}
.explore-screen #explorePlaces:not(:empty){position:absolute;top:108px;left:14px;right:14px;z-index:800;max-height:180px;overflow:auto;background:#f8fbff;box-shadow:0 6px 20px #0003;border-radius:14px}
#exploreChangeCity{position:absolute;z-index:550;top:12px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;width:min(270px,70%);min-height:59px;padding:10px 20px;border:1px solid #ffffff80;border-radius:24px;background:#093356bb;color:white;backdrop-filter:blur(8px);box-shadow:0 3px 14px #0003;touch-action:manipulation}
#exploreChangeCity strong{font-size:18px}#exploreChangeCity small{font-size:12px;font-weight:500}
#exploreHere{top:82px;padding:7px 14px;font-size:11px;background:#f8fbffdd;color:#093356;box-shadow:0 2px 8px #0002;touch-action:manipulation}
.explore-sheet{max-height:38svh;overscroll-behavior:contain}
@media(min-width:800px){#modal:has(.explore-screen){height:94svh;max-height:94svh}.explore-screen{height:100%}}
/* iOS focuses small search/date fields by magnifying the entire viewport.
   Keep every editable field at 16px, not only the city input. */
.explore-screen input,.explore-screen select,.explore-screen textarea,
#exploreFilters>input:not([type=hidden]),.explore-date-filters input{font-size:16px!important;box-sizing:border-box;min-width:0;max-width:100%}
.explore-screen,.explore-sheet,#exploreFilters{min-width:0;max-width:100%;box-sizing:border-box}
.explore-sheet{height:184px;min-height:184px;max-height:184px;flex:0 0 184px;overflow:auto}
.explore-screen:has(#exploreFilters) .explore-sheet{height:198px;min-height:198px;max-height:198px;flex-basis:198px}
.explore-date-filters div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.explore-date-filters label{min-width:0;overflow:hidden}
#modal:has(.explore-screen){position:fixed;inset:0;margin:0 auto;width:100%;box-sizing:border-box}
@media(min-width:800px){#modal:has(.explore-screen){inset:3svh 0;margin:0 auto}}
/* Larger touch controls and a frosted sheet over the real map, not white space. */
.explore-screen{--explore-sheet-height:184px}
.explore-screen:has(#exploreFilters){--explore-sheet-height:198px}
.explore-canvas{margin-bottom:calc(-1 * var(--explore-sheet-height))}
.explore-sheet{margin-top:0;background:rgba(255,253,248,.85);backdrop-filter:blur(14px) saturate(1.15);-webkit-backdrop-filter:blur(14px) saturate(1.15);border-top:1px solid #ffffffb3;box-shadow:0 -4px 22px #16293826}
.explore-map-tools{bottom:calc(var(--explore-sheet-height) + 48px)}
#exploreCards{bottom:calc(var(--explore-sheet-height) + 14px)}
.explore-chips button{min-height:36px;font-size:13px;padding:7px 12px}
.explore-date-filters summary{min-height:44px;box-sizing:border-box;align-items:center;font-size:14px;background:#f3f3eed9}
.explore-actions button,.ride-control-row button{min-height:46px;font-size:14px}
.explore-nav{min-height:62px;box-sizing:border-box;background:#f8fbffe8;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.explore-nav button{min-width:48px;min-height:44px;font-size:27px;gap:4px;padding:3px 8px;line-height:1.1}
.explore-nav small{font-size:12px}

/* Keep place search visible above the map while the keyboard changes the viewport. */
.explore-screen.choosing-place > .explore-place{display:flex!important;flex-shrink:0}
.explore-screen.choosing-place > #explorePlaces:not(:empty){display:block!important;position:relative;top:auto;left:auto;right:auto;flex-shrink:0;max-height:24dvh;margin:0 14px;z-index:800}
.explore-screen.choosing-place > #explorePlaceStatus{display:block!important;white-space:normal;height:auto;min-height:16px;flex-shrink:0}
.explore-place #explorePlaceGo{font-size:14px!important;min-width:44px;min-height:40px;color:#1455b5;font-weight:700}
.explore-place input{min-width:0}
