        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --color1: #1c3a5e;
            --color2: #1c5d99;
            --color4: #e8eff7;
            --color5b: #222;
        }
        html, body {
            height: 100%;
            overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }
        /* Sello / logo fijo */
        .map-sello {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 1001;
            display: block;
            width: 90px;
        }
        .map-sello img { width: 100%; }

        /* Mapa */
        #map {
            width: 100%;
            height: 100vh;
            background-color: var(--color4);
        }
        .leaflet-container {
            height: 100%;
            width: 100%;
            background: var(--color4);
        }

        /* Popups */
        .leaflet-popup-content-wrapper {
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            max-width: 300px;
        }
        .leaflet-popup-content {
            font-size: 14px;
            color: var(--color5b);
            line-height: 1.4;
            margin: 15px;
        }
        .leaflet-popup-content h4 {
            margin: 0 0 8px;
            color: #212121;
            font-size: 16px;
        }
        .property-price { font-weight: bold; color: #212121; font-size: 15px; }
        .property-details { color: #313131; font-size: 13px; }
        .property-link {
            display: inline-block;
            margin-top: 8px;
            padding: 6px 12px;
            background: var(--color2);
            color: #fff !important;
            text-decoration: none;
            border-radius: 4px;
            font-size: 13px;
        }
        .property-link:hover { background: var(--color1); }
        .popup-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 4px 0;
        }
        .popup-row .material-symbols-outlined {
            font-size: 18px;
            color: var(--color2);
            line-height: 1;
        }

        /* Panel de filtros */
        .map-filters {
            position: absolute;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1002;
            background: #fff;
            border: 1px solid rgba(0,0,0,0.08);
            border-radius: 14px;
            padding: 12px 14px;
            box-shadow: 0 10px 28px rgba(0,0,0,0.12);
            font-size: 12px;
        }
        .map-filters__group {
            display: flex;
            gap: 12px;
            align-items: flex-end;
            flex-wrap: wrap;
        }
        .map-filters__field {
            min-width: 150px;
            display: flex;
            flex-direction: column;
        }
        .map-filters__actions { min-width: 100px; }
        .map-filters label {
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
            font-size: 11px;
        }
        .map-filters__label-spacer { visibility: hidden; }
        .map-filters select,
        .map-filters input {
            width: 100%;
            padding: 8px 10px;
            border-radius: 10px;
            border: 1px solid #e3e3e3;
            font-size: 12px;
            background: #f9fafb;
            color: #1f1f1f;
            outline: none;
            transition: border-color .2s, box-shadow .2s, background .2s;
        }
        .map-filters select:focus,
        .map-filters input:focus {
            border-color: var(--color2);
            box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
            background: #fff;
        }
        .map-filters__price {
            display: grid;
            grid-template-columns: 1fr 70px;
            gap: 6px;
        }
        .map-filters button {
            width: 100%;
            padding: 9px 12px;
            border: none;
            border-radius: 10px;
            background: var(--color2);
            color: #fff;
            font-weight: 700;
            cursor: pointer;
            transition: transform .15s, box-shadow .15s;
            font-size: 12px;
        }
        .map-filters button:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(0,0,0,0.12);
        }

        /* Toggle mobile */
        .map-filters-toggle {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 1003;
            display: none;
            padding: 8px 14px;
            border: none;
            border-radius: 999px;
            background: var(--color2);
            color: #fff;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            font-size: 13px;
        }
        @media (max-width: 768px) {
            .map-filters {
                left: 12px;
                right: 12px;
                transform: none;
                top: 60px;
            }
            .map-filters-toggle { display: inline-flex; align-items: center; justify-content: center; }
            .map-filters.map-filters--collapsed { display: none; }
        }

        /* Loader */
        .map-loader {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(255,255,255,0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: opacity .3s;
        }
        .map-loader.hidden { opacity: 0; pointer-events: none; }
        .loader-spinner {
            width: 50px; height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--color2);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
        @keyframes spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
        .map-loader p { color: #333; font-size: 16px; }

        .leaflet-control-attribution{
            display: none !important;
        }