/* =============================================================
   Plugin: laenreaera-senderos | senderos-v3.css
   ============================================================= */

@font-face { font-family: 'MontserratLS'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://www.laenreaera.com/wp-content/uploads/montserrat-v25-latin-regular.woff') format('woff'); }
@font-face { font-family: 'MontserratLS'; font-style: normal; font-weight: 700; font-display: swap; src: url('https://www.laenreaera.com/wp-content/uploads/montserrat-v25-latin-700.woff') format('woff'); }
@font-face { font-family: 'MontserratLS'; font-style: normal; font-weight: 900; font-display: swap; src: url('https://www.laenreaera.com/wp-content/uploads/montserrat-v25-latin-900.woff') format('woff'); }

/* ---- Layout del buscador ---- */
.lfs-filter-container {
    background-color: var(--negro);
    padding: var(--space-m) var(--space-xl);
    font-family: var(--bricks-typography-body-font-family, sans-serif) !important;
    color: var(--txt-blanco, #fff);
    margin-bottom: var(--space-xl);
    margin-top: var(--space-m);
    box-sizing: border-box;
    line-height: 1;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50% + 30px);
    padding-right: calc(50vw - 50% + 30px);
    position: relative;
    z-index: 500 !important;
}

/* ---- Fila de filtros ---- */
.lfs-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-s);
    margin-bottom: 0;
}

.lfs-col {
    display: flex;
    flex-direction: column;
    flex: 1 1 250px;
    min-width: 250px;
    max-width: 380px;
    position: relative;
}

/* ---- Campo base ---- */
.lfs-field {
    background-color: transparent;
    border: 1px solid color-mix(in srgb, var(--blanco, #fff) 20%, transparent) !important;
    color: var(--blanco, #fff) !important;
    padding: var(--space-xs) var(--space-s) !important;
    
    border-radius: var(--radius-full, 25px);
    font-size: var(--txt-m);
    outline: none;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5 !important;
    min-height: 48px !important;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease !important;
}
.lfs-field::placeholder { color: var(--blanco, #fff); opacity: 1; }
.lfs-field:hover {
    border-color: var(--blanco, #fff) !important;
    color: var(--blanco, #fff) !important;
}

/* ---- Custom Select ---- */
.lfs-custom-select {
    position: relative;
    width: 100%;
    z-index: 550 !important;
    transition: opacity 0.2s ease;
}
.lfs-custom-select.active { z-index: 800 !important; }

.lfs-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xs) var(--space-s) !important;
    
    width: 100%;
    gap: var(--space-xs);
}

.lfs-select-text {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: var(--txt-m);
    color: var(--blanco, #fff);
}

/* ---- Flecha ---- */
.lfs-arrow-v2 {
    position: absolute !important;
    right: var(--space-l) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    color: var(--blanco, #fff) !important;
    transition: color 0.3s ease !important;
}
.lfs-arrow-v2 svg {
    width: var(--txt-s) !important;
    height: var(--txt-s) !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.lfs-custom-select.active .lfs-arrow-v2 svg { transform: rotate(180deg) !important; }
.lfs-select-trigger:hover .lfs-arrow-v2 { color: #fff !important; }
.lfs-select-trigger:hover .lfs-select-text { color: #fff !important; }
.lfs-select-trigger:hover { border-color: #fff !important; }

/* ---- Botón X individual de dropdown ---- */
.lfs-clear-single {
    display: none;
    position: absolute;
    right: calc(var(--space-l) * 2.5);
    top: 50%;
    transform: translateY(-50%) !important;
    width: 22px;
    height: 22px;
    background-color: var(--exito, #3c9d4b) !important;
    border: none !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.lfs-clear-single.visible { display: flex; }
.lfs-clear-single:hover { transform: translateY(-50%) scale(1.1) !important; }
.lfs-clear-single::before,
.lfs-clear-single::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    margin: auto !important;
    width: 45% !important;
    height: 9% !important;
    background-color: var(--blanco, #fff) !important;
    border-radius: 1px !important;
}
.lfs-clear-single::before { transform: rotate(45deg) !important; }
.lfs-clear-single::after  { transform: rotate(-45deg) !important; }

/* ---- Dropdown panel ---- */
.lfs-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: color-mix(in srgb, var(--negro) 85%, var(--blanco, #fff));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-m, 12px);
    z-index: 800 !important;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.lfs-custom-select.active .lfs-select-dropdown { display: block; }
.lfs-select-dropdown::-webkit-scrollbar { width: 6px; }
.lfs-select-dropdown::-webkit-scrollbar-track { background: transparent; }
.lfs-select-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* ---- Lista de checkboxes ---- */
.lfs-cb-list { padding: var(--space-xs); }

.lfs-cb-item {
    display: flex;
    align-items: center;
    padding: var(--space-2xs);
    cursor: pointer;
    border-radius: 6px;
    font-size: var(--txt-s);
    text-align: left;
}
.lfs-cb-item > span:not(.lfs-count) { flex-grow: 1; line-height: 1.3; }

.lfs-cb-item input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border: 0 !important;
}
.lfs-cb-item:has(input:checked) { background-color: rgba(255,255,255,0.12) !important; }
@media (hover: hover) {
    .lfs-cb-item:hover { background-color: rgba(255,255,255,0.06) !important; }
}

/* ---- Pills de conteo ---- */
.lfs-count {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--blanco, #fff) !important;
    font-size: var(--txt-s) !important;
    
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 var(--space-3xs);
    margin-left: auto;
    box-sizing: border-box;
    line-height: 1;
    font-weight: 700 !important;
}
.lfs-cb-item:has(input:checked) .lfs-count {
    background-color: var(--lfs-active-color, var(--exito)) !important;
    color: var(--txt-blanco, #fff) !important;
    font-weight: 700 !important;
}
@media (pointer: fine) {
    .lfs-cb-item:hover .lfs-count {
        background-color: var(--lfs-active-color, var(--exito)) !important;
        color: var(--txt-blanco, #fff) !important;
        font-weight: 700 !important;
}
}

/* ---- Buscador de texto ---- */
.ls-search-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.ls-search-icon {
    position: absolute;
    left: var(--space-m);
    color: rgba(255,255,255,0.5);
    pointer-events: none;
    flex-shrink: 0;
}
.ls-search-input {
    padding-left: calc(var(--space-m) + 24px) !important;
    padding-right: calc(var(--space-m) + 28px) !important;
    font-size: var(--txt-m, 16px) !important;
}
.ls-search-clear {
    position: absolute;
    right: var(--space-m);
    display: none;
    width: 20px;
    height: 20px;
    background: var(--exito, #22c55e);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    transition: background 0.2s ease;
}
.ls-search-clear[style*="flex"],
.ls-search-clear.visible { display: inline-flex !important; }
.ls-search-clear:hover { background: color-mix(in srgb, var(--exito, #22c55e) 80%, #000) !important; }

/* ---- Botones / Acciones ---- */
.lfs-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-s);
    margin-top: var(--space-s);
    max-width: calc(380px * 2 + var(--space-s, 8px));
    margin-left: auto !important;
    margin-right: auto !important;
}

.lfs-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: var(--txt-m) !important;
    background-color: transparent;
    border: 1px solid var(--blanco, #fff);
    color: var(--txt-blanco, #fff);
    padding: var(--space-xs) var(--space-s) !important;
    
    border-radius: var(--radius-full, 25px);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: normal;
    text-align: center !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
}
.lfs-btn:focus, .lfs-btn:focus-visible { outline: none !important; }

.lfs-btn-secondary {
    border-color: rgba(255,255,255,0.2) !important;
    color: color-mix(in srgb, var(--blanco, #fff) 70%, transparent) !important;
}
@media (hover: hover) and (pointer: fine) {
    .lfs-btn-secondary:hover {
        border-color: var(--blanco, #fff) !important;
        color: var(--blanco, #fff) !important;
        background: transparent !important;
    }
}

/* ---- Cabecera de resultados con toggle ---- */
.lfs-results-header {
    background-color: var(--negro,#000);
    color: var(--txt-blanco,#fff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-s);
    padding: var(--space-m) var(--space-xl);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: var(--space-m);
    margin-bottom: var(--space-m);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-left: calc(50vw - 50% + 30px);
    padding-right: calc(50vw - 50% + 30px);
}
.lfs-results-header h2 { margin: 0; }

/* ---- Toggle Cuadrícula / Mapa ---- */
.ls-view-toggle {
    display: flex;
    position: relative;
    gap: var(--space-3xs);
    background: rgba(0,0,0,0.06);
    border-radius: var(--radius-full, 25px);
    padding: var(--space-3xs);
}

.ls-view-toggle::before {
    content: '';
    position: absolute;
    top: var(--space-3xs);
    bottom: var(--space-3xs);
    left: var(--space-3xs);
    width: 145px;
    background: var(--exito, #22c55e);
    border-radius: var(--radius-full, 20px);
    box-shadow: 0 2px 8px rgba(34,197,94,0.4);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.ls-view-toggle:has(#ls_view_map.active)::before {
    transform: translateX(calc(100% + var(--space-3xs)));
}

.ls-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    position: relative;
    z-index: 2;
    gap: var(--space-3xs);
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius-full, 20px);
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(0,0,0,0.6);
    font-size: var(--txt-m, 16px);
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.ls-view-btn svg { flex-shrink: 0; transition: inherit; }
.ls-view-btn:hover:not(.active) {
    color: #000;
}
.ls-view-btn.active {
    color: #fff;
    font-weight: normal;
}
.ls-view-btn:focus, .ls-view-btn:focus-visible { outline: none !important; }

/* ---- Tarjetas ---- */
.ls-card {
    font-family: var(--bricks-typography-body-font-family, sans-serif) !important;
    transition: transform 0.3s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.3s cubic-bezier(0.25,0.8,0.25,1);
}
@media (hover: hover) and (pointer: fine) {
    .ls-card:hover {
        transform: scale(1.02) !important;
        box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
        z-index: 2;
    }
    .ls-card:hover img { transform: scale(1.05) !important; }
}

.ls-card h2 {
    font-family: var(--bricks-typography-body-font-family, sans-serif) !important;
    font-weight: 900 !important;
}

/* ---- Contenedor del mapa ---- */
#ls-map-container {
    padding: var(--space-m);
}
#ls-map {
    width: 100%;
    height: 550px;
    border-radius: var(--radius-m, 12px);
    background: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 3px solid #fff;
}

/* ---- Pines del mapa ---- */
.ls-map-pin {
    background: transparent;
    border: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: filter 0.2s ease;
}
.ls-map-pin:hover { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6)); }

/* ---- Popups del mapa ---- */
.ls-map-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    border: none !important;
}
.ls-map-popup-wrap .leaflet-popup-tip-container { display: none; }
.ls-map-popup-wrap a.leaflet-popup-close-button {
    color: #111 !important;
    background: var(--blanco) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
    top: 6px !important;
    right: 6px !important;
    z-index: 10;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    padding-bottom: 2px !important;
}
.ls-map-popup-wrap .leaflet-popup-content { margin: 0 !important; }

.ls-map-popup-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ls-map-popup-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111 !important;
    text-decoration: none !important;
    line-height: 1.3;
    margin-top: 4px;
}
.ls-map-popup-title:hover { color: var(--exito, #22c55e) !important; }
.ls-map-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--exito, #22c55e);
    color: #fff !important;
    border-radius: var(--radius-s, 8px);
    text-decoration: none !important;
    font-size: 13px;
    
    transition: filter 0.2s ease;
}
.ls-map-popup-btn:hover { filter: brightness(0.9); }

/* ---- Controles de mapa (zoom, capas) ---- */
.leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.leaflet-bar a:first-child { border-bottom: none !important; }
.leaflet-control-layers {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    border-radius: var(--radius-m, 10px) !important;
}
.leaflet-control-layers-expanded { border-radius: var(--radius-m, 10px) !important; padding: var(--space-xs, 6px) !important; }

/* ---- Responsive ---- */
@media (max-width: 575px) {
    .lfs-row { flex-direction: column; align-items: stretch; }
    .lfs-col { max-width: 100%; flex: 0 0 auto !important; min-width: 0; width: 100% !important; }
    .lfs-filter-container { padding: var(--space-l) var(--space-s); }
    .lfs-results-header { padding-left: var(--space-m); padding-right: var(--space-m); }
    #ls-map { height: 380px; }
    .lfs-actions { margin-top: var(--space-xs, 6px) !important; }
    .ls-search-wrap { width: 100% !important; max-width: 100% !important; }
}

@media (min-width: 768px) {
    .lfs-select-text {
        font-size: var(--txt-m, 16px) !important;
    }
    .lfs-select-trigger {
        padding-right: calc(var(--space-l) * 4) !important;
    }
}

/* ---- Tamaño del contador según breakpoint ---- */
#ls-total-counter { font-size: var(--txt-2xl, 48px) !important; }
@media (min-width: 992px) {
    #ls-total-counter { font-size: var(--txt-xl, 36px) !important; }
    .lfs-count { font-size: var(--txt-s) !important;     font-weight: 700 !important;
}
}

/* ---- Misc ---- */
html, body { overflow-x: hidden; }
*,*::before,*::after,
a, button, input, select, textarea, div, span,
.lfs-btn, .ls-card, .lfs-custom-select, .lfs-select-trigger {
    -webkit-tap-highlight-color: transparent !important;
}
*:focus, *:focus-visible { outline: none !important; }
.lfs-hide { display: none !important; }
/* =========================================
   CONTROLES DEL MAPA (REDISEÑO MODERNO)
   ========================================= */
.leaflet-control-layers {
    border-radius: var(--radius-m, 10px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border: none !important;
    padding: var(--space-xs, 6px) !important;
}

/* Ocultar el botoncito redondo clásico de radio */
.leaflet-control-layers-selector {
    display: none !important;
}

/* Convertir las opciones en botones modernos */
.leaflet-control-layers-list label {
    display: flex !important;
    align-items: center !important;
    padding: var(--space-xs) var(--space-s) !important;
    margin: var(--space-3xs) 0 !important;
    border-radius: var(--radius-s, 6px) !important;
    cursor: pointer !important;
    background: #f4f6f8 !important; 
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    font-size: var(--txt-s, 14px) !important;
    font-weight: 500 !important;
    gap: var(--space-xs, 8px) !important;
}

.leaflet-control-layers-list label:hover {
    background: #e2e8f0 !important;
}

/* Cuando la capa está seleccionada se pone verde (Color de La Enreaera) */
.leaflet-control-layers-list label:has(input:checked) {
    background: var(--exito, #3c9d4b) !important; 
    color: var(--blanco, #fff) !important;
}
/* =========================================
   CUSTOM MARKER CLUSTER COLORS
   ========================================= */
.marker-cluster-small {
    background-color: var(--exito-l-4, rgba(204, 228, 204, 0.6)) !important;
}
.marker-cluster-small div {
    background-color: var(--exito-l-2, rgba(181, 213, 181, 0.9)) !important;
    color: var(--text-dark, #111) !important;
    font-weight: 700;
}

.marker-cluster-medium {
    background-color: var(--exito-l-3, rgba(160, 200, 160, 0.6)) !important;
}
.marker-cluster-medium div {
    background-color: var(--exito, rgba(60, 157, 75, 0.9)) !important;
    color: white !important;
    font-weight: 700;
}

.marker-cluster-large {
    background-color: rgba(60, 157, 75, 0.6) !important;
}
.marker-cluster-large div {
    background-color: var(--text-dark, #111111) !important;
    color: var(--exito-l-2, #b5d5b5) !important;
    font-weight: 700;
}

/* =========================================
   REDISEÑO BOTONES ZOOM Y MI UBICACIÓN
   ========================================= */
.leaflet-control-zoom, .leaflet-control-custom-wrap {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-end !important; 
}

/* Botones de Zoom (Redondos perfectos) */
.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 50% !important;
    background-color: var(--blanco, #fff) !important;
    color: var(--text-dark, #212121) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}
.leaflet-bar a:first-child { border-bottom: none !important; }

/* Botón de Mi Ubicación (Forma de Píldora con texto) */
.custom-round-btn {
    height: 40px !important;
    border-radius: var(--radius-full, 20px) !important; 
    background-color: var(--blanco, #fff) !important;
    color: var(--text-dark, #212121) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    margin-bottom: var(--space-xs, 8px) !important;
    padding: var(--space-s) var(--space-m) !important; 
    gap: var(--space-xs, 6px); 
    cursor: pointer;
}
.custom-round-btn i { font-size: 18px !important; }

/* Efecto Hover para todos */
.leaflet-control-zoom a:hover, .custom-round-btn:hover {
    background-color: var(--exito, #3c9d4b) !important;
    color: var(--blanco, #fff) !important;
    transform: scale(1.05);
}


/* =========================================
   DISEÑO TARJETA POPUP (GRID STYLE)
   ========================================= */
.ls-map-popup-wrap .leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: var(--radius-m, 12px) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}
.ls-map-popup-wrap .leaflet-popup-content {
    margin: 0 !important;
    width: 300px !important; /* Un poco más ancho para que respire mejor */
}
.ls-map-popup-wrap .leaflet-popup-tip-container {
    margin-top: -1px;
}

.sendero-popup-grid {
    position: relative;
    font-family: inherit;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Image wrapper */
.sendero-popup-grid .popup-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
}
.sendero-popup-grid .popup-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sendero-popup-grid .badge-provincia {
    position: absolute;
    top: var(--space-s, 12px);
    left: var(--space-s, 12px);
    background-color: rgba(30, 30, 30, 0.75);
    color: #fff;
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius-full, 20px);
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

/* Content */
.sendero-popup-grid .popup-content {
    padding: 16px 16px 24px 16px; /* Más padding abajo para la etiqueta */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs, 8px);
}

.sendero-popup-grid .popup-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #555;
}

.sendero-popup-grid .popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}

.sendero-popup-grid .popup-location {
    margin: 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: var(--space-xs, 6px);
}

.sendero-popup-grid .popup-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 4px;
    font-size: 13px;
    
    color: #111;
    padding-right: 70px; /* Evita que pise la etiqueta de dificultad */
}

.sendero-popup-grid .badge-difficulty {
    position: absolute;
    bottom: var(--space-m, 16px);
    right: var(--space-m, 16px);
    z-index: 5;
    color: #fff;
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius-full, 20px);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    -webkit-text-stroke: 0.5px currentColor;
}
.badge-difficulty i {
    font-size: 13px;
}

.sendero-popup-grid .popup-link-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
}


/* Mobile font size overrides to match trigger size */
@media(max-width: 767px) {
    .lfs-cb-item { font-size: var(--txt-m) !important; } .lfs-count { font-size: var(--txt-m) !important; font-weight: 700 !important; }
}

/* Tweak card font sizes on desktop and tablet */
@media (min-width: 768px) {
    .ls-card { font-family: var(--bricks-typography-body-font-family, sans-serif) !important; }
    .ls-card-provincia { font-size: var(--txt-s, 12px) !important; }
    .ls-card h2.iqbrku { font-family: var(--bricks-typography-body-font-family, sans-serif) !important; font-weight: 900 !important; font-size: var(--txt-m, 16px) !important; }
    .ls-card-municipio { font-size: var(--txt-s, 14px) !important; }
    .ls-card-stat { font-size: var(--txt-s, 14px) !important; }
    .ls-card-dificultad { font-size: 10px !important; }
}


/* Ensure the custom negrita_900 class works on the cards */
.negrita_900 { font-weight: 900 !important; }


/* =========================================
   BOTÓN GOOGLE MAPS (MAPA SINGLE)
   ========================================= */
.leaflet-control-custom-wrap {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs, 8px);
    align-items: flex-end; 
}
.custom-round-btn {
    height: 36px !important;
    border-radius: var(--radius-full, 20px) !important; 
    background-color: var(--blanco) !important;
    color: var(--text-dark, #212121) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    margin-bottom: var(--space-xs, 8px) !important;
    padding: var(--space-s) var(--space-m) !important; 
    gap: var(--space-xs, 6px); 
    cursor: pointer;
}
.custom-round-btn i { font-size: 18px !important; }
.custom-round-btn:hover {
    background-color: var(--exito, #3c9d4b) !important;
    color: var(--blanco) !important;
    transform: scale(1.05);
}

.sendero-map-premium {
    width: 100%; 
    height: 550px; 
    background: #e0e0e0; 
    border-radius: var(--radius-m, 12px); 
    z-index: 1; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border: 3px solid var(--blanco);
}
.chincheta-custom { background: transparent; border: none; }
.lfs-btn-secondary:not(:disabled) {
    color: var(--blanco, #fff) !important;
}

/* Refactored Clean CSS Classes */
.ls-header-counter { text-align: center; margin-bottom: 30px; }
.ls-header-subtitle { font-weight: normal; margin-bottom: 10px; color: var(--txt-blanco, #fff); margin-top: 0; font-size: var(--txt-l) !important; }
.ls-header-num { font-weight: bold; line-height: 1; color: var(--exito, #22c55e) !important; }
.ls-header-label { color: var(--txt-blanco, #fff); margin-top: 5px; font-size: var(--txt-l) !important; }

.lfs-results-header {
    background-color: var(--negro, #000);
    color: var(--txt-blanco, #fff);
    text-align: center;
    padding: 20px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: var(--space-m);
    margin-bottom: var(--space-m);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ls-view-switcher-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-m);
    margin-bottom: var(--space-m);
}

.ls-view-toggle {
    position: relative;
    display: inline-flex;
    background: var(--gris-l-3, #e5e7eb);
    padding: var(--space-3xs);
}

#ls-map-container {
    display: none;
    position: relative;
    height: 70vh;
    min-height: 500px;
    margin-left: var(--space-m);
    margin-right: var(--space-m);
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-l, 16px);
    overflow: hidden;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#ls-map {
    width: 100%;
    height: 100%;
}

/* Option Icons Design System Rules */
.lfs-option-icon {
    font-size: var(--txt-l, 18px);
    margin-right: var(--space-xs, 8px);
    vertical-align: middle;
    position: relative;
    top: -1px;
    opacity: 0.8;
}
.lfs-option-icon.ti-wheelchair {
    font-size: var(--txt-m, 16px);
    margin-right: var(--space-3xs, 4px);
}

.ls-search-input:focus::placeholder {
    color: transparent !important;
}


/* ---- Card Mobile Responsive Text ---- */
.ls-card {
    --ls-card-meta: var(--txt-s, 13px);
    --ls-card-type: var(--txt-xs, 11px);
    --ls-card-dif: var(--txt-xs, 11px);
    --ls-card-title: var(--txt-m, 16px);
    --ls-card-icon-lg: var(--txt-m, 16px);
}
@media (max-width: 767px) {
    .ls-card {
        --ls-card-meta: var(--txt-m, 16px);
        --ls-card-type: var(--txt-s, 13px);
        --ls-card-dif: var(--txt-s, 13px);
        --ls-card-title: var(--txt-l, 20px);
        --ls-card-icon-lg: 19px;
    }
}

/* Iconos inline (walk/bici/silla) */
.lff-inline-icon{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;color:inherit;}
.lff-inline-icon svg{width:100%!important;height:100%!important;display:block;}

/* Controles de Leaflet con SVG (capa + zoom) */
.leaflet-control-layers-toggle{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z'/><path d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/><path d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/></svg>")!important;background-size:22px 22px!important;background-position:center!important;background-repeat:no-repeat!important;}
.leaflet-control-zoom-in,.leaflet-control-zoom-out{font-size:0!important;line-height:0!important;background-repeat:no-repeat!important;background-position:center!important;background-size:16px 16px!important;}
.leaflet-control-zoom-in{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'><path d='M5 12h14'/><path d='M12 5v14'/></svg>")!important;}
.leaflet-control-zoom-out{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'><path d='M5 12h14'/></svg>")!important;}

/* Aspa de cerrar popup en SVG (sustituye el caracter de texto) */
.leaflet-popup-close-button{font-size:0!important;color:transparent!important;background-color:var(--blanco)!important;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='round'><path d='M18 6 6 18'/><path d='m6 6 12 12'/></svg>")!important;background-repeat:no-repeat!important;background-position:center!important;background-size:14px 14px!important;padding:0!important;}

/* Iconos de los filtros de Senderos: mismo tamano y en blanco (como el filtro de eventos) */
.lfs-select-text svg,.lfs-option-icon svg,.lff-inline-icon svg{width:1.25em!important;height:1.25em!important;max-width:1.25em!important;max-height:1.25em!important;display:inline-block!important;vertical-align:middle!important;}
.lfs-select-text,.lfs-select-text .lff-inline-icon,.lfs-option-icon,.lff-inline-icon{color:#fff!important;}

/* Iconos de opciones: blancos al 100% (sin la opacidad 0.8 que los apagaba) */
.lfs-option-icon{opacity:1!important;}

/* FIX TAMANO ICONOS FILTRO SENDEROS */
.lfs-option-icon,.lff-inline-icon{font-size:var(--txt-m,16px)!important;opacity:1!important;color:#fff!important;margin-right:.35em!important;vertical-align:middle!important;position:relative!important;top:-1px!important;}
.lfs-select-text svg,.lfs-cb-item .lff-inline-icon svg,.lff-inline-icon svg,.lfs-option-icon svg{width:1.25em!important;height:1.25em!important;max-width:1.25em!important;max-height:1.25em!important;display:inline-block!important;vertical-align:middle!important;}

/* Icono accesibilidad centrado en el circulo */
.lff-icon-circle .lff-inline-icon{margin:0!important;top:0!important;left:0!important;position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.lff-icon-circle .lff-inline-icon svg{width:1em!important;height:1em!important;max-width:1em!important;max-height:1em!important;display:block!important;}

/* Silla un poco mas pequena por su mayor peso visual */
.lfs-option-icon.silla-icon svg{width:1.1em!important;height:1.1em!important;max-width:1.1em!important;max-height:1.1em!important;}
.lff-icon-circle .silla-icon svg{width:.9em!important;height:.9em!important;max-width:.9em!important;max-height:.9em!important;}

/* Iconos inline dentro de las tarjetas: heredan el color de su circulo (no el blanco del filtro) */
.ls-card .lff-inline-icon{color:inherit!important;}
/* Circulo del tipo de ruta al mismo tamano que el resto de metas */
.ls-card-tipo .lff-icon-circle{font-size:var(--ls-card-meta,13px)!important;width:1.8em!important;height:1.8em!important;}

/* Corazon de dificultad: se rellena con el color de la dificultad al hover y al seleccionar */
.corazon-icon svg path{fill:none;}
.lfs-cb-item:hover .corazon-icon svg path,
.lfs-cb-item:has(input:checked) .corazon-icon svg path{fill:var(--lfs-active-color,currentColor)!important;}
.lfs-select-text .corazon-icon svg path{fill:var(--lfs-active-color,currentColor);}

/* Lupa del buscador en blanco */
.ls-search-icon{color:#fff!important;stroke:#fff!important;}
.ls-search-clear{color:#fff!important;}
.ls-search-clear svg{stroke:#fff!important;fill:currentColor!important;}
