/* FOURTH SECTION */

.map_section {
    padding-top: 200px;
    background: top/cover;
    background-size: 90%; 
}

.map_section .heading_secondary {
    color:  var(--black);
}

.map_section-info {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.map_section-text-box {
    width: 342px;
}

.map_box-heading,
.brand_box-heading {
    font-family: 'Impact Cyr';
    text-transform: uppercase;
    color:  var(--black);
    margin-bottom: 15px;
    font-weight: 400;
    text-align: justify;
    font-size: 24px;
    line-height: 33px;
}

.map_heading-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.heading_logo {
    width: 106px;
    height: 106px;
}

.map_box-caption,
.brand_box-caption {
    font-family: 'Helvetica Neue';
    font-size: 16px;
    line-height: 23px;
    text-align: justify;
    margin-bottom: 19px;
    max-width: 322px;
}

.map_caption-bold {
    font-weight: 700;
}

.map_section_heading-row {
    display: flex;
    gap: 70px;
}

.map_section_heading-box .heading_secondary.moved {
    margin-left: 214px;
}

.map {
    position: relative;
    margin: 0 auto;
    max-width: 1920px;
    margin-top: -80px;
}

.map-img {
    width: 100%;
}

.map_popup {
    position: absolute;
    background-color: var(--black);
    padding: 15px 13px 15px 22px;
    display: none;
    width: 100%;
    max-width: 462px;
    gap: 19px;
    border: 1px solid #303030;
}

.map_popup-img {
    width: 196px;
    height: 179px;
    object-fit: cover;
}

.map_popup-heading {
    font-family: 'Impact Cyr';
    font-size: 30px;
    line-height: 38px;
    color: var(--white);
    margin-top: 12px;
    text-transform: uppercase;
    font-weight: normal;
}

.map_popup-text {
    font-family: 'Helvetica Neue';
    font-size: 12px;
    color: var(--white);
    margin-top: 37px;
}

.map_popup-heading span {
    color: var(--primary-yellow);
}

.map_arrow {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--black);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #303030;
}

.map_btn {
    width: 61px;
    height: 61px;
    position: absolute;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.map_circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #000; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.map_btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 61px;
    height: 61px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25); 
    z-index: 1;
}

.map_number {
    font-size: 24px;
    color: var(--primary-yellow); 
    font-family: 'Impact Cyr';
    font-weight: normal;
}

.map_section .btn-primary {
    display: inline-flex;
    font-size: 16px;
    padding: 23px 30px;
}

.map_nav {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.map_nav .nav_link {
    font-weight: 500;
    cursor: pointer;
    color: var(--grey);
}

.map_section_heading-box .heading_secondary.desktop {
    display: block;
}

.map_section-text-box.mobile,
.map_section_heading-box .heading_secondary.tablet,
.heading_logo.tablet,
.select-wrapper,
.map_section .heading_secondary.mobile,
.heading_logo.mobile {
    display: none;
}

.map_section-box {
    display: flex;
    gap: 50px;
    margin-right: 80px;
}

/* ADAPTIVE */

@media (max-width: 1919px) {
    .map_section-box {
        display: block;
        margin-right: 0px;
    }

    .map_nav {
       display: none;
    }

    .map_box-caption {
        font-size: 14px;
        line-height: 17px;
        max-width: 241px;
    }

    .map_box-heading {
        font-size: 20px;
        line-height: 25px;
    }

    .map_section-text-box {
        width: 256px;
        margin-top: 10px;
        margin-right: 220px;
    }

    .map_section .btn-primary {
        font-size: 12px;
        padding: 17px 23px;
    }

    .heading_logo {
        width: 80px;
        height: 80px;
    }

    .map_heading-row {
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .map {
        max-width: 1440px;
        margin-top: -40px;
    }
    
    .map_popup {
        padding: 14px 12px 14px 20px;
        max-width: 438px;
        gap: 18px;
        border: 0.95px solid #303030;
    }
    
    .map_popup-img {
        width: 186px;
        height: 170px;
    }
    
    .map_popup-heading {
        font-size: 28px;
        line-height: 36px;
        margin-top: 11px;
    }
    
    .map_popup-text {
        font-size: 11px;
        margin-top: 34px;
    }
    
    .map_arrow {
        width: 41px;
        height: 41px;
        border: 0.95px solid #303030;
    }

    .map_btn {
        width: 45px;
        height: 45px;
    }
    
    .map_circle {
        width: 32px;
        height: 32px;
    }
    
    .map_btn::before {
        width: 45px;
        height: 45px;
    }
    
    .map_number {
        font-size: 17.5px;
    }
    
}

@media (max-width: 1280px) {
    .map_section {
        padding-top: 130px;
        overflow: hidden;
    }
    
    .map_section.loaded-bg {
        background-image: none !important;
    }

    .map_section-info {
        flex-direction: column;
        gap: 60px;
    }

    .map_section_heading-row .heading_secondary,
    .map_section .heading_secondary.moved,
    .map_section_heading-box .map_section_heading-row {
        display: inline-block;
    }

    .map_section_heading-box .heading_secondary.moved {
        margin-left: 0px;
    }

    .map_section_heading-box,
    .map_section-text-box {
        margin-left: 100px;
    }

    .map_section-text-box {
        width: 234px;
        margin-right: 0px;
    }

    .map_box-heading {
        line-height: 22px;
    }

    .heading_logo {
        width: 59px;
        height: 59px;
    }

    .heading_logo.desktop,
    .map_section_heading-box .heading_secondary.desktop {
        display: none;
    }

    .heading_logo.tablet,
    .map_section_heading-box .heading_secondary.tablet {
        display: inline-block;
    }

    .map_section_heading-row:last-child {
        margin-top: -10px;
    }
    
    .map {
        max-width: 100%;
        margin-top: -60px;
    }
    
    .map_popup {
        padding: 17px 17px 11px 17px;
        max-width: 397px;
        gap: 14px;
        border: 0.85px solid #303030;
    }
    
    .map_popup-img {
        width: 160px;
        height: 146px;
    }
    
    .map_popup-heading {
        font-size: 24px;
        line-height: 33px;
        margin-top: 9px;
    }
    
    .map_popup-text {
        font-size: 12px;
        margin-top: 15px;
    }
    
    .map_arrow {
        width: 40px;
        height: 40px;
        border: 0.85px solid #303030;
    }

    .map_number {
        font-size: 16px;
    }

    .map_section_heading-box .heading_secondary {
        line-height: 55px;
    }
}

@media (max-width: 767px) {
    .map_section {
        padding-top: 65px;
    }

    .map_heading-row:nth-child(3) {
        gap: 10px;
    }

    .map_heading-row:nth-child(3) .heading_secondary:nth-child(2) {
        margin-top: 5px;
    }

    .map_heading-row:nth-child(4) {
        gap: 16px;
        margin-top: -10px;
    }

    .map_heading-row:nth-child(4) .heading_secondary:nth-child(1) {
        margin-top: 19px;
    }

    .map_section .heading_secondary,
    .map_section .heading_secondary.tablet,
    .heading_logo.tablet {
        display: none;
    }

    .map_section .heading_secondary.mobile,
    .heading_logo.mobile {
        display: block;
    }

    .map_section-info {
        gap: 0px;
    }

    .map_section_heading-box,
    .map_section-text-box {
        margin-left: 0px;
    }

    .map_section-text-box {
        display: none;
    }

    .map_section-text-box.mobile {
        display: block;
    }

    .map_section-text-box {
        width: 193px;
    }

    .select-wrapper {
        position: relative;
        width: 100%;
        display: block;
    }
    
    .custom-select {
        position: relative;
        width: 100%;
        cursor: pointer;
        margin-bottom: 76px;
    }
    
    .custom-select-trigger {
        padding: 16px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 0.5px solid var(--darker-grey);
        border-radius: 100px;
        font-family: 'Impact Cyr';
        font-size: 16px;
        color: var(--light-black);
        background-color: var(--white-smoke);
        background-image: url('../../img/select-bg.png');
        background-position: center;
        position: relative;
        z-index: 20;
    }
    
    .custom-select-trigger .arrow {
        width: 18px;
        height: 18px;
        background-image: url('../../img/dropdown-arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .custom-options {
        list-style: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border: 0.5px solid #C2C2C2;
        border-radius: 10px;
        background-color: #FBFBFB;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        z-index: 10;
        padding: 5px 5px 20px 5px;
        padding-top: 68px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
    
    .custom-option {
        padding: 5px;
        cursor: pointer;
        font-size: 14px;
        font-family: 'Helvetica Neue';
        color: var(--light-black);
        border-radius: 10px;
    }

    .custom-option.selected {
        background-color: var(--primary-yellow);
    }
    
    .custom-option:hover {
        background-color: var(--white-smoke);
    }
    
    .custom-select.open .custom-options {
        max-height: 213px; 
        opacity: 1;
    }

    .custom-scroll {
        max-height: 130px;
        overflow-y: auto;
    }

    .custom-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .custom-scroll::-webkit-scrollbar-thumb {
        background: #DBDBDB;
        border-radius: 5px;
    }

    .custom-select.open .arrow {
        transform: rotate(180deg);
    }
    
    .map {
        margin-top: 0px;
    }
    
    .map_popup {
        padding: 10px 7px 8px 10px;
        max-width: 258px;
        gap: 9px;
        border: 0.75px solid #303030;
    }
    
    .map_popup-img {
        width: 104px;
        height: 106px;
    }
    
    .map_popup-heading {
        font-size: 20px;
        line-height: 25px;
        margin-top: 0px;
    }
    
    .map_popup-text {
        font-size: 10px;
        line-height: 110%;
        margin-top: 6px;
    }
    
    .map_arrow {
        width: 26px;
        height: 26px;
        border: 0.75px solid #303030;
    }

    .map_arrow svg {
        width: 10px;
    }

    .map_btn {
        display: none;
    }

    .map_section_heading-box .heading_secondary {
        line-height: 34px;
    }
}

@media (max-width: 359px) {
    .map_section-text-box {
        width: 169px;
    }

    .map_box-heading {
        font-size: 18px;
        line-height: 21px;
    }

    .map_box-caption {
        font-size: 12px;
        line-height: 18px;
    }
}

