/* ------------------- FIXED HEADER ------------------- */
.filter-section {
    width: 100%;
    position: fixed;
    top: 8%;
    left: 0;
    background: #fff;
    z-index: 1000;
    padding: 1.2rem 0;
    text-align: center;
    padding-bottom: 0;
}

.top-heads h5 {
    color: #555;
    margin-top: 8px;
}

/* ------------------- FILTER BUTTONS (DESKTOP) ------------------- */
.four-continent {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.filter {
    background: #f1f1f1;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s ease;
    font-size: 19px;
    width: 12%;
}

.close-btn-filter {
    background: #f1f1f1;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s ease;
    font-size: 14px;
}

.filterSecond,
.filter:hover {
    background: #41d1b4;
    color: white;
}

.for-loop-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10rem;
    justify-content: center;
}


.close-btn-filter {
    display: none;
}

/* HIDE toggle & close on desktop */
.mobile-toggle,
.close-btn {
    display: none;
}


/* MOBILE ONLY */
@media (max-width: 768px) {
    .filter {
        padding: 9px 14px;
        font-size: 14px;
        width: 100%;
    }

    .close-btn-filter {
        display: inline-block;
    }

    .close-btn {
        display: block;
        text-align: right;
        font-size: 22px;
        font-weight: bold;
        cursor: pointer;
        margin-bottom: 15px;
    }

    .mobile-toggle {
        display: inline-block;
        background: #4ecbb0;
        color: white;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 16px;
        cursor: pointer;
        margin-top: 10px;
    }

    .four-continent {
        position: fixed;
        top: 7%;
        left: -260px;
        flex-direction: column;
        height: 51vh;
        width: 168px;
        background: #fff;
        padding: 6px;
        gap: 6px;
        justify-content: flex-start;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        z-index: 9999;
        height: fit-content;
    }

    .four-continent.open {
        left: 0;
    }


}