/* Estilos para el mapa */
#map-container {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#map {
    height: 400px;
    width: 100%;
}

.map-filter-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.map-filter-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #495057;
}

.map-filter-container .form-check {
    margin-bottom: 8px;
}

.map-filter-container .form-check-label {
    white-space: nowrap;
    display: inline-block;
}

.leaflet-popup-content {
    min-width: 280px;
    padding: 5px;
    font-family: 'Inter', sans-serif;
}

.popup-content {
    padding: 5px;
}

.popup-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: #78350f;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.popup-category {
    margin-bottom: 12px;
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 500;
    background-color: #d97706 !important;
    color: white !important;
    border-radius: 4px;
}

.popup-address, .popup-phone, .popup-hours {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.popup-address i, .popup-phone i, .popup-hours i {
    color: #d97706;
    width: 20px;
    margin-right: 10px;
    text-align: center;
    font-size: 16px;
}

.popup-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}

.popup-actions .btn {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.popup-actions .btn i {
    margin-right: 5px;
}

.btn-llamar {
    background-color: #d97706;
    color: white;
    border: none;
}

.btn-llamar:hover {
    background-color: #b45309;
    color: white;
}

.leaflet-popup-content .btn {
    margin-top: 10px;
}

/* Estilos para los marcadores personalizados */
.custom-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.marker-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-5px);
    transition: transform 0.2s ease;
}

.marker-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: inherit;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.marker-icon i {
    font-size: 20px;
    color: white;
}

.custom-marker:hover .marker-icon {
    transform: translateY(-8px) scale(1.1);
}

.marker-veterinaria .marker-icon {
    background-color: #d97706; /* naranja corporativo */
}

.marker-peluqueria .marker-icon {
    background-color: #b45309; /* naranja oscuro */
}

.marker-tienda .marker-icon {
    background-color: #78350f; /* marrón */
}

.marker-guarderia .marker-icon {
    background-color: #fcd34d; /* amarillo */
}

.marker-otro .marker-icon {
    background-color: #92400e; /* marrón medio */
}

/* Estilos para la leyenda del mapa */
.map-legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.map-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.map-legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Estilos para la ubicación actual */
.current-location-marker {
    background-color: #007bff;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
