
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f4f6f8;
    --text-color: #333;
    --container-background: #ffffff;
    --border-color: #e0e0e0;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

.main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#map {
    height: 60vh;
    width: 100%;
}

/* The main container for the icon. Leaflet's L.divIcon will have this class. */
.custom-marker {
    /* This class is mainly for Leaflet to grab the element */
}

/* The marker's body, a circle */
.custom-marker .marker-body {
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background-color: #c0392b;
    border: 1px solid #a93226;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

/* The marker's tail */
.custom-marker .marker-tail {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #a93226; /* Darker red for the tail */
    position: absolute;
    left: 50%;
    top: 24px; /* Position it just below the circle */
    transform: translateX(-50%);
    z-index: 1;
}

.filter-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000; /* Ensure it's on top of the map */
    background-color: var(--container-background);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-container label {
    margin-right: 10px;
    font-weight: bold;
}

#territorio-filter {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--container-background);
    font-size: 16px;
}

.table-container {
    flex: 1;
    overflow-y: auto;
    background-color: var(--container-background);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: var(--container-background);
    font-weight: bold;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

.highlight {
    background-color: var(--secondary-color) !important;
    color: var(--container-background) !important;
}

/* Responsive styles */
/* @media (max-width: 768px) {
    #map {
        height: 75vh;
    }

    .filter-container {
        top: 5px;
        right: 5px;
        padding: 5px;
    }

    #territorio-filter {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
        font-size: 12px;
    }
}
.filter-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre el botón y el filtro
}*/

#geolocate-button {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
}


@media (max-width: 768px) {
    #map {
        height: 60vh;
    }

    .filter-container {
        top: 5px;
        right: 5px;
        padding: 5px;
    }

    #territorio-filter {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
        font-size: 12px;
    }
}