/* =====================================================
   Brick & Beyond - Mobile & Tablet Search Bar
   Fully responsive, aligned, clean spacing
   ===================================================== */

/* ===== Container ===== */
.bnb-search-container {
    background: #fff;                    /* white background */
    border-radius: 15px;                 /* rounded corners */
    padding: 20px;                        /* inner spacing */
    display: flex;                        /* flexible layout */
    flex-direction: column;               /* stack tabs and form vertically */
    box-shadow: 0 6px 20px rgba(0,0,0,0.05); /* subtle shadow */
    width: 100%;                          /* full width */
    max-width: 1200px;                    /* desktop max width */
    margin: 20px auto;                    /* center container with spacing from top */
    position: relative;
}

/* ===== Tabs ===== */
.bnb-tabs {
    display: flex;                        /* arrange tabs in a row */
    align-items: center;          /* vertical centering */
    justify-content: space-between;       /* spread evenly */
    flex-wrap: nowrap;                     /* keep tabs on one line */
    gap: 10px;                             /* spacing between tabs */
    margin-bottom: 15px;                   /* spacing below tabs */
  font-family: var(--font-ui); /* Poppins for tabs */
  font-weight: 500;             /* medium for emphasis */
  text-transform: uppercase;    /* optional: luxury UI style */
  letter-spacing: 0.02em;       /* subtle spacing for clarity */


}

.bnb-tab {
    flex: 1 1 0;                           /* equal width */
    text-align: center;                     /* center text */
    padding: 8px 0;                         /* vertical padding */
    border-radius: 8px 8px 0 0;            /* rounded top corners */
    background: #f2f2f2;                   /* light gray background */
    color: #333;                            /* text color */
    font-size: 0.9rem;                      /* font size */
    cursor: pointer;                        /* pointer on hover */
    transition: all 0.3s ease;
}

.bnb-tab:hover {
    box-shadow: 0 0 8px rgba(170,75,68,0.4);  /*==== replaced with rgba(245,130,32,0.4) ==== */
}

.bnb-tab.active {
    border: 2px solid  #aa4a44; /*==== changed from #f58220 ======= */             /* orange border */
    border-bottom: 2px solid #fff;         /* merge with form background */
    color:  #aa4a44; /*==== changed from #f58220 ======= */                         /* active text color */
    box-shadow: 0 0 9.6px rgba(170,75,68,0.56);  /*==== replaced with rgba(245,130,32,0.56) ==== */
}



/* ===== Inputs (Location) Placeholder Styling ===== */
.bnb-input-wrapper input::placeholder {
    color: #999;                   /* placeholder color */
    font-family: var(--font-body); /* matches location font */
    font-size: 0.9rem;             /* same size */
    font-weight: 400;              /* normal weight */
    opacity: 1;                    /* solid color */
}

/* ===== Dropdowns Default / Placeholder Option Styling ===== */
.bnb-dropdown-wrapper select {
    font-family: var(--font-body); /* match location input font */
    font-size: 0.9rem;             /* same size */
    font-weight: 400;              /* normal weight */
    color: #999;                   /* default option color (like placeholder) */
}

/* Ensure first option acts as placeholder color */
.bnb-dropdown-wrapper select option:first-child {
    color: #999;                   /* matches location placeholder */
    font-family: var(--font-body);
    font-weight: 400;
}

/* ===== Search Form ===== */
.bnb-search-form {
    display: flex;                          /* row layout */
    flex-wrap: wrap;                         /* wrap inputs if needed */
    gap: 12px;                               /* spacing between fields */
    width: 100%;
    align-items: center;
}

/* ===== Input + Dropdown Wrappers ===== */
.bnb-input-wrapper,
.bnb-dropdown-wrapper {
    position: relative;                     /* allows icon positioning */
    flex: 1 1 auto;                         /* flexible width */
    margin: 0;
}

/* ===== Location Input Icon ===== */
.bnb-input-wrapper i {
    position: absolute;                     /* position inside input */
    left: 12px;                             /* left spacing */
    top: 50%;                               
    transform: translateY(-50%);            /* vertical center */
    color:  #aa4a44; /*==== changed from #f58220 ======= */                        /* orange icon */
}

/* ===== Inputs ===== */
.bnb-input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 36px;          /* space for icon */
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-size: 0.9rem;
    outline: none;
    text-align: left;                        /* align text left */
}

.bnb-input-wrapper input:focus {
    border-color:  #aa4a44; /*==== changed from #f58220 ======= */
    box-shadow: 0 0 10px rgba(170,75,68,0.5);  /*==== replaced with rgba(245,130,32,0.5) ==== */
}

/* ===== Dropdowns ===== */
.bnb-dropdown-wrapper select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    appearance: none;
    outline: none;
    text-align: center;
}

/* ===== Search Button ===== */
.bnb-search-btn {
    padding: 10px 0;
    border-radius: 8px;
    background:  #aa4a44; /*==== changed from #f58220 ======= */
    color: #fff;
    border: none;
    cursor: pointer;
    flex: 0 0 50px;                        /* fixed width */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bnb-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(170,75,68,0.6);  /*==== replaced with rgba(245,130,32,0.6) ==== */
}

/* =====================================================
   🧱 Brick & Beyond — Mobile & Tablet Search Refinements
   ===================================================== */

/* ─────────────── TABLET (≤1024px) ─────────────── */
@media (max-width: 1024px) {
  /* Tabs row refinement */
  .bnb-tabs { 
    display: flex;
    justify-content: center;
    gap: 6px; 
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  /* Location field spans full width */
  .bnb-input-wrapper.location { 
    width: 100%; 
  }

  /* Dropdowns share space evenly */
  .bnb-dropdown-wrapper {
    flex: 1 1 0;  
  }

  /* Search button compact but visible */
  .bnb-search-btn { 
    flex: 0 0 50px; 
    height: 44px;
  }

  /* Keep form layout tidy */
  .bnb-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* =====================================================
   MOBILE FIX — Brick & Beyond
   Mobile only (<= 767px). Keeps tablet/desktop untouched.
   Purpose: tabs (row 1) → location (row 2 full width) →
            3 dropdowns + search button (row 3 inline)
   ===================================================== */

@media (max-width: 767px) {

  /* Equal baseline for all tabs */
  .bnb-tab {
    flex: 1 1 auto;
    font-size: 0.8rem;          /* base text size */
    padding: 6px 0;             /* vertical padding */
  }

  /* Make Buy and Rent slightly narrower */
  .bnb-tab:nth-child(1),  /* Buy */
  .bnb-tab:nth-child(2) { /* Rent */
    flex: 0.9 1 auto;      /* slightly smaller share of width */
  }

  /* Make Commercial a bit wider to fit text cleanly */
  .bnb-tab:nth-child(3) {  /* Commercial */
    flex: 1.2 1 auto;       /* give extra room */
  }

  /* Keep Off-Plan or other tabs balanced */
  .bnb-tab:nth-child(4) {
    flex: 1 1 auto;
  }

  /* Optional: tighten horizontal gap if you want tabs closer together */
  .bnb-tabs {
    gap: 4px;                /* default was 6px; smaller keeps row tight */
  }
}