/* Visitor Map Widget Styles */

.visitor-map-container {
    margin: 2em 0;
    text-align: center;
}

.visitor-map-container h3 {
    margin-bottom: 1em;
    color: inherit;
}

#visitor-map {
    border: 1px solid rgba(255, 255, 255, 0.125);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0.125em 0.5em 0 rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

#visitor-stats {
    margin-top: 1em;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.65);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
}

/* Leaflet overrides to match site theme */
.leaflet-container {
    background: #1e1f23;
    color: #ffffff;
}

.leaflet-control-zoom a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.leaflet-control-zoom a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.leaflet-popup-content-wrapper {
    background: rgba(30, 31, 35, 0.95);
    color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 0.125em 0.5em 0 rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
    background: rgba(30, 31, 35, 0.95);
}

.leaflet-popup-content {
    margin: 10px 12px;
    line-height: 1.4;
}

/* Visitor marker animation */
@keyframes visitor-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.visitor-marker div {
    animation: visitor-pulse 2s ease-in-out infinite;
}

/* Responsive design */
@media screen and (max-width: 736px) {
    .visitor-map-container {
        margin: 1.5em 0;
    }
    
    #visitor-map {
        height: 300px !important;
        border-radius: 6px;
    }
    
    .visitor-map-container h3 {
        font-size: 1.25em;
        margin-bottom: 0.75em;
    }
}

@media screen and (max-width: 480px) {
    #visitor-map {
        height: 250px !important;
        border-radius: 4px;
    }
    
    .visitor-map-container h3 {
        font-size: 1.1em;
    }
    
    #visitor-stats {
        font-size: 0.8em;
    }
}