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

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

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

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

.fishing-hero__copy,
.fishing-status-card,
.fishing-main-card,
.fish-panel-card,
.fish-info-block {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-md);
}

.fishing-hero__copy,
.fishing-status-card,
.fishing-main-card,
.fish-panel-card,
.fish-info-block {
    padding: 24px;
}

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

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

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

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

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

.fishing-hero__badges span,
.fish-status-pill,
.fish-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;
}

.fishing-hero__badges span {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.14);
}

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

.fishing-status-card {
    display: grid;
    align-content: start;
    gap: 16px;
}

.fishing-status-card__row,
.fishing-status-card__grid {
    display: grid;
    gap: 12px;
}

.fishing-status-card__row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.fishing-status-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

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

.fishing-main-card,
.fishing-toolbar {
    display: grid;
    gap: 18px;
}

.fishing-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

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

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

.fishing-map-wrap {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(31, 42, 48, 0.08);
    min-height: 640px;
    background:
        linear-gradient(180deg, rgba(255, 247, 224, 0.18), rgba(234, 243, 244, 0.28)),
        url("../img/weather_fishing/ryby.png") center / cover no-repeat,
        #eaf3f4;
    isolation: isolate;
}

.fishing-map {
    width: 100%;
    min-height: 640px;
    position: relative;
    z-index: 1;
    background: transparent;
}

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

.fishing-map .leaflet-tile-pane {
    opacity: 0.58;
    filter: saturate(0.74) sepia(0.14) brightness(1.04);
}

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

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

.fishing-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;
}

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

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

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

.fish-legend-list,
.fish-factor-list,
.fish-legend-fishList {
    display: grid;
    gap: 14px;
}

.fish-legend-subtitle {
    margin: 0 0 12px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.fish-legend-subtitle--levels {
    margin-top: 18px;
}

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

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

.fish-legend-fish {
    width: 38px;
    height: 26px;
    color: var(--fish-color, #4d7c0f);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    filter: drop-shadow(0 5px 9px rgba(15, 23, 42, 0.18));
}

.fish-legend-item--fish {
    align-items: center;
}

.fish-factor-weight {
    min-width: 48px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
    font-weight: 900;
    font-size: 0.78rem;
}

.fish-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);
}

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

.fish-info-block--wide {
    grid-column: 1 / -1;
}

.fish-div-icon {
    background: transparent;
    border: 0;
}

.fish-region-pin {
    --fish-color: #4d7c0f;
    position: relative;
    width: 74px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fish-color);
    pointer-events: auto;
}

.fish-region-pin__label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 5px);
    transform: translateX(-50%);
    z-index: 2;
    display: none;
    width: max-content;
    max-width: 154px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.26);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fish-region-pin:hover .fish-region-pin__label,
.fish-region-pin:focus-within .fish-region-pin__label {
    display: inline-flex;
}

.fish-map-marker {
    position: relative;
    width: 58px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fish-color);
    transform: translateZ(0);
    filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.25));
}

.fish-icon-svg {
    width: 100%;
    height: auto;
    display: block;
}

.fish-icon-svg path {
    fill: currentColor;
    stroke: rgba(255, 255, 255, 0.82);
    stroke-width: 1.2;
    stroke-linejoin: round;
}

.fish-icon-svg circle {
    fill: #fff7ed;
    stroke: rgba(15, 23, 42, 0.22);
    stroke-width: 0.8;
}

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

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

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

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

.fish-score-pill {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

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

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

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

.fish-popup__section h4 {
    margin-top: 0;
}

.fish-popup__species h4 {
    margin-top: 0;
}

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

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

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

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

.fish-species-chip__top span {
    flex: 0 0 auto;
    font-weight: 900;
    color: #166534;
}

.fish-species-chip p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

.fish-popup__section p {
    margin: 0;
    font-size: 0.95rem;
}

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

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

.fishing-leaflet-popup .leaflet-popup-tip {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

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

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

    .fishing-side {
        position: static;
    }
}

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

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

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

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

    .fish-region-pin {
        width: 62px;
        min-height: 46px;
    }

    .fish-region-pin__label {
        max-width: 128px;
        min-height: 24px;
        padding: 3px 8px;
        font-size: 0.66rem;
    }

    .fish-map-marker {
        width: 50px;
        height: 36px;
    }

    .fish-map-marker__score {
        min-width: 22px;
        height: 18px;
        font-size: 0.62rem;
    }
}

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

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

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

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

    .fishing-leaflet-popup .leaflet-popup-content {
        width: min(300px, calc(100vw - 54px)) !important;
        max-height: 58vh;
    }

    .fish-species-chip__top {
        align-items: flex-start;
    }
}
