/* FindSetas 0.7.4 / FindBolets 0.9.194 (PC: botones pegados al borde derecho, encima de la pestaña, como en el móvil) · FindSetas 0.7.3 / FindBolets 0.9.193 · FindSetas 0.7.2 / FindBolets 0.9.192 (también en PC: pestaña a la izquierda) · FindSetas 0.7.1 / FindBolets 0.9.191 (botones laterales un 25 % más pequeños, logo completo en el círculo) · 0.9.190 (logo a la izquierda, Localizar y Presión laterales, iniciales) · 0.9.189 · Interfaz móvil nueva: mapa a pantalla completa, logo flotante, pestaña inferior
   con la seta y Calcular, botones a la derecha y menú ☰ fijo. Solo móvil/tableta (<1024 px).
   No toca cálculos, máscaras ni datos: reutiliza los controles originales. */
#fb189Root{display:none}
@media all{
 body.fb189{--fb-bar-height:0px!important;--fb189-h:28px;--fb189-accent:#1f4d3a;overscroll-behavior:none}
 body.fb189 #fb189Root{display:block}
 body.fb189 #fbHeader127{display:none!important}
 body.fb189 .frame{height:100vh!important;height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important}
 body.fb189 #map{height:100vh!important;height:100dvh!important;min-height:0!important;max-height:none!important}
 body.fb189 #gpsBtn,body.fb189 #fbFind145,body.fb189 #zoomPanel101,body.fb189 .leaflet-control-zoom,body.fb189 #fbNote151,body.fb189 #mobileOptionsBtn{display:none!important}
 body.fb189 .leaflet-bottom{bottom:var(--fb189-h)!important;transition:bottom .32s cubic-bezier(.2,.8,.2,1)}
 body.fb189.fb189-drag .leaflet-bottom{transition:none}
 body.fb189 .leaflet-control-attribution{font-size:10px!important;background:rgba(255,255,255,.75)!important;margin-left:66px!important}
 body.fb189 #status,body.fb189 #pressureStatus131{display:none!important}
 body.fb189.fb127-open #layersMenu #status{display:block!important}

 /* Logo flotante */
 #fb189Logo{position:fixed;top:calc(12px + env(safe-area-inset-top));left:12px;z-index:2100;width:96px;height:96px;border-radius:50%;padding:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;background:rgba(255,255,255,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 2px 10px rgba(20,40,30,.12);pointer-events:none}
 #fb189Logo img{width:78%;height:auto;display:block}
 #fb189Logo.fb189LogoLink{pointer-events:auto;-webkit-tap-highlight-color:transparent}
 body.fb189 #fsDiagAndBtn,body.fb189 #fsRegionSwitch{display:none!important}

 /* Aviso corto (estado del cálculo) */
 #fb189Note{position:fixed;top:calc(30px + env(safe-area-inset-top));left:calc(50% + 30px);max-width:calc(100vw - 150px)!important;left:50%;transform:translateX(-50%);z-index:2100;max-width:calc(100vw - 40px);padding:7px 12px;border-radius:999px;background:#17251e;color:#fff;font:600 12px/1.3 Manrope,system-ui,sans-serif;box-shadow:0 6px 18px rgba(20,40,30,.25);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;animation:fb189In .25s ease-out}
 #fb189Note[hidden]{display:none}
 #fb189Note.warn{background:#7a5200}

 /* Buscador */
 #fb189Search{position:fixed;top:calc(116px + env(safe-area-inset-top));left:14px;right:14px;z-index:2220;background:#fff;border-radius:14px;box-shadow:0 6px 24px rgba(20,40,30,.16);overflow:hidden;animation:fb189In .25s ease-out;font-family:Manrope,system-ui,sans-serif}
 #fb189Search[hidden]{display:none}
 #fb189Search form{display:flex;align-items:center;gap:8px;height:46px;padding:0 6px 0 12px}
 #fb189Search input{flex:1;min-width:0;border:0;outline:none;font:inherit;font-size:16px;color:#17251e;background:transparent}
 #fb189Search button{width:36px;height:36px;border:0;border-radius:8px;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}
 #fb189SearchMsg{padding:0 12px 10px;font-size:12px;color:#4b5a52}
 #fb189SearchMsg:empty{display:none}

 /* Botones de la derecha */
 #fb189Tools{position:fixed;right:14px;bottom:max(80px,calc(var(--fb189-h) + 14px));z-index:2100;display:flex;flex-direction:column;gap:6px;transition:bottom .32s cubic-bezier(.2,.8,.2,1)}
 body.fb189-drag #fb189Tools{transition:none}
 body.fb189-tall #fb189Tools,body.fb127-open #fb189Tools{display:none}
 .fb189Round{width:33px;height:33px;border-radius:50%;border:0;background:#fff;box-shadow:0 2px 10px rgba(20,40,30,.16);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#17251e;padding:0}
 .fb189Round.on{background:var(--fb189-accent);color:#fff}
 .fb189Round svg,.fb189Zoom svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .fb189Zoom{display:flex;flex-direction:column;border-radius:17px;background:#fff;box-shadow:0 2px 10px rgba(20,40,30,.16);overflow:hidden}
 .fb189Zoom button{width:33px;height:33px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#17251e;padding:0}
 .fb189Zoom span{height:1px;background:#e4e7e1;margin:0 7px}
 #fb189LayersWrap{position:relative}
 #fb189Layers{position:absolute;right:42px;top:-8px;width:170px;padding:6px;border-radius:12px;background:#fff;box-shadow:0 6px 24px rgba(20,40,30,.18);display:flex;flex-direction:column;animation:fb189In .2s ease-out;font-family:Manrope,system-ui,sans-serif}
 #fb189Layers[hidden]{display:none}
 #fb189Layers button{display:flex;align-items:center;justify-content:space-between;height:38px;padding:0 10px;border:0;border-radius:8px;background:transparent;font:600 13px Manrope,system-ui,sans-serif;color:#17251e;cursor:pointer;text-align:left}
 #fb189Layers button[aria-checked=true]{background:#eef3ee}
 #fb189Layers button[aria-checked=true]::after{content:"✓";color:var(--fb189-accent);font-weight:800}

 /* Pestaña inferior */
 #fb189Sheet{position:fixed;left:0;right:0;bottom:0;z-index:2100;height:var(--fb189-h);background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -6px 24px rgba(20,40,30,.12);display:flex;flex-direction:column;overflow:hidden;transition:height .32s cubic-bezier(.2,.8,.2,1);font-family:Manrope,system-ui,sans-serif;color:#17251e;padding-bottom:env(safe-area-inset-bottom)}
 body.fb189-drag #fb189Sheet{transition:none}
 body.fb127-open #fb189Sheet{visibility:hidden}
 #fb189Handle{flex:none;height:28px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:grab;touch-action:none;padding:0;width:100%}
 #fb189Handle span{width:40px;height:4px;border-radius:2px;background:#c8cfc9}
 #fb189Body{flex:1;min-height:0;overflow-y:auto;padding:0 16px 76px;-webkit-overflow-scrolling:touch}
 .fb189View[hidden]{display:none!important}
 .fb189View{animation:fb189In .25s ease-out}
 .fb189Label{display:block;font-size:12px;font-weight:700;letter-spacing:1.2px;color:#4b5a52;text-transform:uppercase}
 .fb189Row{display:flex;align-items:center;gap:8px;margin-top:8px}
 #fb189Pick{flex:1;min-width:0;height:48px;display:flex;align-items:center;gap:10px;padding:0 10px 0 5px;border:1px solid #dfe4de;border-radius:12px;background:#fff;cursor:pointer;text-align:left;font:inherit;color:#17251e}
 .fb189Ico{width:38px;height:38px;border-radius:50%;overflow:hidden;flex:none;background:var(--c,#3f4c36);display:flex;align-items:center;justify-content:center}
 .fb189Ico img{width:100%;height:100%;object-fit:cover;background:#fff}
 .fb189Ico svg{width:72%;height:72%}
 .fb189Names{flex:1;min-width:0;display:flex;flex-direction:column}
 .fb189Names b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .fb189Names i{font-size:12px;color:#4b5a52;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #fb189Pick>svg{width:16px;height:16px;flex:none;stroke:#17251e;fill:none;stroke-width:2}
 #fb189Calc{flex:none;height:48px;min-width:104px;padding:0 14px;border:0;border-radius:12px;background:var(--fb189-accent);color:#fff;font:700 14px Manrope,system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px}
 #fb189Calc .spin{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:fb189Spin .8s linear infinite;display:none}
 #fb189Calc.busy .spin{display:block}
 #fb189Hint{display:block;margin-top:6px;font-size:12px;color:#4b5a52;line-height:1.4}
 .fb189Top{display:flex;align-items:center;justify-content:space-between;padding-bottom:6px}
 .fb189Link{border:0;background:transparent;font:700 13px Manrope,system-ui,sans-serif;color:var(--fb189-accent);cursor:pointer;padding:6px 2px}
 .fb189Sp{width:100%;display:flex;align-items:center;gap:10px;padding:6px;border:0;border-radius:12px;background:transparent;cursor:pointer;text-align:left;font:inherit;color:#17251e}
 .fb189Sp .fb189Ico{width:40px;height:40px}
 .fb189Sp[aria-checked=true]{background:#eef3ee}
 .fb189Sp[aria-checked=true] .fb189Ico{box-shadow:0 0 0 2px var(--fb189-accent)}
 .fb189Acc{display:flex;align-items:center;gap:10px;padding-bottom:8px;border-bottom:1px solid #e4e7e1;cursor:pointer}
 .fb189Avatar{position:relative;width:36px;height:36px;flex:none;border-radius:50%;background:var(--fb189-accent);display:flex;align-items:center;justify-content:center;overflow:hidden}
 .fb189Avatar svg{position:absolute;width:30px;height:30px;bottom:-4px;fill:#fff;stroke:none;opacity:.9}
 .fb189Avatar b{position:relative;font-size:13px;font-weight:800;color:#fff;letter-spacing:.3px;text-shadow:0 1px 2px rgba(0,0,0,.25)}
 .fb189Avatar:has(b) svg{opacity:.28}
 .fb189Acc b{display:block;font-size:14px}
 .fb189Acc small{font-size:12px;color:#4b5a52}
 .fb189Item{width:100%;display:flex;align-items:center;justify-content:space-between;padding:9px 2px;border:0;border-bottom:1px solid #eef0ec;background:transparent;text-align:left;color:#17251e;font:600 14px Manrope,system-ui,sans-serif;cursor:pointer}
 .fb189Item small{font-size:12px;font-weight:500;color:#4b5a52;display:flex;align-items:center;gap:4px}
 .fb189Item svg{width:14px;height:14px;stroke:#7d8a82;fill:none;stroke-width:2}
 .fb189Ver{display:block;padding:8px 2px 0;font-size:12px;color:#7d8a82}
 #fb189Foot{position:absolute;left:70px;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));height:44px;display:flex;flex-direction:column;justify-content:center;gap:4px}
 #fb189Foot[hidden]{display:none}
 #fb189Grad{height:6px;border-radius:3px}
 #fb189Foot div{display:flex;justify-content:space-between;font-size:12px;font-weight:600;color:#4b5a52}

 /* Menú ☰ fijo, siempre visible */
 #fb189Menu{position:fixed;left:14px;bottom:calc(18px + env(safe-area-inset-bottom));z-index:2300;width:44px;height:44px;border-radius:12px;border:1px solid #dfe4de;background:#fff;box-shadow:0 2px 10px rgba(20,40,30,.16);display:flex;align-items:center;justify-content:center;cursor:pointer;color:#17251e;padding:0;transition:background .2s}
 #fb189Menu svg{width:20px;height:20px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round}
 #fb189Menu.on{background:var(--fb189-accent);border-color:var(--fb189-accent);color:#fff}

 /* Paneles originales (Mis setales, Fichas, Datos…) como pestaña inferior */
 body.fb189.fb127-ready #layersMenu{top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100vw!important;max-width:100vw!important;height:auto!important;max-height:86dvh!important;transform:none!important;border:0!important;border-radius:20px 20px 0 0!important;box-shadow:0 -6px 24px rgba(20,40,30,.16)!important;padding:14px 16px calc(84px + env(safe-area-inset-bottom))!important;z-index:2150!important;animation:fb189Up .28s cubic-bezier(.2,.8,.2,1)}
 body.fb189 #fbMobileNavSlot127{display:none!important}
 body.fb189 #fbPanelHead127{display:flex!important;align-items:center;gap:10px}
 body.fb189 #fbPanelHead127 #fbPanelTitle127{flex:1;font-size:16px!important}
 #fb189Back{border:0;background:transparent;font:700 13px Manrope,system-ui,sans-serif;color:var(--fb189-accent);cursor:pointer;padding:6px 0;display:none}
 body.fb189 #fb189Back{display:inline-flex}
 @keyframes fb189In{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
 #fb189Note{animation-name:fb189InC}
 @keyframes fb189InC{from{opacity:0;transform:translate(-50%,-6px)}to{opacity:1;transform:translate(-50%,0)}}
 @keyframes fb189Up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
 @keyframes fb189Spin{to{transform:rotate(360deg)}}
}
@media (prefers-reduced-motion:reduce){
 #fb189Sheet,#fb189Tools,body.fb189 .leaflet-bottom{transition:none}
 .fb189View,#fb189Note,#fb189Search,#fb189Layers,body.fb189.fb127-ready #layersMenu{animation:none}
}

/* PC (≥1024 px): mismo diseño; desde la 0.9.193 / 0.7.3 la pestaña, el menú ☰ y los botones van juntos en la esquina inferior derecha. */
@media(min-width:1024px){
 body.fb189{--fb189-w:420px}
 #fb189Logo{width:120px;height:120px;top:16px;left:16px}
 #fb189Note{top:36px;left:50%;max-width:520px!important}
 #fb189Search{top:150px;left:16px;right:auto;width:400px}
 #fb189Sheet{left:auto;right:0;width:var(--fb189-w);border-radius:20px 0 0 0}
 #fb189Menu{left:auto;right:calc(var(--fb189-w) - 58px)}
 #fb189Tools{right:14px}
 body.fb127-open #fb189Menu{right:calc(min(520px,100vw) - 58px)}
 body.fb189 .leaflet-bottom.leaflet-right{bottom:0!important;right:var(--fb189-w)}
 body.fb189 .leaflet-bottom.leaflet-left{bottom:0!important}
 body.fb189 .leaflet-bottom.leaflet-right .leaflet-control-attribution{margin-left:0!important;margin-right:0!important}
 #fb189Layers{right:42px}
 .fb189Round,.fb189Zoom{cursor:pointer}
 .fb189Round:hover,.fb189Zoom button:hover{background:#eef3ee}
 .fb189Round.on:hover{background:var(--fb189-accent)}
 .fb189Item:hover,.fb189Sp:hover{background:#f4f6f2}
 #fb189Pick:hover{border-color:#b9c4bb}
 body.fb189.fb127-ready #layersMenu{left:auto!important;right:0!important;width:min(520px,100vw)!important;max-width:520px!important;border-radius:20px 0 0 0!important;max-height:88dvh!important}
}

/* FindBolets 0.9.200 / FindSetas 0.9.10: botón «Marcar un setal» y «Localiza mi coche» */
#fb189BtnSetal svg{width:19px;height:19px}
.fb189CarItem span:first-child{display:inline-flex;align-items:center;gap:8px}
.fb189CarItem svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fb189CarMk div{width:34px;height:34px;border-radius:50%;background:#17251e;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #fff,0 4px 12px rgba(0,0,0,.35)}
.fb189CarMk svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* FindBolets 0.9.201 / FindSetas 0.9.11: la barra «Toca el mapa donde está tu setal» va abajo, encima del panel, sin tapar logo ni botones */
body.fb189 #fbPick171{top:auto!important;left:12px!important;right:62px!important;transform:none!important;width:auto!important;max-width:none!important;bottom:max(92px,calc(var(--fb189-h) + 64px))!important;z-index:2150!important;border-radius:16px!important;padding:10px 12px!important;gap:8px!important;justify-content:flex-start!important}
body.fb189 #fbPick171>span{width:100%;font-size:13px}
body.fb189 #fbPick171>div{flex-wrap:wrap}
body.fb189 #fbPick171 button{min-height:32px;padding:5px 10px;font-size:12px}

/* FindSetas 0.9.13: el cuadro de estado («Zona calculada conservada…», «✓ Zonas dibujadas») ya no queda abierto sobre el mapa
   tapando el zoom y los botones: solo se ve dentro del panel. Los avisos importantes siguen saliendo arriba (#fb189Note). */
body.fb189:not(.fb127-open) #layersMenu #status.status,body.fb189:not(.fb127-open) #status.status{display:none!important}
