/* ============================================================================
   Winmaxi Hub — aggregator shopfront (home page only, loaded via page_styles).
   Booking-site layout on top of the winmaxitravels.com palette already defined
   in public.css: the search panel straddles the hero, properties are compared
   as full-width rows rather than tiles, and the page ends in browse links.
   Every colour here is one of the --wm-* tokens, so a platform rebrand still
   repaints this page.
   ========================================================================== */

/* --- hero ---------------------------------------------------------------- */
.otaHero {
  position: relative;
  min-height: clamp(340px, 42vw, 460px);
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--wm-blue-dark), var(--wm-blue) 55%, var(--wm-blue-tint));
  padding: 56px 0 96px;
  overflow: hidden;
}
.otaHero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.otaHero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 28, 54, .58) 0%, rgba(12, 28, 54, .38) 45%, rgba(12, 28, 54, .72) 100%);
}
.otaHero-inner { position: relative; text-align: center; }
.otaHero h1 {
  color: #fff; font-weight: 300; font-size: clamp(28px, 4vw, 46px); line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}
.otaHero p {
  color: #eaf1fb; font-size: clamp(15px, 1.5vw, 18px); margin: 12px auto 0; max-width: 700px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.otaHero-stats {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 30px; margin-top: 22px; color: #dbe7f8; font-size: 14px;
}
.otaHero-stats b {
  font-family: 'Karla', sans-serif; font-size: 21px; font-weight: 700; color: #fff; margin-right: 6px;
}

/* --- search panel -------------------------------------------------------- */
.searchWrap { position: relative; z-index: 6; margin-top: -72px; }
.searchPanel {
  background: #fff; border-radius: 12px; border: 1px solid var(--wm-border);
  box-shadow: 0 14px 44px rgba(12, 28, 54, .18);
  padding: 4px 18px 18px;
}

.searchTabs {
  display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--wm-border);
  scrollbar-width: none;
}
.searchTabs::-webkit-scrollbar { display: none; }
.st-tab {
  flex: 0 0 auto; background: none; border: 0; cursor: pointer;
  font-family: 'Karla', sans-serif; font-size: 15px; color: #7a7a7a;
  padding: 14px 14px 11px; border-bottom: 3px solid transparent;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.st-tab:hover { color: var(--wm-blue); }
.st-tab.is-active { color: var(--wm-blue); font-weight: 700; border-bottom-color: var(--wm-blue); }
.st-count {
  background: var(--wm-panel); color: var(--wm-text); border-radius: 999px;
  font-size: 11.5px; font-weight: 700; padding: 1px 7px;
}
.st-tab.is-active .st-count { background: var(--wm-blue); color: #fff; }

.searchForm {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.25fr auto;
  gap: 10px; padding-top: 16px; align-items: stretch;
}
.sf-field {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--wm-border-2); border-radius: 8px; padding: 9px 13px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.sf-field:focus-within { border-color: var(--wm-blue); box-shadow: 0 0 0 3px rgba(21, 81, 161, .12); }
.sf-field label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--wm-text);
}
.sf-icon { width: 13px; height: 13px; color: var(--wm-blue); flex: 0 0 auto; }
.sf-field input[type=text], .sf-field input[type=date] {
  border: 0; padding: 0; background: transparent; width: 100%;
  font-family: 'Karla', sans-serif; font-size: 16px; font-weight: 700; color: var(--wm-ink);
}
.sf-field input:focus { outline: none; }
.sf-field input::placeholder { font-weight: 400; color: #a9a9a9; }

.sf-guests-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font-family: 'Karla', sans-serif; font-size: 16px; font-weight: 700; color: var(--wm-ink);
}
.sf-guests-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-caret { width: 16px; height: 16px; color: var(--wm-text); flex: 0 0 auto; transition: transform .2s; }
.sf-guests-btn[aria-expanded="true"] .sf-caret { transform: rotate(180deg); }

.sf-guests-pop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 290px; z-index: 30;
  background: #fff; border: 1px solid var(--wm-border-2); border-radius: 10px;
  box-shadow: 0 12px 34px rgba(12, 28, 54, .2); padding: 6px 16px 14px;
}
.sf-guests-pop[hidden] { display: none; }
.sf-step {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--wm-border);
}
.sf-step-label b { display: block; font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; color: var(--wm-ink); }
.sf-step-label small { font-size: 12px; color: var(--wm-text); }
.sf-stepper {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--wm-border-2); border-radius: 999px; padding: 3px;
}
.sf-step-btn {
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--wm-panel); color: var(--wm-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.sf-step-btn:hover { background: var(--wm-blue); color: #fff; }
.sf-step-btn:disabled { opacity: .4; cursor: not-allowed; background: var(--wm-panel); color: var(--wm-text); }
.sf-step-input {
  width: 36px; text-align: center; border: 0; background: transparent;
  font-family: 'Karla', sans-serif; font-size: 15px; font-weight: 700; color: var(--wm-ink);
  -moz-appearance: textfield;
}
.sf-step-input::-webkit-outer-spin-button, .sf-step-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sf-step-input:focus { outline: none; }
.sf-guests-done {
  width: 100%; margin-top: 12px; border: 0; border-radius: 6px; cursor: pointer; padding: 9px;
  background: var(--wm-blue); color: #fff; font-family: 'Karla', sans-serif; font-weight: 700; font-size: 14px;
}
.sf-guests-done:hover { background: var(--wm-blue-dark); }

.sf-submit {
  border: 0; border-radius: 8px; cursor: pointer; padding: 0 30px;
  background: var(--wm-green); color: #fff;
  font-family: 'Karla', sans-serif; font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .25s;
}
.sf-submit:hover { background: var(--wm-amber); }
.sf-submit-icon { flex: 0 0 auto; }

.sf-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; }
.sf-quick-label { font-size: 12.5px; font-weight: 700; color: var(--wm-text); text-transform: uppercase; letter-spacing: .04em; }
.sf-quick-chip {
  border: 1px solid var(--wm-border-2); border-radius: 999px; padding: 5px 13px;
  font-size: 13px; color: var(--wm-ink);
}
.sf-quick-chip:hover { background: var(--wm-blue); border-color: var(--wm-blue); color: #fff; }

/* --- assurances ---------------------------------------------------------- */
.assureStrip { background: #fff; border-bottom: 1px solid var(--wm-border); margin-top: 30px; }
.assure-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px;
  padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; color: var(--wm-text);
}
.assure-inner span { display: flex; align-items: flex-start; gap: 10px; }
.assure-inner .as-text { display: block; }
.assure-inner b { display: block; color: var(--wm-ink); font-family: 'Lato', sans-serif; font-size: 14px; }
.as-icon { width: 19px; height: 19px; color: var(--wm-blue); flex: 0 0 auto; margin-top: 1px; }

/* --- property rows ------------------------------------------------------- */
.stayCard {
  display: grid; grid-template-columns: 280px 1fr 218px; gap: 20px;
  border: 1px solid var(--wm-border); border-radius: 10px; background: #fff;
  padding: 16px; margin-bottom: 16px; transition: box-shadow .25s, border-color .25s;
}
.stayCard:hover { box-shadow: 0 8px 26px rgba(12, 28, 54, .12); border-color: var(--wm-border-2); }

.sc-gallery { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-main {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #dfe9f6, #b9cfec);
}
.sc-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-main-empty { display: flex; align-items: center; justify-content: center; color: var(--wm-blue-tint); }
.sc-photo-count {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0, 0, 0, .58); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}
.sc-pc-icon { flex: 0 0 auto; }
.sc-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sc-thumb {
  padding: 0; background: none; cursor: pointer; border: 2px solid transparent; border-radius: 6px;
  overflow: hidden; aspect-ratio: 4 / 3; opacity: .72; transition: opacity .2s, border-color .2s;
}
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-thumb:hover { opacity: 1; }
.sc-thumb.is-active { opacity: 1; border-color: var(--wm-blue); }

.sc-body { min-width: 0; }
.sc-title {
  font-family: 'Lato', sans-serif; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px;
}
.sc-title a { color: var(--wm-ink); }
.sc-title a:hover { color: var(--wm-blue); }
.starRow { display: inline-flex; gap: 1px; color: var(--wm-amber); }
.star-icon { fill: currentColor; }
.sc-loc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; margin-bottom: 11px; }
.sc-loc-icon { color: var(--wm-blue); flex: 0 0 auto; }
.sc-type {
  background: var(--wm-panel); color: var(--wm-blue); border-radius: 3px; padding: 2px 8px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.sc-amenities { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.sc-amenities li {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--wm-border-2); border-radius: 4px; padding: 4px 9px;
  font-size: 12.5px; color: var(--wm-ink);
}
.sc-am-icon { color: var(--wm-blue); flex: 0 0 auto; }
.sc-am-more { border-style: dashed !important; color: var(--wm-blue) !important; font-weight: 700; }
.sc-desc { font-size: 13.5px; margin-bottom: 11px; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sc-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--wm-text); }
.sc-tag.ok { color: var(--wm-green-dark); font-weight: 700; }
.sc-tag-icon { flex: 0 0 auto; }

.sc-rail {
  border-left: 1px solid var(--wm-border); padding-left: 18px;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right;
}
.sc-from { font-size: 12px; color: var(--wm-text); }
.sc-price { font-family: 'Karla', sans-serif; font-size: 30px; font-weight: 700; color: var(--wm-blue); line-height: 1.1; }
.sc-per { font-size: 11.5px; color: var(--wm-text); margin-bottom: 12px; }
.sc-cta { width: 100%; padding: 11px 16px; }
.sc-detail { font-size: 12.5px; margin-top: 9px; display: inline-flex; align-items: center; gap: 2px; }
.sc-detail-icon { flex: 0 0 auto; }
.gb-icon { vertical-align: -3px; }

/* --- direct-booking band ------------------------------------------------- */
.offerBand {
  background: linear-gradient(135deg, var(--wm-blue-dark), var(--wm-blue) 58%, var(--wm-sky));
  color: #fff; padding: 40px 0;
}
.offer-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.offer-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 4px 13px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.ob-icon { flex: 0 0 auto; }
.offerBand h3 { color: #fff; font-size: clamp(21px, 2.6vw, 29px); margin: 12px 0 6px; }
.offerBand p { color: #dbe7f8; font-size: 14.5px; max-width: 640px; }
.offer-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.offer-cta .getBtn { display: inline-flex; align-items: center; gap: 8px; }

/* --- destinations -------------------------------------------------------- */
.destGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 16px; }
.destTile {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--wm-blue-dark), var(--wm-blue-tint));
}
.destTile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.destTile:hover img { transform: scale(1.07); }
.dt-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 48, .86) 0%, rgba(10, 25, 48, .1) 62%);
}
.dt-text { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.dt-text b { display: block; font-family: 'Karla', sans-serif; font-size: 19px; font-weight: 700; }
.dt-text small { font-size: 12.5px; color: #dbe7f8; }

/* --- property types ------------------------------------------------------ */
.typeGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 14px; }
.typeTile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  border: 1px solid var(--wm-border); border-radius: 10px; padding: 22px 14px; background: #fff;
  color: var(--wm-ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.typeTile:hover { border-color: var(--wm-blue); box-shadow: 0 6px 20px rgba(12, 28, 54, .1); transform: translateY(-2px); color: var(--wm-ink); }
.tt-icon { color: var(--wm-blue); }
.typeTile b { font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 700; }
.typeTile small { font-size: 12.5px; color: var(--wm-text); }

/* --- why book ------------------------------------------------------------ */
.whyGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.whyCard { border: 1px solid var(--wm-border); border-radius: 10px; background: #fff; padding: 22px 20px; }
.why-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 13px;
  background: rgba(21, 81, 161, .09); color: var(--wm-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.whyCard h5 { font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.whyCard p { font-size: 13.5px; }

/* --- browse links -------------------------------------------------------- */
.linkFarm { padding-top: 40px; }
.linkBlock {
  border: 1px solid var(--wm-border); border-radius: 10px; background: #fff;
  padding: 18px 20px; margin-bottom: 14px;
}
.linkBlock h4 { font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 13px; }
.lb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px 20px; font-size: 13px; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .searchForm { grid-template-columns: 1fr 1fr; }
  .sf-dest, .sf-submit { grid-column: span 2; }
  .sf-submit { padding: 14px 30px; }
  .stayCard { grid-template-columns: 240px 1fr; }
  .sc-rail {
    grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--wm-border); padding-left: 0;
    padding-top: 14px; flex-direction: row; align-items: center; justify-content: space-between;
    text-align: left; flex-wrap: wrap; gap: 10px;
  }
  .sc-per { margin-bottom: 0; }
  .sc-cta { width: auto; }
  .sc-detail { margin-top: 0; }
  .assure-inner { grid-template-columns: repeat(2, 1fr); }
  .lb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .otaHero { padding: 44px 0 80px; }
  .searchWrap { margin-top: -56px; }
  .searchPanel { padding: 2px 12px 14px; }
  .searchForm { grid-template-columns: 1fr; }
  .sf-dest, .sf-submit { grid-column: span 1; }
  .sf-guests-pop { left: auto; right: 0; }
  .stayCard { grid-template-columns: 1fr; gap: 14px; }
  .sc-rail { justify-content: flex-start; }
  .sc-cta { flex: 1 1 100%; text-align: center; }
  .assure-inner { grid-template-columns: 1fr; }
  .lb-grid { grid-template-columns: 1fr; }
  .destGrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .offer-cta { width: 100%; }
  .offer-cta .getBtn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================================
   Browse pages — filter sidebar, result toolbar, applied-filter chips.
   ========================================================================== */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; padding: 16px 0 0; color: var(--wm-text); }
.crumbs span[aria-hidden] { color: var(--wm-border-2); }
.crumbs > span:not([aria-hidden]) { color: var(--wm-ink); }

.listingLayout { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; padding: 20px 0 60px; }

/* --- sidebar ------------------------------------------------------------- */
.filterPanel {
  border: 1px solid var(--wm-border); border-radius: 10px; background: #fff;
  position: sticky; top: 74px; max-height: calc(100vh - 92px); overflow-y: auto;
}
.fp-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--wm-border); position: sticky; top: 0; background: #fff; z-index: 2;
}
.fp-head h2 {
  font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 700; color: var(--wm-ink);
  display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
}
.fp-head-icon { color: var(--wm-blue); }
.fp-clear { font-size: 12.5px; font-weight: 700; }
.fp-close { display: none; background: none; border: 0; cursor: pointer; color: var(--wm-text); padding: 2px; }

.fp-group { padding: 14px 16px; border-bottom: 1px solid var(--wm-border); }
.fp-group:last-of-type { border-bottom: 0; }
.fp-group h3 {
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 700; color: var(--wm-ink);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.fp-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.fp-scroll { max-height: 250px; overflow-y: auto; padding-right: 4px; }

.fp-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 8px; border-radius: 6px; font-size: 13.5px; color: var(--wm-ink);
}
.fp-link:hover { background: var(--wm-panel); color: var(--wm-blue); }
.fp-link.is-on { background: var(--wm-blue); color: #fff; font-weight: 700; }
.fp-link.is-on .fp-count { background: rgba(255, 255, 255, .25); color: #fff; }

.fp-check {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px;
  font-size: 13.5px; color: var(--wm-ink); cursor: pointer;
}
.fp-check:hover { background: var(--wm-panel); }
.fp-check input { width: 16px; height: 16px; accent-color: var(--wm-blue); flex: 0 0 auto; cursor: pointer; }
.fp-check-label { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; }
.fp-check.is-empty { opacity: .5; }
.fp-am-icon { color: var(--wm-blue); flex: 0 0 auto; }
.fp-count {
  background: var(--wm-panel); color: var(--wm-text); border-radius: 999px;
  font-size: 11.5px; font-weight: 700; padding: 1px 8px; flex: 0 0 auto;
}

.fp-apply {
  display: none; width: calc(100% - 32px); margin: 0 16px 16px; padding: 11px;
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--wm-green); color: #fff; font-family: 'Karla', sans-serif; font-weight: 700; font-size: 15px;
}
.no-js .fp-apply { display: block; }

/* --- result toolbar ------------------------------------------------------ */
.listingBar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.listingTitle { font-family: 'Karla', sans-serif; font-size: clamp(21px, 2.5vw, 27px); font-weight: 700; color: var(--wm-ink); }
.listingCount { font-size: 13px; color: var(--wm-text); margin-top: 3px; }
.listingTools { display: flex; align-items: center; gap: 10px; }

.filterToggle {
  display: none; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--wm-border-2); border-radius: 8px; background: #fff; padding: 9px 14px;
  font-family: 'Karla', sans-serif; font-size: 14px; font-weight: 700; color: var(--wm-ink);
}
.ft-icon { color: var(--wm-blue); }
.ft-badge { background: var(--wm-blue); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }

.sortBox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wm-text); }
.sortBox select {
  border: 1px solid var(--wm-border-2); border-radius: 8px; padding: 9px 12px; background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--wm-ink); cursor: pointer;
}
.sortBox select:focus { outline: 2px solid var(--wm-blue); outline-offset: -1px; }

.chipRow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chipOff {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--wm-panel); border: 1px solid var(--wm-border-2); border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; color: var(--wm-ink);
}
.chipOff:hover { background: var(--wm-blue); border-color: var(--wm-blue); color: #fff; }
.chip-x { flex: 0 0 auto; }

.noResults { text-align: center; border: 1px solid var(--wm-border); border-radius: 10px; background: #fff; padding: 46px 24px; }
.nr-icon { color: var(--wm-border-2); margin-bottom: 10px; }
.noResults h3 { font-family: 'Lato', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.noResults p { font-size: 14px; max-width: 460px; margin: 0 auto; }
.noResults .getBtn, .noResults .ghostBtn { margin: 0 4px; }

.relatedBlock { margin-top: 26px; }

/* ============================================================================
   Property landing page.
   ========================================================================== */

.propHead { border-bottom: 1px solid var(--wm-border); padding: 14px 0 20px; }
.ph-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.propHead h1 {
  font-family: 'Karla', sans-serif; font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; color: var(--wm-ink);
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
}
.ph-loc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-top: 7px; }
.ph-rail { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.ph-rail .getBtn { margin-top: 8px; }

.propGallery { padding-top: 18px; }

.propBody { padding-top: 34px; }
.propLayout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.propMain { min-width: 0; }
.prop-desc { font-size: 14.5px; }
.propMain .roomSectionTitle:first-child { margin-top: 0; }

.roomRow {
  display: grid; grid-template-columns: 170px 1fr 190px; gap: 18px; align-items: center;
  border: 1px solid var(--wm-border); border-radius: 10px; background: #fff; padding: 14px; margin-bottom: 12px;
}
.rr-photo {
  aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #dfe9f6, #b9cfec);
  display: flex; align-items: center; justify-content: center; color: var(--wm-blue-tint);
}
.rr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rr-body h3 { font-family: 'Lato', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.rr-specs { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: 12.5px; margin-bottom: 7px; }
.rr-specs span { display: inline-flex; align-items: center; gap: 6px; }
.rr-icon { color: var(--wm-blue); flex: 0 0 auto; }
.rr-desc { font-size: 13.5px; }
.rr-rail { display: flex; flex-direction: column; align-items: flex-end; text-align: right; border-left: 1px solid var(--wm-border); padding-left: 16px; }
.rr-price { font-family: 'Karla', sans-serif; font-size: 23px; font-weight: 700; color: var(--wm-blue); line-height: 1.15; }
.rr-cta { width: 100%; margin-top: 9px; padding: 10px 14px; font-size: 14px; }

.propAside { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 12px; }
.propAside .bookingWidget { position: static; }
.bw-guests span { display: flex; flex-direction: column; gap: 5px; }
.mapLink {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--wm-border-2); border-radius: 8px; padding: 12px; background: #fff;
  font-size: 14px; font-weight: 700;
}
.mapLink:hover { border-color: var(--wm-blue); }
.ml-icon { flex: 0 0 auto; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .listingLayout { grid-template-columns: 1fr; }
  .filterToggle { display: inline-flex; }

  /* The sidebar becomes a drawer rather than a wall of controls above the list. */
  .filterPanel {
    position: fixed; inset: 0 auto 0 0; width: min(330px, 88vw); max-height: none; z-index: 120;
    border-radius: 0; border: 0; border-right: 1px solid var(--wm-border);
    transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(12, 28, 54, .25);
  }
  .filters-open .filterPanel { transform: translateX(0); }
  .fp-close { display: inline-flex; }
  .fp-apply { display: block; }
  .filterScrim {
    position: fixed; inset: 0; background: rgba(12, 28, 54, .45); z-index: 110; border: 0; padding: 0;
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .filters-open .filterScrim { opacity: 1; pointer-events: auto; }
  body.filters-open { overflow: hidden; }

  .propLayout { grid-template-columns: 1fr; }
  .propAside { position: static; }
}
@media (max-width: 680px) {
  .roomRow { grid-template-columns: 1fr; }
  .rr-rail { border-left: 0; border-top: 1px solid var(--wm-border); padding-left: 0; padding-top: 12px; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap; gap: 10px; }
  .rr-cta { width: auto; margin-top: 0; }
  .ph-top { align-items: flex-start; }
  .ph-rail { align-items: flex-start; text-align: left; }
  .listingBar { align-items: flex-start; }
  .listingTools { width: 100%; justify-content: space-between; }
}

/* --- property gallery: adaptive mosaic + lightbox ------------------------- */
.pg-grid { position: relative; display: grid; gap: 8px; height: 400px; }
.pg-tile { display: block; position: relative; overflow: hidden; border-radius: 10px;
           background: linear-gradient(135deg, #dfe9f6, #b9cfec); }
.pg-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pg-tile:hover img { transform: scale(1.04); }
.pg-tile:focus-visible { outline: 3px solid var(--wm-blue, #1551a1); outline-offset: 2px; }
.pg-extra { display: none; }

/* The mosaic reshapes itself around however many photos exist. */
.pg-n1 { grid-template-columns: 1fr; height: 380px; }
.pg-n2 { grid-template-columns: 1fr 1fr; }
.pg-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pg-n3 .pg-main { grid-row: span 2; }
.pg-n4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pg-n4 .pg-main { grid-row: span 2; grid-column: 1; }
.pg-n4 .pg-tile:nth-child(2) { grid-column: 2 / span 2; }
.pg-n5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.pg-n5 .pg-main { grid-row: span 2; }

/* "+3" sits on the last visible tile, the way a photo mosaic usually signals
   that there is more behind it. */
.pg-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
              background: rgba(11, 18, 32, .52); color: #fff; font-size: 26px; font-weight: 700;
              letter-spacing: .02em; pointer-events: none; }

.pg-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
          padding: 9px 15px; border-radius: 8px; border: 1px solid rgba(11, 18, 32, .16);
          background: #fff; color: #1f2937; font: inherit; font-size: 13.5px; font-weight: 600;
          cursor: pointer; box-shadow: 0 3px 12px rgba(11, 18, 32, .18); }
.pg-all:hover { background: #f8fafc; }
.pg-all-icon { width: 15px; height: 15px; }

/* --- lightbox ------------------------------------------------------------ */
/* The backdrop is opaque on the element itself rather than a translucent scrim:
   over a white page even 8% bleed-through left the header and the price card
   legible behind the photo. The scrim stays, but only to catch clicks. */
.pgLightbox { position: fixed; inset: 0; z-index: 400; background: #080c14;
              opacity: 0; transition: opacity .18s ease; }
.pgLightbox.is-open { opacity: 1; }
.pgl-scrim { position: absolute; inset: 0; }
.pgl-shell { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pgl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
           padding: 14px 18px; color: #e5e7eb; position: relative; }
.pgl-count { font-size: 13.5px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pgl-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
             border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.pgl-close:hover { background: rgba(255, 255, 255, .22); }
.pgl-close .icon { width: 20px; height: 20px; }

.pgl-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
             min-height: 0; padding: 0 12px; }
.pgl-figure { margin: 0; max-width: min(1180px, 100%); max-height: 100%; display: flex;
              flex-direction: column; align-items: center; gap: 10px; }
.pgl-img { max-width: 100%; max-height: calc(100vh - 210px); object-fit: contain;
           border-radius: 8px; background: #111827; }
.pgl-cap { color: #cbd5e1; font-size: 13.5px; text-align: center; min-height: 18px; padding: 0 8px; }

.pgl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
           display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
           background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.pgl-nav:hover { background: rgba(255, 255, 255, .26); }
.pgl-nav.prev { left: 14px; }
.pgl-nav.next { right: 14px; }
.pgl-nav[hidden] { display: none; }

/* Centred so the first thumbnail does not land under the support-chat bubble
   that sits in the bottom-left corner at a z-index we do not control. */
.pgl-strip { display: flex; justify-content: center; gap: 8px; overflow-x: auto;
             padding: 14px 18px 18px; scrollbar-width: thin; }
.pgl-strip::-webkit-scrollbar { height: 6px; }
.pgl-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 3px; }
.pgl-thumb { flex: 0 0 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 6px;
             overflow: hidden; background: #1f2937; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.pgl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgl-thumb:hover { opacity: .85; }
.pgl-thumb.is-active { opacity: 1; border-color: #fff; }

@media (max-width: 900px) {
  .pg-grid { height: 320px; }
  .pg-n4, .pg-n5 { grid-template-columns: 1.7fr 1fr; }
  .pg-n4 .pg-tile:nth-child(2) { grid-column: 2; }
  /* Beyond the first three the mosaic gets fiddly; the rest live in the
     lightbox, which the "View all" button reaches. */
  .pg-n4 .pg-tile:nth-child(n+4):not(.pg-main),
  .pg-n5 .pg-tile:nth-child(n+4):not(.pg-main) { display: none; }
  .pg-n4 .pg-tile:nth-child(3) .pg-overlay,
  .pg-n5 .pg-tile:nth-child(3) .pg-overlay { display: flex; }
}

@media (max-width: 620px) {
  .pg-grid { height: 250px; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
  .pg-grid .pg-tile:not(.pg-main) { display: none; }
  .pg-n1, .pg-n2, .pg-n3, .pg-n4, .pg-n5 { grid-template-columns: 1fr; }
  .pg-n3 .pg-main, .pg-n4 .pg-main, .pg-n5 .pg-main { grid-row: auto; grid-column: auto; }
  .pg-all { right: 10px; bottom: 10px; padding: 8px 13px; font-size: 13px; }
  .pgl-img { max-height: calc(100vh - 190px); }
  .pgl-nav { width: 40px; height: 40px; }
  .pgl-thumb { flex: 0 0 62px; height: 44px; }
}

/* --- live price and stock for the searched dates -------------------------- */
.ph-stock { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
            font-size: 12.5px; font-weight: 600; color: #15803d; }
.ph-stock.is-tight { color: #b45309; }
.ph-stock.is-out { color: #b91c1c; }
.ph-stock-icon { width: 14px; height: 14px; flex: none; }

.roomsHead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rooms-forstay { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 4px;
                 font-size: 13px; color: var(--muted, #6b7280); }
.rf-icon { width: 15px; height: 15px; flex: none; color: var(--wm-blue, #1551a1); }
.rooms-change { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--wm-blue, #1551a1); }

.stayNotice { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 16px;
              padding: 11px 14px; border-radius: 9px; font-size: 13.5px; line-height: 1.5; }
.stayNotice.is-out { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.stayNotice.is-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.sn-icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.rr-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.rr-flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
           font-size: 11.5px; font-weight: 600; background: #f3f4f6; color: #4b5563; }
.rr-flag.ok { background: #f0fdf4; color: #15803d; }
.rr-flag.tight { background: #fffbeb; color: #b45309; }
.rr-flag.out { background: #fef2f2; color: #b91c1c; }
.rr-flag.season { background: #eef4fb; color: var(--wm-blue, #1551a1); }
.rrf-icon { width: 12px; height: 12px; flex: none; }

.rr-total { display: block; margin: 2px 0 8px; font-size: 12.5px; color: var(--muted, #6b7280);
            font-variant-numeric: tabular-nums; line-height: 1.35; }
.rr-total small { font-size: 11px; }
.rr-price.is-muted { color: #9ca3af; text-decoration: line-through; }

/* A sold-out row stays on the page — the product is still worth seeing — but
   stops competing for attention with the rows that can actually be booked. */
.roomRow.is-sold { opacity: .72; background: #fcfcfd; }
.roomRow.is-sold .rr-photo img { filter: grayscale(.55); }
.roomRow.is-tootight { background: #fffdf7; }

.bw-out { color: #b91c1c; }

.sc-tag.ok { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.sc-tag.tight { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.sc-tag.out { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.sc-soldout { color: #b91c1c; font-weight: 700; font-size: 15px; }

.empty-note { margin: 4px 0 18px; padding: 14px 16px; border: 1px dashed var(--border-card, #e5e7eb);
              border-radius: 9px; background: #fafafa; color: var(--muted, #6b7280); font-size: 13.5px; line-height: 1.55; }
.empty-note a { color: var(--wm-blue, #1551a1); font-weight: 600; }

@media (max-width: 700px) {
  .roomsHead { flex-direction: column; gap: 2px; }
  .rr-total { margin-bottom: 6px; }
}
.fp-note { margin: -2px 0 8px; font-size: 11.5px; line-height: 1.45; color: var(--muted, #6b7280); }
