.wptm-map-container {
    position: relative;
    width: 100%;
    background: #f5f5f5;
}

#wptm-frontend-map {
    width: 100%;
    height: 100%;
}

.mapboxgl-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mapboxgl-popup-content {
    padding: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wptm-popup-content {
    padding: 20px;
    min-width: 200px;
}

.wptm-popup-title {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.wptm-popup-date {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.wptm-popup-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.wptm-popup-description .wptm-link {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dotted #2563eb;
    transition: all 0.2s;
}

.wptm-popup-description .wptm-link:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 1px 2px;
    border-radius: 2px;
}

.wptm-popup-coords {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    color: #999;
    font-family: 'Courier New', monospace;
}

.mapboxgl-popup-close-button {
    font-size: 18px;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    color: #999;
}

.mapboxgl-popup-close-button:hover {
    background: transparent;
    color: #000;
}

.wptm-marker {
    width: 20px;
    height: 20px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.wptm-marker:hover {
    transform: scale(1.2);
}

.wptm-map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.wptm-map-filter {
    background: #fff;
    padding: 15px;
    min-width: 200px;
}

.wptm-filter-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0 0 10px 0;
}

.wptm-filter-year {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.wptm-filter-year:hover {
    color: #000;
    padding-left: 5px;
}

.wptm-filter-year.active {
    color: #000;
    font-weight: 600;
}

.wptm-map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    font-size: 12px;
    z-index: 1;
}

.wptm-legend-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0 0 10px 0;
}

.wptm-legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}

.wptm-legend-marker {
    width: 12px;
    height: 12px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-right: 8px;
}

.mapboxgl-ctrl-group {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.mapboxgl-ctrl button {
    background-color: #fff;
    border: none;
}

.mapboxgl-ctrl button:hover {
    background-color: #f5f5f5;
}

@media (max-width: 768px) {
    .wptm-map-controls {
        top: 10px;
        right: 10px;
    }
    
    .wptm-map-legend {
        bottom: 10px;
        left: 10px;
    }
}