body { margin: 0; font-family: 'Highway Gothic', sans-serif; }
#map { height: 100vh }

#filter-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    gap: 4px;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#filter-bar button {
    padding: 6px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    color: #333;
    transition: background 0.15s, color 0.15s;
}

#filter-bar button.active {
    background: #ff0000;
    color: #fff;
}

.maplibregl-popup-content {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.city-popup .maplibregl-popup-content {
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
}

.city-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip {
    border-bottom-color: #333;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
    border-top-color: #fff;
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
    border-bottom-color: #fff;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
    border-right-color: #fff;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
    border-left-color: #fff;
}

#info-panel {
    position: absolute;
    bottom: 72px;
    right: 16px;
    z-index: 1;
    width: 280px;
    min-height: 120px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    padding: 16px 20px;
    font-size: 14px;
    color: #333;
    transition: opacity 0.2s, transform 0.2s;
}

#info-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

#info-panel .close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eee;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

#info-panel .close:hover {
    background: #ddd;
    color: #333;
}

#info-panel .shields {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

#info-panel .shield {
    height: 48px;
}

#info-panel .ref {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

#info-panel .info-detail {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    font-size: 13px;
    line-height: 1.45;
}

#info-panel .info-detail:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

#info-panel .info-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: #c00;
}

#info-panel .info-row {
    margin-bottom: 4px;
}

#info-panel .info-label {
    display: inline-block;
    min-width: 2.2em;
    margin-right: 4px;
    color: #666;
    font-weight: 600;
}

#title {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    line-height: 1.3;
}

#title .zh {
    font-size: 30px;
    font-weight: 700;
    color: #222;
}

#title .en {
    font-size: 20px;
    font-weight: 500;
    color: #555;
}
