.weather-map-canvas,
.weather-map-canvas .leaflet-container {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.weather-marker {
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #fff;
    font-family: inherit;
}

.weather-marker.active {
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    z-index: 1000 !important;
}

.weather-marker .temp-badge {
    position: absolute;
    bottom: -8px;
    right: -10px;
    background: #fff;
    border-radius: 9999px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    font-family: inherit;
}

.city-label {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    font-family: inherit;
}

.weather-marker:hover .city-label,
.weather-marker.active .city-label {
    opacity: 1;
}

.custom-weather-marker {
    background: transparent !important;
    border: none !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 260px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.leaflet-popup-close-button {
    color: #64748b !important;
    font-size: 20px !important;
    padding: 10px 10px 0 0 !important;
}

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

.leaflet-control-zoom a {
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

.leaflet-control-zoom a:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.leaflet-control-attribution {
    font-size: 10px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.92) !important;
}

.leaflet-control-attribution a {
    color: #2563eb;
}

.map-popup-header {
    background: #2563eb;
    color: #fff;
    padding: 12px 16px;
}

.map-popup-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.map-popup-body {
    padding: 16px;
    color: #334155;
}

.map-popup-temp {
    display: block;
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.map-popup-meta {
    font-size: 0.875rem;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-popup-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-popup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.map-popup-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    color: #2563eb;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.map-popup-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.map-city-item {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.map-city-item.active {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.map-city-item.active h3 {
    color: #2563eb;
}

#weatherMap {
    min-height: 420px;
    background: #f8fafc;
}

@media (min-width: 768px) {
    #weatherMap {
        min-height: 560px;
    }
}
