/* --- WRAPPER WITH OVERLAY LOGIC --- */
.search-section-wrapper {
    padding: 0 0 50px 0;
    width: 100%;
    position: relative;
    z-index: 50;
    /* Higher Z-index to ensure it sits on top */
    margin-top: -160px;
    overflow: visible;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Tabs --- */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.st-btn {
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 18px;
    font-weight: bold;
    color: #00204a;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Slightly stronger shadow for visibility over image */
    text-decoration: none;
    display: inline-block;
}

.st-btn:hover,
.st-btn.active {
    background: var(--vani-primary-new);
    color: #fff;
    border-color: var(--vani-primary-new);
}

/* --- Search Bar Row --- */
.search-bar-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Common Box Styles */
.sb-item {
    background: #ffffff;
    border-radius: 12px;
    height: 65px;
    padding: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Stronger shadow for 3D effect */
    border: 1px solid #e0e0e0;
    position: relative;
}

/* ... [Keep your picker-trigger, dropdown-menu, city-picker styles the same] ... */
.picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background: #fff;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 10px 0;
    border: 1px solid #eee;
}

.city-picker {
    min-width: 170px;
    border-radius: 50px 12px 12px 50px;
}

.dropdown-menu li {
    list-style: none;
    padding: 10px 20px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s;
}

.dropdown-menu li:hover {
    background-color: #f0f4f8;
}

.curr-city,
.curr-budget {
    font-weight: 700;
    color: #00204a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.budget-picker {
    min-width: 130px;
    border-radius: 12px 50px 50px 12px;
}

.budget-panel {
    width: 320px;
    right: 0;
    left: auto;
    padding: 20px;
    cursor: default;
}

.slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #00204a;
    font-size: 14px;
}

.range-slider {
    position: relative;
    width: 100%;
    height: 5px;
    margin: 10px 0 20px 0;
}

.slider-track-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--vani-primary-new);
    border-radius: 5px;
    z-index: 1;
}

.slider-progress {
    position: absolute;
    height: 100%;
    background-color: #00204a;
    border-radius: 5px;
    z-index: 2;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: none;
    pointer-events: none;
    z-index: 3;
    margin: 0;
    top: 0;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #00204a;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.apply-action {
    text-align: right;
}

.apply-btn {
    background-color: #00204a;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.main-search {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 10px;
    padding-left: 20px;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 18px;
    color: #333;
    background: transparent;
    padding-right: 140px;
    height: 100%;
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    background-color: #00204a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ... [End of keep styles] ... */

/* --- Responsive / Mobile Design --- */
@media (max-width: 992px) {
    .search-section-wrapper {
        /* 🟢 MOBILE FIX: Remove negative margin so it sits below image */
        margin-top: 0;
        padding-top: 30px;
        /* Optional: Add background if you want a visual break */
        /* background-color: #f8f9fa; */
    }

    .search-bar-row {
        flex-direction: column;
        gap: 15px;
    }

    .sb-item {
        width: 100%;
        border-radius: 12px !important;
    }

    .city-picker {
        order: 1;
    }

    .main-search {
        order: 2;
    }

    .budget-picker {
        order: 3;
    }

    .budget-panel {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .search-section-wrapper {
        padding: 20px 0;
    }

    .search-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .st-btn {
        flex: 0 0 auto;
        padding: 6px 14px;
        font-size: 18px;
        text-align: center;
    }

    .sb-item {
        height: 55px;
        font-size: 14px;
    }

    .search-submit-btn {
        padding: 0 15px;
        font-size: 14px;
    }
}

/* --- City Dropdown Internal Search --- */
.city-search-wrapper {
    padding: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.city-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

/* --- Clear (X) Icon Styles --- */
.input-with-icon-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Ensure text doesn't overlap the icon */
.form-control,
.search-input {
    padding-right: 35px !important;
}

.clear-btn {
    position: absolute;
    right: 12px;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    display: none; /* Hidden by default */
    z-index: 10;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: #333;
}

/* --- Scrollable Lists (Limit Height) --- */
.city-options-list,
.search-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px; /* LIMIT HEIGHT HERE */
    overflow-y: auto; /* Enable Scroll */
}

.city-options-list li,
.search-suggestions-list li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    font-size: 15px;
    color: #333;
    transition: background 0.2s;
}

.city-options-list li:hover,
.search-suggestions-list li:hover {
    background-color: #f0f4f8;
    color: #00204a;
}

/* --- Suggestions Dropdown Position --- */
.suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
}

.search-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.search-suggestions-list li {
    display: flex; /* ✅ FIX */
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    font-size: 15px;
    color: #333;
    transition: background 0.2s;
}

.search-suggestions-list li:hover {
    background-color: #f0f4f8;
    color: #00204a;
}

/* Text (left side) */
.search-suggestions-list li .suggestion-text {
    flex: 1;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

/* Badge (right side) */
.search-suggestions-list li .suggestion-type {
    flex-shrink: 0;
    font-size: 11px;
    background: #eef2f7;
    padding: 2px 8px;
    border-radius: 4px;
    color: #666;
    white-space: nowrap;
}

/* No result */
.search-suggestions-list li.no-result {
    justify-content: center;
    cursor: default;
}

/* .suggestion-type {
    float: right;
    font-size: 11px;
    background: #eef2f7;
    padding: 2px 6px;
    border-radius: 4px;
    color: #666;
} */

/* Mobile / Default view: Closer to the edge */
#clearMainBtn {
    right: 110px; /* Adjust this value as needed for mobile */
    position: absolute; /* Ensure it has positioning */
}

/* Wide Screen (Desktop): Push it back to 135px */
@media (min-width: 768px) {
    #clearMainBtn {
        right: 135px;
    }
}

.no-result {
    cursor: default;
    text-align: center;
    padding: 10px;
}

.no-result-text {
    color: #999;
    font-size: 14px;
}

/* ===============================
   City Search Input – Base
================================ */
#citySearchInput {
    font-size: 14px; /* desktop input text */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Desktop placeholder */
#citySearchInput::placeholder {
    font-size: 13px;
    color: #999;
}

/* ===============================
   Mobile styles
================================ */
@media (max-width: 768px) {
    /* Input font must increase first */
    #citySearchInput {
        font-size: 20px;
    }

    /* Mobile placeholder */
    #citySearchInput::placeholder {
        font-size: 20px;
        color: #999;
    }
}
