.map-filters {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark-mode .map-filters {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.map-filters .filter-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #666;
    letter-spacing: 0.3px;
}

.map-filters .filter-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
    transform: translateY(-1px);
}

.map-filters .filter-btn.active {
    background: #000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dark-mode .map-filters .filter-btn {
    color: #aaa;
}

.dark-mode .map-filters .filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dark-mode .map-filters .filter-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode .leaflet-control-zoom {
    background: rgba(20, 20, 20, 0.9) !important;
}

.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dark-mode .leaflet-control-zoom a {
    color: #fff !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    transform: scale(1.1);
}

.dark-mode .leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.leaflet-control-zoom-in {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.dark-mode .leaflet-control-zoom-in {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .leaflet-marker-icon {
    filter: invert(1);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(0, 0, 0, 0.85) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(46, 46, 46, 0.95) !important;
    color: #d4d4d4 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
}

.custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-popup .leaflet-popup-tip {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-popup {
    min-width: 260px;
    max-width: 300px;
}

.popup-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.popup-content {
    padding: 16px;
    background: #fff;
}

.dark-mode .popup-content {
    background: #1a1a1a;
}

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

.dark-mode .popup-title {
    color: #fff;
}

.popup-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.dark-mode .popup-meta {
    color: #999;
}

.popup-year {
    font-weight: 500;
}

.popup-status {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.status-completed {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.status-in-progress {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

.status-concept,
.status-unbuilt {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
}

.popup-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.popup-link:hover {
    border-bottom-color: #000;
    transform: translateX(4px);
}

.dark-mode .popup-link {
    color: #fff;
}

.dark-mode .popup-link:hover {
    border-bottom-color: #fff;
}

/* Map credit line (bottom right of the map) */
#map .leaflet-control-attribution {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
}

#map .leaflet-control-attribution a {
    color: #444;
    text-decoration: none;
}

body.dark-mode #map .leaflet-control-attribution {
    background: rgba(26, 26, 26, 0.8);
    color: #999;
}

body.dark-mode #map .leaflet-control-attribution a {
    color: #ccc;
}
