.weather-page-tourism .main-shell {
    padding-top: 18px;
    isolation: isolate;
}

.weather-page-tourism .site-header,
.weather-page-tourism.tourism-map-popup-open .site-header {
    z-index: 2200;
}

.weather-page-tourism.tourism-map-popup-open .main-shell {
    isolation: auto;
}

.tourism-page-shell {
    display: grid;
    gap: 24px;
}

.tourism-hero,
.tourism-layout,
.tourism-explain-grid {
    display: grid;
    gap: 22px;
}

.tourism-hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
    align-items: stretch;
}

.tourism-hero__copy,
.tourism-status-card,
.tourism-main-card,
.tourism-panel-card,
.tourism-info-block {
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
}

.tourism-hero h1,
.tourism-info-block h2 {
    font-family: var(--font-display);
    line-height: 1.06;
}

.tourism-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.tourism-info-block h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.36rem, 2.2vw, 2rem);
}

.tourism-hero__lead,
.tourism-status-card__note,
.tourism-map-note,
.tourism-situation-copy,
.tourism-side-note,
.tourism-info-block p,
.tourism-legend-note,
.tourism-factor-note,
.tourism-popup__desc,
.tourism-popup__section p {
    color: var(--text-soft);
    line-height: 1.66;
}

.tourism-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tourism-hero__badges span,
.tourism-status-pill,
.tourism-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.tourism-hero__badges span {
    background: rgba(15, 118, 110, 0.09);
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.16);
    flex: 0 0 auto;
}

.tourism-status-pill[data-state="ok"] { background: rgba(16, 185, 129, 0.14); color: #047857; }
.tourism-status-pill[data-state="warning"] { background: rgba(245, 158, 11, 0.16); color: #92400e; }
.tourism-status-pill[data-state="error"] { background: rgba(239, 68, 68, 0.16); color: #991b1b; }
.tourism-status-pill[data-state="loading"] { background: rgba(15, 23, 42, 0.08); color: #334155; }

.tourism-status-card,
.tourism-main-card {
    display: grid;
    align-content: start;
    gap: 18px;
}

.tourism-status-card__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.tourism-status-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tourism-status-card__grid div span,
.tourism-metric span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tourism-status-card__grid strong,
.tourism-metric strong {
    font-size: 1.02rem;
    font-weight: 800;
}

.tourism-layout {
    grid-template-columns: minmax(0, 1.72fr) minmax(310px, 0.86fr);
    align-items: start;
}

.tourism-layout.is-map-popup-open,
.tourism-main-card.is-map-popup-open {
    position: relative;
    z-index: 90;
}

.tourism-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.tourism-toolbar__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tourism-metric {
    min-width: 118px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(244, 248, 250, 0.92);
    border: 1px solid rgba(31, 42, 48, 0.08);
}

.tourism-map-wrap {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(31, 42, 48, 0.08);
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 232, 185, 0.88), transparent 34%),
        radial-gradient(circle at 86% 74%, rgba(214, 154, 72, 0.28), transparent 36%),
        linear-gradient(135deg, #f2dfb6 0%, #dfb66e 48%, #f6d59c 100%);
    isolation: isolate;
}

.tourism-map-wrap.is-popup-open {
    z-index: 80;
}

.tourism-map {
    width: 100%;
    min-height: 640px;
    position: relative;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 245, 214, 0.7), transparent 40%),
        linear-gradient(145deg, #edcc87 0%, #f5e1b4 56%, #d7a75d 100%);
}

.tourism-map.leaflet-container,
.tourism-map .leaflet-container,
.tourism-map .leaflet-pane,
.tourism-map .leaflet-map-pane {
    background: transparent;
}

.tourism-art-map-overlay {
    filter: saturate(1.05) contrast(1.02);
}

.tourism-art-map-backdrop {
    opacity: 0.72;
    filter: blur(7px) saturate(1.08) contrast(0.96) brightness(0.92);
}

.tourism-map .leaflet-overlay-pane svg path {
    transition: fill-opacity 0.18s ease, stroke-width 0.18s ease;
}

.tourism-map .leaflet-interactive:hover {
    fill-opacity: 0.3;
    stroke-width: 2.2;
}

.tourism-map-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(234, 243, 244, 0.76);
    backdrop-filter: blur(4px);
}

.tourism-map-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tourism-map-loader__card {
    display: grid;
    gap: 8px;
    max-width: 360px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(31, 42, 48, 0.08);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.tourism-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 16px;
}

.tourism-panel-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tourism-panel-card__head h2 {
    margin: 0;
    font-size: 1.18rem;
}

.tourism-legend-list,
.tourism-factor-list,
.tourism-rules-list {
    display: grid;
    gap: 14px;
}

.tourism-legend-item,
.tourism-factor-item,
.tourism-rule-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}

.tourism-legend-swatch {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border-radius: 7px;
    border: 1px solid rgba(31, 42, 48, 0.14);
}

.tourism-factor-weight {
    min-width: 48px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-weight: 900;
    font-size: 0.78rem;
}

.tourism-rule-index {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.11);
    color: #0f766e;
    font-weight: 900;
    font-size: 0.78rem;
}

.tourism-side-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.tourism-explain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tourism-marker-icon {
    background: transparent;
    border: 0;
}

.tourism-map-marker {
    --tourism-color: #0f766e;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    position: relative;
    color: var(--tourism-color);
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.25));
}

.tourism-map-marker svg {
    width: 54px;
    height: 54px;
    display: block;
}

.tourism-map-marker svg path {
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tourism-icon-shell {
    fill: rgba(255, 255, 255, 0.98);
    stroke: currentColor;
    stroke-width: 2.2;
}

.tourism-icon-mountain {
    fill: rgba(255, 255, 255, 0.68);
    stroke: currentColor;
    stroke-width: 2.25;
}

.tourism-icon-ridge,
.tourism-icon-route {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
}

.tourism-map-marker__score {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 26px;
    height: 22px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 0.68rem;
    font-weight: 900;
    z-index: 2;
    transform: translate(4px, 4px);
}

.tourism-popup {
    display: grid;
    gap: 12px;
}

.tourism-popup__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tourism-popup__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.tourism-score-pill {
    background: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.tourism-popup__metaGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tourism-popup__metaItem,
.tourism-popup__activities,
.tourism-popup__section {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(31, 42, 48, 0.07);
}

.tourism-popup__metaItem span,
.tourism-popup__activities h4,
.tourism-popup__section h4 {
    display: block;
    margin: 0 0 6px;
    color: var(--text-soft);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tourism-popup__activities ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tourism-activity-chip {
    display: grid;
    gap: 5px;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.tourism-activity-chip__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tourism-activity-chip__top strong,
.tourism-activity-chip__top span {
    font-size: 0.86rem;
    line-height: 1.25;
}

.tourism-activity-chip__top span {
    flex: 0 0 auto;
    font-weight: 900;
    color: #0f766e;
}

.tourism-activity-chip p,
.tourism-popup__section p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.tourism-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.tourism-leaflet-popup .leaflet-popup-content {
    margin: 16px;
    width: min(360px, calc(100vw - 96px)) !important;
    max-height: min(50vh, 420px);
    overflow: auto;
    overscroll-behavior: contain;
}

.tourism-page-shell .leaflet-control-zoom a {
    color: #0f172a;
}

.tourism-page-shell .leaflet-popup-pane,
.tourism-map .leaflet-popup-pane {
    z-index: 1200 !important;
}

.tourism-page-shell .leaflet-top,
.tourism-page-shell .leaflet-bottom {
    z-index: 650 !important;
}

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

    .tourism-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .tourism-hero__copy,
    .tourism-status-card,
    .tourism-main-card,
    .tourism-panel-card,
    .tourism-info-block {
        padding: 20px;
        border-radius: 22px;
    }

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

    .tourism-toolbar .button {
        width: 100%;
        justify-content: center;
    }

    .tourism-map-wrap,
    .tourism-map {
        min-height: 520px;
    }
}

@media (max-width: 560px) {
    .tourism-status-card__grid,
    .tourism-popup__metaGrid {
        grid-template-columns: 1fr;
    }

    .tourism-page-shell,
    .tourism-hero__copy,
    .tourism-status-card,
    .tourism-main-card,
    .tourism-panel-card,
    .tourism-info-block {
        min-width: 0;
    }

    .tourism-status-card__row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .tourism-status-pill {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .tourism-hero__lead,
    .tourism-status-card__note,
    .tourism-status-card__grid strong,
    .tourism-map-note,
    .tourism-legend-note,
    .tourism-factor-note,
    .tourism-situation-copy,
    .tourism-side-note,
    .tourism-info-block p {
        overflow-wrap: anywhere;
    }

    .tourism-hero__badges {
        gap: 8px;
    }

    .tourism-hero__badges span {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .tourism-toolbar__summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tourism-metric {
        min-width: 0;
    }

    .tourism-map-wrap,
    .tourism-map {
        min-height: 460px;
    }

    .tourism-map-marker {
        width: 46px;
        height: 46px;
        filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.23));
    }

    .tourism-map-marker svg {
        width: 42px;
        height: 42px;
    }

    .tourism-map-marker__score {
        min-width: 22px;
        height: 19px;
        padding: 0 4px;
        font-size: 0.62rem;
    }

    .tourism-leaflet-popup .leaflet-popup-content {
        width: min(252px, calc(100vw - 96px)) !important;
        max-height: 42vh;
    }

    .tourism-leaflet-popup .leaflet-popup-content-wrapper {
        max-width: calc(100vw - 44px);
    }
}
