.settlement-info {
    position: fixed;
    bottom: 0;
    height: 150px;
    width: 100%;
    z-index: 9999;
    color: white;
    display: flex;
    flex-direction: column;
    transition: height 0.3s;
}

.settlement-info-header-wrap{
    background-color: #000;
}


.settlement-info-content-wrap{
    background-color: #1F1E1D;
}

.settlement-info.active .info-option.active {
    background: var(--bg-color);
    border: 1px solid var(--bg-color);
}

@media screen
and (min-device-width: 1200px)
and (max-device-width: 1600px)
and (-webkit-min-device-pixel-ratio:1){
    .settlement-info{
        height: 100px;
    }
    .grid-header{
        width: 1400px!important;
    }
    .grid-category.articles.active{
        width: 1400px!important;
    }
}

.settlement-info.active {
    height: 475px;
    max-height: 70%;
}

#bg-main{
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.58);
    height: 92%;
    width: 100%;
    top:0;
    z-index: 4;
}
#bg-main:has(#main.settlement-info.active){
    display: block;

}

.grid-header {
    width: min(96%, 1500px);
    margin: 0 auto;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.grid-header p {
    font-size: 24px;
    font-family: 'SimplePro-H-Bold';
}

.grid-header select,
.grid-header .select-wrapper {
    position: relative;
    height: 40px;
    width: 300px;
    font-size: 18px;
    color: #fff;
    background-color: #000;
    border-color: #fff;
    appearance: none;
}

.grid-header select {
    padding: 0 10px;
}

.grid-header .select-wrapper .dropdown-arrow {
    position: absolute;
    height: 20px;
    width: 20px;
    object-fit: contain;
    top: 50%;
    transform: translateY(-50%);
    left: 13px;
    pointer-events: none;
    margin-top: 2px;
}

.grid-header option {
    color: #000;
    background-color: #fff;
    cursor: pointer;
}

.grid-content {
    background-color: #1F1E1D;
    margin: 0 auto;
    height: 436px;
    overflow: auto;
    padding: 35px 0;
    font-size: 18px;
    scrollbar-width: none;
}

.grid-category {
    display: none;
    width: min(96%, 1500px);
}

.grid-category.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    row-gap: 20px;
    column-gap: 32px;
    margin: 0 auto;
}

.grid-category.articles.active {
    grid-template-columns: repeat(auto-fill, minmax(324px, 1fr));
    width: min(96%, 1500px);
    margin: 0 auto;
}

.grid-category.articles {
    row-gap: 35px;
}

.grid-category article {
    width: 100%;
    max-width: 100%;
}

.grid-category article img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    max-width: 100%;
}

.grid-category.articles article img {
    width: 100%;
    height: 209px;
}

.grid-category a {
    text-decoration: none;
    color: #fff;
    height: 100%;
    width: 100%;
    display: flex;
    position: relative;
}

.grid-category .title {
    position: absolute;
    bottom: 10px;
    right: 5px;
    z-index: 1;
}

.grid-category .shadow {
    position: absolute;
    background-image: linear-gradient(358deg, rgba(0, 0, 0, 0.68), transparent);
    height: 100%;
    width: 100%;
    top: 0;
}

.details {
    display: none;
    position: fixed;
    top: 100px;
    width: 100%;
    height: 90%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    color: #fff;
    padding: 20px;
}

.details.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.details-content{
    display: flex;
    flex-wrap: wrap;
    background-color: #242424;
    height: auto;
    width: 800px;
    padding: 13px;
    gap: 10px;
}

.details .close {
    background-image: url(/img/exit-btn.png);
    background-repeat: no-repeat;
    background-position: right;
    width: 100%;
    height: 18px;
    background-size: contain;
    margin-left: 16px;
    cursor: pointer;
}

.details img {
    width: 35%;
    max-height: 340px;
}

.details .text-info {
    margin-right: 26px;
    width: 60%;
}

.details .text-info .name {
    font-size: 22px;
    font-family: 'SimplePro-H-Bold';
}
.details .text-info .description {
    font-size: 20px;
    line-height: 24px;
    margin-top: 36px;
}

#main:has(.settlement-info.active) #map {
    filter: brightness(0.4);
}

/*
    ****************************************************
    *               LTR SUPPORT                 *
    ****************************************************
*/
.ltr .grid-header {
    padding: 0;
}
.ltr .grid-header .select-wrapper .dropdown-arrow {
    right: 13px;
    left: auto;
}
.ltr .details .close {
    margin-right: 16px;
    margin-left: 0;
    background-position: left;
}
.ltr .details .text-info {
    margin-right: 0;
    margin-left: 26px;
}

.info-option{
    height: 30px;
    width: auto;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    border: solid 1px #fff;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0;
    cursor: pointer;
}

@media (max-width: 768px) {
    .settlement-info {
        height: 63px;
    }

    .grid-content {
        padding: 13px;
    }

    .grid-category.active{
        column-gap: 13px;
    }

    .grid-header{
        gap: 7px;
    }

    .grid-header, .ltr .grid-header {
        height: 40px;
        padding: 0 13px;
        width: 100%;
    }

    .grid-category.articles.active{
        width: 100%;
    }

    .grid-header select, .grid-header .select-wrapper {
        display: none;
        width: 100%;
    }

    .info-option{
        font-size: 14px;
        padding-left: 7px;
        padding-right: 7px;
        height: 25px;
        min-width: 70px;
    }

    .grid-header p {
        font-size: 20px;
        white-space: nowrap;
    }

    .grid-category.active {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .grid-category .info {
        font-size: 14px;
    }

    .grid-category .people-info img {
        width: 100%;
    }

    .details.active {
        box-sizing: border-box;
        top: 72px;
        justify-content: center;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.58);
        height: 92%;
    }

    .details-content{
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        height: auto;
        max-height: 550px;
    }

    .details img {
        margin-top: 20px;
        object-fit: contain;
        width: 100%;
    }

    .details .text-info {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-top: 10px;
        overflow: auto;
        width: 100%;
        scrollbar-width: none;
        max-height: 300px;
    }

    .details .text-info .name {
        font-size: 18px;
    }
    .details .text-info .description {
        font-size: 17px;
        margin-top: 8px;
    }
}