/* HartaMediu 1.5.6 - recovery layout */
:root{--hm-ink:#10201d;--hm-green:#0b4a3e;--hm-green-2:#137565;--hm-mint:#dff3ec;--hm-line:#cbdcd6;--hm-soft:#f5f8f7;--hm-white:#fff;--hm-shadow:0 10px 28px rgba(12,56,47,.08)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Harta: ancorele nu ocupa celule in grila, iar harta ramane in coloana dreapta. */
#map-stage-anchor,#mobile-map-anchor{display:none!important}
.map-app{grid-template-columns:minmax(390px,31vw) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
.map-app>.analysis-panel{grid-column:1!important;grid-row:1!important;min-width:0!important}
.map-app>.map-stage{grid-column:2!important;grid-row:1!important;display:block!important;position:relative!important;min-width:0!important;width:100%!important;height:calc(100svh - 64px)!important;min-height:650px!important;overflow:hidden!important}
.map-app>.map-stage>#map,.analysis-panel>.map-stage>#map{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;visibility:visible!important;opacity:1!important}
.icon-button svg,.primary-button svg,.secondary-button svg,.text-button svg,.map-tools svg,.header-tools svg,.result-icon svg,.screening-note svg{width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important}
.empty-visual svg{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.5!important}
.distance-target-inline label{font-size:12px!important;line-height:1.2!important}

/* Director alfabetic. */
.hm-v156-directory-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end;margin-bottom:20px}
.hm-v156-directory-intro p{margin:0;color:#65746f}.hm-v156-directory-count{font-size:13px;color:#65746f;white-space:nowrap}.hm-v156-directory-count strong{display:block;color:var(--hm-green);font-size:26px;line-height:1}
.hm-v156-search{width:100%;min-height:50px;padding:0 16px;border:1px solid var(--hm-line);border-radius:13px;background:#fff;color:var(--hm-ink);font:inherit;outline:none;box-sizing:border-box}.hm-v156-search:focus{border-color:#76aa9b;box-shadow:0 0 0 4px rgba(19,117,101,.10)}
.hm-v156-alpha{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 22px}.hm-v156-alpha a{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--hm-line);border-radius:12px;background:#fff;color:var(--hm-green);font-weight:800;text-decoration:none;transition:background .15s,border-color .15s,transform .15s}.hm-v156-alpha a:hover,.hm-v156-alpha a:focus-visible{background:var(--hm-mint);border-color:#8eb9ac;outline:none;transform:translateY(-1px)}
.hm-v156-letter-list{display:grid;gap:12px}.hm-v156-letter-group{border:1px solid var(--hm-line);border-radius:16px;background:#fff;overflow:hidden}.hm-v156-letter-group[hidden]{display:none!important}.hm-v156-letter-group summary{list-style:none;display:flex;align-items:center;gap:16px;min-height:58px;padding:0 18px;cursor:pointer;color:var(--hm-green);font-size:20px;font-weight:850;background:#f8fbfa}.hm-v156-letter-group summary::-webkit-details-marker{display:none}.hm-v156-letter-group summary::after{content:"+";display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-left:0;border-radius:999px;background:#e5f3ee;color:var(--hm-green);font-size:20px;font-weight:700}.hm-v156-letter-group[open] summary::after{content:"−"}.hm-v156-letter-group summary span{margin-left:auto;color:#71807b;font-size:12px;font-weight:700}.hm-v156-letter-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:16px 18px 19px;border-top:1px solid #e6eeeb}.hm-v156-letter-links a{display:flex;align-items:center;min-height:42px;padding:9px 11px;border:1px solid #dce8e4;border-radius:11px;background:#fff;color:var(--hm-green);font-size:13px;font-weight:750;text-decoration:none;overflow-wrap:anywhere}.hm-v156-letter-links a:hover,.hm-v156-letter-links a:focus-visible{background:var(--hm-mint);border-color:#9dc7bb;outline:none}.hm-v156-letter-links a[hidden]{display:none!important}.hm-v156-no-results{padding:18px;border:1px dashed #b9cdc6;border-radius:14px;background:#f8fbfa;color:#65746f;text-align:center}
.hm-v156-county-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hm-v156-county-grid a{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:13px 15px;border:1px solid var(--hm-line);border-radius:13px;background:#fff;color:var(--hm-green);text-decoration:none}.hm-v156-county-grid a:hover,.hm-v156-county-grid a:focus-visible{background:var(--hm-mint);border-color:#94bdb1;outline:none}.hm-v156-county-grid span{color:#6b7975;font-size:12px}

/* Fisa localitatii: numai informatii publice, fara chei sau cai interne. */
.hm-v156-profile-lead{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}.hm-v156-profile-lead .hm-v155-btn{flex:0 0 auto;background:var(--hm-green);color:#fff}
.hm-v156-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hm-v156-fact{padding:18px;border:1px solid var(--hm-line);border-radius:15px;background:#f9fbfa}.hm-v156-fact small{display:block;margin-bottom:8px;color:#71817c;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.hm-v156-fact strong{display:block;color:var(--hm-ink);font-size:18px;line-height:1.35}.hm-v156-fact p{margin:7px 0 0;color:#65746f;font-size:13px;line-height:1.55}.hm-v156-fact.is-wide{grid-column:1/-1}
.hm-v156-env-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hm-v156-env-card{padding:20px;border:1px solid var(--hm-line);border-radius:16px;background:#fff}.hm-v156-env-card h3{display:flex;align-items:center;gap:9px;margin:0 0 10px!important;color:var(--hm-green)!important;font-size:18px!important}.hm-v156-env-card h3 span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:var(--hm-mint);font-size:15px}.hm-v156-env-card strong{display:block;color:var(--hm-ink);font-size:17px;line-height:1.4}.hm-v156-env-card p{margin:7px 0 0;color:#65746f;line-height:1.55}.hm-v156-env-card dl{display:grid;grid-template-columns:minmax(150px,.9fr) 1fr;gap:7px 12px;margin:14px 0 0;padding-top:13px;border-top:1px solid #e3ece8;font-size:13px}.hm-v156-env-card dt{color:#71807b}.hm-v156-env-card dd{margin:0;color:#24332f;font-weight:700}
.hm-v156-note{margin-top:15px;padding:14px 16px;border-left:4px solid #2d8c76;border-radius:10px;background:#e6f5ef;color:#38564e;font-size:13px;line-height:1.55}.hm-v156-villages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hm-v156-village{padding:13px 14px;border:1px solid var(--hm-line);border-radius:12px;background:#f9fbfa}.hm-v156-village strong{display:block;color:var(--hm-green)}.hm-v156-village span{display:block;margin-top:4px;color:#6e7c78;font-size:12px}.hm-v156-source{margin-top:16px;padding-top:13px;border-top:1px solid #e4ece9;color:#75827e;font-size:12px;line-height:1.55}

/* Header si footer identice, ordonate si lizibile. */
.hm-v155-header{position:relative!important;top:auto!important}.hm-v155-nav a[aria-current="page"],.hm-v155-nav a.is-active{background:#fff!important;color:var(--hm-green)!important;box-shadow:0 2px 8px rgba(12,56,47,.10)!important}.hm-v155-tools{position:static!important;inset:auto!important}
.hm-v155-footer-inner{grid-template-columns:minmax(250px,1.15fr) minmax(150px,.65fr) minmax(310px,1.15fr) minmax(360px,1.35fr)!important;align-items:start!important;gap:26px!important}.hm-v155-footer-inner>div{min-width:0}.hm-v156-footer-maker{justify-self:center}.hm-v156-footer-partners,.hm-v156-footer-legal{justify-self:end}.hm-v155-footer-links{align-items:stretch}.hm-v155-footer-links a{justify-content:center;text-align:center;white-space:normal;line-height:1.25;box-sizing:border-box}

@media(max-width:1180px){.hm-v156-letter-links{grid-template-columns:repeat(3,minmax(0,1fr))}.hm-v156-villages,.hm-v156-county-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-v155-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important}.hm-v155-footer-inner>div{justify-self:stretch!important}}
@media(max-width:820px){.map-app{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;overflow:visible!important}.map-app>.analysis-panel{order:1!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}.map-app>.map-stage,.analysis-panel>.map-stage{order:2!important;position:relative!important;width:100%!important;height:58svh!important;min-height:420px!important;grid-column:auto!important;grid-row:auto!important}.analysis-panel>.map-stage{margin:16px 0 20px!important;border:1px solid var(--hm-line);border-radius:18px;overflow:hidden}.hm-v156-directory-intro{grid-template-columns:1fr}.hm-v156-letter-links{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.hm-v156-profile-lead{display:block}.hm-v156-profile-lead .hm-v155-btn{margin-top:15px}.hm-v156-facts,.hm-v156-env-grid,.hm-v156-county-grid{grid-template-columns:1fr}.hm-v156-fact.is-wide{grid-column:auto}.hm-v156-villages{grid-template-columns:1fr}.hm-v155-footer-inner{grid-template-columns:1fr!important}.hm-v155-footer-inner>div{justify-self:stretch!important}.hm-v155-footer-links{grid-template-columns:1fr 1fr!important}.hm-v155-tool{position:static!important}}
@media(max-width:520px){.hm-v156-alpha{gap:6px}.hm-v156-alpha a{min-width:38px;height:38px;padding:0 9px;border-radius:10px}.hm-v156-letter-links{grid-template-columns:1fr}.hm-v156-letter-group summary{padding-inline:14px}.hm-v156-env-card dl{grid-template-columns:1fr;gap:2px}.hm-v156-env-card dd{margin-bottom:8px}.hm-v155-footer-links{grid-template-columns:1fr!important}}

/* Header mobil compact: controalele raman in antet, nu plutesc peste continut. */
@media (max-width: 820px) {
    .hm-v155-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        gap: 8px !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 8px 12px !important;
    }

    .hm-v155-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0;
    }

    .hm-v155-tools {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        gap: 5px !important;
        position: static !important;
        inset: auto !important;
    }

    .hm-v155-tool {
        position: relative !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        min-height: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        gap: 0 !important;
        flex: 0 0 40px !important;
    }

    .hm-v155-tool > span:not(.hm-v155-badge) {
        display: none !important;
    }

    .hm-v155-tool .hm-v155-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 18px;
        width: auto;
        height: 18px;
        padding: 0 4px;
        font-size: 10px;
    }

    .hm-v155-nav {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        box-sizing: border-box;
    }

    .hm-v155-nav::-webkit-scrollbar {
        display: none;
    }
}
