/* ==========================================================================
   WOW Hotels — website app pages (search results, hotel details, checkout,
   bookings, account, support). Builds on the tokens defined in theme.css.
   ========================================================================== */
.wh-muted { color: var(--wh-muted); }
.wh-subhead { font-size: 16px; font-weight: 800; margin: 18px 0 6px !important; }
.wh-crumbs { padding: 24px 0 12px; font-size: 14px; color: var(--wh-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wh-crumbs a { color: var(--wh-ink-2) !important; font-weight: 600; }
.wh-crumbs i { font-size: 10px; }
.wh-sticky { position: sticky; top: calc(var(--wh-header-h) + 16px); }

/* Results search bar */
.wh-results-bar { background: var(--wh-ink); padding: 18px 0; }
.wh-search--compact { margin-top: 0; max-width: none; box-shadow: none; }
.wh-search--compact .wh-btn { min-height: 54px; }
.wh-ac { position: relative; }
.wh-ac__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: #fff; border-radius: 14px;
  box-shadow: var(--wh-shadow-lg); padding: 6px; margin: 0; max-height: 360px; overflow: auto; min-width: 280px;
}
.wh-ac__list button { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 10px; font-family: var(--wh-font); }
.wh-ac__list button:hover { background: var(--wh-yellow-50); }
.wh-ac__list i { color: var(--wh-muted); width: 16px; }
.wh-ac__list b { display: block; font-size: 15px; color: var(--wh-ink); }
.wh-ac__list small { color: var(--wh-muted); font-size: 12.5px; }
.wh-occ { position: relative; }
.wh-occ__toggle { border: 0; background: none; padding: 0; text-align: left; font: 600 16px/1.4 var(--wh-font); color: var(--wh-ink); }
.wh-occ__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 280px; background: #fff; border-radius: 16px;
  box-shadow: var(--wh-shadow-lg); padding: 14px 16px; font-family: var(--wh-font);
}
.wh-occ__panel small { color: var(--wh-muted); font-size: 12px; display: block; margin-top: 6px; }
.wh-occ__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-weight: 600; font-size: 15px; }
.wh-stepper { display: inline-flex; align-items: center; gap: 12px; }
.wh-stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--wh-line); background: #fff; font-size: 18px; line-height: 1; }
.wh-stepper button:disabled { opacity: .35; }
.wh-stepper output { min-width: 18px; text-align: center; font-weight: 800; }

/* Results layout */
.wh-results { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-top: 28px; align-items: start; }
.wh-filters { background: var(--wh-surface); border: 1px solid var(--wh-line); border-radius: var(--wh-radius); padding: 20px; position: sticky; top: calc(var(--wh-header-h) + 16px); }
.wh-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wh-filters__head h2 { font-size: 18px; font-weight: 800; margin: 0; }
.wh-filter { padding: 14px 0; border-top: 1px solid var(--wh-line); }
.wh-filter h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--wh-muted); margin-bottom: 10px !important; }
.wh-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; margin: 0; }
.wh-check input { width: 18px; height: 18px; accent-color: var(--wh-ink); flex-shrink: 0; }
.wh-results__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.wh-results__head h1 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.wh-results__head p { color: var(--wh-muted); margin-top: 4px !important; font-size: 14.5px; }
.wh-results__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.wh-hotel__heart { position: absolute; top: 12px; right: 12px; z-index: 2; }
.wh-deal {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: var(--wh-yellow); color: var(--wh-ink);
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wh-hotel .wh-price strong { white-space: nowrap; }
.wh-hotel__foot { flex-wrap: wrap; }
@media (max-width: 991.98px) {
  .wh-results { grid-template-columns: 1fr; }
  .wh-filters { display: none; position: fixed; inset: 0; z-index: 1060; border-radius: 0; overflow: auto; }
  .wh-filters.is-open { display: block; }
}

/* Hotel details */
.wh-hd__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.wh-hd__head h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.wh-hd__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; color: var(--wh-ink-2); font-size: 14.5px; }
.wh-hd__actions { display: flex; gap: 10px; }
.wh-hd__actions .wh-heart { border: 1px solid var(--wh-line); }
.wh-gallery { display: grid; gap: 8px; border-radius: 22px; overflow: hidden; height: 440px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.wh-gallery__item { display: block; overflow: hidden; background: #EEE; }
.wh-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.wh-gallery__item:hover img { transform: scale(1.04); }
.wh-gallery__item.is-main { grid-row: 1 / 3; }
.wh-gallery--1 { grid-template-columns: 1fr; }
.wh-gallery--2 { grid-template-columns: 2fr 1fr; }
.wh-gallery--2 .wh-gallery__item:not(.is-main) { grid-row: 1 / 3; }
.wh-gallery--3 { grid-template-columns: 2fr 1fr; }
.wh-gallery--4 .wh-gallery__item:last-child { grid-column: 2 / 4; }
.wh-hd__layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 28px; align-items: start; }
.wh-hd__main > .wh-panel + .wh-panel { margin-top: 20px; }
/* Stretch the side column to the row height so its sticky price card stays in view while scrolling. */
.wh-hd__side { align-self: stretch; }
.wh-hd__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 14px; }
.wh-hd__price span { font-size: 14px; color: var(--wh-muted); font-weight: 500; }
.wh-hd__times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wh-hd__times div { background: var(--wh-bg); border-radius: 12px; padding: 10px 12px; }
.wh-hd__times small, .wh-co-dates small { display: block; font-size: 12px; color: var(--wh-muted); font-weight: 600; }
.wh-hd__times b { font-size: 15px; }
.wh-stay { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr .8fr .8fr auto; gap: 12px; align-items: end; }
.wh-stay .wh-field { margin: 0; }
.wh-stay .wh-btn { height: 50px; }
.wh-prose { color: var(--wh-ink-2); font-size: 15.5px; }
.wh-prose p + p { margin-top: 10px; }
.wh-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.wh-chips li { background: var(--wh-bg); border: 1px solid var(--wh-line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.wh-chips i { color: var(--wh-success); margin-right: 6px; font-size: 12px; }
.wh-rules { padding-left: 18px; margin: 0; list-style: disc; display: grid; gap: 8px; color: var(--wh-ink-2); font-size: 15px; }
.wh-map { border-radius: 16px; overflow: hidden; height: 300px; background: #EEE; }
.wh-map iframe { width: 100%; height: 100%; border: 0; }
.wh-nearby { padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.wh-nearby li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--wh-line); }
.wh-nearby small { display: block; color: var(--wh-muted); font-size: 12px; text-transform: capitalize; }
.wh-room { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--wh-line); }
.wh-room:first-child { border-top: 0; padding-top: 0; }
.wh-room__media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #EEE; }
.wh-room__media img { width: 100%; height: 100%; object-fit: cover; }
.wh-room h3 { font-size: 19px; font-weight: 800; }
.wh-room__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13.5px; color: var(--wh-ink-2); }
.wh-room__facts i { color: var(--wh-muted); margin-right: 4px; }
.wh-room__left { color: #B91C1C; font-weight: 700; font-size: 13.5px; margin-top: 6px !important; }
.wh-room__desc { font-size: 14px; margin-top: 8px !important; }
.wh-room__pkgs { margin-top: 14px; display: grid; gap: 10px; }
.wh-pkg { display: flex; justify-content: space-between; gap: 16px; border: 1.5px solid var(--wh-line); border-radius: 14px; padding: 14px 16px; }
.wh-pkg:hover { border-color: var(--wh-yellow); }
.wh-pkg h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px !important; }
.wh-pkg__incl { padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--wh-ink-2); }
.wh-pkg__incl i { color: var(--wh-success); margin-right: 4px; font-size: 11px; }
.wh-pkg__buy { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; text-align: right; min-width: 150px; }
.wh-pkg__price strong { display: block; font-size: 20px; font-weight: 800; }
.wh-pkg__price small { font-size: 12px; color: var(--wh-muted); }
@media (max-width: 991.98px) {
  .wh-hd__layout { grid-template-columns: 1fr; }
  .wh-hd__side { order: -1; }
  .wh-hd__side .wh-sticky { position: static; }
  .wh-gallery { height: 300px; }
  .wh-stay { grid-template-columns: 1fr 1fr; }
  .wh-stay .wh-btn { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .wh-gallery { height: 240px; grid-template-columns: 1fr !important; }
  .wh-gallery__item:not(.is-main) { display: none; }
  .wh-room { grid-template-columns: 1fr; }
  .wh-pkg { flex-direction: column; }
  .wh-pkg__buy { flex-direction: row; align-items: center; text-align: left; }
  .wh-nearby { grid-template-columns: 1fr; }
}

/* Checkout */
.wh-co-hotel { display: flex; gap: 16px; align-items: flex-start; }
.wh-co-hotel img { width: 120px; height: 96px; object-fit: cover; border-radius: 12px; flex-shrink: 0; background: #EEE; }
.wh-co-room { margin-top: 8px !important; font-size: 14.5px; font-weight: 600; }
.wh-co-room a { margin-left: 6px; color: var(--wh-ink) !important; text-decoration: underline !important; font-weight: 700; }
.wh-co-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.wh-co-dates > div { background: var(--wh-bg); border-radius: 12px; padding: 12px 14px; }
.wh-co-dates b { display: block; font-size: 15px; margin-top: 2px; }
.wh-co-dates span { font-size: 12.5px; color: var(--wh-muted); }
.wh-co-policy { margin-top: 16px; padding: 14px; border-radius: 12px; border: 1px solid var(--wh-line); font-size: 14px; }
.wh-co-policy p { margin-top: 4px !important; color: var(--wh-ink-2); }
.wh-sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--wh-ink-2); }
.wh-sum__row b { color: var(--wh-ink); font-weight: 700; text-align: right; }
.wh-sum__row.is-green b, .wh-sum__row.is-green span { color: var(--wh-success); }
.wh-sum__total { display: flex; justify-content: space-between; padding: 14px 0 6px; margin-top: 8px; border-top: 1.5px solid var(--wh-ink); font-size: 18px; font-weight: 800; }
.wh-coupon { display: flex; gap: 8px; margin-top: 16px; }
.wh-coupon input { flex: 1; min-width: 0; border: 1.5px dashed #CFCFC6; border-radius: 999px; padding: 0 16px; font: 600 14px var(--wh-font); text-transform: uppercase; outline: 0; }
.wh-coupon input:focus { border-color: var(--wh-ink); }
.wh-paymodes { display: grid; gap: 10px; }
.wh-paymode { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--wh-line); border-radius: 14px; padding: 14px 16px; cursor: pointer; margin: 0; }
.wh-paymode:has(input:checked) { border-color: var(--wh-ink); background: var(--wh-yellow-50); }
.wh-paymode input { width: 18px; height: 18px; accent-color: var(--wh-ink); }
.wh-paymode i { font-size: 20px; width: 24px; text-align: center; }
.wh-paymode b { display: block; font-size: 15.5px; }
.wh-paymode small { color: var(--wh-muted); font-size: 13px; }
.wh-guest-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.wh-guest-list { padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.wh-guest-list--rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--wh-line); }
.wh-subform { background: var(--wh-bg); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
@media (max-width: 575.98px) {
  .wh-co-dates { grid-template-columns: 1fr 1fr; }
  .wh-co-hotel img { width: 84px; height: 72px; }
  .wh-guest-picks { grid-template-columns: 1fr; }
  #coGuestForm .wh-form-grid, #gForm .wh-form-grid { grid-template-columns: 1fr !important; }
}

/* Bookings */
.wh-bookings { display: grid; gap: 14px; }
.wh-booking { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center; background: var(--wh-surface); border: 1px solid var(--wh-line); border-radius: var(--wh-radius); padding: 14px; color: var(--wh-ink) !important; transition: box-shadow .2s; }
.wh-booking:hover { box-shadow: var(--wh-shadow); }
.wh-booking img { width: 140px; height: 110px; object-fit: cover; border-radius: 12px; background: #EEE; }
.wh-booking__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wh-booking__top small { color: var(--wh-muted); font-weight: 600; }
.wh-booking h3 { font-size: 17px; font-weight: 800; margin-top: 8px !important; }
.wh-booking__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 13.5px; color: var(--wh-ink-2); }
.wh-booking__amt { display: flex; align-items: center; gap: 12px; font-size: 17px; padding-right: 6px; }
.wh-booking__amt i { color: var(--wh-muted); font-size: 13px; }
@media (max-width: 640px) {
  .wh-booking { grid-template-columns: 96px 1fr; }
  .wh-booking img { width: 96px; height: 96px; }
  .wh-booking__amt { grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--wh-line); padding-top: 10px; }
}
.wh-success { display: flex; gap: 16px; align-items: flex-start; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--wh-radius); padding: 20px; margin-top: 20px; }
.wh-success > i { font-size: 30px; color: var(--wh-success); }
.wh-success h2 { font-size: 20px; font-weight: 800; }
.wh-success p { color: var(--wh-ink-2); margin-top: 4px !important; }
.wh-bd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Support */
.wh-support { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.wh-support aside .wh-panel + .wh-panel { margin-top: 20px; }
.wh-contact { padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.wh-contact a, .wh-contact span { color: var(--wh-ink) !important; display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.wh-contact i { color: var(--wh-muted); width: 18px; }
@media (max-width: 767.98px) { .wh-support { grid-template-columns: 1fr; } }
