/**
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License version 3.0
* that is bundled with this package in the file LICENSE.md
* It is also available through the world-wide-web at this URL:
* https://opensource.org/license/osl-3-0-php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to support@qloapps.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to a newer
* versions in the future. If you wish to customize this module for your needs
* please refer to https://store.webkul.com/customisation-guidelines for more information.
*
* @author Webkul IN
* @copyright Since 2010 Webkul
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
*/

#search_hotel_block_form .grid {
  display: grid;
  column-gap: 5px;
}
#search_hotel_block_form .grid .grid-item {
  display: grid;
}
#search_hotel_block_form .form-group {
  margin-bottom: 0;
}
#search_hotel_block_form .area-1 {
  --col-span: 1;
}
#search_hotel_block_form .area-2 {
  --col-span: 2;
}
#search_hotel_block_form .area-3 {
  --col-span: 3;
}
#search_hotel_block_form .area-4 {
  --col-span: 4;
}
#search_hotel_block_form .area-5 {
  --col-span: 5;
}
#search_hotel_block_form .area-6 {
  --col-span: 6;
}
#search_hotel_block_form .area-7 {
  --col-span: 7;
}
#daterange_value.multi-date {
  column-gap: 5px;
  grid-template-columns: repeat(2, 1fr);
}
.fancybox-wrap #search_hotel_block_form .form-group.xs-calendar {
  position: relative;
}
@media (max-width: 767px) {
  #search_hotel_block_form .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  #search_hotel_block_form .grid .grid-item,
  #search_hotel_block_form .form-group {
    display: block !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }
  #search_hotel_block_form .form-group:last-child {
    margin-bottom: 0 !important;
  }
}
#search_hotel_block_form .header-rmsearch-input {
  border-radius: 8px;
  color: #2c1a0e;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid #ebdccf;
  background-color: #ffffff;
  height: 100%;
  min-height: 52px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(45, 25, 12, 0.04);
}
  #search_hotel_block_form .header-rmsearch-input:active, 
  #search_hotel_block_form .header-rmsearch-input:focus {
    border: 1.5px solid #d4a359;
    box-shadow: 0 0 0 3px rgba(212, 163, 89, 0.2);
    outline: none;
  }
  #search_hotel_block_form #id_hotel_button {
    appearance: none;
    width: 100%;
    padding-left: 35px;
    padding-right: 24px;
    background: url("../../views/img/icon-hotel.svg") no-repeat 10px 50%, url("../../views/img/icon-dropdown-arrow.svg") no-repeat calc(100% - 12px) 50%;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1.5px solid #ebdccf;
    color: #2c1a0e;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  #search_hotel_block_form #id_hotel_button:hover,
  #search_hotel_block_form #id_hotel_button:focus {
    border-color: #d4a359;
    box-shadow: 0 0 0 3px rgba(212, 163, 89, 0.2);
  }
  #id_hotel_button{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #search_hotel_block_form .input-date {
    display: grid;
    cursor: text;
    border-radius: 8px;
    border: 1.5px solid #ebdccf;
    background-color: #ffffff;
    transition: all 0.2s ease;
  }
  #search_hotel_block_form .input-date.focused,
  #search_hotel_block_form .input-date:hover {
    border: 1.5px solid #d4a359;
    box-shadow: 0 0 0 3px rgba(212, 163, 89, 0.2);
  }
  #search_hotel_block_form .input-date span {
    align-self: center;
    color: #2c1a0e;
    font-weight: 500;
  }
    #search_hotel_block_form .input-date span i {
      transform: scale(0.8, 0.6);
      color: #8c5a39;
    }
  .header-rmsearch-input::-webkit-input-placeholder {
    color: #7a6352;
    font-weight: 400;
  }
  .header-rmsearch-input:-moz-placeholder {
    /* Firefox 18- */
    color: #7a6352;
    font-weight: 400;
    opacity: 1;
  }
  .header-rmsearch-input::-moz-placeholder {
    /* Firefox 19+ */
    color: #7a6352;
    font-weight: 400;
    opacity: 1;
  }
  .header-rmsearch-input:-ms-input-placeholder {
    color: #7a6352;
    font-weight: 400;
  }
  .search_block_container .dropdown-toggle {
    background-color: #ffffff;
    width: 100%;
    border-color: #ebdccf;
    color: #2c1a0e;
    padding: 0px !important;
    height: 40px;
  }

.header-rmsearch-wrapper .dropdown {
  position: relative;
}
.header-rmsearch-wrapper .dropdown-menu {
  margin: 0px;
}
.header-rmsearch-wrapper .location_search_results_ul {
  position: absolute;
  font-size: 14px;
  z-index: 100;
  font-weight: 400;
  padding: 4px 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #ebdccf;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(35, 18, 8, 0.2);
  max-height: 180px;
  overflow-y: auto;
}
  .header-rmsearch-wrapper .location_search_results_ul li {
    background-color: #fff;
    color: #2c1a0e;
    cursor: pointer;
    text-align: left;
    font-size: 13.5px;
    list-style: outside none none;
    padding: 10px 14px;
    transition: all 0.15s ease;
  }
    .header-rmsearch-wrapper .location_search_results_ul li:hover, 
    .header-rmsearch-wrapper .location_search_results_ul li:focus, 
    .header-rmsearch-wrapper .location_search_results_ul li:active {
      background-color: #faf4ed;
      color: #b5741b;
      font-weight: 600;
    }

.header-rmsearch-wrapper .location_search_results_ul.top {
  top: unset;
  bottom: 55px; 
}
.header-rmsearch-wrapper .location_search_results_ul.bottom {
  top: 100%; 
}

.header-rmsearch-wrapper .label-desc-txt {
  font-size: 12px;
  color: #777777;
  margin: 0;
}
.header-rmsearch-wrapper .btn {
  font-weight: 600;
}
.header-rmsearch-wrapper .btn-primary {
  background: linear-gradient(135deg, #d49a38 0%, #b5741b 50%, #8c521a 100%);
  background-color: #b5741b;
  color: #ffffff;
  border: none;
}
.header-rmsearch-wrapper .btn-lg {
  padding: 19px;
}
.header-rmsearch-wrapper .wk-padding-5 {
  padding-left: 5px;
  padding-right: 5px;
}
  .header-search-tag-line {
    font-size: 19px;
    color: #2c1a0e;
    font-weight: 600;
    text-align: center;
    margin-top: 0px;
  }
  .header-search-tag-desc {
    font-size: 14px;
    color: #5c4738;
    line-height: 22px;
    text-align: center;
  }
  #search_hotel_block_form #search_room_submit {
    background: linear-gradient(135deg, #d49a38 0%, #b5741b 50%, #8c521a 100%) !important;
    background-color: #b5741b !important;
    width: 100%;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    min-height: 52px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(181, 116, 27, 0.35);
    transition: all 0.25s ease;
    cursor: pointer;
  }
  #search_hotel_block_form #search_room_submit:hover {
    background: linear-gradient(135deg, #e0a747 0%, #c48226 50%, #9c5d20 100%) !important;
    background-color: #c48226 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(181, 116, 27, 0.45);
    color: #ffffff;
  }
  #search_hotel_block_form #search_room_submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(181, 116, 27, 0.25);
  }
  .submit_occupancy_btn {
    background: linear-gradient(135deg, #d49a38 0%, #b5741b 50%, #8c521a 100%);
    background-color: #b5741b;
    border: none;
    border-radius: 6px;
    color: #ffffff;
  }


/* occupancy  */
#search_occupancy_wrapper {
  border: 1px solid #ebdccf !important;
  max-height: 420px !important;
  min-width: 290px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-shadow: 0 18px 45px rgba(25,12,5,0.25) !important;
  left: 0px !important;
  padding: 16px 18px !important;
  box-sizing: border-box !important;
}

#search_occupancy_wrapper *,
#search_occupancy_wrapper *::before,
#search_occupancy_wrapper *::after {
  box-sizing: border-box !important;
}

#search_occupancy_wrapper.top {
  top: unset !important;
  bottom: 100% !important;
}

#search_occupancy_wrapper.bottom {
  top: 100% !important;
}

#search_occupancy_wrapper .occupancy-info-separator {
  margin: 14px 0 !important;
  border-top: 1px solid #f0e6db !important;
  clear: both !important;
}

#search_occupancy_wrapper .occupancy_info_head {
  font-size: 14px !important;
  color: #2c1a0e !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #f0e6db !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  clear: both !important;
}

#search_occupancy_wrapper .occupancy_info_head .room_num_wrapper {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #2c1a0e !important;
}

#search_occupancy_wrapper .occupancy_info_head .remove-room-link {
  font-size: 12px !important;
  color: #c53030 !important;
  text-align: right !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-left: auto !important;
}

#search_occupancy_wrapper .occupancy_info_block {
  width: 100% !important;
}

#search_occupancy_wrapper .occupancy_info_block > .row:not(.children_age_info_block) {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  margin: 0 -8px !important;
  padding: 0 !important;
  width: calc(100% + 16px) !important;
}

#search_occupancy_wrapper .occupancy_count_block {
  flex: 1 1 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  padding: 0 8px !important;
  margin-bottom: 0 !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

#search_occupancy_wrapper .occupancy_count_block .row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

#search_occupancy_wrapper .occupancy_count_block label {
  padding: 0 !important;
  margin: 0 0 6px 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #2c1a0e !important;
  display: block !important;
  text-align: left !important;
  width: 100% !important;
  line-height: 1.3 !important;
}

#search_occupancy_wrapper .occupancy_count_block > div,
#search_occupancy_wrapper .occupancy_count_block .col-sm-12,
#search_occupancy_wrapper .occupancy_count_block .col-sm-12.clearfix {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#search_occupancy_wrapper .occupancy_info_block .occupancy_count {
  width: 48px !important;
  min-width: 48px !important;
  height: 40px !important;
  line-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #ebdccf !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #2c1a0e !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
}

#search_occupancy_wrapper .occupancy_info_block .occupancy_count > span {
  display: inline-block !important;
  text-align: center !important;
  width: 100% !important;
  line-height: 38px !important;
}

#search_occupancy_wrapper .occupancy_info_block .qty_direction {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin-left: 6px !important;
  width: auto !important;
  float: none !important;
}

#search_occupancy_wrapper .occupancy_info_block .qty_direction a {
  background: #faf6ef !important;
  border: 1px solid #ebdccf !important;
  border-radius: 4px !important;
  color: #5c4738 !important;
  width: 22px !important;
  height: 18px !important;
  line-height: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 10px !important;
  transition: all 0.2s ease !important;
}

#search_occupancy_wrapper .occupancy_info_block .qty_direction a:hover {
  background: #d4a359 !important;
  border-color: #d4a359 !important;
  color: #ffffff !important;
}

#search_occupancy_wrapper .label-desc-txt {
  font-size: 11.5px !important;
  color: #826f61 !important;
  margin: 4px 0 0 0 !important;
  display: block !important;
  padding: 0 !important;
  white-space: nowrap !important;
  text-align: left !important;
  width: 100% !important;
}

#search_occupancy_wrapper .occupancy-input-errors {
  font-weight: 700 !important;
}

/* ALL CHILDREN & CHILD AGES FULL-WIDTH STACKED LAYOUT (Fix for Image 1) */
#search_occupancy_wrapper .children_age_info_block,
#search_occupancy_wrapper .occupancy_info_block > .children_age_info_block,
#search_occupancy_wrapper .row > .children_age_info_block {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  display: block !important;
  float: none !important;
  margin: 12px 0 0 0 !important;
  padding: 0 !important;
  clear: both !important;
}

#search_occupancy_wrapper .children_age_info_block label,
#search_occupancy_wrapper .children_age_info_block .col-sm-12 label {
  display: block !important;
  width: 100% !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #2c1a0e !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

#search_occupancy_wrapper .children_age_info_block .col-sm-12 {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: block !important;
}

#search_occupancy_wrapper .children_ages {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#search_occupancy_wrapper .children_ages > div {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#search_occupancy_wrapper select.guest_child_age,
#search_occupancy_wrapper .children_ages select {
  width: 100% !important;
  max-width: 100% !important;
  height: 38px !important;
  background: #faf6ef !important;
  border: 1.5px solid #ebdccf !important;
  border-radius: 6px !important;
  color: #2c1a0e !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  display: block !important;
  cursor: pointer !important;
  outline: none !important;
}

#search_occupancy_wrapper .occupancy_block_actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 14px !important;
  margin-top: 12px !important;
  border-top: 1px solid #f0e6db !important;
}

#search_occupancy_wrapper .add_new_occupancy_btn {
  font-weight: bold !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  color: #b5741b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#search_occupancy_wrapper .add_new_occupancy_btn:active,
#search_occupancy_wrapper .add_new_occupancy_btn:focus,
#search_occupancy_wrapper .add_new_occupancy_btn:hover {
  text-decoration: none !important;
  color: #8c521a !important;
}

#search_occupancy_wrapper .submit_occupancy_btn,
#search_occupancy_wrapper .btn-primary {
  background: linear-gradient(135deg, #d49a38 0%, #b5741b 50%, #8c521a 100%) !important;
  border: none !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 7px 22px !important;
  box-shadow: 0 4px 12px rgba(181, 116, 27, 0.3) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

#search_occupancy_wrapper .submit_occupancy_btn:hover,
#search_occupancy_wrapper .btn-primary:hover {
  background: linear-gradient(135deg, #e0a747 0%, #c48226 50%, #9c5d20 100%) !important;
  box-shadow: 0 6px 16px rgba(181, 116, 27, 0.4) !important;
  transform: translateY(-1px);
}