/* Hotel search form — home + modify search (template_v3) */
#hotel_search.htl-search-v3,
.searcharea #hotel_search {
  font-family: 'Poppins', sans-serif;
}

#hotel_search .htl-search-v3__shell {
  position: relative;
  padding: 0;
}

#hotel_search .htl-search-v3__row {
  position: relative;
  border-radius: 0 0 16px 16px;
  overflow: visible;
  background: #fff;
  padding: 18px 18px 38px;
}

#hotel_search .htl-search-fields-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 12px;
}

#hotel_search .htl-search-field {
  flex: 1 1 0;
  min-width: 0;
  float: none !important;
  width: auto !important;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  min-height: 84px;
  padding: 12px 14px;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
}

#hotel_search .htl-search-field--destination {
  flex: 1.35 1 0;
}

#hotel_search .htl-search-field--guests {
  flex: 1.15 1 0;
}

#hotel_search .lablform,
#hotel_search .mobile_label {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.2;
  float: none;
}

#hotel_search .plcetogo {
  position: relative;
  min-height: 28px;
  border: 0 !important;
  background: transparent;
  padding: 0;
  float: none;
}

#hotel_search .plcetogo.sidebord::after,
#hotel_search .plcetogo.sidebord::before {
  display: none !important;
}

#hotel_search .htl-search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  font-size: 16px;
  color: #012c98;
  margin: 0;
}

#hotel_search .plcetogo.plcemark .normalinput,
#hotel_search .plcetogo.datemark .normalinput {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 28px !important;
  min-height: 28px !important;
  line-height: 28px !important;
  padding: 0 0 0 28px !important;
  margin: 0 !important;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

#hotel_search .normalinput::placeholder {
  color: #111;
  font-weight: 600;
}

#hotel_search .htl-search-guest-value,
#hotel_search .totlall.hotel_total>.remngwd {
  float: none !important;
  display: block;
  padding-left: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hotel_search .totlall.hotel_total {
  position: relative;
  min-height: 28px;
}

#hotel_search .htl-search-nights-hide {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

#hotel_search .htl-search-submit-wrap {
  position: absolute;
  right: 18px;
  bottom: -12px !important;
  width: auto;
  z-index: 8;
  float: none !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

#hotel_search .htl-search-submit,
#hotel_search .searchsbmtfot.flightbutton .searchsbmt {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #FF5F20 !important;
  border-radius: 10px !important;
  min-height: 50px;
  height: 50px;
  min-width: 148px;
  gap: 10px;
  padding: 13px 28px !important;
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
  box-shadow: 0 8px 22px rgba(255, 127, 0, 0.35);
  border: none;
  width: auto;
  top: -39px;
  right: 0px;
  line-height: 1 !important;
}

#hotel_search .htl-search-submit:hover,
#hotel_search .searchsbmtfot.flightbutton .searchsbmt:hover {
  background-color: #e86f00 !important;
  color: #fff !important;
}

#hotel_search .htl-search-submit i,
#hotel_search .searchsbmtfot.flightbutton .searchsbmt i {
  font-size: 16px;
  color: #fff;
  position: static !important;
  top: auto !important;
  left: auto !important;
}

#hotel_search .htl-search-submit img {
  display: none;
}

#hotel_search .htl-search-submit span,
#hotel_search .searchsbmtfot.flightbutton .searchsbmt span {
  color: #fff;
}

#hotel_search .roomcount {
  top: calc(100% + 8px);
  /* left: 0;
  right: auto; */
}

#hotel_search .border_btms,
#hotel_search .bordrt,
#hotel_search .full_clear {
  border: 0 !important;
}

#hotel_search .hotelToAppendPicker {
  position: absolute;
  z-index: 20;
}

/* Modify search collapse */
.splmodify #hotel_search .htl-search-v3__row,
.frt-modify-searcharea #hotel_search .htl-search-v3__row {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
  #hotel_search .htl-search-fields-row {
    flex-wrap: wrap;
  }

  #hotel_search .htl-search-field {
    flex: 1 1 calc(50% - 6px);
  }

  #hotel_search .htl-search-field--destination,
  #hotel_search .htl-search-field--guests {
    flex: 1 1 calc(50% - 6px);
  }
}

@media (max-width: 767px) {
  #hotel_search .htl-search-v3__row {
    padding: 14px 14px 34px;
  }

  #hotel_search .htl-search-fields-row {
    flex-direction: column;
    gap: 10px;
  }

  #hotel_search .htl-search-field {
    flex: 1 1 100%;
    min-height: 72px;
  }

  #hotel_search .htl-search-submit-wrap {
    position: static;
    margin-top: 12px;
    text-align: center;
  }

  #hotel_search .htl-search-submit,
  #hotel_search .searchsbmtfot.flightbutton .searchsbmt {
    width: 100%;
    min-width: 0;
  }
}

#hotel_search .inallsn {
  display: block;
  max-width: 820px;
  overflow-x: auto;
  max-height: 70vh;
  overflow-y: auto;
  white-space: nowrap;
}

#hotel_search .oneroom {
  display: inline-block;
  float: none;
  vertical-align: top;
  white-space: normal;
  min-width: 240px;
}


/* Reset Materialize modal rules specifically for #hotelPopularDestModal */
#hotelPopularDestModal.modal,
.pop-hotel-dest-modal.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  z-index: 10000060 !important;
  will-change: auto !important;
}

#hotelPopularDestModal.modal.in,
#hotelPopularDestModal.modal.show,
#hotelPopularDestModal.modal[style*="display: block"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000060 !important;
}

#hotelPopularDestModal .modal-dialog,
.pop-hotel-dest-modal .modal-dialog {
  width: 500px !important;
  max-width: calc(100vw - 32px) !important;
  margin: auto !important;
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  z-index: 10000070 !important;
}

#hotelPopularDestModal .modal-content.pop-dest-modal-content,
.pop-hotel-dest-modal .pop-dest-modal-content {
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45) !important;
  background: #ffffff !important;
  position: relative !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 10000080 !important;
  pointer-events: auto !important;
}

#hotelPopularDestModal .pop-dest-modal-hero {
  position: relative;
  min-height: 140px;
  padding: 22px 24px 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#hotelPopularDestModal .pop-dest-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  line-height: 1 !important;
  opacity: 0.9 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  z-index: 10000085 !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#hotelPopularDestModal .pop-dest-modal-close:hover {
  background: rgba(0, 0, 0, 0.85) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  transform: scale(1.08) !important;
}

#hotelPopularDestModal .pop-dest-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  width: fit-content;
}

#hotelPopularDestModal .pop-dest-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

#hotelPopularDestModal .pop-dest-modal-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

#hotelPopularDestModal .pop-dest-hero-divider {
  opacity: 0.6;
}

#hotelPopularDestModal .pop-dest-hero-price {
  font-weight: 700;
  color: #fbbf24;
}

#hotelPopularDestModal .pop-dest-modal-body {
  padding: 22px 24px 22px !important;
  background: #ffffff !important;
}

#hotelPopularDestModal .pop-dest-form-group {
  margin-bottom: 16px;
}

#hotelPopularDestModal .pop-dest-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

#hotelPopularDestModal .pop-dest-label i {
  color: #2563eb;
  font-size: 13px;
}

#hotelPopularDestModal .pop-dest-input-wrap {
  position: relative;
}

#hotelPopularDestModal .pop-dest-input {
  height: 44px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  padding: 8px 14px !important;
  background-color: #f8fafc !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

#hotelPopularDestModal .pop-dest-input:focus {
  border-color: #2563eb !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

#hotelPopularDestModal .pop-dest-dates-row {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
}

#hotelPopularDestModal .pop-dest-date-col {
  flex: 1;
}

#hotelPopularDestModal .pop-dest-nights-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

#hotelPopularDestModal .pop-dest-nights-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  border-radius: 12px;
  padding: 3px 10px;
}

#hotelPopularDestModal .pop-dest-pax-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

#hotelPopularDestModal .pop-dest-pax-col {
  flex: 1;
}

#hotelPopularDestModal .pop-dest-select {
  height: 44px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  padding: 8px 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: block !important;
}

#hotelPopularDestModal .pop-dest-select:focus {
  border-color: #2563eb !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

#hotelPopularDestModal .pop-dest-child-ages-row {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px dashed #cbd5e1;
}

#hotelPopularDestModal .pop-dest-child-age-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

#hotelPopularDestModal .pop-dest-child-ages-flex {
  display: flex;
  gap: 12px;
}

#hotelPopularDestModal .pop-dest-child-age-col {
  flex: 1;
}

#hotelPopularDestModal .pop-dest-child-age-col label {
  font-size: 11px;
  color: #475569;
  margin-bottom: 4px;
  display: block;
}

#hotelPopularDestModal .pop-dest-select-sm {
  height: 36px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
  background: #ffffff !important;
  width: 100% !important;
}

#hotelPopularDestModal .pop-dest-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

#hotelPopularDestModal .pop-dest-btn-cancel {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

#hotelPopularDestModal .pop-dest-btn-cancel:hover {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

#hotelPopularDestModal .pop-dest-btn-search {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

#hotelPopularDestModal .pop-dest-btn-search:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.ui-datepicker {
  z-index: 10000095 !important;
}

.ui-autocomplete {
  z-index: 10000095 !important;
}

@media(max-width: 576px) {
  #hotelPopularDestModal .modal-dialog {
    margin: 20px 12px !important;
    width: auto !important;
  }

  #hotelPopularDestModal .pop-dest-modal-hero {
    min-height: 120px;
    padding: 18px 16px 16px;
  }

  #hotelPopularDestModal .pop-dest-modal-title {
    font-size: 18px;
  }

  #hotelPopularDestModal .pop-dest-modal-body {
    padding: 18px 16px 16px !important;
  }

  #hotelPopularDestModal .pop-dest-dates-row,
  #hotelPopularDestModal .pop-dest-pax-grid {
    flex-direction: column;
    gap: 10px;
  }
}