/* ══ Calisthenics parks map (loaded after base.css and calc.css) ══ */
.parks {
    margin-bottom: 72px;
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.parks-search {
    max-width: 620px;
    margin-bottom: 18px;
}

.parks-search-row {
    display: flex;
    gap: 10px;
}

.parks-q {
    font-size: 1rem;
    font-weight: 500;
}

.parks-q::-webkit-search-cancel-button {
    filter: invert(1);
}

.parks-search .btn {
    min-height: 52px;
    padding: 0 22px;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.parks-locate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.92rem;
}

.parks-locate::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 6px currentColor;
}

.parks-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

@media (min-width: 900px) {
    .parks-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 28px;
    }
}

.parks-map-wrap {
    position: relative;
}

.parks-map {
    height: min(62vh, 560px);
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #1a1f25;
    z-index: 0;
}

/* Shown once the map has moved away from the last search */
.parks-area {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    border: none;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.parks-area[hidden] {
    display: none;
}

.parks-side {
    min-width: 0;
}

@media (min-width: 900px) {
    .parks-side {
        height: min(62vh, 560px);
        min-height: 360px;
        display: flex;
        flex-direction: column;
    }
}

.parks-status {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

.parks-list {
    list-style: none;
    margin: 0;
    overflow-y: auto;
    max-height: 420px;
}

@media (min-width: 900px) {
    .parks-list {
        flex: 1;
        max-height: none;
    }
}

.parks-list button {
    display: block;
    width: 100%;
    padding: 11px 8px 11px 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line-soft);
    color: var(--body);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.parks-list button:hover strong,
.parks-list button[aria-current="true"] strong {
    color: var(--gold);
}

.parks-list strong {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.parks-list strong span {
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.82rem;
}

.parks-list small {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
}

.parks-add {
    margin: 12px 0 0;
    font-size: 0.85rem;
}

/* ── Markers and popups ── */
.park-pin {
    width: 18px;
    height: 18px;
    border: 3px solid #14181d;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
}

.park-pin.is-on {
    transform: scale(1.35);
    background: #fff;
    border-color: var(--gold);
}

.you-pin {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25);
}

.parks .leaflet-container {
    font-family: 'Poppins', sans-serif;
}

.parks .leaflet-popup-content-wrapper {
    border-radius: 6px;
    background: #161b21;
    color: var(--body);
}

.parks .leaflet-popup-tip {
    background: #161b21;
}

.parks .leaflet-popup-content {
    margin: 14px 16px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.parks .leaflet-popup-content strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 0.95rem;
}

.parks .leaflet-popup-content p {
    margin: 4px 0;
}

.parks .leaflet-container a.leaflet-popup-close-button {
    color: var(--muted);
}

.pop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 8px;
    font-weight: 600;
}

/* ── Cities list under the map ── */
.content ul.parks-cities {
    list-style: none;
    border-top: 1px solid var(--line);
}

.parks-cities li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.parks-cities a {
    font-weight: 600;
}

.parks-cities span {
    color: var(--muted);
    font-size: 0.9rem;
}
