body.map-page {
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
}

body.map-page #app {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 56px);
    height: auto;
    margin-top: 56px;
    box-sizing: border-box;
}

.pm-topbar-search {
    position: relative;
}

.pm-search-input-wrap {
    position: relative;
}

.pm-search-empty-state {
    display: none;
}

.map-search-placeholder {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    color: #757575;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

#map-search-input.has-clear {
    padding-right: 56px;
}

body.map-page .pm-topbar-search .map-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    color: var(--slate-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    padding: 0;
}

body.map-page .pm-topbar-search .map-search-clear:hover {
    background: transparent;
}

body.map-page .pm-topbar-search .map-search-clear:focus:not(:focus-visible) {
    outline: none;
    box-shadow: 0 0 0 2px rgba(91,116,138,0.12);
}

body.map-page .main-content {
    flex: 1 1 auto;
    flex-direction: row;
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
}

body.map-page .pm-search-strip {
    border-bottom: 1px solid var(--green-150);
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 auto;
    background: var(--green-25);
}

body.map-page .pm-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

body.map-page .pm-search-row-controls {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
}

body.map-page .pm-search-group-mode {
    flex: 0 0 auto;
    border-left: 1px solid var(--green-150);
    padding-left: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

body.map-page .pm-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

body.map-page .pm-mode-switch button {
    width: 144px;
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.82rem;
}

body.map-page .pm-mode-switch .pm-mode-camps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.map-page .pm-mode-icon {
    display: block;
    flex: 0 0 auto;
}

body.map-page .pm-mode-camps .pm-mode-icon {
    color: var(--green-700);
}

body.map-page .pm-mode-camps.is-active .pm-mode-icon {
    color: var(--white);
}

body.map-page .pm-topbar-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    position: relative;
}

body.map-page .pm-search-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

body.map-page .pm-search-group-main {
    flex: 1 1 160px;
    min-width: 160px;
    width: 100%;
    order: -2;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

body.map-page .pm-search-group-quick {
    flex: 0 0 auto;
    justify-items: end;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

body.map-page .pm-search-filters-row {
    display: contents;
}

body.map-page .pm-search-group-reserved {
    visibility: hidden;
    pointer-events: none;
}

body.map-page .pm-search-group-label {
    flex: 0 0 auto;
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
}

@media (min-width: 769px) and (max-width: 1600px) {
    body.map-page .pm-search-strip {
        gap: 8px;
    }

    body.map-page .pm-search-row-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "main mode"
            "filters filters";
        align-items: center;
        width: 100%;
        gap: 8px 12px;
        min-width: 0;
    }

    body.map-page .pm-search-group-main {
        grid-area: main;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: none;
        order: 0;
    }

    body.map-page .pm-search-group-mode {
        grid-area: mode;
        flex: 0 0 auto;
        order: 0;
        border-left: 1px solid var(--green-150);
        padding-left: 12px;
        justify-content: flex-start;
        max-width: none;
    }

    body.map-page .pm-search-filters-row {
        display: flex;
        grid-area: filters;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px 14px;
        min-width: 0;
        width: 100%;
    }

    body.map-page .pm-search-group-quick {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        justify-content: flex-start;
        flex-wrap: nowrap;
        min-width: 0;
        order: 0;
    }

    body.map-page .pm-mode-switch {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    body.map-page .pm-search-group-reserved {
        display: none;
    }
}

body.map-page .pm-search-quick {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

body.map-page .pm-topbar-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--green-200);
    border-radius: 14px;
    background: var(--green-25);
    padding: 0 14px;
    font: inherit;
    color: var(--ink-900);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.map-page .pm-topbar-search input:focus {
    outline: none;
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(47, 143, 67, 0.12);
}

body.map-page .pm-topbar-search button,
body.map-page .pm-search-quick button {
    border: 1px solid var(--green-200);
    border-radius: 999px;
    background: var(--white);
    color: #29455e;
    font-weight: 700;
    font-size: 0.78rem;
    min-height: 44px;
    padding: 0 14px;
    cursor: pointer;
}

body.map-page .pm-topbar-search button,
body.map-page .pm-search-quick button.is-active {
    border-color: var(--green-700);
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
    color: var(--white);
    box-shadow: 0 10px 18px rgba(47, 143, 67, 0.18);
}

body.map-page .pm-topbar-search .pm-search-button-label {
    display: none;
}

body.map-page .pm-topbar-search .pm-search-button-icon {
    display: block;
    width: 18px;
    height: 18px;
}

body.map-page .pm-topbar-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    padding: 0;
    flex: 0 0 44px;
}

body.map-page .pm-topbar-search > button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

body.map-page .pm-topbar-search > button .locate-spinner {
    position: relative;
    width: 18px;
    height: 18px;
    display: block;
    box-shadow: none;
}

body.map-page .pm-topbar-search > button .locate-spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--white);
    animation: locate-spin 1s linear infinite;
    box-sizing: border-box;
}

body.map-page .pm-topbar-search > #map-search-hint,
body.map-page .pm-topbar-search > .pm-geocode-suggestions {
    grid-area: 1 / 1 / 2 / 2;
}

body.map-page .pm-geocode-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 40;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--green-200);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(19, 32, 51, 0.12);
    max-height: 240px;
    overflow: auto;
}

body.map-page .pm-geocode-suggestions button {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    justify-content: flex-start;
    background: var(--white);
    color: var(--ink-900);
    border: 0;
    box-shadow: none;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: left;
    white-space: normal;
}

body.map-page .pm-geocode-suggestions button:hover,
body.map-page .pm-geocode-suggestions button:focus-visible {
    background: var(--green-100);
    color: var(--ink-900);
}

body.map-page .pm-panel {
    background: var(--white);
    border: 1px solid #e3eadf;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(21, 42, 67, 0.04);
    padding: 16px 16px 14px;
    width: 100%;
}

body.map-page .pm-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body.map-page .pm-panel-head strong {
    font-size: 0.9rem;
    color: #153149;
    letter-spacing: -0.02em;
}

body.map-page .pm-radius-control {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 26px;
    --radius-unit-width: 46px;
    cursor: pointer;
}

body.map-page .pm-radius-track {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 16px;
    background: linear-gradient(90deg, #dff1e1 0%, var(--slate-200) 100%);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    touch-action: pan-y;
}

body.map-page .pm-radius-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #5cc76f 0%, #3f9f63 100%);
}

body.map-page .pm-radius-ticks {
    position: absolute;
    left: 0;
    right: var(--radius-unit-width);
    top: 20px;
    height: 18px;
    pointer-events: none;
}

body.map-page .pm-radius-unit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    color: var(--green-800);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

body.map-page .pm-radius-ticks button {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    border: 0;
    background: transparent;
    color: var(--slate-600);
    min-height: 0;
    padding: 0;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    pointer-events: auto;
}

body.map-page .pm-radius-ticks button:first-child {
    transform: none;
}

body.map-page .pm-radius-ticks button:last-child {
    transform: translateX(-100%);
}

body.map-page .pm-radius-ticks button.is-active {
    color: var(--green-800);
    font-weight: 800;
}

body.map-page .pm-panel-note {
    margin-top: 0;
    margin-bottom: 0;
    color: #6f8391;
    font-size: 0.72rem;
    line-height: 1.5;
}

body.map-page .pm-panel-filters {
    width: 100%;
    padding: 10px;
    background: var(--white);
    box-sizing: border-box;
}

body.map-page .pm-panel-filters .pm-filters-shell,
body.map-page .pm-panel-filters .pm-filter-groups,
body.map-page .pm-panel-filters .pm-filter-group {
    width: 100%;
    box-sizing: border-box;
}

body.map-page .pm-filters-shell {
    border: 1px solid var(--green-200);
    border-radius: 12px;
    background: var(--green-25);
    padding: 8px;
}

body.map-page .pm-filters-shell > summary {
    list-style: none;
    cursor: pointer;
    color: var(--ink-700);
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 4px;
    user-select: none;
}

body.map-page .pm-filters-shell > summary::-webkit-details-marker {
    display: none;
}

body.map-page .pm-filters-shell > summary::after {
    content: '▾';
    color: var(--slate-600);
    margin-left: 8px;
}

body.map-page .pm-filters-shell:not([open]) > summary::after {
    content: '▸';
}

body.map-page .pm-filters-summary-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body.map-page .pm-filters-summary-right em {
    font-style: normal;
    color: var(--green-800);
    background: var(--green-100);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
}

body.map-page .pm-filters-summary-right b {
    color: var(--green-700);
    font-size: 0.76rem;
    font-weight: 700;
}

body.map-page .pm-filter-groups {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

body.map-page .pm-filter-group {
    display: block;
    border: 1px solid var(--green-150);
    border-radius: 10px;
    background: var(--white);
    padding: 0;
}

body.map-page .pm-filter-groups-empty {
    margin: 0;
    padding: 10px 4px;
    color: #6b8096;
    font-size: 0.86rem;
}

body.map-page .pm-filter-group.pm-filter-group-mobile-only {
    display: none;
}

body.map-page .pm-filter-group > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    user-select: none;
}

body.map-page .pm-filter-group > summary::-webkit-details-marker {
    display: none;
}

body.map-page .pm-filter-group > summary::after {
    content: '▴';
    color: var(--slate-600);
    font-size: 0.78rem;
    font-weight: 800;
}

body.map-page .pm-filter-group:not([open]) > summary::after {
    content: '▾';
}

body.map-page .pm-filter-group > summary strong {
    color: #29455e;
    font-size: 0.78rem;
    font-weight: 800;
}

body.map-page .pm-filter-group-body {
    display: grid;
    gap: 8px;
    padding: 0 8px 8px;
}

body.map-page .pm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.map-page .pm-chip-row button.is-active {
    border-color: var(--green-700);
    background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
    color: var(--white);
    box-shadow: 0 10px 18px rgba(47, 143, 67, 0.18);
}

body.map-page .pm-camp-label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--slate-600);
}

body.map-page .pm-camp-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-600);
}

body.map-page .pm-camp-range input.tm-picker-date {
    padding-right: 28px !important;
    background-position: right 8px center !important;
    background-size: 16px 16px !important;
}

body.map-page .pm-camp-range input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid var(--green-200);
    border-radius: 8px;
    font: 600 13px var(--font-body);
    color: var(--ink-900);
    background: var(--white);
}

body.map-page .pm-camp-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--green-150);
    background: var(--white);
    box-shadow: 0 8px 18px rgba(28, 43, 64, 0.04);
    cursor: pointer;
}

body.map-page .pm-camp-item:hover,
body.map-page .pm-camp-item:focus-visible,
body.map-page .pm-camp-item.is-active {
    border-color: var(--green-600);
    box-shadow: 0 10px 22px rgba(47, 143, 67, 0.14);
}

body.map-page .pm-camp-item-photo {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--green-100);
}

body.map-page .pm-camp-item-photo.is-placeholder {
    display: flex;
    align-items: flex-end;
    padding: 8px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1f6fb2, #174f80);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
}

body.map-page .pm-camp-item-photo.is-placeholder.is-camp {
    background: linear-gradient(135deg, #5f3a8f, #3e2463);
}

body.map-page .pm-camp-item-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.map-page .pm-camp-item-head,
body.map-page .pm-camp-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

body.map-page .pm-camp-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: #e7f1fa;
    color: #1f6fb2;
    font-size: 11px;
    font-weight: 800;
}

body.map-page .pm-camp-badge.is-camp {
    background: #f1ebf9;
    color: #5f3a8f;
}

body.map-page .results-item-badges {
    display: flex;
}

body.map-page .pm-camp-item-title {
    font-size: 15px;
    line-height: 1.3;
    color: var(--ink-900);
}

body.map-page .pm-camp-item-meta {
    margin: 0;
    font-size: 13px;
    color: var(--slate-600);
}

body.map-page .pm-camp-item-footer {
    margin-top: 2px;
    font-size: 12px;
    color: var(--slate-600);
}

body.map-page .pm-camp-item-footer strong {
    font-size: 14px;
    color: var(--green-800);
}

body.map-page .pm-camp-item-link {
    margin-left: auto;
    font-weight: 800;
    color: var(--green-800);
    text-decoration: none;
}

.pm-camp-cluster-icon {
    background: none;
    border: 0;
}

.pm-camp-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 3px solid var(--white);
    background: var(--green-700);
    color: var(--white);
    font: 800 14px var(--font-body);
    box-shadow: 0 6px 14px rgba(19, 32, 51, 0.28);
    cursor: pointer;
}

.pm-camp-cluster-icon.is-open .pm-camp-cluster {
    background: var(--white);
    border-color: var(--green-700);
    color: var(--green-800);
}

body.map-page .pm-filter-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

body.map-page .pm-filter-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--green-150);
    border-radius: 8px;
    background: var(--green-25);
    min-height: 32px;
    padding: 0 10px;
}

body.map-page .pm-filter-list label {
    display: inline-flex;
    flex: 1 1 auto;
    align-self: stretch;
    align-items: center;
    gap: 6px;
    color: #29455e;
    font-size: 0.76rem;
    font-weight: 700;
}

body.map-page .pm-filter-list input {
    accent-color: var(--green-700);
}

body.map-page .pm-filter-list span {
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 700;
}

body.map-page .site-footer {
    margin-top: auto;
}

.map-locate-button .locate-icon {
    display: inline-block;
    line-height: 1;
}

.map-locate-button .locate-spinner {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(47, 143, 67, 0.12) inset;
}

.map-locate-button .locate-spinner::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    margin-top: -14px;
    border-radius: 50%;
    border: 3px solid rgba(47, 143, 67, 0.96);
    border-top-color: rgba(255, 255, 255, 0.9);
    animation: locate-spin 1s linear infinite;
    box-sizing: border-box;
}

.sidebar > .panel-section {
    width: 100%;
    flex: 0 0 auto;
}

summary.results-head {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

summary.results-head::-webkit-details-marker {
    display: none;
}

summary.results-head::after {
    content: '▾';
    flex-shrink: 0;
    color: var(--slate-600);
    font-size: 0.9rem;
}

.results-list-section:not([open]) summary.results-head::after {
    content: '▸';
}

.results-list-section:not([open]) {
    overflow: visible;
}

.results-empty-action {
    border: 1px solid var(--green-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--green-700);
    font-size: 0.76rem;
    font-weight: 800;
    min-height: 32px;
    padding: 0 12px;
    justify-self: start;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.results-empty-action:hover,
.results-empty-action:focus-visible {
    background: var(--green-50);
    border-color: var(--green-350);
    color: var(--green-800);
}

.results-empty-note {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.74rem;
    line-height: 1.45;
}

.results-item {
    width: 100%;
}

.results-item-card.is-featured {
    box-shadow: 0 12px 24px rgba(19, 32, 51, 0.08);
}

.results-item-card.is-active {
    border-color: var(--green-700);
    background: var(--green-50);
    box-shadow: 0 14px 28px rgba(47, 143, 67, 0.14);
}

.results-item-card:focus-visible {
    outline: 2px solid rgba(47, 143, 67, 0.28);
    outline-offset: 2px;
}

.results-item-title-button {
    background: transparent;
    border: none;
    padding: 4px 0;
    margin: -4px 0;
    text-align: left;
    cursor: pointer;
    flex: 1 1 auto;
}

.results-item-title mark,
.results-item-address mark {
    background-color: #f1c40f;
    color: var(--ink-600);
    border-radius: 2px;
    padding: 0 2px;
}

.results-item-distance {
    color: var(--green-800);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.results-item-rating-stars {
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.results-item-rating-score {
    color: var(--ink-700);
    font-size: 0.72rem;
    font-weight: 800;
}

.results-item-contact-icons a svg,
.results-item-contact-icons button svg {
    display: block;
    width: 16px;
    height: 16px;
    margin: 0 auto;
}

.results-item-actions-main.is-single {
    grid-template-columns: 1fr;
}

.results-item-profile-link:hover,
.results-item-enrollments:hover,
.results-item-card.is-active .results-item-profile-link,
.results-item-card.is-active .results-item-enrollments {
    transform: translateY(-1px);
}

.results-item-profile-link:hover,
.results-item-card.is-active .results-item-profile-link {
    background: var(--green-50);
    border-color: var(--green-350);
}

.results-item-enrollments:hover,
.results-item-card.is-active .results-item-enrollments {
    background: var(--green-50);
    border-color: var(--green-350);
}

.map-container {
    flex: 1 0 0;
    z-index: 0;
    position: relative;
    touch-action: none;
}

.pm-map-notice.is-info {
    border-color: #b6d4fe;
    background: rgba(239, 246, 255, 0.96);
    color: #1b4965;
}

.pm-map-notice.is-mobile-only {
    display: none;
}

body.map-page .pm-mode-hint {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #b6d4fe;
    border-radius: 12px;
    background: rgba(239, 246, 255, 0.96);
    color: #1b4965;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

body.map-page .pm-mode-hint p {
    margin: 0;
}

body.map-page .pm-mode-hint-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body.map-page .pm-mode-hint-show,
body.map-page .pm-mode-hint-close {
    min-height: 36px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

body.map-page .pm-mode-hint-show {
    padding: 0 14px;
    border: 1px solid var(--green-700);
    border-radius: 999px;
    background: var(--green-700);
    color: var(--white);
}

body.map-page .pm-mode-hint-close {
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #1b4965;
    text-decoration: underline;
}

.map-legend {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1350;
    pointer-events: auto;
}

.map-legend > summary::-webkit-details-marker {
    display: none;
}

.map-legend > summary::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
}

.map-legend[open] > summary::after {
    content: "−";
}

.map-legend-panel ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.map-legend-swatch.is-open,
.map-legend-swatch.is-closing,
.map-legend-swatch.is-closed {
    padding-bottom: 3px;
}

.map-legend-swatch.is-open {
    background: #27ae60;
}

.map-legend-swatch.is-closing {
    background: #e67e22;
}

.map-legend-swatch.is-closed {
    background: #c0392b;
}

.map-legend-swatch.is-unknown {
    background: #95a5a6;
}

.map-legend-swatch.is-event {
    background: #7c3aed;
    font-size: 11px;
}

.map-legend-swatch.is-location {
    background: var(--ink-900);
    font-size: 13px;
}

.map-locate-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(47, 143, 67, 0.28);
}

.map-locate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pm-location-permission-dialog p + p {
    margin-top: 10px;
}

.pm-location-permission-actions button:focus-visible {
    outline: 3px solid rgba(47, 143, 67, 0.35);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .pm-map-notice.is-mobile-only {
        display: block;
    }

    .map-container {
        width: 100%;
        min-height: calc(100dvh - 56px);
    }

    body.map-page .pm-search-strip {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    body.map-page .pm-search-row-controls {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    body.map-page .pm-search-group-main {
        order: -2;
        flex-direction: column;
        align-items: stretch;
    }

    .pm-search-empty-state {
        display: block;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 9px 11px;
        border: 1px solid var(--green-200);
        border-radius: 10px;
        background: var(--white);
        color: var(--ink-900);
        box-shadow: 0 3px 10px rgba(36, 67, 54, 0.08);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .pm-search-empty-state strong {
        display: block;
        margin-bottom: 3px;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .pm-search-empty-state p {
        margin: 0;
        color: var(--slate-600);
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .pm-map-empty-state--map {
        display: none;
    }

    body.map-page .pm-search-group-main .pm-search-group-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    body.map-page .pm-filter-group.pm-filter-group-mobile-only {
        display: block;
    }

    body.map-page .map-container {
        min-height: 100%;
        height: 100%;
    }

    .sidebar.is-open {
        transform: translate(-50%, 0);
    }

    .sidebar .pm-panel-radius {
        display: none;
    }
}

.venue-popup br {
    display: none;
}

.leaflet-popup-content .pm-map-popup-address {
    margin: 0;
}

.pm-map-popup-meta a {
    overflow-wrap: anywhere;
}

.venue-popup .contact-phone-link:hover,
.venue-popup .contact-phone-link:hover {
    color: #2d84c6;
    text-decoration: underline;
}

.venue-popup .tag-list,
.venue-popup .tag-list {
    margin-top: 2px;
}

.pm-map-popup-actions button.venue-profile-link:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.venue-popup mark {
    background-color: #f1c40f;
    color: var(--ink-600);
    border-radius: 2px;
    padding: 0 2px;
}

@media (prefers-reduced-motion: reduce) {
    .map-container .leaflet-popup-content-wrapper::after { transition: none; }
}

body.map-page .pa-user-modal-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

body.map-page .pm-event-item.is-active {
    border-color: #7c3aed;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.14);
}

body.map-page .pm-event-item-title {
    font-size: 0.98rem;
    color: var(--ink-900);
    line-height: 1.3;
}

body.map-page .pm-event-item-participants {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-700);
}

@media (max-width: 760px) {
    body.map-page .pm-event-item-buttons .pa-user-modal-btn {
        width: auto;
        flex: 1 1 0;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    body.map-page .pm-search-quick.pm-mode-switch {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.map-page .pm-mode-switch button {
        width: auto;
        min-width: 0;
        padding: 0 8px;
    }

    body.map-page .pm-chip-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.map-page .pm-chip-row button {
        min-width: 0;
        padding: 0 8px;
    }

    body.map-page .pm-chip-row button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    body.map-page .sidebar {
        bottom: var(--mobile-tabbar-height);
        max-height: calc(100dvh - 92px - var(--mobile-tabbar-height));
    }

    body.map-page .sidebar:not(.is-open) {
        transform: translate(-50%, calc(100% + var(--mobile-tabbar-height) + 24px));
    }
}

@media (max-width: 900px) {
    body.map-page #app {
        min-height: calc(100dvh - 56px - var(--mobile-tabbar-height));
    }
}
