.md-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.md-container legend {
  font-weight: bold;
  color: var(--primary-color);
}

fieldset {
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
    color: var(--text-color);
}

input, select, textarea, button {
  box-sizing: border-box;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #fffcfc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

select:disabled {
    background-color: #dcdcdc;
    color: #7a7a7a;
    cursor: not-allowed;
    border: 1px solid #b0b0b0;
    opacity: 0.7;
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.3);
}

.leaflet-popup-content,
.popup-content {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
}

.leaflet-popup-content h3,
.popup-content {
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold; /* Hace que el título sea más visible */
}

.leaflet-popup-content button,
.popup-content button {
    margin-top: 5px;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    background-color: #135d7c;
    color: white;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.leaflet-popup-content button:hover,
.popup-content button:hover {
    background-color: #2C3E50;
}

.popup-panel {
    position: absolute;
    top: 50px; /* Ajusta según la ubicación del botón "Filtrar PDR" */
    left: 20px;
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 5px;
    display: none; /* Inicialmente oculto */
    font-family: 'Roboto', sans-serif;
}

#power-value {
    font-size: 0.9em;
    font-weight: normal;
}

.popup-content select,
.popup-content input {
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

.popup-content input[type="range"] {
    width: 80%; /* Ajusta el ancho del slider al 80% del panel */
    margin: 10px 0;
}

.popup-form input[type="range"] {
    width: 80%; /* Ajusta el ancho del slider al X% del panel */
    margin: 0 0 10px 0;
}

.popup-form button {
    margin-right: auto;
    margin-left: auto;
}

.popup-separator {
    margin: 15px 0 0px 0;  
    border: none;
    border-top: 1.5px solid #e0e0e0;
}

.popup-form label,
.popup-form input {
    margin-bottom: 4px;
}

.no-top-margin {
    margin-top: 0 !important;
}

#close-filter-panel {
    background-color: #135d7c;
}

#close-filter-panel:hover {
    background-color: #2C3E50;
}

#traffic-hour-slider {
    width: 200px;
    height: 4px;
    margin-top: 6px;
}

#traffic-slider-wrapper {
    margin: 0.5rem 0;
    padding: 0.5rem;
    font-size: 0.9em;
    width: fit-content;
}

#traffic-slider-wrapper fieldset {
    margin: 0;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9em;
}
