@charset "utf-8";
* {margin:0;padding:0;border:0}
html,body{
  margin-top:0; margin-bottom:0 !important; min-height:100%; height:100%; height:auto; color:#000;
  font-size: 8pt; font-family: arial, helvetica, sans-serif;   line-height:normal;   text-align:justify;
background:#f7f7f7}
ul,li{list-style:none}
a,a:hover{text-decoration:none}
#contenedor {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Altura total de la pantalla */
    overflow: hidden;
}

#logo {
    width: 100%;
    height: 60px; /* Altura fija para el cabezal */
    background: #0067D9;
    z-index: 1000;
    flex-shrink: 0; /* Que no se achique */
}
#cuerpo-pagina {
    display: flex;
    flex-grow: 1; /* Que ocupe el resto del espacio */
    overflow: hidden;
}
.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 15px;
}

#top_r span.iso {
    height: 35px;
}

#top_r span.iso img {
    height: 100%;
    border: 0;
}

/* Botón de Menú */
.ver-menu {
    display: block;
}

.ver-menu a span {
    display: inline-block;
    height: 30px;
    text-indent: -9999px;
    width: 30px;
    background-size: contain;
}

.ver-menu .abrir span { background: url("gif/open-menu.png") no-repeat center; }
.ver-menu .cerrar span { background: url("gif/close-menu.png") no-repeat center; }

/* Menú Desplegable */
.menu-navegacion {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background: #fff;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#desplegar:target .menu-navegacion {
    height: auto;
    padding: 20px 0;
}

/* Listas del menú */
ul.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

ul.nav-links li {
    display: inline-block;
}

ul.nav-links a {
    font-size: 8.5pt;
    color: #333;
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
}

ul.nav-links a:hover { color: #0067D9; }

/* Estilos especiales */
.altaus a { color: blue !important; font-weight: bold; }

/* Control de botones Abrir/Cerrar */
.cerrar { display: none; }
#desplegar:target .abrir { display: none; }
#desplegar:target .cerrar { display: block; }
/*mapa de todos*/
#f-mapa {
    flex-grow: 1;
    height: 100%;
    width: 100%;
}

#map {
    width: 100%;
    height: 100%; /* Toma todo el espacio del contenedor flex */
}


#ref-mapat {
        position: fixed;
        top: -100%; /* Ahora empieza escondido arriba */
        left: 0;
        width: 100%;
        max-height: 85vh;
        background: rgba(0, 103, 217, 0.8) !important; /* El #0067D9 al 60% */
        backdrop-filter: blur(5px); /* Efecto de desenfoque al mapa de fondo */
        -webkit-backdrop-filter: blur(5px);
        color: white; /* Cambiamos el texto a blanco para que se lea bien */
        z-index: 9999;
        transition: top 0.4s ease; /* Transición en el top */
        border-radius: 0 ; /* Redondeado abajo */
        box-shadow: 0 5px 25px rgba(0,0,0,0.2);
        padding: 20px;
        padding-top: 70px; /* Espacio para que el botón cerrar no se tape */
        overflow-y: auto;
    }

    #ref-mapat.abierto { 
        top: 0; /* Desliza hacia abajo */
    }

.btn-flotante-filtros {
    position: fixed;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    background: #fff; /* Botón blanco */
    color: #0067D9; /* Texto naranja */
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #0067D9;
}

    .btn-cerrar-filtros {
        text-align: right;
        font-size: 24px;
        color: #999;
        margin-bottom: 10px;
    }

    /* Ajuste para que los botones de personas no ocupen tanto espacio */
    .grid-capacidad {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }
    
    .capacidad-btn {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        border-radius: 50%;
        text-decoration: none;
        color: #333;
    }

    .capacidad-btn.activo {
        color: #0067D9;
        background: #fff;
        border-color: #0067D9;
    }

 /* Contenedor general de los links */
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espacio entre botones */
    padding-top: 15px;
}

/* Títulos de sección (FILTROS, Otros, Capacidad) */
.fil, .separador-filtros {
    width: 100%; /* Obliga a los títulos a ocupar toda la línea */
    color: white;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    margin-bottom: 5px;
    opacity: 0.9;
}

/* ESTILO DE LOS BOTONES (Los links <a>) */
.filtros a {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15); /* Blanco muy transparente */
    color: white;
    padding: 8px 16px;
    border-radius: 50px; /* Forma de píldora */
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Iconos dentro de los botones */
.filtros a span[class^="icon-"], .filtros a i {
    margin-right: 8px;
    font-size: 16px;
}

/* ESTADO ACTIVO (Cuando el filtro está seleccionado) */
.filtros a.activo {
    background: white !important;
    color: #0067D9 !important; /* Tu naranja institucional */
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-color: white;
}

/* Hover para PC */
.filtros a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}


    .btn-cerrar-filtros {
        color: white !important; /* La X también blanca */
    }

@media (min-width: 769px) {
	.btn-flotante-filtros {
    position: fixed;
    top: 105px;
    left: 10%;
    transform: translateX(-50%);
    z-index: 9998;
    background: #fff; /* Botón blanco */
    color: #0067D9; /* Texto naranja */
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #0067D9;
    cursor:pointer;
}
}


/*.custom .leaflet-popup-tip,
.custom .leaflet-popup-content-wrapper {
    background: #ffffff;
    color: #000;border-radius:0px;
}*/

.custom .leaflet-popup-content-wrapper {
    border-radius: 8px; /* Bordes redondeados modernos */
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
    padding: 0;
    overflow: hidden;
}

.custom .leaflet-popup-content {
    margin: 0;
    width: 250px !important; /* Un poco más ancho */
}

.custom .foto img {
    width: 100%;
    height: auto;
    display: block;
}

.custom .vdv {
    padding: 10px;
    width: 100% !important; /* Que use todo el ancho del popup */
}
