/* =====================================================================
   Beyond Journey - Hotel results (hotel-listing.html)
   ---------------------------------------------------------------------
   The screen a hotel search lands on when the visitor wants the whole
   list rather than the five-card shortlist. Three things, top to bottom:
   the search restated in four slots with a way to change it, a single
   filter card on the left with a real price slider, and result cards
   that put the photograph, the facts and the price on one line each.

   Built on the bj-booking.css tokens - palette, 8px grid, radii,
   elevation - so it matches the flight and hotel booking screens. Every
   class is prefixed bjhx- and sits inside .bjb; nothing here is shared
   with the details page, which keeps its own bjhl- rules.
   ===================================================================== */

/* The template gives .container `position: relative; z-index: 1`, which
   makes it a stacking context: the phone filter sheet inside it could
   never rise above the expert dock (z 1060) however high its own z-index.
   No z-index on this page's container, so the sheet stacks against the
   page like any other fixed layer. */
.bjb.bjhx > .container { z-index: auto; }

/* ---------------------------------------------------------------
   Breadcrumb + the search, restated
   --------------------------------------------------------------- */
.bjb .bjhx-crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.bjb .bjhx-crumb a { color: var(--muted); text-decoration: none; }
.bjb .bjhx-crumb a:hover { color: var(--orange); }
.bjb .bjhx-crumb span { margin: 0 6px; color: var(--faint); }
.bjb .bjhx-crumb b { color: var(--ink); font-weight: 700; }

.bjb .bjhx-strip {
  display: grid; grid-template-columns: 1.25fr 1.5fr 1.1fr auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--e2); overflow: hidden; margin-bottom: var(--s5);
}
.bjb .bjhx-strip__f { padding: 12px 18px; border-right: 1px solid var(--line-soft); min-width: 0; }
.bjb .bjhx-strip__l {
  display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange);
}
.bjb .bjhx-strip__l i, .bjb .bjhx-strip__l svg { font-size: 10px; }
.bjb .bjhx-strip__v {
  display: block; font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bjb .bjhx-strip__s {
  display: block; margin-top: 2px; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bjb .bjhx-strip__act { display: flex; align-items: center; padding: 10px 16px; }

/* ---------------------------------------------------------------
   Results head: count, dates, sort
   --------------------------------------------------------------- */
.bjb .bjhx-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3);
  flex-wrap: wrap; margin-bottom: var(--s3);
}
.bjb .bjhx-head h1 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.25; text-transform: none; letter-spacing: 0; }
.bjb .bjhx-head h1 span { color: var(--orange); }
.bjb .bjhx-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.bjb .bjhx-sort {
  display: inline-flex; gap: 3px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.bjb .bjhx-sort::-webkit-scrollbar { display: none; }
.bjb .bjhx-sort button {
  font-family: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  padding: 7px 14px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.bjb .bjhx-sort button:hover:not([aria-pressed="true"]) { color: var(--ink); background: var(--canvas); }
.bjb .bjhx-sort button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* the filters in force, as chips the visitor can take off one at a time */
.bjb .bjhx-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--s3); }
.bjb .bjhx-applied[hidden] { display: none; }
.bjb .bjhx-applied button {
  font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid rgba(245, 118, 26, .35); background: var(--orange-50); color: var(--orange-600);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: background .18s var(--ease);
}
.bjb .bjhx-applied button:hover { background: var(--orange-100); }
.bjb .bjhx-applied button i, .bjb .bjhx-applied button svg { font-size: 10px; }
.bjb .bjhx-applied .bjhx-applied__clear {
  background: none; border-color: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 2px;
}

/* ---------------------------------------------------------------
   Two columns
   --------------------------------------------------------------- */
.bjb .bjhx-layout { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: var(--s5); align-items: start; }

/* ---------------------------------------------------------------
   Filters - one card, sections divided by a hairline
   --------------------------------------------------------------- */
.bjb .bjhx-filters {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e1);
  max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin;
}
.bjb .bjhx-filters__hd {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line-soft);
}
.bjb .bjhx-filters__hd h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); text-transform: none; }
.bjb .bjhx-filters__hdacts { display: flex; align-items: center; gap: 10px; }
.bjb .bjhx-filters__x { display: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--canvas); color: var(--ink); cursor: pointer; place-items: center; }
.bjb .bjhx-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.bjb .bjhx-badge[hidden] { display: none; }

.bjb .bjhx-sec { border-bottom: 1px solid var(--line-soft); }
.bjb .bjhx-sec:last-of-type { border-bottom: 0; }
.bjb .bjhx-sec__hd {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 16px; background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer;
}
.bjb .bjhx-sec__hd h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--ink); text-transform: none; }
.bjb .bjhx-sec__hd i, .bjb .bjhx-sec__hd svg { color: var(--faint); font-size: 11px; transition: transform .25s var(--ease); }
.bjb .bjhx-sec__hd[aria-expanded="false"] i, .bjb .bjhx-sec__hd[aria-expanded="false"] svg { transform: rotate(-90deg); }
.bjb .bjhx-sec__bd { padding: 0 16px 14px; display: grid; gap: 6px; }
.bjb .bjhx-sec__bd[hidden] { display: none; }

.bjb .bjhx-check { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 13px; color: var(--ink); cursor: pointer; }
.bjb .bjhx-check input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--orange); cursor: pointer; }
.bjb .bjhx-check .ico { width: 20px; text-align: center; color: var(--muted); font-size: 12px; flex: none; }
.bjb .bjhx-check .n { margin-left: auto; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bjb .bjhx-check:hover { color: var(--orange); }

.bjb .bjhx-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.bjb .bjhx-toggle {
  font-family: inherit; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.bjb .bjhx-toggle i, .bjb .bjhx-toggle svg { color: var(--orange); font-size: 10px; }
.bjb .bjhx-toggle:hover { border-color: var(--orange); transform: translateY(-1px); }
.bjb .bjhx-toggle[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.bjb .bjhx-toggle[aria-pressed="true"] i, .bjb .bjhx-toggle[aria-pressed="true"] svg { color: var(--orange); }
.bjb .bjhx-toggle--sm { padding: 5px 10px; font-size: 12px; }

/* price: a two-thumb slider drawn with two stacked range inputs */
.bjb .bjhx-price__vals { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.bjb .bjhx-price__vals span { line-height: 1.2; }
.bjb .bjhx-price__vals small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.bjb .bjhx-price__vals b { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bjb .bjhx-slider { position: relative; height: 28px; margin: 0 2px; }
.bjb .bjhx-slider__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--line); }
.bjb .bjhx-slider__fill { position: absolute; top: 12px; height: 4px; border-radius: 2px; background: var(--orange); }
.bjb .bjhx-slider input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; padding: 0;
  background: transparent; border: 0; box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none; pointer-events: none;
}
.bjb .bjhx-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; border: 0; }
.bjb .bjhx-slider input[type="range"]::-moz-range-track { height: 4px; background: transparent; border: 0; }
.bjb .bjhx-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--orange); box-shadow: 0 2px 6px rgba(23, 35, 62, .25); cursor: pointer;
}
.bjb .bjhx-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--orange); box-shadow: 0 2px 6px rgba(23, 35, 62, .25); cursor: pointer;
}
.bjb .bjhx-slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
.bjb .bjhx-price__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* the sheet's own "apply" - only on phones, where the sheet covers the list */
.bjb .bjhx-filters__foot { display: none; position: sticky; bottom: 0; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------
   Result card - photo | facts | price
   --------------------------------------------------------------- */
.bjb .bjhx-card {
  display: grid; grid-template-columns: 252px minmax(0, 1fr) 208px;
  min-height: 212px; margin-bottom: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--e1); overflow: hidden;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), transform .28s var(--ease);
}
.bjb .bjhx-card:hover { border-color: rgba(245, 118, 26, .45); box-shadow: var(--e3); transform: translateY(-2px); }
.bjb .bjhx-card__media { position: relative; background: var(--canvas); overflow: hidden; }
.bjb .bjhx-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.bjb .bjhx-card:hover .bjhx-card__media img { transform: scale(1.05); }
.bjb .bjhx-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .94); color: var(--navy);
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.bjb .bjhx-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center;
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.bjb .bjhx-wish:hover { transform: scale(1.08); color: var(--orange); }
.bjb .bjhx-wish[aria-pressed="true"] { color: #e11d48; }
.bjb .bjhx-photos {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  padding: 3px 8px; border-radius: 6px; background: rgba(11, 17, 32, .55); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
}

.bjb .bjhx-card__body { padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bjb .bjhx-card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bjb .bjhx-card__name { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.25; text-transform: none; letter-spacing: 0; }
.bjb .bjhx-card__name a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.bjb .bjhx-card__name a:hover { color: var(--orange); }
.bjb .bjhx-stars { color: var(--orange); font-size: 10px; letter-spacing: 1px; white-space: nowrap; }
.bjb .bjhx-card__loc { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.bjb .bjhx-card__loc i, .bjb .bjhx-card__loc svg { color: var(--orange); margin-top: 3px; font-size: 11px; flex: none; }
.bjb .bjhx-card__loc .dist { color: var(--faint); }
.bjb .bjhx-amen { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bjb .bjhx-amen li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bjb .bjhx-amen li i, .bjb .bjhx-amen li svg { width: 14px; text-align: center; color: var(--navy); font-size: 11px; }
.bjb .bjhx-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.bjb .bjhx-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  background: var(--canvas); border: 1px solid var(--line-soft); color: var(--muted);
  font-size: 11.5px; font-weight: 700;
}
.bjb .bjhx-pill i, .bjb .bjhx-pill svg { font-size: 10px; }
.bjb .bjhx-pill--ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }

.bjb .bjhx-card__aside {
  border-left: 1px solid var(--line-soft); background: #fcfcfa;
  padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 6px;
}
.bjb .bjhx-score { display: flex; align-items: center; gap: 8px; }
.bjb .bjhx-score__t { line-height: 1.2; }
.bjb .bjhx-score__t b { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.bjb .bjhx-score__t span { font-size: 11px; color: var(--muted); }
.bjb .bjhx-score__b { padding: 6px 8px; border-radius: 8px 8px 8px 2px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; }
.bjb .bjhx-cost { margin-top: auto; }
.bjb .bjhx-cost__off {
  display: inline-block; margin-bottom: 4px; padding: 1px 6px; border-radius: 999px;
  background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); font-size: 10.5px; font-weight: 800;
}
.bjb .bjhx-cost__was { font-size: 12px; color: var(--faint); text-decoration: line-through; }
.bjb .bjhx-cost__now { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.05; letter-spacing: -.4px; }
.bjb .bjhx-cost__tax { margin-top: 2px; font-size: 11px; color: var(--muted); }
.bjb .bjhx-cost__tot { margin-top: 1px; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.bjb .bjhx-card__cta { width: 100%; margin-top: 4px; }
.bjb .bjhx-card__note { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--ok); }
.bjb .bjhx-card__note i, .bjb .bjhx-card__note svg { font-size: 10px; }

.bjb .bjhx-empty {
  text-align: center; padding: 48px 24px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.bjb .bjhx-empty i, .bjb .bjhx-empty svg { font-size: 30px; color: var(--faint); }
.bjb .bjhx-empty h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 800; }
.bjb .bjhx-empty p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------
   Under the list
   --------------------------------------------------------------- */
.bjb .bjhx-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s5); }
.bjb .bjhx-trust > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.bjb .bjhx-trust > div > div { min-width: 0; }
.bjb .bjhx-trust .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--orange-100); color: var(--orange); display: grid; place-items: center; font-size: 14px; }
.bjb .bjhx-trust strong { display: block; margin-bottom: 2px; font-size: 13px; color: var(--ink); }
.bjb .bjhx-trust span { font-size: 12px; line-height: 1.45; color: var(--muted); }

.bjb .bjhx-faq { margin-top: var(--s5); padding: 20px 22px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.bjb .bjhx-faq h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--ink); text-transform: none; }
.bjb .bjhx-faq > p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.bjb .bjhx-faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.bjb .bjhx-q { border-bottom: 1px solid var(--line-soft); }
.bjb .bjhx-q__b {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 0; background: none; border: 0; font-family: inherit; text-align: left;
  font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.bjb .bjhx-q__b i, .bjb .bjhx-q__b svg { color: var(--faint); font-size: 11px; flex: none; transition: transform .25s var(--ease); }
.bjb .bjhx-q__b[aria-expanded="true"] i, .bjb .bjhx-q__b[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--orange); }
.bjb .bjhx-q__a { display: none; padding: 0 0 13px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.bjb .bjhx-q.is-open .bjhx-q__a { display: block; }

.bjb .bjhx-mbar { display: none; }
.bjb .bjhx-scrim { position: fixed; inset: 0; z-index: 1450; background: rgba(23, 35, 62, .5); display: none; }
.bjb .bjhx-scrim.is-open { display: block; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 1199px) {
  .bjb .bjhx-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .bjb .bjhx-card { grid-template-columns: 220px minmax(0, 1fr) 190px; }
}
@media (max-width: 991px) {
  .bjb .bjhx-layout { grid-template-columns: 1fr; }
  .bjb .bjhx-strip { grid-template-columns: 1fr 1fr; }
  .bjb .bjhx-strip__f:nth-child(2) { border-right: 0; }
  .bjb .bjhx-strip__act { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
  .bjb .bjhx-strip__act .bjb-btn { width: 100%; }
  .bjb .bjhx-mbar { display: flex; gap: 8px; margin-bottom: var(--s3); }
  .bjb .bjhx-mbar .bjb-btn { flex: 1; }
  /* above the expert dock and its reminder card, which sit around 1300 */
  .bjb .bjhx-filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1460;
    max-height: 86vh; max-height: 86dvh; border-radius: 18px 18px 0 0; border: 0;
    box-shadow: 0 -20px 50px -20px rgba(11, 17, 32, .5);
    transform: translateY(102%); transition: transform .32s var(--ease);
  }
  .bjb .bjhx-filters.is-open { transform: none; }
  .bjb .bjhx-filters__x { display: inline-grid; }
  .bjb .bjhx-filters__foot { display: block; }
  .bjb .bjhx-card { grid-template-columns: 1fr; min-height: 0; }
  .bjb .bjhx-card__media { aspect-ratio: 16 / 9; }
  .bjb .bjhx-card__aside {
    border-left: 0; border-top: 1px solid var(--line-soft);
    flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; text-align: left;
  }
  .bjb .bjhx-cost { margin-top: 0; }
  .bjb .bjhx-card__cta { width: auto; margin-top: 0; }
  .bjb .bjhx-card__note { width: 100%; }
  .bjb .bjhx-trust { grid-template-columns: 1fr 1fr; }
  .bjb .bjhx-faq__grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .bjb .bjhx-strip { grid-template-columns: 1fr; }
  .bjb .bjhx-strip__f { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .bjb .bjhx-head h1 { font-size: 18px; }
  .bjb .bjhx-trust { grid-template-columns: 1fr; }
  .bjb .bjhx-card__body { padding: 12px 14px 10px; }
  .bjb .bjhx-card__aside { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bjb .bjhx-card, .bjb .bjhx-filters, .bjb .bjhx-toggle { transition: none; }
  .bjb .bjhx-card:hover, .bjb .bjhx-card:hover .bjhx-card__media img { transform: none; }
}
