/**
 * LRSI Location Map Widget Styles
 * @version 1.0.0
 */

/* Main wrapper */
.lrsi-location-map-wrapper {
    position: relative;
    width: 100%;
}

/* Map container */
.lrsi-location-map-container {
    width: 100%;
    height: 300px;
    z-index: 1;
    overflow: hidden;
}

/* Placeholder when no location */
.lrsi-location-map-no-coords .lrsi-location-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #999;
}

.lrsi-location-map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.lrsi-location-map-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* Custom marker styles */
.lrsi-location-marker {
    background: transparent;
    border: none;
}

.lrsi-location-marker-pin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ff6b00;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.lrsi-location-marker-pin:hover {
    transform: scale(1.1);
}

/* Diffuse area circle */
.lrsi-diffuse-area {
    stroke-dasharray: 5, 5;
    stroke-width: 2;
}

/* Popup styles */
.lrsi-location-popup {
    min-width: 150px;
    max-width: 250px;
}

.lrsi-location-popup-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.lrsi-location-popup-content {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
}

.leaflet-popup-tip {
    box-shadow: none;
}

/* Disable scroll zoom indicator */
.lrsi-location-map-scroll-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.lrsi-location-map-wrapper:hover .lrsi-location-map-scroll-hint {
    opacity: 1;
}

.lrsi-location-map-wrapper.scroll-enabled .lrsi-location-map-scroll-hint {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .lrsi-location-map-container {
        height: 250px;
    }

    .lrsi-location-popup {
        min-width: 120px;
        max-width: 200px;
    }

    .lrsi-location-popup-title {
        font-size: 14px;
    }

    .lrsi-location-popup-content {
        font-size: 13px;
    }
}

/* Elementor editor preview */
.elementor-editor-active .lrsi-location-map-container {
    pointer-events: none;
}
