.new-map{
    margin: 30px 0;
}

html[lang="ar"] .new-map{
    direction: rtl;
}

.map-wrapper{
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

@media (min-width: 1200px) {
    .new-map .container {
        max-width: 1492px;
    }
}

.list-wrapper {
    width: 100%;
}

.details-wrapper{
    flex: 0 0 336px;
}

.buttons-wrapper{
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.map-search-input {
   margin-left: 0;
   margin-right: 0;
   width: 100%;
}

.btn.btn-block.change-view-btn,.btn.btn-block.change-continent-btn{
    margin-top: 0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.4s;
}

.change-view-btn:not(.active),.change-continent-btn:not(.active){
    color: #212529;
    box-shadow: 3px 5px 15px 0px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}
.change-view-btn:not(.active):hover,.change-continent-btn:not(.active):hover{
    background-color: #756a26;
    color: #ffffff;
}
.change-view-btn.active, .change-continent-btn.active {
    background-color: #756a26;
    color: #ffffff;
}

.mission-details-wrapper{
    margin-top: 14px;
    padding: 24px;
    border-radius: 6px;
    text-align: start;
    background-color: #fff;
}

.mission-heading{
    font-size: 19px;
    font-weight: 400;
    color: #AE9F3F;
}

.flags{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-details{
    border-top: 1px solid #B8AB57;
    padding-top: 15px;
}

.mission-details p{
    font-size: 15px;
    background: rgba(251, 251, 251, 1);
    padding: 5px;
    margin-bottom: 5px;
    color: rgba(0, 0, 0, 1);
}

#new-map{
    width: 100%;
    height: 531px;
}

.countries-buttons-wrapper{
    display: flex;
    gap: 7px;
    margin-bottom: 30px;
}

.list-table{
    width: 100%;
}

.flag-icon{
    width: 35px;
    height: auto;
    margin-inline-end: 18px;
}

.list-table th{
    background-color: #fff;
    cursor: pointer;
}

.list-table th,.list-table td{
    padding: 12px 8px;
    border: none;
}

.list-table tr td:nth-child(1),.list-table tr th:nth-child(1){
    vertical-align: middle;
    text-align: start;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.list-table tr td:nth-child(2),.list-table tr th:nth-child(2){
    text-align: center;
}

.list-table tr td:nth-child(3),.list-table tr th:nth-child(3){
    text-align: end;
}

.x-btn{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 15px;
    margin-bottom: 12px;
    display: none;
    cursor: pointer;
}

.x-btn img{
    display: block;
    max-width: 100%;
    max-height: 100%;

}

@media (max-width: 1199px) {
    .map-wrapper{
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: column-reverse;
    }
    .details-wrapper {
        flex: 1 1 auto;
    }
    .buttons-wrapper{
        flex-wrap: wrap;
        margin-bottom: 30px;
    }
    .countries-buttons-wrapper {
       flex-wrap: wrap;
    }
    .mission-details-wrapper{
        position: fixed;
        /* top: 73px; */
        top: 50%;
        transform: translateY(-50%);
        overflow-y:auto;
        overflow-x:hidden;
        z-index: 11;
        padding-top: 15px;
        max-height: calc(100% - 116px);
        margin: auto;
        left: 0;
        right: 0;
        max-width: 340px;
    }
    .x-btn{
        display: flex;
    }
    .new-map {
        margin: 10px 0;
    }
}

@media (max-width: 767px) {
    #new-map {
        height: 300px;
    }
    .flag-icon {
        margin-inline-end: 12px;
    }
    .list-table td {
        padding: 10px 6px;
        border: none;
    }

    /*
    .mission-details-wrapper {
        position: relative;
        top: 0;
    }
    */

}

@media (max-width: 370px) {
    .list-wrapper {
        overflow: auto;
    }
}


.list-view .map-y-marker {
    display: none !important;
}