.station-map-banner-home {
    display: block;
    text-decoration: none;
}

.station-map-dashboard-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.station-map-quote {
    max-width: 360px;
    color: #cfcfcf;
    text-align: center;
    line-height: 1.45;
}

.station-map-quote p {
    margin: 0 0 7px;
}

.station-map-quote strong {
    color: #00ff55;
}

.station-map-page {
    width: min(1500px, calc(100% - 32px));
    margin: 28px auto 50px;
}

.station-map-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 20px;
    padding: 22px 24px;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    background: #111;
}

.station-map-header h1 {
    margin: 4px 0 8px;
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.station-map-header p {
    max-width: 790px;
    margin: 0;
    color: #bdbdbd;
    line-height: 1.6;
}

.station-map-eyebrow {
    display: inline-block;
    color: #00ff55;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.station-map-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(85px, 1fr));
    gap: 10px;
    min-width: 310px;
}

.station-map-summary > div {
    padding: 13px 12px;
    border: 1px solid #2d2d2d;
    border-radius: 11px;
    background: #0b0b0b;
    text-align: center;
}

.station-map-summary strong,
.station-map-summary span {
    display: block;
}

.station-map-summary strong {
    color: #00ff55;
    font-size: 1.28rem;
}

.station-map-summary span {
    margin-top: 3px;
    color: #969696;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.station-map-toolbar {
    display: grid;
    grid-template-columns: minmax(210px, 1.25fr) minmax(155px, 0.7fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #292929;
    border-radius: 12px;
    background: #101010;
}

.station-map-toolbar label {
    display: grid;
    gap: 6px;
}

.station-map-toolbar label > span {
    color: #a8a8a8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.station-map-toolbar input,
.station-map-toolbar select,
.station-map-reset {
    min-height: 44px;
    border: 1px solid #333;
    border-radius: 9px;
    background: #080808;
    color: #fff;
    font: inherit;
}

.station-map-toolbar input,
.station-map-toolbar select {
    width: 100%;
    padding: 0 12px;
}

.station-map-toolbar input:focus,
.station-map-toolbar select:focus {
    outline: 2px solid #00ff55;
    outline-offset: 1px;
}

.station-map-reset {
    padding: 0 18px;
    cursor: pointer;
    font-weight: 800;
}

.station-map-reset:hover {
    border-color: #00ff55;
    color: #00ff55;
}

.station-map-build-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 13px;
    border: 1px solid #244f31;
    border-radius: 9px;
    background: #0c1810;
    color: #c8d9cd;
    font-size: 0.9rem;
}

.station-map-build-status[hidden] {
    display: none;
}

.station-map-build-status.complete {
    border-color: #1b7d38;
    color: #e5ffec;
}

.station-map-build-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00ff55;
    box-shadow: 0 0 9px rgba(0, 255, 85, 0.65);
}

.station-map-shell {
    overflow: hidden;
    border: 1px solid #303030;
    border-radius: 14px;
    background: #0b0b0b;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

#stationMap {
    width: 100%;
    height: min(72vh, 780px);
    min-height: 520px;
    background: #111;
}

.station-map-note {
    margin-top: 11px;
    color: #888;
    font-size: 0.83rem;
    line-height: 1.5;
}

.station-map-note strong {
    color: #aaa;
}

/* Leaflet popup aligned with the SlowscanTV dark theme. */
#stationMap .leaflet-popup-content-wrapper,
#stationMap .leaflet-popup-tip {
    background: #111;
    color: #eee;
}

#stationMap .leaflet-popup-content-wrapper {
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

#stationMap .leaflet-popup-content {
    margin: 14px 16px;
}

#stationMap .leaflet-popup-close-button {
    color: #aaa;
}

#stationMap .leaflet-popup-close-button:hover {
    color: #00ff55;
}

.station-map-popup {
    min-width: 190px;
    line-height: 1.45;
}

.station-map-popup-call {
    display: block;
    margin-bottom: 2px;
    color: #00ff55;
    font-size: 1.12rem;
}

.station-map-popup-name {
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
}

.station-map-popup-place,
.station-map-popup-bands,
.station-map-popup-mode {
    margin-top: 5px;
    color: #c6c6c6;
}

.station-map-popup-mode {
    color: #8f8f8f;
    font-size: 0.82rem;
}

.station-map-popup-link {
    display: inline-block;
    margin-top: 11px;
    padding: 7px 10px;
    border: 1px solid #00ff55;
    border-radius: 7px;
    color: #00ff55 !important;
    text-decoration: none;
    font-weight: 800;
}

.station-map-popup-link:hover {
    background: #00ff55;
    color: #061108 !important;
}

#stationMap .marker-cluster-small,
#stationMap .marker-cluster-medium,
#stationMap .marker-cluster-large {
    background: rgba(0, 255, 85, 0.22);
}

#stationMap .marker-cluster-small div,
#stationMap .marker-cluster-medium div,
#stationMap .marker-cluster-large div {
    background: #0f7f35;
    color: #fff;
    font-weight: 800;
}

@media (max-width: 980px) {
    .station-map-header {
        align-items: stretch;
        flex-direction: column;
    }

    .station-map-summary {
        min-width: 0;
    }

    .station-map-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .station-map-reset {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .station-map-page {
        width: min(100% - 18px, 1500px);
        margin-top: 16px;
    }

    .station-map-header {
        padding: 17px;
    }

    .station-map-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .station-map-toolbar {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    #stationMap {
        min-height: 470px;
        height: 66vh;
    }
}
