
.map-element.full-height {
    height: 100%;
}

.map-element.small-map {
    height: 300px;
}

.map-element.large-map {
    height: 700px;
}

.leaflet-popup-content {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.leaflet-container {
    font-family: inherit;
}

/* Asegura que el contenedor tenga tamaño fijo y no permita desbordamiento */
.driver-marker-container {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    border: 3px solid #3388ff; /* El color dinámico va aquí */
    overflow: hidden; /* Esto oculta si algo se sale */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.driver-marker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la foto sin deformarla */
}

/* El nombre debe estar fuera del icono principal para no estorbar */
.driver-marker-name {
    position: absolute;
    top: 45px; /* Lo mueve debajo del icono */
    font-size: 12px;
    font-weight: bold;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
    border-radius: 4px;
    text-align: center;
    white-space: nowrap;
}