:root {
    --сolor-orange: #ff8800;
    --color-light-grey: rgba(173, 176, 182, 0.3);
    --color-grey: #7f7f7f;
    --color-black: #4f4f4f;
}

.map-project {
    padding: 10px;
    margin: 30px 0;

    border-radius: 15px;
    border: 5px solid #fff;

  
    background-color: #fff;

    position: relative;
}

.map-project::after {
    content: '';
    width: 100%;
    height: 100%;

    display: block;
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: #ffffff;
    border-radius: 15px;

    transition: opacity .2s ease-in-out;
    z-index: 500;

    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden;
}

.map-project.preload::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 5px solid var(--color-light-grey);
    border-top-color: var(--сolor-orange);
    animation: loading 2s linear infinite;
    z-index: 550;

    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden;

    transition: opacity .2s ease-in-out;
}

.map-project.preload::after {
    opacity: .5;
    visibility: visible;
    backface-visibility: visible;
}


.map-project.preload::before {
    opacity: .8;
    visibility: visible;
    backface-visibility: visible;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Фильтр */

.map-project-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;

    margin-bottom: 10px;
}

.map-project-filters__row {
    padding-bottom: 10px;
}

.map-project-filters__btns {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.map-project-filters__btns button {
    flex: 1
}

.map-project-filters__body {
    display: none;
}

.map-project-filters__body.open {
    display: block;
}

/* Кнопки */

.map-project-filters__clear,
.map-project-filters__apply,
.map-project-filters__close {
    padding: 0;
    margin: 0;

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

    height: 38px;
    border: none;
    border-radius: 3px;
}

.map-project-filters__apply,
.map-project-filters__close {
    background-color: var(--сolor-orange);
    color: #fff;
    font-weight: bold;

    transition: background-color .2s ease-in-out, color .2s ease-in-out;
}

.map-project-filters__clear {
    border: 1px solid var(--color-light-grey);
    background: transparent;
    transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
}


.map-project-filters__close {
    width: 38px;
    flex: 0 0 38px;
    margin-left: 10px;
    position: relative;
}

.map-project-filters__clear svg {
    margin-left: 10px;
}

.map-project-filters__close svg {
    fill: #fff;
    transition: all .2s ease-in-out;
}

.map-project-filters__close::after {
    content: '';

    width: 10px;
    height: 10px;
    display: block;

    position: absolute;
    top: -5px;
    right: -5px;

    border: 3px solid #fff;
    background-color: var(--сolor-orange);

    border-radius: 50%;
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.map-project-filters__close.checked::after {
    opacity: 1;
}

.map-project-filters__apply:hover,
.map-project-filters__close:hover,
.map-project-filters__close.open {
    background-color: var(--color-light-grey);
    color: var(--color-black);
}

.map-project-filters__clear svg,
.map-project-filters__close:hover svg,
.map-project-filters__close.open svg {
    fill: var(--color-black);
}

.map-project-filters__clear:disabled,
.map-project-filters__apply:disabled {
    opacity: .5;
}

.map-project-filters__clear:hover {
    background-color: var(--color-light-grey);
    border-color: var(--color-light-grey);
    color: var(--color-black);
}

/* Элементы форм */

.filters-dropdown__text {
    width: 100%;
    margin-bottom: 0 !important;
    height: 38px;
}

.map-project-filters__row label {
    display: block;
    margin-bottom: 5px;
}

.map-project-filters__row select {
    width: 100%;
}

.filters-dropdown__checkbox,
.map-project-filters__checkbox {
    position: relative;
    display: inline-block !important;
    cursor: pointer;
}

.filters-dropdown__checkbox input,
.map-project-filters__checkbox input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden;
}

.filters-dropdown__checkbox span,
.map-project-filters__checkbox span {
    padding-left: 30px;
    display: block;
    line-height: 20px;
}

.filters-dropdown__checkbox span::after,
.filters-dropdown__checkbox span::before,
.map-project-filters__checkbox span::after,
.map-project-filters__checkbox span::before {
    content: '';
    width: 20px;
    height: 20px;

    position: absolute;
    top: 0;

    background: transparent;
}

.filters-dropdown__checkbox:last-child {
    border: none;
}

.filters-dropdown__checkbox input:checked ~ span::before,
.map-project-filters__checkbox input:checked ~ span::before {
    opacity: 1;
    left: 2px;
}

.filters-dropdown__checkbox input:disabled ~ span::after,
.map-project-filters__checkbox input:disabled ~ span::after {
    opacity: .8;
}

.filters-dropdown__checkbox input:disabled ~ span,
.map-project-filters__checkbox input:disabled ~ span {
    opacity: .35;
}

.filters-dropdown__checkbox span::after,
.map-project-filters__checkbox span::after {
    border: 1px solid var(--color-light-grey);
    left: 0;
}

.filters-dropdown__checkbox span::before,
.map-project-filters__checkbox span::before {
    opacity: 0;
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: center;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHdpZHRoPSc1MTInIGhlaWdodD0nNTEyJyB4PScwJyB5PScwJyB2aWV3Qm94PScwIDAgMjQgMjQnIHN0eWxlPSdlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUxMiA1MTInIHhtbDpzcGFjZT0ncHJlc2VydmUnIGNsYXNzPScnPjxnPjxwYXRoIGZpbGw9JyNmZjg4MDAnIGZpbGwtcnVsZT0nZXZlbm9kZCcgZD0nTTIwLjYxNCA1LjY0OWExIDEgMCAwIDEgLjA4NCAxLjQyMkwxMC4xODQgMTguNzRhMSAxIDAgMCAxLTEuNDI4LjA1OGwtNi4wODQtNS43MjdhMS4wMDggMS4wMDggMCAwIDEtLjA5LTEuMzYgMS4wMDggMS4wMDggMCAwIDEgMS40NTUtLjEyNmw0LjcyIDQuMjQ2YTEgMSAwIDAgMCAxLjQxMi0uMDc0bDkuMDQzLTEwLjAyN2ExIDEgMCAwIDEgMS40MDItLjA4MnonIGNsaXAtcnVsZT0nZXZlbm9kZCcgb3BhY2l0eT0nMScgZGF0YS1vcmlnaW5hbD0nIzAwMDAwMCc+PC9wYXRoPjwvZz48L3N2Zz4=");
}

/* Выпадашка */

.filters-dropdown {
    border: 1px solid var(--color-light-grey);
    position: relative;
}

.filters-dropdown__title {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="rgba(120,125,133,0.5)" x="0px" y="0px" width="8px" height="8px" viewBox="0 0 386.257 386.257" style="enable-background:new 0 0 386.257 386.257;" xml:space="preserve"><polygon points="0,96.879 193.129,289.379 386.257,96.879 "/></svg>');
    background-position: calc(100% - 15px) center;
    background-repeat: no-repeat;

    height: 38px;
    display: flex;
    align-items: center;

    cursor: pointer;
    color: #787d85;

    padding: 0 30px 0 15px;

}

.filters-dropdown__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.filters-dropdown__count {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;

    background-color: var(--color-light-grey);
    color: #000;

    border-radius: 50%;
    margin-left: 10px;

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

    font-size: 80%;

    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.filters-dropdown__count.checked {
    opacity: 1;
}

.filters-dropdown.open .filters-dropdown__list {
    display: block;
}

.filters-dropdown__list {
    padding: 15px;
    display: none;

    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.filters-dropdown__checkbox {
    display: block !important;
    margin-bottom: 7px !important;
}

/* Карта */

.map-project-map {

    margin-top: 20px;
    width: 100%;
    height: 450px;

    background-color: var(--color-light-grey);
    border-radius: 5px;
}

.map-project-map > ymaps {
    border-radius: 5px;
    overflow: hidden;
}

.map-project-map [class*="ymaps-2"][class*="-ground-pane"] {
    filter: grayscale(1);
}

.map-project-map [class*="ymaps-2"][class*="-balloon__content"] > ymaps {
    scrollbar-width: thin;
}

/* содержимое метки */

.marker-footer,
.marker-body,
.marker-header {
    font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
    font-size: 14px;
}

.marker-body__img {
    width: 100%;
 /*   height: 180px; */
    background-color: var(--color-light-grey);
}

.marker-body img {
    max-width: 100%;
    width: 100%;
    height: inherit;

    object-fit: cover;
}

.marker-body__title {
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0;
}


.marker-footer__btn-outline,
.marker-footer__btn {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;

    border-radius: 3px;


    text-decoration: none;

    font-weight: bold;

    flex: 1;
}

.marker-footer__btn-outline {
    border: 1px solid #ff8800;
    color: #ff8800;
}

.marker-footer__btn-outline:hover {
    border: 1px sold #ff8800;
    color: #ff8800;
}

.marker-footer__btn {
    background-color: #ff8800;
    color: #fff;
    border: 1px solid #ff8800;
}

.marker-footer__btn:hover {
    color: #fff;
}

.marker-body__property {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.marker-body__property li {
    display: flex;
}

.marker-body__property span {
    font-size: 12px;
    color: #7f7f7f;
    line-height: 14px;
    padding-top: 2px;

    flex: 0 0 100px;
}

.marker-footer {
    padding-top: 10px;
    display: flex;
    gap: 10px;
}

.marker-body__desc-title {
    font-size: 12px;
    color: #7f7f7f;
    line-height: 14px;
    padding: 10px 0 7px;
}

/* Список кейсов под картой */

.map-project-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-light-grey);
    display: none;
}

.map-project-list__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media screen and (min-width: 576px) {
    .map-project-list__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

.map-project-list__item {
    padding: 15px;
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    background: #fff;
}

.map-project-list__item-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px;
    color: var(--color-black);
}

.map-project-list__item-fields {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.map-project-list__item-fields li {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    margin-bottom: 4px;
}

.map-project-list__item-fields span:first-child {
    color: var(--color-grey);
    flex: 0 0 auto;
    white-space: nowrap;
}

.map-project-list__item-link {
    color: var(--сolor-orange);
    text-decoration: underline;
}

.map-project-list__item-link:hover {
    text-decoration: none;
}

.map-project-list__item-description {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-light-grey);
    font-size: 14px;
    line-height: 1.5;
}

.map-project-list__item-description.expanded {
    display: block;
}

.map-project-list__item-desc-link {
    color: var(--сolor-orange);
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 8px;
    display: inline-block;
}

.map-project-list__item-desc-link:hover {
    text-decoration: none;
}

.map-project-list__item-map-link {
    display: block;
    margin-top: 10px;
    color: var(--сolor-orange);
    text-decoration: underline;
    font-size: 14px;
}

.map-project-list__item-map-link:hover {
    text-decoration: none;
}

.map-project-list__load-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--сolor-orange);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color .2s;
}

.map-project-list__load-more:hover {
    background: #e67a00;
    color: #fff;
}

@media screen and (min-width: 576px) {
    .marker-footer,
    .marker-body,
    .marker-header {
        width: 340px;
    }

}

@media screen and (min-width: 1100px) {

    .map-project {
        padding: 20px;
    }

    .map-project-filters__rows {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0 10px;
        align-items: center;
    }

    .map-project-filters__header {
        display: none;
    }

    .map-project-filters.open,
    .map-project-filters__body {
        display: grid !important;
        gap: 20px;
        grid-template-columns: auto 300px;
    }

    .map-project-filters__btns {
        margin: 0;
    }

    .filters-dropdown__list {
        position: absolute;
        background: #fff;
        z-index: 100;
        border: 1px solid var(--color-light-grey);
        border-top: none;
        width: calc(100% - 30px);
        margin-left: -1px;
        margin-top: -1px;
    }

    .map-project-map {
        height: 600px;
    }

}