
/* section-places */
.section-places {
    --height-overflow: 42.5rem;
    --height-map: 42.5rem;
}
.section-places__form,
.section-places__form-fields,
.section-places__form-last {
    display: flex;
    align-items: start;
    flex-grow: 1;
}
.section-places__form-fields .field,
.section-places__form-last .field {
    flex-grow: 1;
}
.section-places__form-fields .toggle {
    align-self: center;
}
.section-places__form {
    justify-content: space-between;
    gap: var(--offset-big);
}
.section-places__form-fields {
    gap: var(--offset-main);
}
.section-places__form-last {
    gap: var(--offset-extrasmall);
}
/**/
.section-places__content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: stretch;
    gap: var(--offset-main);
}
.section-places__content:not(:first-child) {
    margin-top: var(--offset-big);
}
.section-places__map {
    grid-column: span 8;
    border-radius: var(--radius);
    overflow: hidden;
    height: var(--height-map);
    background-color: var(--color-grey-08);
}
.section-places__items {
    display: flex;
    flex-direction: column;
    gap: var(--offset-extrasmall);
    grid-column: span 4;
}

.section-places__tabs {
    padding-top: var(--offset-main);
    display: flex;
    align-items: end;
    gap: var(--offset-main);
}
.section-places__tab {
    flex: 1 0 0;
}

@media screen and (min-width: 1024px) {
    .section-places__tabs {
        display: none;
    }
}

@media screen and (max-width: 1439px) {
    .section-places__form,
    .section-places__form-fields {
        gap: var(--offset-extrasmall);
    }
    .section-places__form {
        flex-direction: column;
        align-items: stretch;
    }
    .section-places__content:not(:first-child) {
        margin-top: var(--offset-main);
    }
    .section-places__map,
    .section-places__items {
        grid-column: span 6;
    }
    .section-places__content {
        gap: var(--offset-extrasmall);
    }
}
@media screen and (max-width: 1023.5px) {
    .section-places__form-last .button-wrapper {
        display: none;
    }
    .section-places__form-fields {
        flex-direction: column;
        align-items: stretch;
    }
    .section-places__form-fields .toggle {
        align-self: start;
    }
    .section-places__form-fields .toggle__descr-left,
    .section-places__form-fields .toggle__descr-right {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}
@media screen and (max-width: 1023.5px) {
    .section-places__content:not(:first-child) {
        margin-top: var(--offset-secondary);
    }
}
@media screen and (max-width: 767px) {
    .section-places {
        --height-overflow: 30rem;
        --height-map: 30rem;
    }
    .section-places__content {
        position: relative;
    }
    .section-places__items,
    .section-places__map {
        grid-column: span 12;
    }
    .section-places__items._active,
    .section-places__map._active {
        transition: var(--transition);
    }
    .section-places__items:not(._active),
    .section-places__map:not(._active) {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
        z-index: -1;
        transform: translateY(5%);
    }
    .section-places__form {
        --height-input: 3.5rem;
    }
    .section-places__form .input:not(select):focus ~ .field__caption, 
    .section-places__form .input:not(select):not(:placeholder-shown):not(.input-block) ~ .field__caption, 
    .section-places__form .field__caption-static {
        top: 0.5rem;
    }
}