/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
} */

.filterContainer {
    max-width: 1400px;
    margin: 0px auto;
    /* background-color: #fff; */
    border-radius: 12px;
    /* box-shadow: 0 20px 20px rgba(0, 0, 0, 0.08); */
    padding: 0px 16px;
    position: relative;
    /* margin: 0px -20px; */
    /* margin: 35px 0px; */
    margin-top: 40px;
}

.filterContainer h1{
    font-size: 33px;
    text-align: left;
    /* margin-bottom: 30px; */
    color: #333;
    font-weight: bold;
    /* font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); */
}

/* .filter-section {
    /* max-width: 1400px;
    margin: 0px auto; */
    /* background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    position: relative;
    margin: 0px -20px; 
} */

.filter-container {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: center;
    /* overflow-x: auto; */
    padding-bottom: 4px;
}

.filterTitle {
    width: fit-content;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.search-input:focus {
    outline: none;
    border-color: #ff8c38;
    box-shadow: 0 0 0 3px rgba(255, 140, 56, 0.2);
    background-color: #fff;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: 5px;
    display: none;
}

.suggestion-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background-color: #fff5ee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.highlighted {
    color: #ff8c38;
    font-weight: 500;
}

/* .select-wrapper {
    position: relative;
    min-width: 140px;
}

.select-dropdown {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    appearance: none;
    background-color: #f9f9f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 3px center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-dropdown:focus {
    outline: none;
    border-color: #ff8c38;
    box-shadow: 0 0 0 3px rgba(255, 140, 56, 0.2);
    background-color: #fff;
} */

.search-btn {
    background-color: #ff8c38;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 140, 56, 0.2);
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #ff7a1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(255, 140, 56, 0.25);
}

/* Location filter */
.location.filterContainer {
    /* max-width: 1200px; */
    /* margin: 40px auto; */
    background-color: #ffffff00;
    border-radius: 12px;
    box-shadow: none;
    padding: 24px 24px 24px 24px;
    position: relative;
    /* margin: 0px -20px; */
    margin: 35px auto;
}


.location .search-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /*adjust as needed*/
    margin: 0 auto;
}
  
.location .search-input {
    width: 100%;
    padding: 10px 45px 10px 15px; /* add right padding for button */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.08);
  }
  
.location .search-btn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FF8A00;
    border: none;
    color: white;
    padding: 15px 12px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
  
.location .search-btn:hover {
    background-color: #ff7a1f;
    box-shadow: 0 6px 8px rgba(255, 140, 56, 0.25);
}


/* Close Button filter */
.buttonCloseContainer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.close-btn {
    position: relative;
    /* top: 20px; */
    right: 0px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
    display: none;
}

.close-btn:hover {
    background: #e5e5e5;
    transform: scale(1.05);
}

/* Responsive design */
/* @media (max-width: 1016px) {
    .filter-container {
        flex-wrap: nowrap;
        /* overflow-x: auto; 
        padding-bottom: 10px;
        scrollbar-width: thin;
        scrollbar-color: #ff8c38 #f0f0f0;
    }
    
    .filter-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .filter-container::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
    }
    
    .filter-container::-webkit-scrollbar-thumb {
        background-color: #ff8c38;
        border-radius: 10px;
    }
    
    .select-wrapper, .search-btn {
        flex-shrink: 0;
    }
} */

/* Selectors */
/* Shared dropdown/suggestions styling */
.dropdown-container{
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: 5px;
    display: none;
    box-sizing: border-box;
}

.dropdown-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background-color: #fff5ee;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.selected {
    background-color: #fff5ee;
    font-weight: 500;
}

/* Custom select wrapper */
.custom-select-wrapper {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.custom-select-trigger:focus,
.custom-select-trigger.active {
    outline: none;
    border-color: #ff8c38;
    box-shadow: 0 0 0 3px rgba(255, 140, 56, 0.2);
    background-color: #fff;
}

.custom-select-trigger.open {
    border-radius: 8px 8px 0 0;
}

.select-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.select-arrow.rotated {
    transform: rotate(180deg);
}

.select-placeholder {
    color: #999;
}

.select-value {
    color: #333;
}

/* Hidden input for form submission */
.hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1016px) {
    /* .filterContainer {
        max-width: 1400px;
        /* margin: 40px auto; 
        width: 100%;
        /* background-color: #fff; 
        border-radius: 12px;
        /* box-shadow: 0 20px 20px rgba(0, 0, 0, 0.08); 
        padding: 24px 24px 24px 24px;
        position: absolute;
        z-index: 3;
        /* margin: 0px -20px; */
        /* margin: 35px 0px; 
    }

    .filter-section {
        background-color: white;
        border-radius: 12px;
        position: relative;
    } */

    .filterContainer.popup {
        margin: 0;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        background: white;
        border-radius: 20px;
        padding: 20px 16px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
        opacity: 0;
        /* visibility: hidden; */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 3;
        max-height: 90vh;
        /* overflow: hidden; */
    }
    
    .filterContainer.popup.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    .filterContainer.popup.active .close-btn{
        display: block;
    }

    .filter-button {
        display: flex;
    }


    .filterSection {
        z-index: 2;
    }

    .filterContainer h1{
        font-size: 26px;
        text-align: left;
        /* margin-bottom: 30px; */
        color: #333;
        font-weight: bold;
        text-align: center;
        /* font-size: 3rem;
        font-weight: 700;
        margin-bottom: 15px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3); */
    }
    .location.filterContainer {
        /* max-width: 1200px; */
        /* margin: 40px auto; */
        width: 100%;
        background-color: #ffffff00;
        border-radius: 12px;
        box-shadow: none;
        padding: 0;
        /* margin: 0px -20px; */
        margin: 35px auto;
    }
    

    /* .location .search-wrapper{
        position: sticky;
        top: 10px;
    } */

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
        margin-top: 20px;
    }
    
    .select-wrapper, .search-wrapper {
        width: 100%;
    }
    
    /* .search-btn {
        width: 100%;
    } */
    
    /* .filter-section {
        padding: 20px 16px;
    } */
}