﻿
.accordion-button::after { display: none; } /*Quita los botones por defecto del acordeón*/
/* Estilos generales del acordeon */

.accordion .accordion-item,
.accordion .accordion-header,
.accordion .accordion-button {
    background-color: #004B87 !important;
    color: #fff !important;
    border-color: #5bc0ff !important;
}

.accordion .accordion-button:not(.collapsed) {
      background-color: #ffc107 !important; /* Amarillo Bootstrap */
    color: #000000 !important;
    font-weight: bold;
    border-color: #ffc107 !important;
}

.accordion .accordion-body {
    background-color: #004B87 !important;
    color: #fff !important;
}

/* Fondo totalmente transparente solo para el acordeón móvil */
#filtrosAccordionMovil .accordion-item,
#filtrosAccordionMovil .accordion-header,
#filtrosAccordionMovil .accordion-body {
    background-color: transparent !important;
    box-shadow: none !important;
}




.sidebar-logo {
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
}

.sidebar-scroll {
    max-height: 100vh;
    overflow-y: auto;
}

.menu-item {
    cursor: pointer;
     border-bottom: 2px solid #5bc0ff !important;
}

#map {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;
    touch-action: none;
}

.controls {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease; /* Animación suave al moverse */
}

body.navbar-expanded .controls {
    transform: translateY(200px); /* Mover hacia abajo */
}

.controls strong {
    display: block;
    margin-bottom: 8px;
}

.controls .btn {
    margin-bottom: 5px;
}

.ol-popup {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.3);
    padding: 25px 10px;
    min-width: 450px;
    max-width: 550px;
    bottom: 12px;
    left: -50px;
}

    .ol-popup:after,
    .ol-popup:before {
        top: 100%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

    .ol-popup:after {
        border-top-color: white;
        border-width: 10px;
        left: 48px;
        margin-left: -10px;
    }

    .ol-popup:before {
        border-top-color: #ccc;
        border-width: 11px;
        left: 48px;
        margin-left: -11px;
    }

.ol-popup-closer {
    position: absolute;
    color: red;
    top: 2px;
    right: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    z-index: 10;
}

/* Contenedor principal */
#popup-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Scroll de tabla */
#popup-content-table {
    overflow-y: auto;
    max-height: 300px;
}

/* Pie con botón fijo en móviles */
.popup-footer {
    text-align: center;
}

/* Media para móviles */
@media (max-width: 600px) {
    .ol-popup {
        width: 90vw;
        height: 60vh;
        min-width: unset;
        max-width: unset;
        padding-top: 35px;
    }

    #popup-content-table {
        max-height: 45vh;
    }

    .popup-footer {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 8px 0 0;
        z-index: 5;
    }
}

footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
}

    footer a {
        color: #ffffff;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }
/* Estilos para el botón desplegable */
.filter-header {
    cursor: pointer;
    font-weight: bold;
    color: #0d6efd;
    text-decoration: underline;
    margin-bottom: 10px;
}

.filter-container {
    display: none; /* Ocultar inicialmente */
    margin-top: 10px;
}

    .filter-container.active {
        display: block; /* Mostrar cuando esté activo */
    }
/* Estilos para el buscador */
.search-container {
    margin-bottom: 10px;
}

    .search-container input {
        width: 100%;
        padding: 5px;
        margin-bottom: 5px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .search-container button {
        width: 100%;
        padding: 5px;
        background-color: #0d6efd;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .search-container button:hover {
            background-color: #0b5ed7;
        }

#searchErrorMessage {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.popup-table {
    font-size: 10px !important;
}


.footer-note {
    background-color: #f8f9fa;
    text-align: center;
    font-style: italic;
    font-size: 0.85rem;
}

/* para resaltar los filtros*/

.menu-item.active,
.menu-item:focus {
  background-color: #ffc107 !important; /* Amarillo Bootstrap */
  color: #212529 !important;
  border-color: #ffc107 !important;
}

@media (max-width: 768px) {
    .ol-marker-icon {
        transform: scale(1.5); /* Aumenta el tamaño del ícono */
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    #toggleFiltersBtn {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        width: 100%;
    }
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

