html, body {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
}

.container-grid {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.main {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 10px;
    padding: 10px;
    height: 100%;
}

.infoExtra {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-y: auto;
}
#sector-list-container {
    height: 60vh; /* 80% del viewport */
    overflow-y: auto; /* Para hacer scroll si hay muchos sectores */
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background: white;
}

#sector-list {
    list-style: none;
    padding: 0;
}

#sector-list li {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

#sector-list li:hover {
    background-color: #e0e0e0;
}   
.sector-item {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.sector-item:hover {
    background-color: #e0e0e0;
}

/* Resaltar la actividad seleccionada */
.sector-item.active {
    background-color: #28a745; /* Verde de Bootstrap */
    color: white;
    font-weight: bold;
}
.map-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.btn-group {
    margin-bottom: 10px;
}

#map {
    flex-grow: 1;
    height: 100%;
    z-index: 1; /* Asegura que el mapa quede en el fondo */
}

.dropdown-menu {
    z-index: 1050;
}

h2 {
    font-size: 1.6vw;
}
h3 {
    font-size: 1.2vw;
    margin-top: 10px;
}
.btn-group button.active {
    background-color: #2ca25f; /* Color activo */
    color: white;
}

.btn-group button.active:hover {
    background-color: #006d2c; /* Color de hover cuando está activo */
}

.form-control{
    margin-bottom: 10px;
}
/* Sacar dinámicamente el formato en busqueda por IDGIS */
.solo-lectura {
    cursor: default !important;
    pointer-events: none; /* Desactiva cualquier interacción */
    background-color: transparent !important;
}

.solo-lectura:hover {
    background-color: transparent !important;
}

/* Estilo para boton de documentacion al seleccionar actividad */
.btn-resaltado {
    background-color: #2ca25f !important;
    color: white !important;
    border: 2px solid #218c4e !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}