:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    background: #17191d;
    color: #edf0f3;
	--header-height: 77px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}


html,
body {
    min-height: 100%;
    margin: 0;
}

.site-main {
     min-height: calc(100vh - var(--header-height));
}

.map-section {
     height: calc(100vh - var(--header-height));
}

.map {
    width: 100%;
    height: 100%;
    background: #24282d;
}

.site-header {
    position: relative;
    z-index: 1000;
    background:
        linear-gradient(90deg, rgb(39 86 61 / 18%), transparent 32%),
        #1b1d21;
    border-bottom: 1px solid #34383e;
    box-shadow: 0 2px 12px rgb(0 0 0 / 25%);
}

.site-header__inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f4f4f5;
    text-decoration: none;
}

.site-brand__mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #47745a;
    border-radius: 50%;
    background: linear-gradient(145deg, #2f6d4a, #1f4934);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 14%),
        0 5px 16px rgb(0 0 0 / 24%);
}

.site-brand__mark i {
    font-size: 1.1rem;
}

.site-brand__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.site-brand__title {
    display: flex;
    gap: 0.35em;
    color: #f4f4f5;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.075em;
}

.site-brand__title-accent {
    color: #62b77f;
}

.site-brand__subtitle {
    margin-top: 5px;
    overflow: hidden;
    color: #a7adb7;
    font-size: 0.77rem;
    letter-spacing: 0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__link {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c8ccd3;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        transform 120ms ease;
}

.site-nav__link i {
    width: 1.15em;
    font-size: 1.05rem;
    text-align: center;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    background: #34383e;
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.site-nav__link.is-active {
    background: #2f6d4a;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}

/* Постоянен сигнал, че картата е ограничена от активни филтри. */
.site-nav__link.has-active-filters,
.site-nav__link.has-active-filters.is-active {
    background: #b3263e;
    color: #ffffff;
    box-shadow:
        0 0 0 3px rgb(179 38 62 / 18%),
        0 0 14px rgb(179 38 62 / 28%);
}

.site-nav__link.has-active-filters i {
    color: #ffffff;
}

.site-nav__link.filter-pulse {
    animation: searchFilterPulse 720ms ease;
}

@keyframes searchFilterPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
        box-shadow:
            0 0 0 7px rgb(179 38 62 / 20%),
            0 0 20px rgb(179 38 62 / 38%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav__link.filter-pulse {
        animation: none;
    }
}

.site-version {
    min-width: 48px;
    padding: 5px 7px;
    border: 1px solid #3d4249;
    border-radius: 999px;
    color: #7fc598;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.site-version span {
    margin-left: 2px;
    color: #969da7;
    font-weight: 500;
}

@media (max-width: 760px) {
    :root {
        --header-height: 76px;
    }

    .search-panel__type-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .site-header__inner {
        width: calc(100% - 20px);
        min-height: 76px;
        gap: 8px;
    }

    .site-brand {
        gap: 8px;
        flex: 1 1 auto;
    }

    .site-brand__mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .site-brand__title {
        display: block;
        font-size: 0.82rem;
        line-height: 1.08;
        letter-spacing: 0.045em;
    }

    .site-brand__title span {
        display: block;
    }

    .site-brand__subtitle {
        display: none;
    }

    .site-header__actions {
        flex: 0 0 auto;
        gap: 5px;
    }

    .site-nav {
        gap: 2px;
    }

    .site-nav__link {
        width: 38px;
        height: 38px;
        min-height: 38px;
        flex: 0 0 38px;
        justify-content: center;
        padding: 0;
    }

    .site-nav__link i {
        width: auto;
        font-size: 1.08rem;
    }

    .site-nav__text,
    .site-version {
        display: none;
    }
}

.view-panel.is-hidden {
    display: none;
}

.content-section {
    min-height: calc(100vh - var(--header-height));
    padding: clamp(36px, 7vw, 84px) 20px;
    background:
        radial-gradient(circle at top right, rgb(101 31 43 / 20%), transparent 38%),
        #17191d;
}

.content-section__inner {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid #34383e;
    border-radius: 12px;
    background: #1d2025;
    box-shadow: 0 18px 50px rgb(0 0 0 / 22%);
}

.content-section__icon {
    color: #b64a5d;
    font-size: 2.2rem;
}

.content-section h1 {
    margin: 18px 0 20px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.content-section p {
    margin: 0 0 16px;
    color: #c8ccd3;
    font-size: 1rem;
    line-height: 1.75;
}


.content-section__lead {
    margin-top: -10px !important;
    color: #f0f1f3 !important;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem) !important;
}

.content-section__list {
    margin: -4px 0 22px;
    padding-left: 1.35rem;
    color: #c8ccd3;
    line-height: 1.75;
}

.content-section__list li + li {
    margin-top: 7px;
}

.content-section__closing {
    margin-top: 26px !important;
    padding-top: 20px;
    border-top: 1px solid #34383e;
    color: #f0f1f3 !important;
    font-weight: 600;
}

.search-panel {
    position: relative;
    z-index: 900;
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 12px 16px;
    background: #202328;
    border-bottom: 1px solid #34383e;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

.search-panel__button,
.search-panel select,
.search-panel input {
    height: 38px;
    border: 1px solid #454b54;
    border-radius: 6px;
    background: #15171b;
    color: #f4f4f5;
}

.search-panel__button {
    padding: 0 14px;
    background: #651f2b;
    cursor: pointer;
}

.search-panel__button.is-active {
    background: #8a2b3a;
}

.search-panel__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 190px;
    color: #aeb4bd;
    font-size: 0.78rem;
}

.search-panel__field--wide {
    min-width: 280px;
    flex: 1;
}

.search-panel select,
.search-panel input {
    padding: 0 10px;
}

.search-panel__types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #d7dbe1;
    font-size: 0.85rem;
}

.search-panel__types label {
    white-space: nowrap;
}

@media (max-width: 900px) {
    
.content-section__lead {
    margin-top: -10px !important;
    color: #f0f1f3 !important;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem) !important;
}

.content-section__list {
    margin: -4px 0 22px;
    padding-left: 1.35rem;
    color: #c8ccd3;
    line-height: 1.75;
}

.content-section__list li + li {
    margin-top: 7px;
}

.content-section__closing {
    margin-top: 26px !important;
    padding-top: 20px;
    border-top: 1px solid #34383e;
    color: #f0f1f3 !important;
    font-weight: 600;
}

.search-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .search-panel__field,
    .search-panel__field--wide {
        min-width: 100%;
    }
}

.search-panel__check {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d7dbe1;
    font-size: 0.85rem;
    white-space: nowrap;
}

.search-panel__check input {
    width: 16px;
    height: 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.settlement-light {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #625b36;
    border-radius: 6px;

    background: #282719;
    cursor: pointer;

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 120ms ease;
}

.settlement-light:hover {
    transform: translateY(-1px);
}

.settlement-light__icon {
    width: 25px;
    height: 25px;
    overflow: visible;
}

.settlement-light__bulb {
    fill: #fdd835;
    stroke: #fff2a6;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;

    filter: drop-shadow(0 0 5px rgb(253 216 53 / 90%));
}

.settlement-light__rays {
    fill: none;
    stroke: #fdd835;
    stroke-width: 1.8;
    stroke-linecap: round;

    filter: drop-shadow(0 0 3px rgb(253 216 53 / 80%));
}

/* Натисната крушка: останалите контейнери са изгасени */
#settlement-only-filter:checked + .settlement-light {
    background: #17191d;
    border-color: #454b54;
    box-shadow: inset 0 0 8px rgb(0 0 0 / 35%);
}

#settlement-only-filter:checked
    + .settlement-light
    .settlement-light__bulb {
    fill: #555b63;
    stroke: #858b93;
    filter: none;
}

#settlement-only-filter:checked
    + .settlement-light
    .settlement-light__rays {
    opacity: 0;
    filter: none;
}

#settlement-only-filter:focus-visible + .settlement-light {
    outline: 2px solid #fdd835;
    outline-offset: 3px;
}


.search-panel__types {
    display: flex;
    align-items: center;
    gap: 8px;
}

.container-type-bin {
    --type-color: #9e9e9e;

    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid color-mix(in srgb, var(--type-color) 60%, #ffffff 10%);
    border-radius: 7px;

    background: #17191d;
    cursor: pointer;

    transition:
        transform 120ms ease,
        opacity 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.container-type-bin:hover {
    transform: translateY(-1px);
}

.container-type-bin svg {
    width: 24px;
    height: 24px;
    overflow: visible;

    fill: none;
    stroke: var(--type-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;

    filter:
        drop-shadow(0 0 3px var(--type-color))
        drop-shadow(0 0 7px var(--type-color));
}

.container-type-bin--glass {
    --type-color: #689f38;
}

.container-type-bin--paper {
    --type-color: #fdd835;
}

.container-type-bin--household {
    --type-color: #9e9e9e;
}

.container-type-bin--bio {
    --type-color: #26a69a;
}

.container-type-bin--construction {
    --type-color: #ef5350;
}

.container-type-toggle:checked + .container-type-bin {
    border-color: var(--type-color);
    box-shadow:
        inset 0 0 8px rgb(255 255 255 / 4%),
        0 0 7px color-mix(in srgb, var(--type-color) 55%, transparent);
}

.container-type-toggle:not(:checked) + .container-type-bin {
    opacity: 0.36;
    border-color: #454b54;
    box-shadow: inset 0 0 8px rgb(0 0 0 / 45%);
}

.container-type-toggle:not(:checked) + .container-type-bin svg {
    stroke: #666d76;
    filter: none;
}

.container-type-toggle:focus-visible + .container-type-bin {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.search-panel.is-hidden {
    display: none;
}

.search-panel__close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #454b54;
    border-radius: 6px;

    background: #17191d;
    color: #d7dbe1;

    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;

    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}

.search-panel__close:hover,
.search-panel__close:focus-visible {
    background: #651f2b;
    border-color: #8a2b3a;
    color: #ffffff;
    outline: none;
}

.search-panel__close {
    color: #d7dbe1;
    font-size: 1.45rem;
    font-weight: 300;
    line-height: 1;
}

.search-panel__close:hover,
.search-panel__close:focus-visible {
    background: #651f2b;
    border-color: #8a2b3a;
    color: #ffffff;
    outline: none;
}

.search-panel__type-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.search-panel__types {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.search-panel__reset {
    color: #d7dbe1;
}

.search-panel__reset svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-panel__reset:hover,
.search-panel__reset:focus-visible {
    background: #263d4b;
    border-color: #4b7b93;
    color: #ffffff;
    outline: none;
}


.site-footer {
    position: relative;
    z-index: 800;
    border-top: 1px solid #34383e;
    background:
        linear-gradient(90deg, rgb(39 86 61 / 12%), transparent 35%),
        #1b1d21;
    color: #a7adb7;
    box-shadow: 0 -2px 12px rgb(0 0 0 / 16%);
}

.site-footer__inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    text-align: center;
}

.site-footer .copyright-text {
    color: #d3d7dc;
    font-weight: 600;
}

.site-footer__separator {
    color: #535961;
}

.site-footer a {
    color: #72bd8c;
    text-decoration: none;
    transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    outline: none;
}

@media (max-width: 600px) {
    .site-footer__inner {
        min-height: 62px;
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 4px 7px;
        line-height: 1.45;
    }

    .site-footer__separator {
        display: none;
    }

    .site-footer__initiative {
        flex-basis: 100%;
    }
}
