/* =============================================================================
   bookingsmaker.com - "bmdefault" NEW THEME
   File: bm-hotel-search.css
   Purpose: hotel-search page (landing/search page). Combines the desktop
            design (newtemplates/website_view/bm_homepage.html - MMT-style
            hero with overlapping search widget, trending destinations,
            handpicked accommodations, trust section) with the mobile design
            (newtemplates/mobile_view/mobile-search1.html) via @media
            breakpoints, per project decision to ship one responsive
            stylesheet per page.

   Depends on: bm-tokens.css, bm-components.css, bm-header-footer.css.
   Root scope class: .bm-search-page (wrap the hotel-search view content in
   this class once markup is updated in a later, approved pass).
   ========================================================================== */

.bm-search-page { font-family: var(--bm-font-family); color: var(--bm-color-on-background); /*background-color: var(--bm-color-background); */}

/* -----------------------------------------------------------------------
   Hero + overlapping search widget (desktop)
   ----------------------------------------------------------------------- */
.bm-search-hero {
  position: relative;
  width: 100%;
  height: 560px;
}
@media (max-width: 767px) {
  .bm-search-hero { height: auto; min-height: 0; padding-bottom: var(--bm-space-md); }
  .bm-search-hero__content { height: auto; padding-top: var(--bm-space-md); }
  .bm-search-widget { transform: none; margin-top: var(--bm-space-md); }
  .bm-search-after-hero { /*margin-top: var(--bm-space-lg) !important; */}
  .bm-search-field { grid-column: auto; }
}

.bm-search-hero__media { position: absolute; inset: 0; z-index: 0; height: 85%;}
.bm-search-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-search-hero__overlay {
  position: absolute; inset: 0;
  /*background: linear-gradient(rgba(10, 29, 55, 0.3), rgba(10, 29, 55, 0.55));*/
}

.bm-search-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--bm-container-max);
  margin: 0 auto;
  padding: 4rem var(--bm-container-padding-x) 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .bm-search-hero__content { padding-top: 2rem; }
}

.bm-search-hero__title {
  color: var(--bm-color-white);
  font-size: var(--bm-fs-headline-lg);
  line-height: var(--bm-lh-display-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--bm-space-2xs);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  max-width: 48rem;
}
@media (max-width: 767px) {
  .bm-search-hero__title { font-size: var(--bm-fs-headline-lg-mobile); line-height: var(--bm-lh-headline-lg-mobile); }
}
.bm-search-hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--bm-fs-body-lg);
  max-width: 48rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Floating search widget card, overlapping the hero bottom edge */
.bm-search-widget {
  position: relative;
  z-index: 20;
  margin-top: var(--bm-space-lg);
  transform: translateY(2rem);
  background-color: var(--bm-color-white);
  border: 1px solid rgba(197, 198, 206, 0.3);
  border-radius: var(--bm-radius-xl);
  box-shadow: var(--bm-shadow-search-card);
  overflow: hidden;
}
@media (max-width: 767px) {
  .bm-search-widget { transform: none; margin-top: -2rem; border-radius: var(--bm-radius-lg); }
}
.bm-search-widget--inline,
.bm-search-widget--inline.bm-search-widget {
  transform: none;
  margin-top: 0;
}

.bm-search-widget__tabs {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0 var(--bm-space-sm);
  background-color: var(--bm-color-surface-container-low);
  border-bottom: 1px solid var(--bm-color-outline-variant);
}
.bm-search-widget__tab, .bm-search-widget__tab a {
  display: inline-flex;
  align-items: center;
  gap: var(--bm-space-2xs);
  padding: var(--bm-space-sm) var(--bm-space-lg);
  white-space: nowrap;
  font-size: var(--bm-fs-label-md);
  font-weight: 400;
  color: var(--bm-color-secondary);
  border: none;
  border-bottom: 4px solid transparent;
  background: transparent;
  cursor: pointer;
}
.bm-search-widget__tab a
{
  
  font-size: var(--bm-fs-label-md);
  font-weight: 400;
  color: var(--bm-color-secondary);
  border: none;
  padding: 0px !important;
}
.bm-search-widget__tab a span, .bm-search-widget__tab a:hover , .bm-search-widget__tab a span:hover {
  font-weight: 400;
  color: var(--bm-color-secondary);
  text-decoration: none;  
}
.bm-search-widget__tab a:hover {
  text-decoration: none;
  font-size: var(--bm-fs-label-md);
  
}
.bm-search-widget__tab.bm-is-active {
  color: var(--bm-color-secondary-container);
  border-bottom-color: var( --bm-color-on-secondary-container-variant);
}

.bm-search-widget__fields {
  padding: var(--bm-space-md);
}
@media (min-width: 768px) {
  .bm-search-widget__fields { padding: var(--bm-space-lg); }
}

.bm-search-widget__row {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--bm-color-outline-variant);
  border-radius: var(--bm-radius-lg);
  background-color: var(--bm-color-white);
  overflow: hidden;
}
@media (min-width: 768px) {
  .bm-search-widget__row { grid-template-columns: repeat(12, 1fr); }
}

.bm-search-field {
  position: relative;
  padding: var(--bm-space-sm);
  border-bottom: 1px solid var(--bm-color-outline-variant);
  cursor: pointer;
  transition: background-color var(--bm-transition-fast);
}
@media (min-width: 768px) {
  .bm-search-field { border-bottom: none; border-right: 1px solid var(--bm-color-outline-variant); }
  .bm-search-field:last-child { border-right: none; }
}
.bm-search-field:hover,
.bm-search-field.bm-is-focused { background-color: var(--bm-color-surface-container-low); }
.bm-search-field--destination { grid-column: span 4; }
.bm-search-field--date { grid-column: span 2; }
.bm-search-field--guests { grid-column: span 4; }

.bm-search-field__label {
  display: block;
  font-size: var(--bm-fs-label-sm);
  font-weight: 500;
  color: var(--bm-color-secondary);
  margin-bottom: 0.25rem;
}
.bm-search-field:hover .bm-search-field__label { color: var(--bm-color-secondary); }
.bm-search-field__value {
  font-size: var(--bm-lh-body-md);
  font-weight: 500;
  color: var(--bm-color-primary);
}
.bm-search-field__value input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
}
.bm-search-field__value input:focus { outline: none; }
.bm-search-field__sub { font-size: var(--bm-fs-label-xs); color: var(--bm-color-secondary); margin-top: 0.25rem; }
.bm-search-field.bm-is-invalid { box-shadow: inset 0 0 0 2px var(--bm-color-error); }
.bm-listing-searchbar .bm-search-field.bm-is-invalid { border-color: var(--bm-color-error); }
.bm-search-field__error {
  margin: 0.2rem 0 0;
  font-size: var(--bm-fs-label-xss);
  font-weight: 600;
  line-height: 1.3;
  color: var(--bm-color-error);
}
.bm-search-field__error[hidden] { display: none !important; }
.bm-search-field__value .bm-date-my {
  font-size: var(--bm-lh-label-sm);
  font-weight: 400;
  margin-left: 0.15rem;
}
.bm-search-field--date:focus-visible {
  outline: 2px solid var(--bm-color-secondary-container);
  outline-offset: -2px;
}
.bm-search-field__unit {
  font-size: var(--bm-lh-label-sm);
  font-weight: 400;
}

/* Rooms & guests picker */
.bm-search-widget.bm-guests-open,
.bm-search-widget.bm-guests-open .bm-search-widget__row,
.bm-search-widget.bm-destination-open,
.bm-search-widget.bm-destination-open .bm-search-widget__row {
  overflow: visible;
}
.bm-search-field--destination.bm-is-focused { z-index: 6; }
.bm-guests-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.bm-guests-trigger .bm-search-field__sub { display: block; }
.bm-guests-trigger .bm-search-field__sub[hidden] { display: none !important; }
.bm-search-field--guests.bm-is-open {
  z-index: 5;
  background-color: var(--bm-color-surface-container-low);
}
.bm-search-field--guests.bm-is-open .bm-search-field__label { color: var(--bm-color-secondary); }

.bm-guests-panel {
  position: absolute;
  top: calc(100% + var(--bm-space-2xs));
  right: 0;
  width: 500px;
  max-width: calc(100vw - 2rem);
  font-family: var(--bm-font-family);
  color: var(--bm-color-on-surface);
  background: var(--bm-color-white);
  border: 1px solid var(--bm-color-outline-variant);
  border-radius: var(--bm-radius-xl);
  box-shadow: var(--bm-shadow-xl);
  z-index: 40;
  max-height: min(72vh, 560px);
  overflow: auto;
}
.bm-guests-panel[hidden] { display: none !important; }

.bm-guests-panel__rooms {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--bm-space-sm);
  padding: var(--bm-space-sm);
  background: var(--bm-color-surface-container-low);
}
.bm-guests-panel__rooms-label {
  font-size: var(--bm-fs-label-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bm-color-on-surface-variant);
}

.bm-stepper {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--bm-color-outline-variant);
  border-radius: var(--bm-radius-full);
  background: var(--bm-color-white);
  overflow: hidden;
  transition: border-color var(--bm-transition-fast), box-shadow var(--bm-transition-fast);
}
.bm-stepper:focus-within {
  border-color: var(--bm-color-secondary-container);
  box-shadow: 0 0 0 3px rgba(253, 143, 26, 0.18);
}
.bm-stepper__btn {
  width: 32px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--bm-color-secondary);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--bm-transition-fast), color var(--bm-transition-fast);
}
.bm-stepper__btn:hover:not(:disabled) {
  background: var(--bm-color-surface-container-low);
  color: var(--bm-color-secondary-container);
}
.bm-stepper__btn:disabled {
  color: var(--bm-color-outline);
  cursor: not-allowed;
}
.bm-stepper__value {
  min-width: 22px;
  text-align: center;
  font-size: var(--bm-fs-body-md);
  font-weight: 700;
  color: var(--bm-color-primary);
}

.bm-guests-room {
  display: grid;
  grid-template-columns: 88px 1fr 1fr;
  column-gap: var(--bm-space-sm);
  row-gap: 0;
  align-items: start;
  padding: var(--bm-space-sm);
  border-top: 1px solid var(--bm-color-outline-variant);
}
.bm-guests-room[hidden] { display: none !important; }
.bm-guests-room__name {
  grid-column: 1;
  grid-row: 1;
  padding-top: 2px;
  font-size: var(--bm-fs-label-md);
  font-weight: 700;
  color: var(--bm-color-on-surface-variant);
}
.bm-guests-room__adults { grid-column: 2; grid-row: 1; }
.bm-guests-room__children { grid-column: 3; grid-row: 1; }
.bm-guests-room__label {
  margin-bottom: var(--bm-space-2xs);
  font-size: var(--bm-fs-label-md);
  font-weight: 700;
  color: var(--bm-color-on-surface);
  white-space: nowrap;
}
.bm-guests-room__label small {
  font-size: var(--bm-fs-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bm-color-on-surface-variant);
}
.bm-guests-room__ages {
  grid-column: 2 / span 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--bm-space-sm);
  margin-top: var(--bm-space-xs);
}
.bm-guests-room__ages[hidden],
.bm-guests-age[hidden] { display: none !important; }
.bm-guests-age__label {
  display: block;
  margin-bottom: var(--bm-space-3xs);
  font-size: var(--bm-fs-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bm-color-on-surface-variant);
}
.bm-guests-age__select {
  width: 100%;
  max-width: 120px;
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--bm-color-outline-variant);
  border-radius: var(--bm-radius-md);
  background-color: var(--bm-color-surface-container-low);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2344474d' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  font-family: inherit;
  font-size: var(--bm-fs-label-md);
  font-weight: 600;
  color: var(--bm-color-on-surface);
  cursor: pointer;
  transition: border-color var(--bm-transition-fast), box-shadow var(--bm-transition-fast), background-color var(--bm-transition-fast);
}
.bm-guests-age__select:focus {
  outline: none;
  background-color: var(--bm-color-white);
  border-color: var(--bm-color-secondary-container);
  box-shadow: 0 0 0 3px rgba(253, 143, 26, 0.18);
}
.bm-guests-age__select.bm-is-empty { color: var(--bm-color-on-surface-variant); font-weight: 500; }
.bm-guests-panel--invalid .bm-guests-age:not([hidden]) .bm-guests-age__select.bm-is-empty {
  border-color: var(--bm-color-error);
  background-color: var(--bm-color-error-container);
}

.bm-guests-panel__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--bm-space-xs);
  padding: var(--bm-space-xs) var(--bm-space-sm);
  border-top: 1px solid var(--bm-color-outline-variant);
  position: sticky;
  bottom: 0;
  background: var(--bm-color-white);
}
.bm-guests-panel__error {
  display: none;
  margin: 0 auto 0 0;
  font-size: var(--bm-fs-caption);
  font-weight: 600;
  line-height: 1.3;
  color: var(--bm-color-error);
}
.bm-guests-panel--invalid .bm-guests-panel__error { display: block; }
.bm-guests-panel__apply {
  border: 0;
  border-radius: 4px;
  padding: 8px 18px;
  background: var(--bm-color-secondary-container);
  color: var(--bm-color-on-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.bm-guests-panel__apply:hover { background: var(--bm-color-secondary); }
.bm-guests-panel--invalid .bm-guests-panel__apply { opacity: 0.55; }

@media (max-width: 767px) {
  .bm-guests-panel {
    left: 0;
    right: 0;
    width: auto;
  }
  .bm-guests-room {
    grid-template-columns: 64px 1fr 1fr;
    column-gap: var(--bm-space-2xs);
    padding: var(--bm-space-xs);
  }
  .bm-guests-room__ages { column-gap: var(--bm-space-2xs); }
  .bm-guests-room__label { font-size: 13px; white-space: normal; }
}

/* Check-in / check-out range calendar (kartik bootstrap-daterangepicker).
   The picker is appended to <body>, so these rules are not scoped under
   .bm-search-page. */
.bm-daterangepicker.daterangepicker {
  font-family: var(--bm-font-family);
  width: auto;
  padding: 0.75rem 0.5rem 0.5rem;
  margin-top: 0;
  background: var(--bm-color-white);
  border: 1px solid var(--bm-color-outline-variant);
  border-radius: var(--bm-radius-xl);
  box-shadow: var(--bm-shadow-xl);
  color: var(--bm-color-on-surface);
  z-index: 4000;
}
.bm-daterangepicker.daterangepicker.opensleft:before,
.bm-daterangepicker.daterangepicker.opensleft:after,
.bm-daterangepicker.daterangepicker.opensright:before,
.bm-daterangepicker.daterangepicker.opensright:after,
.bm-daterangepicker.daterangepicker.openscenter:before,
.bm-daterangepicker.daterangepicker.openscenter:after,
.bm-daterangepicker.daterangepicker.dropup:before,
.bm-daterangepicker.daterangepicker.dropup:after {
  display: none;
  content: none;
  border: 0;
}
.bm-daterangepicker.daterangepicker .daterangepicker_input { display: none; }
.bm-daterangepicker.daterangepicker .calendar { max-width: 340px; margin: 0; }
.bm-daterangepicker.daterangepicker .calendar-table {
  border: none;
  background: transparent;
  padding: 0 0.35rem;
}
.bm-daterangepicker.daterangepicker .calendar th,
.bm-daterangepicker.daterangepicker .calendar td {
  min-width: 42px;
  height: 42px;
  font-size: 16px;
  border-radius: var(--bm-radius-full);
}
.bm-daterangepicker.daterangepicker th.month {
  font-size: 16px;
  font-weight: 700;
  color: var(--bm-color-primary);
}
.bm-daterangepicker.daterangepicker .calendar thead tr:first-child th {
  height: auto;
  padding-bottom: 18px;
}
.bm-daterangepicker.daterangepicker .calendar thead tr:last-child th {
  height: auto;
  padding-top: 6px;
  color: var(--bm-color-on-surface-variant);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bm-daterangepicker.daterangepicker th.prev,
.bm-daterangepicker.daterangepicker th.next {
  color: var(--bm-color-secondary);
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}
.bm-daterangepicker.daterangepicker th.prev:hover,
.bm-daterangepicker.daterangepicker th.next:hover {
  background: transparent;
}
.bm-daterangepicker.daterangepicker th.prev i,
.bm-daterangepicker.daterangepicker th.next i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--bm-color-shadow-variant);
  font-size: 10px;
  line-height: 1;
}
.bm-daterangepicker.daterangepicker td.available:hover,
/*.bm-daterangepicker.daterangepicker th.available:hover*/ {
  background: var(--bm-color-surface-container);
}
.bm-daterangepicker.daterangepicker td.in-range {
  background: var(--bm-color-secondary-fixed);
  color: var(--bm-color-on-secondary-fixed);
  border-radius: 0;
}
.bm-daterangepicker.daterangepicker td.start-date { border-radius: var(--bm-radius-xl) 0 0 var(--bm-radius-xl); }
.bm-daterangepicker.daterangepicker td.end-date { border-radius: 0 var(--bm-radius-xl) var(--bm-radius-xl) 0; }
.bm-daterangepicker.daterangepicker td.start-date.end-date { border-radius: var(--bm-radius-xl); }
.bm-daterangepicker.daterangepicker td.active,
.bm-daterangepicker.daterangepicker td.active:hover {
  background-color: var(--bm-color-secondary-container);
  border-color: transparent;
  color: var(--bm-color-on-secondary);
}
.bm-daterangepicker.daterangepicker td.off,
.bm-daterangepicker.daterangepicker td.off.in-range,
.bm-daterangepicker.daterangepicker td.off.start-date,
.bm-daterangepicker.daterangepicker td.off.end-date {
  background: transparent;
  color: var(--bm-color-outline);
}
.bm-daterangepicker.daterangepicker td.bm-outside-month,
.bm-daterangepicker.daterangepicker td.bm-outside-month:hover,
.bm-daterangepicker.daterangepicker td.bm-outside-month.in-range,
.bm-daterangepicker.daterangepicker td.bm-outside-month.active {
  visibility: hidden;
  background: transparent;
  pointer-events: none;
}
@media (min-width: 564px) {
  .bm-daterangepicker.daterangepicker .calendar.left {
    border-right: 1px solid var(--bm-color-outline-variant);
    margin-right: 0.75rem;
    padding-right: 0.85rem;
  }
}
.bm-daterangepicker.daterangepicker td.disabled,
.bm-daterangepicker.daterangepicker td.disabled:hover,
.bm-daterangepicker.daterangepicker td.off.disabled {
  color: #c5c6ce;
  background: transparent;
  text-decoration: none;
  cursor: default;
}
@media (max-width: 767px) {
  .bm-daterangepicker.daterangepicker {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
  }
}

/* Destination auto-suggest dropdown */
.bm-autosuggest {
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  min-width: 280px;
  max-height: 320px;
  overflow-y: auto;
  background-color: var(--bm-color-white);
  border: 1px solid var(--bm-color-outline-variant);
  border-top: none;
  box-shadow: var(--bm-shadow-xl);
  border-radius: 0 0 var(--bm-radius-lg) var(--bm-radius-lg);
  z-index: var(--bm-z-dropdown);
  display: none;
}
.bm-autosuggest [hidden] { display: none !important; }
.bm-search-field.bm-is-focused .bm-autosuggest,
.bm-search-field:focus-within .bm-autosuggest { display: block; }
.bm-search-field.bm-destination-picked .bm-autosuggest,
.bm-search-field.bm-destination-picked:focus-within .bm-autosuggest { display: none; }
.bm-autosuggest__section-label {
  padding: var(--bm-space-2xs) var(--bm-space-sm);
  font-size: var(--bm-fs-label-sm);
  color: var(--bm-color-on-surface-variant);
  background-color: var(--bm-color-surface-container-low);
  border-bottom: 1px solid var(--bm-color-outline-variant);
}
.bm-autosuggest__item {
  display: flex;
  align-items: center;
  gap: var(--bm-space-xs);
  padding: var(--bm-space-xs) var(--bm-space-sm);
  cursor: pointer;
}
.bm-autosuggest__item:hover,
.bm-autosuggest__item.bm-is-active { background-color: var(--bm-color-surface-container); }
.bm-autosuggest__status {
  margin: 0;
  padding: var(--bm-space-xs) var(--bm-space-sm);
  font-size: var(--bm-fs-label-md);
  color: var(--bm-color-on-surface-variant);
}
.bm-autosuggest__item .ti { color: var(--bm-color-on-surface-variant); font-size: 20px; }
.bm-autosuggest__item.bm-is-current-location .ti { color: var(--bm-color-secondary); }
.bm-autosuggest__item-title { margin: 0; font-size: var(--bm-fs-label-md); color: var(--bm-color-primary); }
.bm-autosuggest__item-sub { margin: 0; font-size: 11px; color: var(--bm-color-on-surface-variant); }

.bm-search-widget__submit {
  margin-top: var(--bm-space-md);
  display: flex;
  justify-content: center;
}
.bm-search-widget__submit .bm-btn {
  padding: 1rem 3.5rem;
  border-radius: var(--bm-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--bm-fs-headline-md);
  box-shadow: 0 20px 30px rgba(253, 143, 26, 0.3);
}
.bm-search-widget__restore {
  margin: 0.75rem 0 0;
  text-align: center;
}
.bm-search-widget__restore-link {
  color: var(--bm-color-on-tertiary-container);
  font-size: var(--bm-fs-label-md);
  font-weight: 600;
  text-decoration: underline;
}
.bm-search-widget__restore-link:hover { text-decoration: underline; font-size: var(--bm-fs-label-md);}
@media (max-width: 767px) {
  .bm-search-widget__submit .bm-btn { width: 100%; padding: 1rem; font-size: var(--bm-fs-label-md); }
}

/* Legacy _search.php submit column (grid auto-placement already gives it a
   sensible ~1/12 width matching the old col-sm-1; this just aligns it with
   the label+value stack of its sibling fields). */
.bm-search-widget__submit-col {
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--bm-space-2xs);
}
.bm-search-widget__submit-col .btn { width: 100%; }

/* Hero strip wrapping the legacy _search.php widget on the hotel-search
   landing page (keeps the existing inline background-color, just adds
   consistent vertical rhythm using design tokens). */
.bm-search-hero-strip {
  padding-top: var(--bm-space-2xl) !important;
  padding-bottom: var(--bm-space-2xl) !important;
}

/* -----------------------------------------------------------------------
   Trending destinations grid
   ----------------------------------------------------------------------- */
.bm-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--bm-space-lg);
  gap: var(--bm-space-sm);
}
.bm-section-head__title { font-size: var(--bm-fs-headline-lg); font-weight: 500; color: var(--bm-color-primary); margin-bottom: 0.25rem; }
.bm-section-head__subtitle { color: var(--bm-color-on-surface-variant); font-size: var(--bm-fs-body-md); }
.bm-section-head__link {
  font-size: var(--bm-fs-label-md);
  font-weight: 600;
  color: var(--bm-color-on-tertiary-container);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  white-space: nowrap;
}
.bm-section-head__link:hover { text-decoration: underline; }

.bm-destinations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bm-space-lg);
}
@media (min-width: 640px) {
  .bm-destinations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bm-destinations-grid { grid-template-columns: repeat(4, 1fr); }
}
.bm-destination-card {
  position: relative;
  border-radius: var(--bm-radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.bm-destination-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--bm-transition-slow);
}
.bm-destination-card:hover img { transform: scale(1.08); }
.bm-destination-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
}
.bm-destination-card__info { position: absolute; bottom: var(--bm-space-md); left: var(--bm-space-md); z-index: 1; color: var(--bm-color-white); }
.bm-destination-card__country { font-size: var(--bm-fs-label-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.15rem; opacity: 0.9; }
.bm-destination-card__name { font-size: var(--bm-fs-headline-md); font-weight: 600; }

/* Horizontal slider: four cards fit the row; extras slide off-screen */
.bm-destinations-grid--scroll {
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  gap: var(--bm-space-lg);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bm-destinations-grid--scroll::-webkit-scrollbar { display: none; }
.bm-destinations-grid--scroll .bm-destination-card {
  flex: 0 0 calc((100% - (3 * var(--bm-space-lg))) / 4);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
}
@media (max-width: 1023px) {
  .bm-destinations-grid--scroll .bm-destination-card {
    flex-basis: calc((100% - var(--bm-space-lg)) / 2);
  }
}
@media (max-width: 767px) {
  .bm-destinations-grid--scroll { gap: var(--bm-space-sm); }
  .bm-destinations-grid--scroll .bm-destination-card { flex-basis: 72%; }
}

.bm-destinations-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.bm-destinations-nav[hidden] { display: none; }
.bm-destinations-nav__btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--bm-color-outline);
  background-color: var(--bm-color-surface-container-lowest);
  color: var(--bm-color-primary);
  box-shadow: var(--bm-shadow-sm);
}
.bm-destinations-nav__btn .ti { font-size: 20px; }
.bm-destinations-nav__btn:disabled { opacity: 0.35; }

/* -----------------------------------------------------------------------
   Handpicked accommodations
   ----------------------------------------------------------------------- */
.bm-accommodations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bm-space-lg);
}
@media (min-width: 768px) {
  .bm-accommodations-grid { grid-template-columns: repeat(3, 1fr); }
}

/* One row: three cards fit; extras slide off-screen */
.bm-accommodations-grid--scroll {
  display: flex;
  flex-wrap: nowrap;
  grid-template-columns: none;
  overflow-x: auto;
  gap: var(--bm-space-lg);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bm-accommodations-grid--scroll::-webkit-scrollbar { display: none; }
.bm-accommodations-grid--scroll .bm-hotel-promo-card {
  flex: 0 0 calc((100% - (2 * var(--bm-space-lg))) / 3);
  scroll-snap-align: start;
  height: auto;
}
@media (max-width: 1023px) {
  .bm-accommodations-grid--scroll .bm-hotel-promo-card {
    flex-basis: calc((100% - var(--bm-space-lg)) / 2);
  }
}
@media (max-width: 767px) {
  .bm-accommodations-grid--scroll { gap: var(--bm-space-sm); }
  .bm-accommodations-grid--scroll .bm-hotel-promo-card { flex-basis: 85%; }
}

.bm-hotel-promo-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  
  border-radius: 1rem;
  background: #fff;
  
}
.bm-hotel-promo-card__media {
  display: block;
  height: 16.5rem;
  position: relative;
  overflow: hidden;
  
}
.bm-hotel-promo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--bm-transition-slow); }
.bm-hotel-promo-card:hover .bm-hotel-promo-card__media img { transform: scale(1.05); }
.bm-hotel-promo-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--bm-color-secondary-container);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  border-radius: 0.35rem;
}

.bm-hotel-promo-card__body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bm-hotel-promo-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.bm-hotel-promo-card__name {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--bm-color-on-surface);
}
.bm-hotel-promo-card__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  color: var(--bm-color-secondary-container);
  font-weight: 700;
  font-size: 0.95rem;
}
.bm-hotel-promo-card__rating .ti { font-size: 15px; }
.bm-hotel-promo-card__location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--bm-color-tertiary-text);
  font-size: 0.975rem;
  margin: 0.4rem 0 0.85rem;
}
.bm-hotel-promo-card__location .ti { font-size: 15px; color:var(--bm-color-tertiary-text); }
.bm-hotel-promo-card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.bm-hotel-promo-card__tags .bm-badge {
  border-radius: 0.2rem;
  border-color: #e5e7eb;
  color: #4b5563;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
}
.bm-hotel-promo-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid #eef0f4;
}
.bm-hotel-promo-card__price-label { font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.15rem; }
.bm-hotel-promo-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bm-color-secondary-container);
}
.bm-hotel-promo-card__price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: #9ca3af;
}
.bm-hotel-promo-card__book {
  flex-shrink: 0;
  background-color: var(--bm-color-secondary-container);
  color: #fff;
  border-radius: 0.55rem;
  padding: 0.7rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: none;
}
.bm-hotel-promo-card__book:hover {
  background-color: #e07d12;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}

/* -----------------------------------------------------------------------
   Trust / confidence section
   ----------------------------------------------------------------------- */
.bm-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--bm-space-xl);
  text-align: center;
}
@media (min-width: 768px) {
  .bm-trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.bm-trust-item { display: flex; flex-direction: column; align-items: center; }
.bm-trust-item__icon {
  width: 4rem; height: 4rem;
  border-radius: var(--bm-radius-full);
  background-color: var(--bm-color-surface-container-high);
  color: var(--bm-color-on-tertiary-container);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--bm-space-sm);
}
.bm-trust-item__icon .ti { font-size: 32px; }
.bm-trust-item__title { font-size: var(--bm-fs-headline-md); font-weight: 600; color: var(--bm-color-primary); margin-bottom: var(--bm-space-2xs); }
.bm-trust-item__text { color: var(--bm-color-tertiary-text);     line-height: 1.5;
  font-size: 15px;}

/* -----------------------------------------------------------------------
   Mobile: sticky search summary bar (used once a search has been submitted,
   mirrors mobile-search1.html "Jaipur | 25 May - 26 May" pattern)
   ----------------------------------------------------------------------- */
.bm-search-summary-bar {
  display: none;
}
@media (max-width: 767px) {
  .bm-search-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 4rem;
    z-index: var(--bm-z-sticky);
    background-color: var(--bm-color-surface-container-lowest);
    box-shadow: var(--bm-shadow-sm);
    border-bottom: 1px solid var(--bm-color-outline-variant);
    padding: var(--bm-space-2xs) var(--bm-space-sm);
  }
}
.bm-search-summary-bar__left { display: flex; align-items: center; gap: var(--bm-space-xs); }
.bm-search-summary-bar__title { font-size: var(--bm-fs-label-md); font-weight: 700; color: var(--bm-color-on-surface); }
.bm-search-summary-bar__sub { font-size: 12px; color: var(--bm-color-on-surface-variant); }

.bm-filter-chip-row {
  display: none;
}
@media (max-width: 767px) {
  .bm-filter-chip-row {
    display: flex;
    gap: var(--bm-space-2xs);
    padding: var(--bm-space-2xs) var(--bm-space-sm);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .bm-filter-chip-row::-webkit-scrollbar { display: none; }
}
.bm-hotel-city-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bm-space-3xs);
}
.bm-hotel-city-link {
  font-size: var(--bm-fs-label-xss);
  font-weight: 400;
  color: var(--bm-color-primary);
  text-decoration: none;

}
.bm-hotel-city-link:hover {
  text-decoration: none;
  font-size: var(--bm-fs-label-xss);
}

/* Homepage CMS popup. Overrides the legacy #hmpgppmodal rules in site.css. */
#hmpgppmodal {
  z-index: 1050;
  font-family: var(--bm-font-family);
  background: rgba(19, 11, 11, 0.55);
}
#hmpgppmodal.modal.in {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem 1.5rem;
  overflow: hidden;
}
body.bm-home-popup-open .modal-backdrop {
  opacity: 0;
}
#hmpgppmodal .modal-dialog {
  width: min(720px, 100%);
  max-width: 100%;
  margin: 0;
  overflow: visible;
  text-align: left;
}
#hmpgppmodal.fade .modal-dialog {
  transform: translateY(16px);
  transition: transform 0.28s ease;
}
#hmpgppmodal.fade.in .modal-dialog {
  transform: translateY(0);
}
#hmpgppmodal .modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: none;
  border-radius: 16px;
  background: var(--bm-color-white);
  box-shadow: 0 18px 50px rgba(11, 28, 48, 0.28);
}
#hmpgppmodal .modal-header {
  position: static;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
}
#hmpgppmodal .modal-header .close,
#hmpgppmodal .bm-home-popup__close {
  position: absolute;
  top: -46px;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  float: none;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
  opacity: 1;
  cursor: pointer;
}
#hmpgppmodal .modal-header .close:hover,
#hmpgppmodal .modal-header .close:focus {
  color: #111827;
  opacity: 1;
  outline: none;
}
#hmpgppmodal .modal-body {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 8rem);
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}
#hmpgppmodal #hmpopcont {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 1.25rem 1.25rem 0.75rem;
  overflow: hidden;
  color: var(--bm-color-on-surface);
  font-size: var(--bm-fs-body-md);
  line-height: var(--bm-lh-body-md);
  text-align: center;
}
#hmpgppmodal #hmpopcont:has(img) {
  padding: 0;
}
#hmpgppmodal #hmpopcont > * {
  margin-top: 0;
  margin-bottom: 0;
}
#hmpgppmodal #hmpopcont img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 680px);
  margin: 0 auto;
  object-fit: contain;
}
#hmpgppmodal .bm-home-popup__dismiss {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  background: #3d3837;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
#hmpgppmodal .bm-home-popup__dismiss input {
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
}

/* Mobile-only search chrome. Hidden everywhere else so desktop and the
   shared listing/detail bars keep the original field layout. */
.bm-search-field__icon,
.bm-search-field__label-mob,
.bm-near-me,
.bm-near-me-wrap,
.bm-date-full { display: none; }
.bm-near-me-wrap { position: relative; }
.bm-near-me-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 8;
  width: min(240px, 72vw);
  margin: 0;
  padding: 10px 28px 10px 12px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(11, 28, 48, 0.16);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}
.bm-near-me-popup[hidden] { display: none !important; }
.bm-near-me-popup::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  border-width: 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent #fff;
  filter: drop-shadow(0 -1px 0 #e4e4e4);
}
.bm-near-me-popup__text { margin: 0; }
.bm-near-me-popup__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5c5c5c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.bm-search-field--destination.bm-near-me-open { z-index: 8; overflow: visible; }
.bm-search-field--destination.bm-near-me-open .bm-autosuggest,
.bm-search-field--destination.bm-near-me-open:focus-within .bm-autosuggest { display: none; }
.bm-search-field__body { display: contents; }

@media (max-width: 767px) {
  .bm-search-page .bm-search-hero {
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
  }
  .bm-search-page .bm-search-hero__media,
  .bm-search-page .bm-search-hero__overlay,
  .bm-search-page .bm-search-hero__title,
  .bm-search-page .bm-search-hero__subtitle,
  .bm-search-page .bm-search-widget__tabs { display: none; }
  .bm-search-page .bm-search-hero__content {
    height: auto;
    padding: 12px 12px 0;
  }
  .bm-search-page .bm-search-widget {
    margin-top: 0px;
    transform: none;
    overflow: visible;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    box-shadow: none;
    background: #fff;
  }
  .bm-search-page .bm-search-widget__fields { padding: 12px; }
  .bm-search-page .bm-search-widget__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .bm-search-page .bm-search-field {
    grid-column: auto;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
  }
  .bm-search-page .bm-search-field--destination,
  .bm-search-page .bm-search-field--guests { grid-column: 1 / -1; background-color:#f7f7f7;}
  .bm-search-page .bm-search-field--destination,
  .bm-search-page .bm-search-field--date {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: center;
    background-color:#f7f7f7;
  }
  .bm-search-page .bm-search-field__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    font-size: 20px;
    line-height: 1;
  }
  .bm-search-page .bm-search-field__body {
    display: block;
    min-width: 0;
  }
  .bm-search-page .bm-search-field__label-desk { display: none; }
  .bm-search-page .bm-search-field__label-mob { display: inline; }
  .bm-search-page .bm-search-field__label {
    margin-bottom: 2px;
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
  }
  .bm-search-page .bm-search-field__value,
  .bm-search-page .bm-search-field__value input,
  .bm-search-page .bm-date-full {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
  }
  .bm-search-page .bm-date-day,
  .bm-search-page .bm-date-my,
  .bm-search-page .bm-search-field--date .bm-search-field__sub { display: none; }
  .bm-search-page .bm-date-full { display: block; white-space: nowrap; }
  .bm-search-page .bm-near-me-wrap { display: block; }
  .bm-search-page .bm-near-me {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bm-color-secondary-container);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
  }
  .bm-search-page .bm-guests-trigger {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
  }
  .bm-search-page .bm-search-widget__submit { margin-top: 12px; }
  .bm-search-page .bm-search-widget__submit .bm-btn {
    width: 100%;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    box-shadow: none;
    letter-spacing: 0.08em;
  }
  .bm-section-head__title {
    font-size: var(--bm-fs-headline-sm);
  }
  .bm-section-head__subtitle {
    font-size: var(--bm-fs-label-sm);
}
.bm-trust-item__title {
  font-size: var(--bm-fs-headline-sm);
}
.bm-trust-item__text {
  font-size: var(--bm-fs-label-sm);
}
}