/* Transportes Tijuana: visor de rutas que cruzan un radio elegido. */
.tt-nearby-launch{display:none;position:absolute;top:14px;left:14px;z-index:230;
 align-items:center;gap:8px;min-height:43px;padding:9px 14px;border:1px solid #ffffff6a;
 border-radius:13px;background:#f4f8fc;color:#1b3a55;box-shadow:0 5px 18px #14263840;
 font:800 12px/1.2 Inter,system-ui,sans-serif;cursor:pointer;}
body.map-mode-active .tt-nearby-launch:not([hidden]){display:inline-flex}
.tt-nearby-launch[aria-expanded="true"]{background:#1769aa;color:white;border-color:#1769aa}
.tt-nearby-launch:focus-visible,.tt-nearby-panel button:focus-visible,
.tt-nearby-panel input:focus-visible{outline:3px solid #62b9ff;outline-offset:2px}
.tt-nearby-panel{position:absolute;top:67px;left:14px;z-index:315;
 display:flex;flex-direction:column;width:min(366px,calc(100% - 28px));max-height:calc(100% - 82px);
 border-radius:18px;border:1px solid #d7e4ee;background:rgba(248,251,254,.98);
 box-shadow:0 16px 46px #091f345c;color:#243543;overflow:hidden;
 font:500 12px/1.45 Inter,system-ui,sans-serif;backdrop-filter:blur(14px)}
.tt-nearby-panel[hidden]{display:none!important}
.tt-nearby-head{display:flex;align-items:start;gap:10px;padding:15px 15px 9px}
.tt-nearby-head h2{margin:0;font-size:16px;line-height:1.25;font-weight:850;color:inherit}
.tt-nearby-head p{margin:4px 0 0;font-size:11px;color:#637689}
.tt-nearby-close{flex:none;margin-left:auto;width:30px;height:30px;border:0;border-radius:9px;background:#e5edf4;color:#315068;font-size:21px;cursor:pointer}
.tt-nearby-actions{display:flex;gap:8px;padding:0 15px 10px}
.tt-nearby-actions button{flex:1;min-height:39px;border:1px solid #c8d9e6;border-radius:10px;background:white;color:#224a6b;font:800 11px/1.3 Inter,system-ui,sans-serif;cursor:pointer;padding:8px}
.tt-nearby-actions button.tt-nearby-gps{background:#1a6daf;color:white;border-color:#1a6daf}
.tt-nearby-hint{padding:0 15px 7px;font-size:11px;min-height:20px;color:#61788b}
.tt-nearby-hint.error{color:#ad3539}
.tt-nearby-range{padding:9px 15px 12px;border-top:1px solid #dce7ee;border-bottom:1px solid #dce7ee}
.tt-nearby-range-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:750;font-size:12px}
.tt-nearby-range-output{font-size:15px;color:#1268b1;white-space:nowrap}
.tt-nearby-range input{display:block;width:100%;height:25px;margin:5px 0 2px;accent-color:#197bc8;cursor:pointer;touch-action:pan-x}
.tt-nearby-ticks{display:flex;justify-content:space-between;color:#6d7c88;font-size:10px}
.tt-nearby-results-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;padding:11px 15px 5px}
.tt-nearby-count{font-size:12px;font-weight:850}
.tt-nearby-small{font-size:10px;color:#7a8793;text-align:right}
.tt-nearby-results{padding:0 10px 10px;overflow:auto;overscroll-behavior:contain;min-height:52px}
.tt-nearby-empty{padding:12px;color:#607486;font-size:12px;line-height:1.55;text-align:center}
.tt-nearby-item{display:flex;gap:9px;align-items:flex-start;padding:10px 7px;border-bottom:1px solid #e2eaf0}
.tt-nearby-item-selected{background:#e7f3fe;border-radius:10px;box-shadow:inset 3px 0 #1877bb}
.tt-nearby-swatch{flex:none;align-self:flex-start;margin-top:5px;width:10px;height:10px;border-radius:50%;background:var(--route-color,#408acd);box-shadow:0 0 0 2px #ffffff,0 0 0 3px #bacbd8}
.tt-nearby-item-info{min-width:0;flex:1}
.tt-nearby-name{display:block;width:100%;text-align:left;padding:0;background:none;border:0;cursor:pointer;
 font:770 11.5px/1.35 Inter,system-ui,sans-serif;overflow-wrap:anywhere;color:#273a49}
.tt-nearby-name:hover{text-decoration:underline;text-underline-offset:2px}
.tt-nearby-item-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}
.tt-nearby-info{border:1px solid #1972b6;border-radius:9px;background:#176eaf;color:#fff;
 padding:8px 10px;min-height:34px;font:800 10px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
.tt-nearby-distance{font-size:10px;color:#728394;margin-top:3px}
.tt-nearby-full{flex:none;border:1px solid #c4d8eb;border-radius:9px;background:#eaf4fe;color:#135987;
 padding:8px 9px;min-height:34px;font:800 10px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
.tt-nearby-foot{padding:9px 15px 12px;border-top:1px solid #dde7ee;font-size:10px;line-height:1.4;color:#647889}
.tt-nearby-center-marker{width:27px;height:27px;border:4px solid #fff;background:#1675c5;border-radius:50%;
 box-shadow:0 0 0 3px #175d99,0 2px 12px #092e5573;cursor:grab;touch-action:none}
.tt-nearby-center-marker:active{cursor:grabbing}
body.tt-nearby-marking .maplibregl-canvas{cursor:crosshair!important}
.tt-nearby-pick-notice{position:absolute;z-index:310;top:116px;left:14px;
 border-radius:11px;padding:10px 13px;max-width:min(320px,calc(100% - 28px));
 border:1px solid #93c5ea;background:#eaf6ff;color:#194c71;
 box-shadow:0 6px 22px #08233a4a;font:800 12px/1.35 Inter,system-ui,sans-serif;
 pointer-events:none}
.tt-nearby-pick-notice[hidden]{display:none!important}
.tt-nearby-actions button.tt-nearby-pick-armed{background:#e1f1fd;border-color:#1679c1;color:#145e92}
@media(max-width:760px){.tt-nearby-pick-notice{top:113px;left:12px;font-size:11px}}
body.dark-mode .tt-nearby-panel,body.dark .tt-nearby-panel{background:rgba(33,42,50,.98);border-color:#5f717f;color:#eaf4fc}
body.dark-mode .tt-nearby-head p,body.dark-mode .tt-nearby-hint,body.dark-mode .tt-nearby-distance,
body.dark-mode .tt-nearby-foot,body.dark-mode .tt-nearby-small{color:#b6c6d4}
body.dark-mode .tt-nearby-name{color:#f2f7fb}
body.dark-mode .tt-nearby-item{border-bottom-color:#465968}
body.dark-mode .tt-nearby-range,body.dark-mode .tt-nearby-foot{border-color:#445665}
body.dark-mode .tt-nearby-actions button:not(.tt-nearby-gps){background:#344653;border-color:#6c8293;color:#f0f6fc}
body.dark-mode .tt-nearby-close{background:#435563;color:#fff}
@media(max-width:760px){
 .tt-nearby-launch{top:62px;left:12px;min-height:39px;padding:8px 11px;font-size:11px}
 .tt-nearby-panel{top:auto;left:10px;bottom:10px;width:calc(100% - 20px);max-height:min(53dvh,480px);border-radius:17px}
 .tt-nearby-head{padding:11px 12px 7px}
 .tt-nearby-actions{padding:0 12px 8px}
 .tt-nearby-range{padding:7px 12px 8px}
 .tt-nearby-results-head{padding:7px 12px 3px}
 .tt-nearby-results{padding:0 9px 6px}
 .tt-nearby-foot{padding:7px 12px 9px}
}

body.dark-mode .tt-nearby-item-selected{background:#254659;box-shadow:inset 3px 0 #65b8ef}
body.dark-mode .tt-nearby-info{background:#1879bc;color:white}
.tt-nearby-info:hover,.tt-nearby-full:hover{filter:brightness(1.10)}

/* Pantalla móvil: las rutas cercanas REEMPLAZAN el contenido del panel
   deslizable original. Es el mismo #ttSidebarPanel y el mismo #ttSheetGrip. */
@media(max-width:760px){
 body.tt-nearby-sheet .app-shell>.sidebar .sidebar-main> :not(#ttNearbyPanel){display:none!important}
 body.tt-nearby-sheet .app-shell>.sidebar .sidebar-main{
  padding:4px 13px max(24px,env(safe-area-inset-bottom))!important;
  overscroll-behavior:contain;
 }
 body.tt-nearby-sheet #ttNearbyPanel{
  display:flex;position:relative;inset:auto;z-index:auto;flex:0 0 auto;
  width:100%;max-height:none;min-height:0;margin:0;padding:0;
  border:1px solid rgba(255,255,255,.16);border-radius:16px;
  background:rgba(255,255,255,.065);box-shadow:none;
  color:#f3f7fb;backdrop-filter:none;overflow:visible;
 }
 body.tt-nearby-sheet #ttNearbyPanel[hidden]{display:none!important}
 body.tt-nearby-sheet .tt-nearby-head{padding:13px 13px 9px}
 body.tt-nearby-sheet .tt-nearby-head h2{font-size:15px;color:#f3f7fb}
 body.tt-nearby-sheet .tt-nearby-head p{font-size:11px;color:#c5d0d9}
 body.tt-nearby-sheet .tt-nearby-close{background:#65717b;color:#fff}
 body.tt-nearby-sheet .tt-nearby-actions{padding:0 12px 10px}
 body.tt-nearby-sheet .tt-nearby-actions button:not(.tt-nearby-gps){
  background:#394b59;border-color:#738492;color:#f5f8fb}
 body.tt-nearby-sheet .tt-nearby-hint{color:#c3d0db}
 body.tt-nearby-sheet .tt-nearby-hint.error{color:#ffafb4}
 body.tt-nearby-sheet .tt-nearby-range,
 body.tt-nearby-sheet .tt-nearby-foot{border-color:rgba(255,255,255,.16)}
 body.tt-nearby-sheet .tt-nearby-range-output{color:#8fceff}
 body.tt-nearby-sheet .tt-nearby-ticks,
 body.tt-nearby-sheet .tt-nearby-small,
 body.tt-nearby-sheet .tt-nearby-distance,
 body.tt-nearby-sheet .tt-nearby-foot,
 body.tt-nearby-sheet .tt-nearby-empty{color:#bdcbd7}
 body.tt-nearby-sheet .tt-nearby-name{color:#f5f8fb;font-size:12px}
 body.tt-nearby-sheet .tt-nearby-item{border-color:rgba(255,255,255,.14)}
 body.tt-nearby-sheet .tt-nearby-item-selected{background:rgba(24,119,187,.25);box-shadow:inset 3px 0 #70c2ff}
 body.tt-nearby-sheet .tt-nearby-full{background:#334c62;color:#e1f0ff;border-color:#587e9c}
 body.tt-nearby-sheet .tt-nearby-results{overflow:visible;max-height:none;padding:0 9px 10px}
 body.tt-nearby-sheet .tt-nearby-foot{padding:10px 12px 12px}
}

body.tt-nearby-sheet .tt-nearby-actions button.tt-nearby-pick-armed{background:#275e85;border-color:#71b8e9;color:#fff}
