/* ===========================================
   PROPERTY SEARCH
=========================================== */
.directorist-search-wrapper{
    width:100%;
    max-width:1150px;
    margin:0 auto;
    font-family: inherit;
}

/*===========================================
  TOP TABS (Buy / Rent)
===========================================*/
.property-tabs{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:35px;
    margin-bottom:18px;
}
.property-tab{
    background:none;
    border:none;
    padding:0 0 6px;
    font-size:17px;
    font-weight:700;
    color:#fff;
    cursor:pointer;
    position:relative;
    transition:.3s;
}
.property-tab:hover{
    color:#b8922f;
}
.property-tab.active{
    color:#b8922f;
}
.property-tab.active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    margin:auto;
    width:100%;
    height:2px;
    border-radius:20px;
    background:#b8922f;
}

/*===========================================
  SEARCH BAR (pill shaped container)
===========================================*/
.search-box{
    display:flex;
    align-items:center;
    background:#fff;
    border:1px solid #b8922f;
    border-radius:50px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(17,17,17,.06);
    padding:6px;
}

/*===========================================
  SEARCH ITEM (location / property type)
===========================================*/
.search-item{
    flex:1;
    position:relative;
    display:flex;
    align-items:center;
    min-width:0; /* allow shrinking inside flex row on small screens */
}
.search-item:not(:last-child){
    border-right:1px solid #ececec;
}

/* Icon before each field */
.search-item .field-icon{
    flex:0 0 auto;
    font-size:15px;
    color:#e31e24;
    margin-left:22px;
    margin-right:8px;
    pointer-events:none;
}

/*===========================================
  SELECT / INPUT
===========================================*/
.search-item select,
.search-item input{
    width:100%;
    min-width:0;
    height:58px;
    padding:0 28px 0 0;
    border:none;
    background:transparent;
    font-size:15px;
    font-weight:500;
    color:#333;
    outline:none;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
}
.search-item input{
    cursor:text;
}
.search-item select::placeholder,
.search-item input::placeholder{
    color:#8a8f98;
    font-weight:400;
}

/* Dropdown arrow */
.search-item.has-arrow::before{
    content:"";
    position:absolute;
    right:18px;
    top:50%;
    width:8px;
    height:8px;
    border-right:2px solid #9a9fa8;
    border-bottom:2px solid #9a9fa8;
    transform:translateY(-65%) rotate(45deg);
    pointer-events:none;
}

/*===========================================
  SEARCH BUTTON
===========================================*/
.search-btn{
    padding:0 0 0 6px;
    flex:0 0 auto;
}
.search-btn button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:150px;
    height:54px;
    border:none;
    border-radius:40px;
    background:#b8922f;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
    white-space:nowrap;
}
.search-btn button:hover{
    background:#b8922f;
}
.search-btn button .btn-icon{
    font-size:15px;
}

/*===========================================
  FOCUS STATE
===========================================*/
.search-item select:focus,
.search-item input:focus{
    background:#fafafa;
}

/*===========================================
  TABLET
  (Keep single row pill, just shrink slightly)
===========================================*/
@media(max-width:991px){
    .search-item .field-icon{
        margin-left:16px;
        margin-right:6px;
    }
    .search-item select,
    .search-item input{
        height:54px;
        font-size:14px;
        padding-right:16px;
    }
    .search-btn button{
        width:130px;
        height:50px;
        font-size:15px;
    }
}

/*===========================================
  MOBILE
  (Still single row pill like desktop, sized down to fit)
===========================================*/
@media(max-width:767px){
    .property-tabs{
        gap:25px;
        margin-bottom:14px;
    }
    .property-tab{
        font-size:15px;
    }

    .search-box{
        display:flex;           /* stays a single row, not stacked */
        flex-wrap:nowrap;
        border-radius:50px;
        overflow:hidden;
        padding:4px;
    }

    .search-item{
        border-right:1px solid #ececec !important;
        border-bottom:none;
    }
    .search-item:last-of-type{
        border-right:none !important;
    }

    .search-item .field-icon{
        display:none; /* hide icons on very small screens to save space */
    }

    .search-item select,
    .search-item input{
        height:44px;
        font-size:12px;
        padding:0 14px 0 12px;
    }

    .search-item.has-arrow::before{
        right:8px;
        width:6px;
        height:6px;
    }

    .search-btn{
        padding:0 0 0 4px;
    }
    .search-btn button{
        width:auto;
        min-width:70px;
        height:38px;
        padding:0 16px;
        font-size:13px;
        border-radius:30px;
        gap:0;
    }
    .search-btn button .btn-icon{
        display:none; /* keep just text "Search" to save space */
    }
}

/*===========================================
  EXTRA SMALL MOBILE (under 380px)
===========================================*/
@media(max-width:380px){
    .search-item select,
    .search-item input{
        font-size:11px;
        padding:0 8px;
    }
    .search-btn button{
        min-width:60px;
        padding:0 12px;
        font-size:12px;
    }
}