.hotelSearchSection{
  width: 83%;
  margin: 0 auto 10px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: rgba(0,0,0,0.08) 0 2px 10px;
  padding: 20px 25px 14px 25px;
}

.hotelSearchForm,
.hotelSearchForm *{
  box-sizing: border-box !important;
}

.hotelSearchForm{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center !important;
  justify-content: center;
  gap: 22px;
  width: 100% !important;
}

.searchField{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px;
  flex: 1 1 0 !important;
  min-width: 0;
  width: auto !important;
  height: 46px; 
}

.searchField label{
  display: block;
  height: 16px;
  line-height: 16px;
  font-size: 12px;
  color: #9a9a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.searchField .citySearchInput{
  display: block !important;
  width: 100% !important;
  height: 22px !important;
  line-height: 22px !important;
  border: none !important;
  outline: none !important;
  font-family: "shabnam";
  font-size: 15px;
  color: #2b2b2b;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.searchField .citySearchInput:focus{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.searchField .citySearchInput::placeholder{
  color: #b7b7b7;
}

/* ---------- searchable city dropdown ---------- */

.citySearchWrap{
  position: relative;
  width: 100%;
}

.citySearchDropdown{
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: rgba(0,0,0,0.15) 0 10px 30px;
  border: 1px solid #eee;
  z-index: 30;
  padding: 8px;
}

.citySearchDropdown.open{
  display: block;
}

.citySearchItem{
  padding: 10px 12px;
  border-radius: 10px;
  font-family: "shabnam";
  font-size: 14px;
  color: #2b2b2b;
  cursor: pointer;
  text-align: right;
  transition: background .15s ease;
}

.citySearchItem strong{
  color: var(--primary-color);
}

.citySearchItem:hover{
  background: #f2f7f9;
}

.citySearchEmpty{
  padding: 10px 12px;
  font-size: 13px;
  color: #9a9a9a;
  text-align: center;
}

/* fake-select buttons (از تاریخ / به مدت) */

.searchField .fakeSelect{
  display: flex !important;
  width: 100% !important;
  height: 22px !important;
  line-height: 22px !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  font-family: "shabnam";
  font-size: 15px;
  color: #2b2b2b;
  text-align: right;
  box-shadow: none !important;
}

.searchField .fakeSelect span{
  line-height: 22px;
}

.searchField .fakeSelect i{
  font-size: 12px;
  color: #9a9a9a;
  transition: transform .2s ease;
}

.searchField.open .fakeSelect i{
  transform: rotate(180deg);
}

/* thin low-opacity vertical divider between fields */

.searchDivider{
  width: 1px;
  height: 34px;
  align-self: center;
  background: rgba(0,0,0,0.08);
  flex: 0 0 auto;
}

/* red search button */

.searchHotelBtn{
  flex: 0 0 auto !important;
  align-self: center;
  width: auto !important;
  min-width: 170px;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: var(--primary-color);
  color: #fff;
  font-family: "shabnam";
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background .2s ease;
}

/* ---------- sort select bar ----------
   Sits between the search header and the hotel list/filter row,
   width-matched to .hotelLayout and aligned to the left. */

.hotelSortBarOuter{
  width: 83%;
  margin: 0 auto 20px auto;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hotelSortBar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: 73%;
}

/* ---- نمایش بر اساس (sort-by text options), right side ---- */

.sortByGroup{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sortByLabel{
  font-family: "shabnam";
  font-size: 14px;
  color: #2b2b2b;
  white-space: nowrap;
}

.sortOptions{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sortOption{
  border: none;
  background: none;
  padding: 0;
  font-family: "shabnam";
  font-size: 14px;
  color: #8a8a8a;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}

.sortOption:hover{
  color: var(--primary-color);
}

.sortOption.active{
  color: var(--primary-color);
  font-weight: bold;
}

/* ---- نوع نمایش (grid/list view toggle), left side ---- */

.viewTypeGroup{
  display: flex;
  align-items: center;
  gap: 12px;
}

.viewTypeLabel{
  font-family: "shabnam";
  font-size: 14px;
  color: #2b2b2b;
  white-space: nowrap;
}

.viewTypeButtons{
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewTypeBtn{
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
  color: #9a9a9a;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.viewTypeBtn:hover{
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.viewTypeBtn.active{
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* =========================================================
   محدوده قیمت (price range) — editable inputs + slider
   ========================================================= */

.priceFilterBody{
  width: 100%;
  display: flex !important;
  flex-direction: column;
  gap: 18px;
}

.priceInputsRow{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.priceInputGroup{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.priceInputGroup label{
  font-size: 12px;
  color: #9a9a9a;
}

.priceInputDash{
  flex: 0 0 auto;
  width: 12px;
  height: 1px;
  background: #cfcfcf;
  margin-top: 20px; /* aligns with the input row, not the label */
}

.priceInputWrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 9px 12px;
  background: #f7f7f7;
  transition: border-color .2s ease, background .2s ease;
}

.priceInputWrap:focus-within{
  border-color: var(--primary-color);
  background: #fff;
}

.priceInputWrap input{
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: "shabnam";
  font-size: 14px;
  color: #2b2b2b;
  text-align: center;
  padding: 0;
}

.priceInputWrap span{
  flex: 0 0 auto;
  font-size: 12px;
  color: #9a9a9a;
  white-space: nowrap;
}

/* slider */

.priceRange{
  position: relative;
  height: 30px;
  padding: 0 2px;
}

.priceRange::before{
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background: #ececec;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 5px;
}

.priceProgress{
  position: absolute;
  height: 5px;
  background: var(--primary-color);
  top: 50%;
  transform: translateY(-50%);
  border-radius: 5px;
}

.priceRange input[type="range"]{
  position: absolute;
  width: 100%;
  height: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.priceRange input[type="range"]::-webkit-slider-thumb{
  pointer-events: auto;
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
}

.priceRange input[type="range"]::-moz-range-thumb{
  pointer-events: auto;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: pointer;
}

.priceRange input[type="range"]::-moz-range-track{
  background: none;
  border: none;
}

.shade{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  display: none;
  z-index: 21; /* just under .datePickerCont's z-index:22 in app.css */
  transition: opacity 300ms ease-in-out;
}

.datePickerCont{
  display: none; /* JS toggles this open; keeps it out of the way/tab order by default */
}

.numDayPicker{
  display: none; /* JS toggles this open, same pattern as .datePickerCont */
}

/* highlight the currently selected night count inside the popup */
.NDPsingleDay.active{
  border-width: 2px;
  background: rgba(40, 113, 148, 0.06);
}

.NDPsingleDay.active .NDPTitle{
  color: var(--primary-color);
}

/* =========================================================
   Responsive
   ========================================================= */

@media(max-width: 992px){
  .hotelSearchForm{
    flex-wrap: wrap !important;
    row-gap: 16px;
  }

  .searchDivider{
    display: none;
  }

  .searchField{
    flex: 1 1 40%;
    min-width: 140px;
  }

  .searchHotelBtn{
    flex: 1 1 100%;
    width: 100%;
  }

  .hotelSortBarOuter{
    width: 100%;
    margin: 0 auto 16px auto;
  }
}

@media(max-width: 576px){
  .hotelSearchSection{
    padding: 16px 16px 12px 16px;
  }

  .searchField{
    flex: 1 1 100%;
  }

  .hotelSortBarOuter{
    width: 95%;
  }

  .hotelSortBar{
    justify-content: flex-start;
  }

  .sortOptions{
    gap: 14px;
  }

  .sortOption{
    font-size: 13px;
  }
}
