/**
 * WMG Multi-Pin Map - Styles
 */

/* Map Container */
.wmg-multi-pin-map-wrapper {
    position: relative;
    width: 100%;
}

.wmg-multi-pin-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

/* Custom Marker */
.wmg-custom-marker {
    background: none;
    border: none;
}

.wmg-custom-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Permanent Marker Labels */
.wmg-marker-label {
    background: none !important;
    border: none !important;
    margin-left: 20px !important;
    margin-top: -32px !important;
}

.wmg-marker-label span {
    display: inline-block;
    padding: 4px 8px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.wmg-map-popup-wrapper {
    padding: 15px;
}

.wmg-map-popup-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.wmg-map-popup-content {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 12px;
}

.wmg-map-popup-content p {
    margin: 0 0 8px 0;
}

.wmg-map-popup-content p:last-child {
    margin-bottom: 0;
}

.wmg-map-popup-actions {
    margin-top: 12px;
}

.wmg-map-directions-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3388ff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.wmg-map-directions-btn:hover {
    background-color: #2277ee;
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

.wmg-map-directions-btn:active {
    transform: translateY(0);
}

/* Leaflet Attribution */
.wmg-multi-pin-map .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .wmg-map-popup-wrapper {
        padding: 12px;
    }

    .wmg-map-popup-title {
        font-size: 15px;
    }

    .wmg-map-popup-content {
        font-size: 13px;
    }

    .wmg-map-directions-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Fix for Leaflet in Elementor */
.elementor-widget-wmg-multi-pin-map img {
    max-width: none !important;
}

/* Loading State */
.wmg-multi-pin-map:empty::before {
    content: 'Loading map...';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 14px;
}
