/* Ajustements d'image et exploration carte : extension du thème public. */
.hero-grid {
    grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr);
    gap: 44px;
}

.hero-visual {
    min-height: 0;
    aspect-ratio: 1.5 / 1;
    background: #c9d7d0;
}

.hero-visual img {
    object-fit: contain;
}

.hero-with-image {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    padding: 52px 0;
    background-color: #9eafa4;
    background-image: linear-gradient(90deg, rgba(23, 59, 58, .22) 0%, rgba(23, 59, 58, .06) 58%, rgba(23, 59, 58, .12) 100%), var(--hero-background);
    background-position: center, center;
    background-repeat: no-repeat;
    background-size: cover, cover;
}

.hero-with-image .hero-grid {
    display: block;
}

.hero-with-image .hero-copy {
    max-width: 610px;
    padding: 36px 38px 26px;
    border: 1px solid rgba(255, 253, 248, .78);
    border-radius: 26px;
    background: rgba(255, 253, 248, .89);
    box-shadow: 0 22px 55px rgba(23, 59, 58, .18);
    backdrop-filter: blur(8px);
}

.hero-with-image .hero-copy h1 {
    max-width: 570px;
    font-size: clamp(2.95rem, 4.25vw, 4.35rem);
    line-height: .97;
    letter-spacing: -.058em;
}

.hero-with-image .hero-lead {
    max-width: 590px;
    margin: 19px 0 24px;
    font-size: 1.04rem;
}

.hero-with-image .search-panel {
    max-width: none;
    box-shadow: 0 10px 26px rgba(23, 59, 58, .10);
}

.hero-with-image .search-note {
    margin-top: 10px;
}

.specialty-search {
    position: relative;
}

.specialty-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 9px);
    left: 0;
    width: min(455px, 100%);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.specialty-suggestions > p {
    margin: 4px 8px 8px;
    color: var(--coral-dark);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.specialty-suggestions button {
    display: grid;
    grid-template-columns: 23px 1fr auto;
    align-items: center;
    width: 100%;
    padding: 10px 8px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.specialty-suggestions button:hover,
.specialty-suggestions button:focus-visible {
    background: #edf3ef;
    outline: none;
}

.specialty-suggestions button > span {
    color: var(--coral);
    font-size: 1.15rem;
}

.specialty-suggestions strong {
    font: 700 1rem/1.15 Georgia, serif;
}

.specialty-suggestions small {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
}

.results-layout {
    max-width: 1160px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -36px 0 30px;
}

.category-filter a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    padding: 8px 12px;
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
}

.category-filter a:hover,
.category-filter a.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.city-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: -12px 0 28px;
}

.city-links > span {
    margin-right: 4px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
}

.city-links a {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--paper);
    color: var(--ink-soft);
    font-size: .75rem;
    font-weight: 750;
    text-decoration: none;
}

.city-links a:hover {
    border-color: var(--coral);
    color: var(--coral-dark);
}

.city-links small {
    color: var(--muted);
    font-size: .68rem;
}

.pagination li > * {
    overflow: hidden;
}

.pagination svg {
    display: block;
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px;
}

.results-explorer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
    gap: 22px;
    align-items: start;
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.map-focus {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    padding: 8px 10px;
    font: 700 .76rem inherit;
    cursor: pointer;
    white-space: nowrap;
}

.map-focus:hover,
.result-card.is-highlighted {
    border-color: var(--coral);
    background: #fff7f3;
}

.results-map-panel {
    position: sticky;
    top: 104px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 19px;
    box-shadow: 0 12px 30px rgba(23, 59, 58, .07);
}

.map-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.map-panel-heading .eyebrow {
    margin-bottom: 3px;
}

.map-panel-heading h2 {
    margin: 0;
    font: 700 1.55rem/1 Georgia, serif;
    letter-spacing: -.04em;
}

.map-panel-heading > span {
    padding: 5px 8px;
    border-radius: 99px;
    background: var(--sage);
    font-size: .73rem;
    font-weight: 800;
    white-space: nowrap;
}

.results-map {
    height: 480px;
    border-radius: 13px;
    overflow: hidden;
    background: var(--sage);
}

.map-note {
    margin: 11px 2px 0;
    color: var(--muted);
    font-size: .71rem;
    line-height: 1.35;
}

.wellbeing-marker {
    background: transparent !important;
    border: 0 !important;
}

.wellbeing-marker span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 4px;
    background: var(--coral);
    color: #fff;
    box-shadow: 0 5px 12px rgba(23, 59, 58, .28);
    font-size: 1.25rem;
    transform: rotate(-45deg);
}

.wellbeing-marker b {
    display: block;
    transform: rotate(45deg);
}

.leaflet-popup-content {
    min-width: 190px;
    margin: 14px 16px;
}

.leaflet-popup-content p {
    margin: 0;
}

.leaflet-popup-content strong {
    display: block;
    margin: 4px 0;
    font: 700 1.05rem/1.12 Georgia, serif;
}

.leaflet-popup-content small {
    display: block;
    color: var(--muted);
    line-height: 1.35;
}

.leaflet-popup-content a {
    display: inline-block;
    margin-top: 9px;
    color: var(--coral-dark);
    font-size: .82rem;
    font-weight: 800;
}

.map-popup-type {
    color: var(--coral-dark);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 850px) {
    .hero-grid,
    .results-explorer {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-visual {
        min-height: 0;
    }

    .hero-with-image {
        min-height: 0;
        padding: 48px 0;
        background-image: linear-gradient(90deg, rgba(23, 59, 58, .17), rgba(23, 59, 58, .06)), var(--hero-background);
        background-position: center, 64% center;
    }

    .hero-with-image .hero-copy {
        max-width: 620px;
        padding: 32px;
    }

    .specialty-suggestions {
        left: 0;
        width: 100%;
    }

    .results-map-panel {
        position: static;
        order: -1;
    }

    .results-map {
        height: 360px;
    }

    .category-filter {
        margin-top: -20px;
    }
}

@media (max-width: 540px) {
    .hero-with-image {
        min-height: 0;
        align-items: end;
        padding: 220px 0 24px;
        background-image: linear-gradient(0deg, rgba(23, 59, 58, .2), rgba(23, 59, 58, 0) 55%), var(--hero-background);
        background-position: center, 63% center;
    }

    .hero-with-image .hero-copy {
        padding: 26px 20px 20px;
        border-radius: 20px;
    }

    .hero-with-image .hero-copy h1 {
        font-size: 2.9rem;
    }

    .hero-visual {
        min-height: 0;
        aspect-ratio: 1.35 / 1;
    }

    .results-map {
        height: 320px;
    }

    .map-focus {
        display: none;
    }

    .specialty-suggestions {
        width: calc(100% - 16px);
        left: 8px;
    }
}
