
*{box-sizing:border-box;}
html,body,#map{width:100%;height:100%;margin:0;}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;overflow:hidden;background:#eef1ed;}
#map{position:absolute;inset:0;}
.topbar{position:absolute;z-index:5;top:18px;left:18px;display:flex;gap:10px;pointer-events:none;}
.brand,.search{
 pointer-events:auto;height:50px;background:rgba(255,255,255,.97);
 border:1px solid #e2e5e1;border-radius:15px;
 box-shadow:0 5px 20px rgba(39,48,55,.12);display:flex;align-items:center
;}
.brand{padding:0 16px;font-weight:760;color:#202428;white-space:nowrap;}
.logo{width:27px;height:27px;border-radius:8px;background:#202428;color:#fff;display:grid;place-items:center;margin-right:9px;font-size:13px;font-weight:800;}
.search{width:min(390px,46vw);padding:0 16px;color:#858b91;font-size:14px;}
.city{position:absolute;z-index:5;right:18px;bottom:28px;background:rgba(255,255,255,.93);border:1px solid #e2e5e1;border-radius:11px;padding:8px 11px;font-size:12px;color:#626970;box-shadow:0 4px 16px rgba(39,48,55,.10);pointer-events:none;}
.maplibregl-ctrl-group{border-radius:12px!important;overflow:hidden!important;box-shadow:0 4px 18px rgba(39,48,55,.14)!important;}
.maplibregl-ctrl-group button{width:38px!important;height:38px!important;}
.maplibregl-ctrl-attrib{font-size:9px!important;opacity:.72;}
@media(max-width:650px){
 .topbar{top:12px;left:12px;right:12px;flex-direction:column}
 .brand{width:max-content;height:45px}
 .search{width:calc(100vw - 24px);height:47px}
 .city{right:12px;bottom:25px}
}

.topbar{display:none!important;}
body{background:#e9eceb!important;}
.app-shell{
 position:absolute;z-index:7;inset:14px;display:grid;
 grid-template-columns:320px minmax(0,1fr);gap:12px;pointer-events:none;
}
.sidebar,.map-frame{pointer-events:auto;}
.sidebar{
 height:calc(100vh - 28px);overflow:hidden;display:flex;flex-direction:column;
 background:rgba(47,52,56,.88);color:#f5f6f6;
 border:1px solid rgba(255,255,255,.16);border-radius:22px;
 box-shadow:0 18px 50px rgba(31,38,43,.20);
 backdrop-filter:blur(18px) saturate(115%);
 -webkit-backdrop-filter:blur(18px) saturate(115%);
}
.brand2{padding:20px 18px 16px;border-bottom:1px solid rgba(255,255,255,.09);}
.brandrow{display:flex;align-items:center;gap:10px;}
.brandmark{width:34px;height:34px;border-radius:11px;background:#eceeee;color:#303539;display:grid;place-items:center;font-size:14px;font-weight:850;}
.brandname{font-size:18px;font-weight:760;letter-spacing:-.3px;}
.branddesc{margin-top:7px;font-size:11px;color:#aeb5b9;line-height:1.4;}
.sidebar-main{padding:15px 14px 8px;overflow:auto;}
.section-label{font-size:10px;font-weight:800;letter-spacing:.9px;color:#929a9e;text-transform:uppercase;margin:2px 4px 9px;}
.route-search2{height:43px;display:flex;align-items:center;gap:8px;padding:0 12px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.11);border-radius:13px;}
.route-search2 span{color:#aeb4b8;}
.route-search2 input{width:100%;border:0;outline:0;background:transparent;color:#f3f4f4;font-size:12px;}
.route-search2 input::placeholder{color:#a7adb1;}
.filters2{display:flex;gap:6px;margin:11px 0 15px;}
.filter2{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#c3c8cb;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:700;cursor:pointer;}
.filter2.active{background:#e8ebeb;color:#2d3236;border-color:#e8ebeb;}
.routes-heading{display:flex;align-items:center;justify-content:space-between;margin:0 4px 7px;}
.routes-heading strong{font-size:12px;font-weight:700;}
.routes-heading span{font-size:9px;color:#8f979b;}
.route2{width:100%;border:1px solid transparent;background:transparent;border-radius:14px;padding:10px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;color:#fff;margin-bottom:3px;}
.route2:hover{background:rgba(255,255,255,.055);}
.route2.active{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.09);}
.routecode{width:37px;height:37px;border-radius:11px;background:#e8ebeb;color:#303539;display:grid;place-items:center;font-size:10px;font-weight:850;flex:none;}
.routecopy{flex:1;min-width:0;}.routename{display:block;font-size:12px;font-weight:700;}.routemeta{display:block;font-size:9px;color:#9fa6aa;margin-top:4px;}
.arrow2{color:#81898d;font-size:18px;}
.selected-card{margin:10px 0 4px;padding:13px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);border-radius:15px;}
.selected-eyebrow{font-size:8px;letter-spacing:1px;color:#8f979b;font-weight:800;text-transform:uppercase;}
.selected-name{font-size:14px;font-weight:730;margin-top:5px;}
.selected-copy{font-size:10px;color:#a8afb3;line-height:1.45;margin-top:5px;}
.map-frame{
 position:relative;height:calc(100vh - 28px);border-radius:22px;overflow:hidden;
 border:1px solid rgba(45,52,57,.12);box-shadow:0 15px 45px rgba(31,38,43,.12);
 background:#eef1ed;
}
#map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;}

.city{right:30px!important;bottom:30px!important;}
@media(max-width:760px){
 .app-shell{inset:8px;grid-template-columns:1fr;grid-template-rows:42vh 1fr;gap:8px}
 .sidebar{height:42vh;border-radius:18px}
 .map-frame{height:auto;border-radius:18px}
 .brand2{padding:13px 14px 10px}.branddesc{display:none}
 .sidebar-main{padding:10px}.selected-card{display:none}
}

.selected-card{padding:0!important;overflow:hidden!important;}
.route-photo{
 width:100%;height:118px;display:flex;align-items:center;justify-content:center;
 margin:0;background:
 linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.035));
 border-bottom:1px solid rgba(255,255,255,.08);position:relative;overflow:hidden
;}
.route-photo::before{
 content:"";position:absolute;inset:0;
 background:linear-gradient(180deg,transparent 45%,rgba(25,29,32,.45));
}
.vehicle-demo{
 position:relative;z-index:1;width:154px;height:68px;display:flex;align-items:center;justify-content:center
;}
.vehicle-demo svg{width:100%;height:100%;display:block;filter:drop-shadow(0 12px 18px rgba(0,0,0,.20));}
.photo-tag{
 position:absolute;z-index:2;left:10px;bottom:9px;padding:5px 7px;border-radius:7px;
 background:rgba(35,40,44,.74);color:#dfe3e4;font-size:8px;font-weight:700;
 backdrop-filter:blur(8px)
;}
.selected-content{padding:13px;}
.selected-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;}
.selected-type{
 font-size:8px;font-weight:800;color:#303539;background:#e8ebeb;
 border-radius:999px;padding:5px 7px;white-space:nowrap
;}
.detail-list{margin-top:11px;border-top:1px solid rgba(255,255,255,.07);}
.detail-row{
 display:flex;align-items:center;gap:9px;padding:9px 1px;
 border-bottom:1px solid rgba(255,255,255,.055)
;}
.detail-icon{
 width:24px;height:24px;border-radius:8px;background:rgba(255,255,255,.07);
 display:grid;place-items:center;color:#d8dcde;font-size:10px;flex:none
;}
.detail-copy{min-width:0;}
.detail-label{display:block;font-size:8px;color:#8f979b;text-transform:uppercase;letter-spacing:.7px;}
.detail-value{display:block;font-size:10px;color:#dfe2e3;margin-top:2px;}
.detail-btn{
 width:100%;height:38px;margin-top:11px;border:0;border-radius:11px;
 background:#e8ebeb;color:#2d3236;font-size:10px;font-weight:800;cursor:pointer
;}

#landingScreen{
 position:fixed;z-index:9999;inset:0;
 display:grid;place-items:center;
 background:
   radial-gradient(circle at 72% 18%,rgba(255,255,255,.13),transparent 32%),
   linear-gradient(135deg,#3d4347 0%,#292e32 100%);
 transition:opacity .35s ease,visibility .35s ease;
}
#landingScreen.out{opacity:0;visibility:hidden;pointer-events:none;}
.landing-card{
 width:min(520px,calc(100vw - 36px));
 padding:38px 38px 34px;
 border:1px solid rgba(255,255,255,.14);
 border-radius:28px;
 background:rgba(255,255,255,.07);
 box-shadow:0 30px 80px rgba(10,14,17,.28);
 backdrop-filter:blur(22px) saturate(115%);
 -webkit-backdrop-filter:blur(22px) saturate(115%);
 color:#f5f6f6;
}
.landing-brand{display:flex;align-items:center;gap:13px;}
.landing-logo{
 width:44px;height:44px;border-radius:14px;
 display:grid;place-items:center;background:#eceeee;color:#303539;
 font-size:17px;font-weight:900;
 box-shadow:0 8px 22px rgba(0,0,0,.14)
;}
.landing-brand-text{font-size:22px;font-weight:780;letter-spacing:-.45px;}
.landing-kicker{
 margin-top:28px;font-size:10px;font-weight:800;letter-spacing:1.2px;
 color:#9da5a9;text-transform:uppercase
;}
.landing-title{
 margin:8px 0 0;font-size:31px;line-height:1.08;
 font-weight:730;letter-spacing:-.9px;color:#f7f8f8
;}
.landing-copy{
 margin:10px 0 23px;font-size:12px;line-height:1.55;color:#aeb5b9;
 max-width:410px
;}
.destination-box{
 display:flex;align-items:center;gap:10px;height:54px;padding:0 14px;
 background:rgba(255,255,255,.09);
 border:1px solid rgba(255,255,255,.13);
 border-radius:16px;transition:.18s ease
;}
.destination-box:focus-within{
 background:rgba(255,255,255,.12);
 border-color:rgba(255,255,255,.26)
;}
.destination-pin{
 width:28px;height:28px;border-radius:9px;display:grid;place-items:center;
 background:rgba(255,255,255,.08);color:#e2e5e6;font-size:13px;flex:none
;}
#destinationInput{
 width:100%;border:0;outline:0;background:transparent;
 color:#f5f6f6;font-size:13px;font-family:inherit
;}
#destinationInput::placeholder{color:#9ea5a9;}
.landing-action{
 width:100%;height:48px;margin-top:11px;border:0;border-radius:14px;
 background:#eceeee;color:#2c3135;font-size:12px;font-weight:820;
 cursor:pointer;transition:transform .15s ease,background .15s ease
;}
.landing-action:hover{background:#fff;transform:translateY(-1px);}
.landing-action:active{transform:translateY(0);}
.landing-skip{
 display:block;margin:14px auto 0;border:0;background:transparent;
 color:#9da5a9;font-size:10px;font-weight:650;cursor:pointer
;}
.landing-skip:hover{color:#d9ddde;}
.landing-error{
 min-height:16px;margin:7px 3px -2px;color:#d6dadd;font-size:9px;
 opacity:0;transition:.15s
;}
.landing-error.show{opacity:1;}
@media(max-width:600px){
 .landing-card{padding:29px 22px 25px;border-radius:23px}
 .landing-title{font-size:27px}
 .landing-brand-text{font-size:20px}
}

/* Animación ambiental sutil de la pantalla de inicio */
#landingScreen{
 overflow:hidden;
 isolation:isolate;
 background:
   radial-gradient(circle at 72% 18%,rgba(170,202,215,.13),transparent 32%),
   linear-gradient(135deg,#3d4347 0%,#292e32 100%)!important;
}
#landingScreen::before,
#landingScreen::after{
 content:"";
 position:absolute;
 z-index:-2;
 width:52vw;
 height:52vw;
 min-width:520px;
 min-height:520px;
 border-radius:50%;
 filter:blur(75px);
 opacity:.28;
 pointer-events:none;
 will-change:transform;
}
#landingScreen::before{
 left:-16vw;
 top:-25vw;
 background:radial-gradient(circle,rgba(173,205,218,.52) 0%,rgba(173,205,218,.10) 48%,transparent 70%);
 animation:landingFloatOne 18s ease-in-out infinite alternate;
}
#landingScreen::after{
 right:-19vw;
 bottom:-30vw;
 background:radial-gradient(circle,rgba(153,163,169,.46) 0%,rgba(153,163,169,.08) 50%,transparent 72%);
 animation:landingFloatTwo 22s ease-in-out infinite alternate;
}
.landing-card{
 position:relative;
 z-index:2;
}
.landing-card::before{
 content:"";
 position:absolute;
 inset:-1px;
 z-index:-1;
 border-radius:inherit;
 pointer-events:none;
 background:linear-gradient(
   115deg,
   transparent 15%,
   rgba(255,255,255,.035) 40%,
   rgba(255,255,255,.085) 50%,
   rgba(255,255,255,.025) 60%,
   transparent 85%
 );
 background-size:220% 100%;
 animation:landingGlassGlow 10s ease-in-out infinite;
}
@keyframes landingFloatOne{
 0%{transform:translate3d(0,0,0) scale(1)}
 50%{transform:translate3d(9vw,7vh,0) scale(1.08)}
 100%{transform:translate3d(15vw,-2vh,0) scale(.96)}
}
@keyframes landingFloatTwo{
 0%{transform:translate3d(0,0,0) scale(1)}
 50%{transform:translate3d(-8vw,-8vh,0) scale(1.06)}
 100%{transform:translate3d(-15vw,3vh,0) scale(.98)}
}
@keyframes landingGlassGlow{
 0%,18%{background-position:180% 0}
 55%,100%{background-position:-80% 0}
}
@media (prefers-reduced-motion:reduce){
 #landingScreen::before,
 #landingScreen::after,
 .landing-card::before{animation:none!important}
}

/* Vehículos ambientales dibujados con SVG/CSS: no usan imágenes externas. */
.traffic-scene{
 position:absolute;z-index:-1;inset:0;overflow:hidden;pointer-events:none;
}
.vehicle-lane{
 position:absolute;left:0;width:100%;height:150px;
 opacity:.12;filter:drop-shadow(0 0 8px rgba(225,233,236,.12));
}
.lane-van{top:9%;animation:laneFade 15s ease-in-out infinite;}
.lane-bus{top:42%;animation:laneFade 19s ease-in-out -7s infinite;}
.lane-car{top:72%;animation:laneFade 17s ease-in-out -11s infinite;}
.moving-vehicle{
 position:absolute;left:0;width:330px;
 will-change:transform;
}
.moving-vehicle svg{width:100%;height:auto;overflow:visible;}
.moving-vehicle svg path,
.moving-vehicle svg circle{
 fill:none;stroke:rgba(230,236,238,.92);stroke-width:3;
 stroke-linecap:round;stroke-linejoin:round;
 vector-effect:non-scaling-stroke;
}
.moving-vehicle svg text{
 fill:rgba(230,236,238,.92);font:700 22px Arial,sans-serif;
 letter-spacing:1px;
}
.van{width:310px;animation:driveRight 22s linear infinite;}
.bus{width:365px;animation:driveLeft 30s linear -9s infinite;}
.car{width:285px;animation:driveRight 25s linear -15s infinite;}
.road-line{
 position:absolute;left:-5%;width:110%;height:1px;
 background:linear-gradient(90deg,transparent,rgba(255,255,255,.08) 18%,rgba(255,255,255,.08) 82%,transparent);
 opacity:.35;
}
.road-line-a{top:27%;}.road-line-b{top:88%;}

@keyframes driveRight{
 from{transform:translate3d(-380px,0,0)}
 to{transform:translate3d(calc(100vw + 390px),0,0)}
}
@keyframes driveLeft{
 from{transform:translate3d(calc(100vw + 420px),0,0) scaleX(-1)}
 to{transform:translate3d(-430px,0,0) scaleX(-1)}
}
@keyframes laneFade{
 0%,100%{opacity:.07}
 45%,60%{opacity:.14}
}
@media(max-width:700px){
 .vehicle-lane{opacity:.09}
 .moving-vehicle{transform-origin:center}
 .van{width:235px}.bus{width:275px}.car{width:220px}
}
@media(prefers-reduced-motion:reduce){
 .moving-vehicle,.vehicle-lane{animation:none!important}
 .lane-van{top:16%}.lane-bus{top:50%}.lane-car{top:76%}
 .van{transform:translateX(5vw)}
 .bus{transform:translateX(62vw)}
 .car{transform:translateX(28vw)}
}

/* Contorno luminoso de los vehículos */
.moving-vehicle{
 opacity:.72!important;
 filter:
   drop-shadow(0 0 2px rgba(255,255,255,.95))
   drop-shadow(0 0 7px rgba(224,234,238,.62))
   drop-shadow(0 0 16px rgba(197,218,226,.28))!important;
}
.moving-vehicle svg path,
.moving-vehicle svg circle{
 stroke:rgba(248,250,250,.96)!important;
 stroke-width:2.6!important;
}
.vehicle-lane{
 opacity:.20!important;
 filter:none!important;
}
@keyframes laneFade{
 0%,100%{opacity:.14}
 45%,60%{opacity:.23}
}
@media(max-width:700px){
 .vehicle-lane{opacity:.17!important}
}

#selectedCard[hidden]{display:none!important;}
#selectedCard.route-detail-visible{
 display:block!important;
 animation:routeDetailIn .24s ease-out both;
}
@keyframes routeDetailIn{
 from{opacity:0;transform:translateY(7px)}
 to{opacity:1;transform:translateY(0)}
}

.no-results{
 margin:10px 0 4px;
 padding:22px 17px 16px;
 text-align:center;
 background:rgba(255,255,255,.045);
 border:1px solid rgba(255,255,255,.08);
 border-radius:15px;
 animation:noResultsIn .22s ease-out both;
}
.no-results[hidden]{display:none!important;}
.no-results-icon{
 width:36px;height:36px;margin:0 auto 11px;border-radius:11px;
 display:grid;place-items:center;
 background:rgba(255,255,255,.08);
 border:1px solid rgba(255,255,255,.08);
 color:#e4e7e8;font-size:15px;font-weight:800;
}
.no-results-title{
 color:#f1f3f3;font-size:13px;font-weight:760;
}
.no-results-copy{
 margin:7px auto 15px;max-width:220px;
 color:#a5adb1;font-size:9.5px;line-height:1.55;
}
.support-btn{
 width:100%;height:38px;border:0;border-radius:11px;
 background:#e8ebeb;color:#2d3236;
 font-size:10px;font-weight:800;cursor:pointer;
 transition:background .15s ease,transform .15s ease;
}
.support-btn:hover{background:#fff;transform:translateY(-1px);}
.support-btn:active{transform:translateY(0);}
@keyframes noResultsIn{
 from{opacity:0;transform:translateY(6px)}
 to{opacity:1;transform:translateY(0)}
}

.aster-chat{
 position:fixed;z-index:12000;right:24px;bottom:24px;
 width:350px;height:480px;max-height:calc(100vh - 48px);
 display:flex;flex-direction:column;overflow:hidden;
 background:rgba(45,50,54,.94);
 border:1px solid rgba(255,255,255,.14);
 border-radius:21px;
 box-shadow:0 24px 70px rgba(15,20,23,.32);
 backdrop-filter:blur(20px) saturate(115%);
 -webkit-backdrop-filter:blur(20px) saturate(115%);
 color:#f3f5f5;
 animation:asterOpen .24s ease-out both;
}
.aster-chat[hidden]{display:none!important;}
.aster-head{
 height:65px;flex:none;padding:0 15px;
 display:flex;align-items:center;justify-content:space-between;
 border-bottom:1px solid rgba(255,255,255,.08);
 background:rgba(255,255,255,.025);
}
.aster-profile{display:flex;align-items:center;gap:10px;}
.aster-avatar{
 width:36px;height:36px;border-radius:12px;
 display:grid;place-items:center;
 background:#eceeee;color:#2d3236;
 font-size:14px;font-weight:900;
 box-shadow:0 5px 15px rgba(0,0,0,.15)
;}
.aster-name{font-size:12px;font-weight:800;}
.aster-status{
 margin-top:3px;color:#9fa7ab;font-size:8px;font-weight:650;
 display:flex;align-items:center;gap:5px
;}
.aster-status span{
 width:6px;height:6px;border-radius:50%;background:#aebbb2;
 box-shadow:0 0 7px rgba(190,210,196,.35)
;}
.aster-close{
 width:30px;height:30px;border:0;border-radius:9px;
 background:transparent;color:#aab1b5;
 font-size:20px;line-height:1;cursor:pointer
;}
.aster-close:hover{background:rgba(255,255,255,.07);color:#fff;}
.aster-messages{
 flex:1;overflow:auto;padding:18px 14px 12px;
 scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.12) transparent;
}
.aster-message-row{
 display:flex;align-items:flex-end;gap:7px;margin-bottom:12px;
 animation:asterMessage .2s ease-out both
;}
.aster-message-row.user{justify-content:flex-end;}
.aster-mini-avatar{
 width:23px;height:23px;border-radius:8px;flex:none;
 display:grid;place-items:center;background:#e8ebeb;color:#303539;
 font-size:8px;font-weight:900
;}
.aster-bubble{
 max-width:260px;padding:10px 11px;border-radius:13px 13px 13px 4px;
 background:rgba(255,255,255,.075);
 border:1px solid rgba(255,255,255,.065);
 color:#dfe3e4;font-size:10px;line-height:1.5
;}
.aster-message-row.user .aster-bubble{
 background:#e8ebeb;color:#2e3337;
 border-color:#e8ebeb;border-radius:13px 13px 4px 13px
;}
.aster-compose{
 margin:0 11px;padding:7px 7px 7px 12px;flex:none;
 display:flex;align-items:flex-end;gap:7px;
 background:rgba(255,255,255,.075);
 border:1px solid rgba(255,255,255,.10);
 border-radius:14px
;}
#asterInput{
 flex:1;min-height:28px;max-height:90px;padding:6px 0;
 resize:none;border:0;outline:0;background:transparent;
 color:#f1f3f4;font-family:inherit;font-size:10px;line-height:1.4
;}
#asterInput::placeholder{color:#929a9e;}
.aster-send{
 width:32px;height:32px;flex:none;border:0;border-radius:10px;
 display:grid;place-items:center;background:#e8ebeb;color:#303539;
 font-size:15px;font-weight:900;cursor:pointer
;}
.aster-send:hover{background:#fff;}
.aster-footnote{
 flex:none;text-align:center;padding:8px 10px 10px;
 color:#7f888c;font-size:7.5px
;}
@keyframes asterOpen{
 from{opacity:0;transform:translateY(10px) scale(.98)}
 to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes asterMessage{
 from{opacity:0;transform:translateY(5px)}
 to{opacity:1;transform:translateY(0)}
}
@media(max-width:520px){
 .aster-chat{
  left:10px;right:10px;bottom:10px;width:auto;
  height:min(520px,calc(100vh - 20px));border-radius:19px
 }
}

/* Aster como modal central con fondo desenfocado */
.aster-backdrop{
 position:fixed;
 z-index:11999;
 inset:0;
 background:rgba(20,24,27,.54);
 backdrop-filter:blur(8px);
 -webkit-backdrop-filter:blur(8px);
 animation:asterBackdropIn .22s ease-out both;
}
.aster-backdrop[hidden]{display:none!important;}

.aster-chat{
 position:fixed!important;
 z-index:12000!important;
 left:50%!important;
 top:50%!important;
 right:auto!important;
 bottom:auto!important;
 
 
 max-height:calc(100vh - 48px)!important;
 transform:translate(-50%,-50%)!important;
 border-radius:23px!important;
 
 animation:asterModalIn .25s cubic-bezier(.2,.8,.2,1) both!important;
}
@keyframes asterBackdropIn{
 from{opacity:0}
 to{opacity:1}
}
@keyframes asterModalIn{
 from{opacity:0;transform:translate(-50%,calc(-50% + 14px)) scale(.975)}
 to{opacity:1;transform:translate(-50%,-50%) scale(1)}
}
@media(max-width:520px){
 .aster-chat{
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  width:calc(100vw - 24px)!important;
  height:min(540px,calc(100vh - 32px))!important;
  transform:translate(-50%,-50%)!important;
 }
}

.aster-typing{
 display:flex;align-items:center;gap:4px;
 width:max-content;padding:11px 13px;
 background:rgba(255,255,255,.075);
 border:1px solid rgba(255,255,255,.065);
 border-radius:13px 13px 13px 4px;
}
.aster-typing i{
 width:5px;height:5px;border-radius:50%;
 background:#b9c0c3;display:block;
 animation:asterDot 1s ease-in-out infinite;
}
.aster-typing i:nth-child(2){animation-delay:.14s;}
.aster-typing i:nth-child(3){animation-delay:.28s;}
.aster-writing-cursor::after{
 content:"";
 display:inline-block;width:1px;height:1em;
 margin-left:2px;vertical-align:-2px;
 background:#dfe3e4;
 animation:asterCursor .7s steps(1) infinite;
}
@keyframes asterDot{
 0%,60%,100%{transform:translateY(0);opacity:.45}
 30%{transform:translateY(-3px);opacity:1}
}
@keyframes asterCursor{
 0%,48%{opacity:1}
 49%,100%{opacity:0}
}

.aster-bubble{white-space:pre-wrap;}

/* Rediseño visual de Aster */
.aster-chat{
 width:min(430px,calc(100vw - 32px))!important;
 height:min(560px,calc(100vh - 48px))!important;
 background:
   linear-gradient(145deg,rgba(48,57,68,.96),rgba(30,37,45,.97))!important;
 border:1px solid rgba(153,186,220,.26)!important;
 box-shadow:
   0 38px 110px rgba(7,12,18,.56),
   inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.aster-head{
 height:92px!important;
 padding:0 20px!important;
 background:linear-gradient(180deg,rgba(255,255,255,.035),transparent)!important;
}
.aster-profile{gap:13px!important;}
.aster-avatar{
 width:58px!important;height:58px!important;border-radius:50%!important;
 padding:2px!important;overflow:hidden!important;
 background:rgba(34,43,53,.95)!important;
 border:1px solid rgba(69,167,255,.82)!important;
 box-shadow:0 0 0 3px rgba(45,145,255,.09),0 0 22px rgba(34,139,255,.28)!important;
}
.aster-avatar img,.aster-mini-avatar img{
 width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit;
}
.aster-name{font-size:17px!important;letter-spacing:-.2px;}
.aster-role{font-size:9px;color:#aeb7bf;margin-top:2px;}
.aster-status{
 width:max-content;margin-top:5px!important;padding:3px 7px;
 border:1px solid rgba(255,255,255,.09);border-radius:999px;
 background:rgba(255,255,255,.045);font-size:7.5px!important;}
.aster-status span{
 background:#67e6a3!important;box-shadow:0 0 8px rgba(103,230,163,.6)!important;}
.aster-close{
 width:34px!important;height:34px!important;border-radius:50%!important;
 border:1px solid rgba(255,255,255,.1)!important;
 background:rgba(255,255,255,.04)!important;}
.aster-messages{padding:22px 18px 15px!important;}
.aster-message-row{gap:9px!important;align-items:flex-start!important;}
.aster-mini-avatar{
 width:30px!important;height:30px!important;border-radius:50%!important;
 padding:1px;overflow:hidden;background:#26313b!important;
 border:1px solid rgba(60,160,255,.65)!important;
 box-shadow:0 0 13px rgba(31,135,255,.18)
;}
.aster-bubble{
 max-width:310px!important;padding:13px 14px!important;
 border-radius:17px 17px 17px 5px!important;
 background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035))!important;
 border:1px solid rgba(181,204,225,.16)!important;
 color:#e9edef!important;font-size:10.5px!important;line-height:1.62!important;
 box-shadow:0 10px 30px rgba(8,12,17,.10)
;}
.aster-message-row.user .aster-bubble{
 background:linear-gradient(145deg,#edf1f3,#dce4e8)!important;
 color:#28323a!important;border-color:rgba(255,255,255,.45)!important;
 border-radius:17px 17px 5px 17px!important;}
.aster-compose{
 margin:0 16px 0!important;padding:8px 8px 8px 14px!important;
 min-height:48px;background:rgba(255,255,255,.045)!important;
 border:1px solid rgba(177,201,222,.17)!important;border-radius:16px!important;}
.aster-compose:focus-within{
 border-color:rgba(73,161,242,.42)!important;
 box-shadow:0 0 0 3px rgba(48,145,235,.07)
;}
.aster-send{
 width:35px!important;height:35px!important;border-radius:12px!important;
 background:linear-gradient(145deg,#e8edf0,#cfd9df)!important;
 box-shadow:0 5px 15px rgba(0,0,0,.18)
;}
.aster-footnote{padding:9px 10px 13px!important;color:#75818a!important;}
.aster-typing{
 border-color:rgba(181,204,225,.16)!important;
 background:rgba(255,255,255,.05)!important;}
.aster-typing i{background:#58aefa!important;}
@media(max-width:520px){
 .aster-chat{width:calc(100vw - 24px)!important;height:min(570px,calc(100vh - 30px))!important}
}

.theme-toggle{position:fixed;z-index:15000;right:18px;top:18px;width:42px;height:42px;border:1px solid #ccd1d3;border-radius:14px;background:rgba(255,255,255,.9);cursor:pointer;font-size:18px;box-shadow:0 8px 24px #0002;backdrop-filter:blur(12px);}
body.dark-mode{color:#eef1f2!important;}body.dark-mode .sidebar,body.dark-mode aside{background:#20262b!important;color:#eef1f2!important;border-color:#ffffff14!important;}body.dark-mode .sidebar input,body.dark-mode aside input,body.dark-mode .search,body.dark-mode .search-box{background:#292f34!important;color:#f1f3f3!important;border-color:#ffffff16!important;}body.dark-mode input::placeholder{color:#899399!important;}body.dark-mode .route,body.dark-mode .route-item,body.dark-mode .route-card,body.dark-mode .selected-card,body.dark-mode .no-results{background:#ffffff08!important;color:#edf0f1!important;border-color:#ffffff12!important;}body.dark-mode .route.active,body.dark-mode .route-item.active{background:#343b40!important;}body.dark-mode .chip,body.dark-mode .filter,body.dark-mode .filter-btn{background:#292f34!important;color:#b2b9bd!important;border-color:#ffffff12!important;}body.dark-mode .chip.active,body.dark-mode .filter.active,body.dark-mode .filter-btn.active{background:#e9eded!important;color:#252b2f!important;}body.dark-mode #map{filter:brightness(.62) contrast(1.1) saturate(.58);}body.dark-mode .theme-toggle{background:#272e33;color:#fff;border-color:#ffffff1c;}body.dark-mode .aster-backdrop{background:rgba(5,8,10,.66)!important;}

/* Mapa oscuro: conserva la cartografía pero la lleva a una paleta nocturna real */

body.dark-mode #map .maplibregl-canvas{
 
 transition:filter .28s ease;
}
/* Controles sobre el mapa */

body.dark-mode .maplibregl-ctrl-group button{
 background-color:transparent!important;
}




/* Etiqueta superior del mapa */

/* Modo oscuro gris grafito: menos negro, integrado con el sidebar */

body.dark-mode #map .maplibregl-canvas{
 
 opacity:.96;
}

/* Suaviza la interfaz del mapa para que comparta la paleta grafito */



/* El selector de tema nunca aparece en la portada */
body:not(.map-is-visible) .theme-toggle{
 opacity:0!important;
 visibility:hidden!important;
 pointer-events:none!important;
 transform:translateY(-8px) scale(.94)!important;
}
body.map-is-visible .theme-toggle{
 opacity:1!important;
 visibility:visible!important;
 pointer-events:auto!important;
 transform:translateY(0) scale(1)!important;
}
.theme-toggle{
 transition:opacity .22s ease,visibility .22s ease,transform .22s ease,
            background .25s ease,border-color .25s ease!important;
}

/* Regla definitiva: oculto por defecto, visible únicamente tras entrar al mapa */

/* Variante 3 — Modo oscuro gris minimalista */
body.dark-mode{
 background:#20262a!important;
}

/* Sidebar: grafito suave, no negro */
body.dark-mode .sidebar,
body.dark-mode aside{
 
 border-color:rgba(255,255,255,.075)!important;
 color:#eef1f2!important;
}

/* Buscador y controles */
body.dark-mode .sidebar input,
body.dark-mode aside input,
body.dark-mode .search,
body.dark-mode .search-box{
 background:#30363a!important;
 border-color:rgba(255,255,255,.085)!important;
 color:#eef1f2!important;
}
body.dark-mode .route,
body.dark-mode .route-item,
body.dark-mode .route-card{
 background:transparent!important;
 border-color:rgba(255,255,255,.055)!important;
}
body.dark-mode .route:hover,
body.dark-mode .route-item:hover,
body.dark-mode .route-card:hover{
 background:rgba(255,255,255,.035)!important;
}

/* MAPA — gris neutro minimalista */
body.dark-mode #map{
 
 filter:none!important;
}
body.dark-mode #map .maplibregl-canvas{
 /*
  Positron claro convertido a gris nocturno suave:
  sin negro absoluto y prácticamente sin color.
 */
 
 
 transition:filter .28s ease!important;
}

/* El borde del mapa se integra con el panel */
body.dark-mode #map,
body.dark-mode .map-wrap,
body.dark-mode .map-container{
 border-color:rgba(255,255,255,.09)!important;
}

/* Etiqueta superior */
body.dark-mode .map-badge,
body.dark-mode .map-label,
body.dark-mode .map-title{
 
 color:#edf0f1!important;
 border:1px solid rgba(255,255,255,.09)!important;
 box-shadow:0 7px 22px rgba(0,0,0,.14)!important;
}

/* Controles MapLibre */
body.dark-mode .maplibregl-ctrl-group{
 
 border:1px solid rgba(255,255,255,.09)!important;
 box-shadow:0 7px 20px rgba(0,0,0,.17)!important;
}
body.dark-mode .maplibregl-ctrl-group button{
 
 border-color:rgba(255,255,255,.07)!important;
}
body.dark-mode .maplibregl-ctrl-group button:hover{
 background:#373e42!important;
}
body.dark-mode .maplibregl-ctrl-icon{
 filter:invert(1) opacity(.82)!important;
}
body.dark-mode .maplibregl-ctrl-attrib{
 background:rgba(39,45,49,.88)!important;
 color:#aab2b6!important;
}
body.dark-mode .maplibregl-ctrl-attrib a{color:#d4d9dc!important;}

/* Botón claro/oscuro: solo mapa, conservando la corrección anterior */

body.map-mode-active .theme-toggle{
 
 background:rgba(44,50,54,.94);
 border-color:rgba(255,255,255,.10);
}
body:not(.dark-mode).map-mode-active .theme-toggle{
 background:rgba(255,255,255,.92);
 border-color:rgba(35,42,47,.12);
}

/* Variante 3 corregida — gris frío / azul grafito */
body.dark-mode #map{
 background:#202a31!important;
}
body.dark-mode #map .maplibregl-canvas{
 filter:none!important;
 opacity:1!important;
}
body.dark-mode .sidebar,
body.dark-mode aside{
 background:linear-gradient(180deg,#20282e 0%,#1d252a 100%)!important;
}
body.dark-mode .maplibregl-ctrl-group{
 background:#202930!important;
 border-color:rgba(185,207,220,.12)!important;
}
body.dark-mode .maplibregl-ctrl-group button{
 background:#202930!important;
}
body.dark-mode .map-badge,
body.dark-mode .map-label,
body.dark-mode .map-title{
 background:rgba(31,40,46,.95)!important;
 border-color:rgba(185,207,220,.12)!important;
}

/* MODO CLARO ORIGINAL — no modificar */
body:not(.dark-mode){
 background:#f3f5f4!important;
 color:#202529!important;
}
body:not(.dark-mode) .sidebar,
body:not(.dark-mode) aside{
 background:rgba(66,73,77,.94)!important;
 color:#f3f5f5!important;
 border-color:rgba(255,255,255,.13)!important;
}
body:not(.dark-mode) .sidebar input,
body:not(.dark-mode) aside input,
body:not(.dark-mode) .search,
body:not(.dark-mode) .search-box{
 background:rgba(255,255,255,.09)!important;
 color:#f3f5f5!important;
 border-color:rgba(255,255,255,.13)!important;
}
body:not(.dark-mode) #map{
 background:#eef1ef!important;
 filter:none!important;
}
body:not(.dark-mode) #map .maplibregl-canvas{
 filter:none!important;
 opacity:1!important;
}
body:not(.dark-mode) .maplibregl-ctrl-group{
 background:#fff!important;
 border-color:rgba(20,28,32,.08)!important;
}
body:not(.dark-mode) .maplibregl-ctrl-group button{
 background:#fff!important;
}
body:not(.dark-mode) .maplibregl-ctrl-icon{
 filter:none!important;
}
body:not(.dark-mode) .map-badge,
body:not(.dark-mode) .map-label,
body:not(.dark-mode) .map-title{
 background:rgba(255,255,255,.92)!important;
 color:#343a3e!important;
 border-color:rgba(25,32,36,.08)!important;
}

/* Centrado exacto del icono claro/oscuro */
.theme-toggle{
 display:none!important;
 align-items:center!important;
 justify-content:center!important;
 padding:0!important;
 line-height:1!important;
}
body.map-mode-active .theme-toggle{
 display:flex!important;
}
.theme-toggle .theme-sun,
.theme-toggle .theme-moon{
 position:absolute!important;
 inset:0!important;
 width:100%!important;
 height:100%!important;
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 margin:0!important;
 padding:0!important;
 line-height:1!important;
 text-align:center!important;
 transform-origin:center center!important;
}
body:not(.dark-mode) .theme-toggle .theme-moon{
 opacity:1!important;
 transform:translate(0,0) scale(1)!important;
}
body:not(.dark-mode) .theme-toggle .theme-sun{
 opacity:0!important;
 transform:translate(0,0) scale(.65) rotate(-30deg)!important;
}
body.dark-mode .theme-toggle .theme-sun{
 opacity:1!important;
 transform:translate(0,0) scale(1)!important;
}
body.dark-mode .theme-toggle .theme-moon{
 opacity:0!important;
 transform:translate(0,0) scale(.65) rotate(30deg)!important;
}

.detail-btn{display:none!important;}
#myLocationBtn{width:100%;margin-top:10px;border:1px solid rgba(120,120,120,.22);border-radius:12px;padding:11px 12px;cursor:pointer;background:rgba(255,255,255,.58);color:inherit;font:600 13px system-ui;}
body.dark #myLocationBtn,body.dark-mode #myLocationBtn{background:rgba(255,255,255,.07);}
/* Todas las rutas usan el placeholder normal del transporte mientras no haya foto real. */
#selectedCard.cg-photo .route-photo{background-image:none!important;}
#selectedCard.cg-photo .route-photo .vehicle-demo{display:block!important;}
#selectedCard.cg-photo .photo-tag{display:inline-flex!important;}

.photo-tag{display:none!important;}

/* Selector de tema disponible también en la pantalla principal */
#landingThemeToggle{
  position:absolute;
  top:22px;
  right:24px;
  z-index:20;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(35,42,46,.12);
  background:rgba(255,255,255,.72);
  color:#20272b;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.2s ease;
}
#landingThemeToggle:hover{transform:translateY(-1px);}
#landingThemeToggle svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;}
body.dark #landingThemeToggle,
body.dark-mode #landingThemeToggle{
  background:rgba(35,42,46,.72);
  color:#f4f7f8;
  border-color:rgba(255,255,255,.12);
  box-shadow:0 8px 24px rgba(0,0,0,.24);
}

/* Modo oscuro visual también para la portada */
body.dark #landing,
body.dark-mode #landing,
body.dark .landing,
body.dark-mode .landing,
body.dark #home,
body.dark-mode #home,
body.dark .home,
body.dark-mode .home,
body.dark #intro,
body.dark-mode #intro,
body.dark .intro,
body.dark #welcome,
body.dark-mode #welcome,
body.dark .welcome{
  background:#151a1d !important;
  color:#f4f6f7 !important;
}

/* La portada real de esta versión usa elementos claros propios.
   Esta capa oscurece el fondo sin afectar animaciones ni controles. */
body.dark::before,
body.dark-mode::before{
  content:"";
  position:fixed;
  inset:0;
  background:#151a1d;
  z-index:-2;
  pointer-events:none;
}

/* Transición suave al cambiar de tema */
body,
#landing,.landing,#home,.home,#intro,.intro,#welcome,.welcome{
  transition:background-color .28s ease,color .28s ease;
}

/* Viñeta visible al activar modo oscuro desde la portada */
#landingDarkVignette{
  position:fixed;
  inset:0;
  z-index:9;
  pointer-events:none;
  opacity:0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(7,10,12,.08) 0%,
      rgba(7,10,12,.18) 35%,
      rgba(7,10,12,.62) 72%,
      rgba(5,7,9,.90) 100%
    );
  transition:opacity .45s ease;
}
body.dark #landingDarkVignette,
body.dark-mode #landingDarkVignette{
  opacity:1;
}

/* El contenido de portada queda por encima de la viñeta,
   pero sus superficies también se oscurecen para que el cambio sea completo. */
body.dark #landingThemeToggle,
body.dark-mode #landingThemeToggle{
  z-index:21;
}

#landingDarkVignette{
  position:fixed!important;
  inset:0!important;
  
  pointer-events:none!important;
  opacity:0!important;
  background:
    radial-gradient(
      ellipse 72% 68% at 50% 48%,
      rgba(0,0,0,.08) 0%,
      rgba(0,0,0,.18) 28%,
      rgba(0,0,0,.43) 56%,
      rgba(0,0,0,.72) 78%,
      rgba(0,0,0,.88) 100%
    )!important;
  transition:opacity .38s ease!important;
}
body.dark #landingDarkVignette,
body.dark-mode #landingDarkVignette{
  opacity:1!important;
}

/* El selector de tema queda accesible sobre la viñeta. */


/* La tarjeta central conserva legibilidad pero queda integrada en el ambiente oscuro. */
body.dark .landing-card,
body.dark-mode .landing-card,
body.dark .hero-card,
body.dark-mode .hero-card{
  box-shadow:0 28px 80px rgba(0,0,0,.42)!important;
}

#landingDarkVignette{
  z-index:2147483000!important;
}
#landingThemeToggle{
  position:fixed!important;
  z-index:2147483647!important;
  isolation:isolate!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
body.dark #landingThemeToggle,
body.dark-mode #landingThemeToggle{
  opacity:1!important;
  filter:none!important;
}

#placeSearchStatus{
  margin-top:10px;
  min-height:18px;
  font-size:11px;
  color:rgba(255,255,255,.72);
  line-height:1.35;
}
#placeSearchStatus.searching{opacity:.75;}
.nearest-route-note{
  margin:10px 0 2px;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.055);
  font-size:11px;
  line-height:1.4;
  color:#d8dcde;
}
.nearest-route-note strong{color:#fff;}
.place-marker{
  width:22px;height:22px;border-radius:50% 50% 50% 0;
  background:#276EF1;border:3px solid #fff;
  box-shadow:0 3px 12px rgba(0,0,0,.35);
  transform:rotate(-45deg);
}
.place-marker::after{
  content:"";position:absolute;width:6px;height:6px;border-radius:50%;
  background:#fff;left:5px;top:5px;
}

.destination-box{position:relative;}
#placeSuggestions{
  position:absolute;
  left:0;right:0;
  top:calc(100% + 8px);
  z-index:2147483645;
  display:none;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  background:rgba(53,61,65,.96);
  box-shadow:0 16px 38px rgba(0,0,0,.28);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
#placeSuggestions.show{display:block;}
.place-suggestion{
  width:100%;
  min-height:52px;
  padding:10px 12px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:transparent;
  color:#f4f6f7;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  cursor:pointer;
}
.place-suggestion:last-child{border-bottom:0;}
.place-suggestion:hover,.place-suggestion:focus{
  background:rgba(255,255,255,.08);
  outline:none;
}
.suggestion-pin{
  flex:0 0 30px;width:30px;height:30px;border-radius:9px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.08);
  font-size:13px;
}
.suggestion-copy{min-width:0;}
.suggestion-name{
  display:block;font-size:12px;font-weight:700;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.suggestion-address{
  display:block;margin-top:2px;font-size:10px;
  color:rgba(244,246,247,.56);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.suggestion-loading,.suggestion-empty{
  padding:12px;font-size:11px;color:rgba(244,246,247,.62);
}

.landing-map-pick{
 width:100%;height:43px;margin:9px 0 0;border-radius:13px;
 border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.055);
 color:#e9edef;font:700 11px/1 inherit;cursor:pointer;
}
.landing-map-pick:hover{background:rgba(255,255,255,.09);}
.sidebar-destination-pick{
 width:100%;height:42px;margin:8px 0 10px;border-radius:12px;
 border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);
 color:#eef1f2;font-size:11px;font-weight:700;display:flex;align-items:center;
 justify-content:center;gap:7px;cursor:pointer;
}
.sidebar-destination-pick:hover{background:rgba(255,255,255,.11);}
.destination-picker{
 position:fixed;inset:0;z-index:2147483646;display:none;align-items:center;
 justify-content:center;padding:24px;background:rgba(8,12,14,.72);
 backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.destination-picker.open{display:flex;}
.destination-picker-card{
 width:min(880px,94vw);height:min(680px,86vh);min-height:480px;
 background:#343b3f;border:1px solid rgba(255,255,255,.15);
 border-radius:22px;overflow:hidden;display:flex;flex-direction:column;
 box-shadow:0 28px 80px rgba(0,0,0,.42);
}
.picker-head{height:68px;flex:0 0 68px;padding:0 18px;display:flex;
 align-items:center;justify-content:space-between;color:#f5f7f7;
 border-bottom:1px solid rgba(255,255,255,.1);}
.picker-head strong{display:block;font-size:14px;}
.picker-head span{display:block;font-size:10px;color:#aeb5b8;margin-top:4px;}
#pickerClose{width:36px;height:36px;border:0;border-radius:10px;
 background:rgba(255,255,255,.08);color:#fff;font-size:22px;cursor:pointer;}
#destinationPickerMap{flex:1;min-height:300px;}
.picker-foot{min-height:70px;padding:11px 14px;display:flex;gap:12px;
 align-items:center;justify-content:space-between;border-top:1px solid rgba(255,255,255,.1);}
#pickerStatus{font-size:10px;color:#b7bec1;max-width:60%;}
#pickerConfirm{height:42px;padding:0 18px;border:0;border-radius:12px;
 background:#f1f3f3;color:#252b2f;font-size:11px;font-weight:800;cursor:pointer;}
#pickerConfirm:disabled{opacity:.38;cursor:default;}
.picker-point{width:24px;height:24px;border-radius:50% 50% 50% 0;
 background:#276EF1;border:3px solid #fff;box-shadow:0 3px 12px rgba(0,0,0,.35);
 transform:rotate(-45deg);}
@media(max-width:650px){
 .destination-picker{padding:10px}
 .destination-picker-card{width:100%;height:78vh;border-radius:18px}
 .picker-foot{align-items:stretch;flex-direction:column}
 #pickerStatus{max-width:none}
 #pickerConfirm{width:100%}
}

.route-search2{position:relative;}
#sidebarPlaceSearch{
 position:absolute;right:7px;top:50%;transform:translateY(-50%);
 width:30px;height:30px;border:0;border-radius:8px;
 background:rgba(255,255,255,.08);color:inherit;cursor:pointer;
 display:grid;place-items:center;font-size:13px;
}
#sidebarPlaceSearch:hover{background:rgba(255,255,255,.14);}
.route-search2 input{padding-right:42px!important;}
#sidebarPlaceStatus{
 font-size:10px;line-height:1.35;margin:-3px 2px 7px;
 color:rgba(255,255,255,.62);display:none;
}
#sidebarPlaceStatus.show{display:block;}

body.map-point-picking #map{cursor:crosshair!important;}
body.map-point-picking #sidebarDestinationPick{
 background:rgba(255,255,255,.14)!important;
 border-color:rgba(255,255,255,.28)!important;
}
#mapPickHint{
 position:absolute;z-index:20;left:50%;top:18px;transform:translateX(-50%);
 padding:9px 13px;border-radius:12px;background:rgba(42,49,53,.92);
 color:#fff;font-size:11px;font-weight:700;box-shadow:0 8px 25px rgba(0,0,0,.18);
 display:none;pointer-events:none;white-space:nowrap;
}
body.map-point-picking #mapPickHint{display:block;}

/* La portada conserva el selector en ventana con su mapa independiente. */
#destinationPicker.open{display:flex!important;}

#globalThemeToggle{
 position:fixed!important;
 top:18px!important;
 right:18px!important;
 z-index:2147483647!important;
 width:42px!important;
 height:42px!important;
 border-radius:13px!important;
 border:1px solid rgba(255,255,255,.16)!important;
 background:rgba(55,62,66,.78)!important;
 color:#fff!important;
 display:grid!important;
 place-items:center!important;
 cursor:pointer!important;
 backdrop-filter:blur(14px)!important;
 -webkit-backdrop-filter:blur(14px)!important;
 box-shadow:0 6px 22px rgba(0,0,0,.16)!important;
 opacity:1!important;
 visibility:visible!important;
 transform:none!important;
 filter:none!important;
 mix-blend-mode:normal!important;
}
body:not(.dark):not(.dark-mode) #globalThemeToggle{
 background:rgba(255,255,255,.86)!important;
 color:#30373b!important;
 border-color:rgba(30,40,45,.12)!important;
}
#landingThemeToggle{display:none!important;}

#globalThemeToggle{
 pointer-events:auto!important;
}
