:root {
    --map-bg: #f5efe3;
    --map-panel: #fffdf8;
    --map-panel-strong: #fffaf1;
    --map-border: rgba(10, 61, 46, 0.10);
    --map-border-strong: rgba(10, 61, 46, 0.16);
    --map-text: #173d31;
    --map-muted: #5f625d;
    --map-accent: #d4a574;
    --map-accent-soft: rgba(212, 165, 116, 0.16);
    --map-accent-deep: #8a6b49;
    --map-shadow: 0 18px 44px rgba(10, 61, 46, 0.10);
    --map-shadow-soft: 0 14px 34px rgba(10, 61, 46, 0.08);
    --map-shadow-strong: 0 26px 64px rgba(10, 61, 46, 0.14);
}

* {
    box-sizing: border-box;
}

body.map-page-body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(212, 165, 116, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(10, 61, 46, 0.08), transparent 28%),
        linear-gradient(180deg, #faf6ef 0%, #f1e8d9 100%);
    color: var(--map-text);
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
}

.map-page {
    padding: 1.1rem 1.25rem 3rem;
    max-width: 100%;
    overflow-x: hidden;
}

.map-page-shell {
    max-width: 1460px;
    margin: 0 auto;
}

.map-hero {
    position: relative;
    margin-bottom: 1.2rem;
    padding: 1.6rem;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(10, 61, 46, 0.96) 0%, rgba(20, 74, 58, 0.92) 58%, rgba(120, 93, 58, 0.88) 100%);
    color: #fffdf7;
    box-shadow: var(--map-shadow-strong);
    overflow: hidden;
}

.map-hero::before,
.map-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.map-hero::before {
    top: -80px;
    right: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}

.map-hero::after {
    left: -70px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.22), transparent 64%);
}

.map-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 390px);
    gap: 1.25rem;
    align-items: stretch;
    z-index: 1;
}

.map-hero-content {
    min-width: 0;
}

.map-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f6e7d4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-hero h1 {
    margin: 0.95rem 0 0.55rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.7rem, 4.4vw, 4.6rem);
    line-height: 0.96;
    color: #fffdf7;
}

.map-hero-subtitle {
    max-width: 720px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255, 251, 244, 0.88);
}

.map-hero-support {
    max-width: 760px;
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
    line-height: 1.72;
    color: rgba(255, 251, 244, 0.78);
}

.map-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.35rem;
}

.map-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 61, 46, 0.12);
    background: #fff;
    color: #0a3d2e;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(10, 61, 46, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.map-action-link.primary {
    background: #f4e1c4;
    color: #173d31;
    border-color: rgba(244, 225, 196, 0.56);
}

.map-action-link.subtle {
    background: transparent;
    color: #fffdf7;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.map-action-link:hover,
.map-action-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(10, 61, 46, 0.13);
}

.map-action-link.subtle:hover,
.map-action-link.subtle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.map-hero-panel {
    align-self: stretch;
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.map-hero-panel-head {
    display: grid;
    gap: 0.4rem;
}

.map-hero-panel-kicker {
    color: #f6e7d4;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-hero-panel-head p,
.map-hero-note {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(255, 251, 244, 0.80);
}

.map-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.map-hero-stat-card {
    display: grid;
    gap: 0.2rem;
    min-height: 104px;
    padding: 0.95rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #173d31;
    box-shadow: 0 12px 28px rgba(9, 34, 27, 0.12);
}

.map-hero-stat-card strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
}

.map-hero-stat-card span {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #4c5f57;
    font-weight: 700;
}

.map-toolbar {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid rgba(10, 61, 46, 0.08);
    box-shadow: var(--map-shadow);
    backdrop-filter: blur(12px);
}

.map-toolbar-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto auto;
    gap: 0.9rem;
    align-items: center;
}

.map-search-stack {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.map-search {
    position: relative;
}

.map-search input {
    width: 100%;
    min-height: 54px;
    padding: 0 4.9rem 0 3rem;
    border-radius: 18px;
    border: 1px solid rgba(10, 61, 46, 0.12);
    background: #fff;
    color: #0a3d2e;
    font: inherit;
    font-size: 0.96rem;
    box-shadow: inset 0 1px 0 rgba(10, 61, 46, 0.03);
}

.map-search input:focus-visible,
.map-filter-btn:focus-visible,
.map-list-card:focus-visible,
.map-button:focus-visible,
.map-action-link:focus-visible,
.map-search-clear:focus-visible {
    outline: 2px solid rgba(10, 61, 46, 0.72);
    outline-offset: 2px;
}

.map-search::before {
    content: "⌕";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    line-height: 1;
    color: rgba(23, 61, 49, 0.56);
}

.map-search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    min-width: 64px;
    min-height: 38px;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 12px;
    transform: translateY(-50%);
    background: #efe5d4;
    color: #6a573e;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.map-search-clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.map-search-help {
    margin: 0;
    color: var(--map-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.map-toolbar-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.map-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 0.95rem;
    border-radius: 999px;
    background: #f4efe6;
    color: #0a3d2e;
    font-size: 0.82rem;
    font-weight: 700;
}

.map-toolbar-main .map-action-link {
    min-height: 52px;
}

.map-filters {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

.map-filters::-webkit-scrollbar {
    display: none;
}

.map-filter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0 0.95rem 0 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(10, 61, 46, 0.12);
    background: #fff;
    color: #355347;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.map-filter-btn:hover,
.map-filter-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--map-shadow-soft);
}

.map-filter-btn.is-active {
    background: #0a3d2e;
    border-color: #0a3d2e;
    color: #fff;
    box-shadow: 0 16px 30px rgba(10, 61, 46, 0.18);
}

.map-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--filter-accent);
    color: var(--filter-color);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.map-filter-btn.is-active .map-filter-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.map-filter-text {
    white-space: nowrap;
}

.map-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(10, 61, 46, 0.06);
    font-size: 0.75rem;
}

.map-filter-btn.is-active .map-filter-count {
    background: rgba(255, 255, 255, 0.18);
}

.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 390px);
    gap: 1.4rem;
    margin-top: 1.25rem;
    align-items: start;
}

.map-stage,
.map-sidebar {
    min-width: 0;
}

.map-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
    align-self: start;
}

.map-explore-section {
    margin-top: 1.35rem;
}

.map-stage-card,
.map-panel-card {
    border-radius: 28px;
    background: var(--map-panel);
    border: 1px solid var(--map-border);
    box-shadow: var(--map-shadow);
    overflow: hidden;
}

.map-stage-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 250, 241, 0.96));
}

.map-stage-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(212, 165, 116, 0.18);
    pointer-events: none;
}

.map-stage-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(10, 61, 46, 0.08);
}

.map-stage-head h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
}

.map-stage-head p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--map-muted);
}

.map-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    background: #f4efe6;
    color: #8a6b49;
    font-size: 0.76rem;
    font-weight: 700;
}

#tourismMap {
    position: relative;
    z-index: 0;
    height: clamp(430px, 60vh, 800px);
    width: 100%;
}

.map-stage-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.2rem 1.05rem;
    border-top: 1px solid rgba(10, 61, 46, 0.08);
    background: #fcfaf5;
}

.map-stage-foot p {
    margin: 0;
    color: var(--map-muted);
    font-size: 0.86rem;
}

.map-stage-foot strong {
    color: #0a3d2e;
}

.map-panel-card {
    padding: 1rem;
}

.map-overview-card {
    display: grid;
    gap: 0.9rem;
    background:
        linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(250, 244, 233, 0.96));
}

.map-panel-kicker {
    margin: 0;
    color: #8a6b49;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.map-overview-stat {
    display: grid;
    gap: 0.18rem;
    padding: 0.85rem 0.8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(10, 61, 46, 0.08);
}

.map-overview-stat strong {
    color: #0a3d2e;
    font-size: 1.22rem;
    line-height: 1;
}

.map-overview-stat span {
    color: var(--map-muted);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.45;
}

.map-overview-note {
    margin: 0;
    color: var(--map-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.map-list-panel {
    padding: 1.15rem;
}

.map-list-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.2rem;
}

.map-panel-title {
    margin: 0 0 0.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
}

.map-panel-intro {
    margin: 0 0 0.9rem;
    color: var(--map-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.map-panel-groups {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
}

.map-panel-groups::-webkit-scrollbar {
    display: none;
}

.map-panel-group-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0 0.85rem 0 0.55rem;
    border: 1px solid rgba(10, 61, 46, 0.10);
    border-radius: 999px;
    background: #fff;
    color: #355347;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.map-panel-group-btn:hover,
.map-panel-group-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--map-shadow-soft);
}

.map-panel-group-btn.is-active {
    background: #0a3d2e;
    border-color: #0a3d2e;
    color: #fff;
}

.map-panel-group-icon,
.map-panel-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.7rem;
}

.map-panel-group-icon {
    background: rgba(10, 61, 46, 0.07);
}

.map-panel-group-count {
    background: rgba(10, 61, 46, 0.06);
}

.map-panel-group-btn.is-active .map-panel-group-icon,
.map-panel-group-btn.is-active .map-panel-group-count {
    background: rgba(255, 255, 255, 0.16);
}

.map-selected-empty,
.map-list-empty {
    padding: 1rem;
    border-radius: 18px;
    background: #f7f2e8;
    color: var(--map-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.map-detail {
    display: grid;
    gap: 0.85rem;
}

.map-detail-image {
    width: 100%;
    height: 196px;
    object-fit: cover;
    border-radius: 20px;
    background: #e9e1d2;
}

.map-image-fallback {
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    gap: 0.35rem;
    background:
        linear-gradient(135deg, #eadfcd 0%, #f3e8da 100%);
    color: #7d6648;
}

.map-image-fallback.is-route {
    background:
        linear-gradient(135deg, rgba(10, 61, 46, 0.10) 0%, rgba(212, 165, 116, 0.20) 100%);
    color: #214338;
}

.map-image-fallback span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.map-image-fallback small {
    font-size: 0.74rem;
    font-weight: 700;
}

.map-image-fallback em {
    font-style: normal;
    font-size: 0.73rem;
    line-height: 1.45;
    max-width: 180px;
    color: rgba(33, 67, 56, 0.74);
}

.map-detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.map-detail-top h3 {
    margin: 0.4rem 0 0;
    font-size: 1.2rem;
    color: #0a3d2e;
}

.map-detail-category {
    display: inline-flex;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: var(--map-accent-soft);
    color: var(--map-accent-deep);
    font-size: 0.74rem;
    font-weight: 700;
}

.map-detail-category.is-soft {
    background: var(--detail-accent);
    color: var(--detail-color);
}

.map-detail-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: #f4efe6;
    color: #355347;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.map-detail p {
    margin: 0;
    color: var(--map-muted);
    line-height: 1.68;
    font-size: 0.93rem;
}

.map-detail-support {
    margin: -0.15rem 0 0 !important;
    color: #6d604a !important;
    font-size: 0.82rem !important;
    font-weight: 700;
}

.map-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.map-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: #f4efe6;
    color: #355347;
    font-size: 0.76rem;
    font-weight: 700;
}

.map-detail-actions,
.map-list-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.map-list-card-actions {
    margin-top: auto;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    border: 1px solid rgba(10, 61, 46, 0.12);
    background: #fff;
    color: #0a3d2e;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.map-button:hover,
.map-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(10, 61, 46, 0.10);
}

.map-button.primary {
    background: #0a3d2e;
    border-color: #0a3d2e;
    color: #fff;
}

.map-popup-detail-button {
    display: inline-flex;
    margin: 0.35rem 0.45rem 0 0;
    min-height: 32px;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 999px;
    background: #0a3d2e;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

body.map-details-open {
    overflow: hidden;
}

.map-details-modal[hidden] {
    display: none;
}

.map-details-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.map-details-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 28, 22, 0.58);
    backdrop-filter: blur(8px);
}

.map-details-dialog {
    position: relative;
    width: min(940px, 100%);
    max-height: min(86vh, 820px);
    overflow: hidden;
    border-radius: 28px;
    background: #fffdf8;
    box-shadow: 0 30px 90px rgba(6, 28, 22, 0.32);
    outline: none;
}

.map-details-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(10, 61, 46, 0.12);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.94);
    color: #0a3d2e;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(10, 61, 46, 0.10);
}

.map-details-content {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.2fr);
    max-height: inherit;
    overflow: auto;
}

.map-details-media {
    min-height: 100%;
    background: #efe5d5;
}

.map-details-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.map-details-body {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 2.1rem;
}

.map-details-heading {
    display: grid;
    gap: 0.75rem;
    padding-right: 2.8rem;
}

.map-details-heading h2 {
    margin: 0;
    color: #0a3d2e;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.05;
}

.map-details-heading p,
.map-details-info dd {
    margin: 0;
    color: var(--map-muted);
    line-height: 1.68;
}

.map-details-long {
    color: #425b50 !important;
}

.map-details-info {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.map-details-info-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(10, 61, 46, 0.08);
}

.map-details-info dt,
.map-details-tags h3,
.map-details-gallery h3 {
    color: #0a3d2e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.map-details-info dt {
    margin: 0;
}

.map-details-tags,
.map-details-gallery {
    display: grid;
    gap: 0.7rem;
}

.map-details-tags h3,
.map-details-gallery h3 {
    margin: 0;
}

.map-details-tags div,
.map-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.map-details-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: #f4efe6;
    color: #355347;
    font-size: 0.74rem;
    font-weight: 700;
}

.map-details-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.map-details-gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    background: #eadfcd;
}

.map-list-group-section + .map-list-group-section {
    margin-top: 1.5rem;
}

.map-list-group-section.is-focused {
    margin-top: 0.1rem;
    padding-top: 0.1rem;
}

.map-list-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0 0.1rem 0.7rem;
    border-bottom: 1px solid rgba(10, 61, 46, 0.08);
}

.map-list-group-head h3 {
    margin: 0;
    color: #0a3d2e;
    font-size: 1.08rem;
    font-weight: 800;
}

.map-list-group-head span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #f4efe6;
    color: #6b6a63;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.map-list-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(296px, 1fr));
    gap: 1rem;
}

.map-list-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(10, 61, 46, 0.08);
    background:
        linear-gradient(180deg, #fff 0%, #fffcf7 100%);
    cursor: pointer;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.map-list-card:hover,
.map-list-card:focus-within,
.map-list-card.is-selected {
    transform: translateY(-1px);
    border-color: rgba(212, 165, 116, 0.65);
    box-shadow: 0 16px 34px rgba(10, 61, 46, 0.10);
    outline: none;
}

.map-list-card.is-selected {
    background:
        linear-gradient(180deg, #fff9ef 0%, #fffdf9 100%);
    box-shadow: 0 18px 36px rgba(10, 61, 46, 0.12);
}

.map-list-card-select {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 0.9rem;
    width: 100%;
    flex: 1;
    align-items: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.map-list-card-select:focus-visible {
    outline: none;
}

.map-list-thumb {
    width: 108px;
    height: 108px;
    border-radius: 18px;
    object-fit: cover;
    background: #eadfcd;
}

.map-list-content {
    display: grid;
    gap: 0.55rem;
    align-content: start;
    min-width: 0;
}

.map-list-card h4 {
    margin: 0;
    color: #0a3d2e;
    font-size: 0.98rem;
}

.map-list-card p {
    margin: 0;
    color: var(--map-muted);
    font-size: 0.85rem;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.map-list-support {
    margin-top: 0.1rem !important;
    color: #6d604a !important;
    font-size: 0.78rem !important;
    font-weight: 700;
    display: block !important;
    -webkit-line-clamp: unset !important;
}

.map-list-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.map-list-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 28px;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: var(--badge-accent, #f4efe6);
    color: var(--badge-color, #6b6a63);
    font-size: 0.72rem;
    font-weight: 700;
}

.map-list-badge.is-missing {
    background: rgba(162, 108, 41, 0.10);
    color: #8a6b49;
}

.map-list-badge.is-route {
    background: rgba(10, 61, 46, 0.08);
    color: #214338;
}

.map-list-badge.is-neutral {
    background: #eef1f4;
    color: #58616e;
}

.map-missing-list {
    margin-top: 1.35rem;
    border-top: 1px solid rgba(10, 61, 46, 0.08);
    padding-top: 1rem;
}

.map-missing-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    cursor: pointer;
    list-style: none;
}

.map-missing-list summary::-webkit-details-marker {
    display: none;
}

.map-missing-summary-label {
    color: #0a3d2e;
    font-size: 0.9rem;
    font-weight: 800;
}

.map-missing-summary-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #f4efe6;
    color: #6b6a63;
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.map-missing-list[open] .map-missing-summary-hint {
    transform: rotate(180deg);
}

.map-missing-list h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: #0a3d2e;
}

.map-missing-list p {
    margin: 0.7rem 0;
    color: var(--map-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.map-missing-list ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--map-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.leaflet-control-zoom a {
    border-radius: 14px !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 18px !important;
    box-shadow: 0 20px 40px rgba(10, 61, 46, 0.18) !important;
}

.leaflet-popup-tip {
    box-shadow: none !important;
}

.map-popup {
    min-width: 220px;
    font-family: 'Raleway', sans-serif;
}

.map-popup strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #0a3d2e;
    font-size: 0.92rem;
}

.map-popup span {
    display: inline-flex;
    margin-bottom: 0.4rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(212, 165, 116, 0.16);
    color: #8a6b49;
    font-size: 0.7rem;
    font-weight: 700;
}

.map-popup p {
    margin: 0 0 0.55rem;
    color: var(--map-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.map-popup a {
    color: #0a3d2e;
    font-size: 0.8rem;
    font-weight: 700;
}

.map-marker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--marker-color);
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(10, 61, 46, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.map-marker::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50% 50% 50% 0;
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.map-marker.is-active {
    filter: saturate(1.08);
    box-shadow: 0 16px 30px rgba(10, 61, 46, 0.28);
}

.map-marker.is-active::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 1px solid rgba(10, 61, 46, 0.22);
    background: rgba(212, 165, 116, 0.15);
    transform: rotate(45deg);
}

.map-marker-core {
    position: relative;
    z-index: 1;
    transform: rotate(45deg);
    color: #fff;
    font-size: 0.58rem;
    line-height: 1;
    letter-spacing: 0.04em;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .map-hero-grid,
    .map-layout {
        grid-template-columns: 1fr;
    }

    .map-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
    }

    .map-toolbar-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1024px) {
    #tourismMap {
        height: 500px;
    }

    .map-list-group-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .map-list-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .map-page {
        padding: 1.15rem 0.8rem 2.2rem;
    }

    .map-hero {
        padding: 1.2rem;
        border-radius: 26px;
        max-width: 100%;
    }

    .map-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.4rem);
    }

    .map-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .map-toolbar,
    .map-stage-card,
    .map-panel-card {
        border-radius: 22px;
    }

    .map-stage-head,
    .map-stage-foot {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .map-sidebar,
    .map-overview-grid,
    .map-list-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tourismMap {
        height: 400px;
    }

    .map-details-modal {
        align-items: end;
        padding: 0.7rem;
    }

    .map-details-dialog {
        width: 100%;
        max-height: calc(100vh - 1.4rem);
        border-radius: 24px 24px 18px 18px;
    }

    .map-details-content {
        grid-template-columns: 1fr;
    }

    .map-details-image {
        min-height: 240px;
        height: 240px;
    }

    .map-details-body {
        padding: 1.25rem;
    }

    .map-details-heading {
        padding-right: 2.6rem;
    }
}

@media (max-width: 520px) {
    body.map-page-body,
    .map-page,
    .map-page-shell,
    .map-hero,
    .map-toolbar,
    .map-stage-card,
    .map-panel-card {
        max-width: 100%;
        overflow-x: hidden;
    }

    .map-hero {
        padding: 1rem;
    }

    .map-hero h1,
    .map-hero-subtitle,
    .map-hero-support,
    .map-card-title,
    .map-card-description {
        overflow-wrap: anywhere;
    }

    .map-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .map-hero-stat-card {
        min-height: 0;
        padding: 0.62rem 0.42rem;
        border-radius: 14px;
    }

    .map-hero-stat-card strong {
        font-size: 1.45rem;
    }

    .map-hero-stat-card span {
        font-size: 0.66rem;
        line-height: 1.25;
    }

    .map-toolbar {
        padding: 1rem;
    }

    .map-filter-btn {
        min-height: 42px;
        padding-right: 0.85rem;
    }

    .map-panel-group-btn {
        min-height: 38px;
        padding-right: 0.75rem;
    }

    .map-sidebar,
    .map-list-group-grid {
        grid-template-columns: 1fr;
    }

    .map-overview-card {
        padding: 0.9rem;
        gap: 0.65rem;
    }

    .map-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .map-overview-stat {
        padding: 0.55rem 0.35rem;
        border-radius: 12px;
        text-align: center;
    }

    .map-overview-stat strong {
        font-size: 1rem;
    }

    .map-overview-stat span {
        font-size: 0.64rem;
        line-height: 1.25;
    }

    .map-overview-note {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    .map-stage-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-stage-badge {
        align-self: flex-start;
    }

    .map-list-card-select {
        grid-template-columns: 1fr;
    }

    .map-list-thumb {
        width: 100%;
        height: 172px;
    }

    .map-detail-image {
        height: 188px;
    }

    .map-details-info-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .map-details-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #tourismMap {
        height: 340px;
    }
}

@media (max-width: 430px) {
    .map-page {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .map-actions,
    .map-toolbar-stats,
    .map-detail-actions,
    .map-list-card-actions,
    .map-details-actions {
        gap: 0.6rem;
    }

    .map-action-link,
    .map-button {
        width: 100%;
    }

    .map-details-modal {
        padding: 0.5rem;
    }

    .map-details-dialog {
        max-height: calc(100vh - 1rem);
    }

    .map-details-image {
        min-height: 210px;
        height: 210px;
    }

    .map-details-body {
        padding-bottom: 4.5rem;
    }

    .map-detail-top {
        flex-direction: column;
    }

    .map-search input {
        min-height: 52px;
        padding-right: 4.6rem;
    }

    .map-list-group-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 390px) {
    .map-page {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .map-hero,
    .map-toolbar,
    .map-stage-card,
    .map-panel-card {
        border-radius: 18px;
    }

    .map-hero-stat-card {
        padding: 0.58rem 0.34rem;
    }

    #tourismMap {
        height: 320px;
    }
}
