.map-layout {
    display: flex;
    gap: 30px;
    height: 640px;
    width: 100%;
    margin-top: 30px;
}

.map-layout .left-block {
    width: 470px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.top-controls {
    flex-shrink: 0;
}

.results-block {
    margin-top: auto;
    height: 550px;
    width: 100%;
    border: 1px solid #43B7C2;
    overflow-y: auto;
    padding: 25px;
}

.result-card {
    margin-bottom: 45px;
    transition: background 0.2s ease;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-title {
    font-weight: 700;
    color: #1a33a8;
    font-size: 18px;
    cursor: pointer;
}

.result-distance {
    font-weight: 500;
}

.result-address,
.result-phone,
.result-site {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.result-site a:hover {
    color: #43B7C2;
    border-bottom: 1px solid #43B7C2;
}

.result-button {
    margin-top: 10px;
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #43B7C2;
    background: transparent;
    color: #008D9A;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
}

.result-button:hover {
    background: #43B7C2;
    color: #fff;
}

.full-width-banner, .full-width-banner-mobile {
    color: #57576F;
    width: 100vw;
    margin-left: calc(50% - 49vw);
    margin-right: calc(50% - 49vw);
    background: #F5F5F5;
    text-align: center;
    font-weight: 400;
    font-size: 19px;
    line-height: 24px;
    padding: 20px;
    margin-top: 35px;
    margin-bottom: 10px;
}

.disclaimer-text {
    margin-bottom: 100px;
}

.disclaimer-text p {
    margin-bottom: 30px;
}

.disclaimer-text p:last-child {
    margin-bottom: 0;
}

.map-name {
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.contentBlock {
    min-height: 200px;
}

.legend-block {
    position: absolute;
    right: 0;
    top: -85px;
}

.map-layout .right-block {
    flex: 1;
    width:100%;
    height: 100%;
}

.full-width-banner-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .map-layout {
        display: grid;
        grid-template-columns: 68% 32%;
        grid-template-rows: 540px auto;
        grid-template-areas:
            "map legend"
            "list list";
        gap: 10px;
        height: auto;
        margin-top: 40px;
        width: 100%;
        max-width: 100%;
        margin-left: calc(50% - 50vw + 30px);
        margin-right: calc(50% - 50vw + 40px);
    }

    .right-block {
        grid-area: map;
        height: 100%;
        width: 100%;
    }

    .contentBlock {
        min-height: auto;
    }

    .legend-block {
        position: initial;
        grid-area: legend;
        justify-self: end;
        width: auto;
        max-width: 260px;
        font-size: 14px;
    }

    .map-layout .left-block {
        grid-area: list;
        margin-top: 20px;
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }

    .left-block .results-block {
        margin-top: 5px;
    }

    .full-width-banner, .full-width-banner-mobile {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

@media (max-width: 767px) {
    .map-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 400px auto auto;
        grid-template-areas:
            "map"
            "full-info"
            "list";
        margin-top: 20px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .full-width-banner {
        display: none;
    }

    .full-width-banner-mobile {
        display: block;
    }

    .legend-block {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
        background: rgba(255, 255, 255, 0.9);
        padding: 10px;
    }

    .map-layout .left-block {
        margin-top: 40px;
    }

    #locator-reset {
        margin-top: 10px;
    }

    .results-block {
        margin-bottom: 50px;
    }

    .disclaimer-text {
        margin-left: 20px;
        margin-right: 20px;
    }
}