/*
 * Style specyficzne dla /mapa/. Tokeny, reset, nagłówek/stopka i wspólne
 * komponenty (page-hero, info-note) są wspólne - patrz ../../assets/theme.css.
 */

.map-modes {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.map-mode-btn {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.map-mode-btn:hover {
    border-color: var(--gold);
    color: var(--text);
}

.map-mode-btn.is-active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.map-wrap {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface);
}

#cityMap {
    width: 100%;
    height: min(70vh, 640px);
    min-height: 360px;
    background: var(--bg);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-sm);
    font-family: var(--font);
}

.leaflet-popup-content {
    margin: 10px 12px;
    font-size: 13px;
    color: var(--text);
}

.map-stop-list {
    margin: 6px 0 0;
    padding-left: 18px;
    max-height: 160px;
    overflow-y: auto;
}

.map-stop-list li + li {
    margin-top: 3px;
}

.map-stop-list a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.map-stop-list a:hover {
    text-decoration: underline;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    font-size: 13px;
    color: var(--muted);
}

.map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.map-legend-swatch {
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 2px;
}

.map-legend-swatch--poi {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.map-meta {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}
