/* Todo elemento con el atributo hidden queda oculto, aunque tenga clases flex/grid */
[hidden] { display: none !important; }

/* ===== Base ===== */
html { scroll-padding-top: 6rem; }
body { background: #f8fafc; color: #1e293b; }
.header-fijo { padding-top: env(safe-area-inset-top, 0px); }
:focus-visible { outline: 2px solid #C63E14; outline-offset: 2px; }
.foto-placeholder + img { z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ===== Pines del mapa ===== */
.pin-precio { background: none; border: 0; }
.pin {
  position: absolute; transform: translate(-50%, -100%);
  display: inline-block; white-space: nowrap;
  background: #FE5F2F; color: #fff; font: 700 12px/1 system-ui, sans-serif;
  padding: 6px 9px; border-radius: 999px; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .3); font-variant-numeric: tabular-nums;
  transition: transform .15s ease, background .15s ease;
}
.pin::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #fff;
}
.pin-alquiler { background: #0f172a; }
.pin-activo { background: #C63E14; transform: translate(-50%, -100%) scale(1.15); }
.pin-oficina { background: #fff; color: #0f172a; border-color: #0f172a; }
.popup { min-width: 180px; }
.popup-cta {
  display: block; text-align: center; background: #059669; color: #fff !important;
  font-weight: 600; font-size: 12px; padding: 7px 10px; border-radius: 8px; text-decoration: none;
}
.popup-cta:hover { background: #047857; }
.popup-cta + .popup-cta { margin-top: 6px; }
.popup-cta-detalle { background: #FE5F2F; }
.popup-cta-detalle:hover { background: #E94E1F; }
.hero img { max-width: none; }

/* ===== Leaflet 1.9.4 — estilos mínimos (la CDN de CSS no está disponible en la vista previa) ===== */
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container,
.leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container { overflow: hidden; -webkit-tap-highlight-color: transparent; background: #e2e8f0; font-size: 12px; line-height: 1.5; }
.leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow { user-select: none; -webkit-user-drag: none; }
.leaflet-container img.leaflet-tile, .leaflet-container .leaflet-marker-pane img { max-width: none !important; max-height: none !important; display: block; }
.leaflet-container.leaflet-touch-zoom { touch-action: pan-x pan-y; }
.leaflet-container.leaflet-touch-drag { touch-action: pinch-zoom; }
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom { touch-action: none; }
.leaflet-tile { filter: inherit; visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-zoom-box { width: 0; height: 0; box-sizing: border-box; z-index: 800; }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-image-layer, .leaflet-pane > svg path, .leaflet-tile-container { pointer-events: none; }
.leaflet-marker-icon.leaflet-interactive, .leaflet-image-layer.leaflet-interactive, .leaflet-pane > svg path.leaflet-interactive { pointer-events: auto; }
.leaflet-marker-icon .pin { pointer-events: auto; cursor: pointer; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; } .leaflet-right { right: 0; } .leaflet-bottom { bottom: 0; } .leaflet-left { left: 0; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-fade-anim .leaflet-popup { opacity: 0; transition: opacity .2s linear; }
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup { opacity: 1; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform .25s cubic-bezier(0, 0, .25, 1); }
.leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile { transition: none; }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility: hidden; }
.leaflet-interactive { cursor: pointer; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab { cursor: grabbing; }
.leaflet-bar { box-shadow: 0 1px 5px rgba(0, 0, 0, .3); border-radius: 8px; overflow: hidden; }
.leaflet-bar a { background: #fff; border-bottom: 1px solid #e2e8f0; width: 32px; height: 32px; line-height: 32px; display: block; text-align: center; text-decoration: none; color: #0f172a; font: 700 18px/32px system-ui, sans-serif; }
.leaflet-bar a:last-child { border-bottom: 0; }
.leaflet-bar a:hover { background: #f1f5f9; }
.leaflet-bar a.leaflet-disabled { cursor: default; background: #f8fafc; color: #cbd5e1; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .85); margin: 0 !important; padding: 0 6px; color: #334155; font-size: 11px; }
.leaflet-control-attribution a { color: #0369a1; }
.leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
.leaflet-popup-content-wrapper { padding: 1px; text-align: left; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .25); }
.leaflet-popup-content { margin: 14px 18px; line-height: 1.35; font-size: 13px; }
.leaflet-popup-tip-container { width: 40px; height: 20px; position: absolute; left: 50%; margin-top: -1px; margin-left: -20px; overflow: hidden; pointer-events: none; }
.leaflet-popup-tip { width: 17px; height: 17px; padding: 1px; margin: -10px auto 0; transform: rotate(45deg); background: #fff; box-shadow: 0 3px 14px rgba(0, 0, 0, .2); }
.leaflet-container a.leaflet-popup-close-button { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; font: 18px/24px system-ui, sans-serif; color: #64748b; text-decoration: none; text-align: center; background: transparent; }
