/* =====================================================================
   Beyond Journey - Hotel recommendations popup (hotels.html)
   ---------------------------------------------------------------------
   SEARCH on the hotel page opens this over the page itself - the banner
   and search panel stay visible, blurred, behind it - rather than
   sending the visitor to a second page: five stays ranked against what
   they typed, "View details" on each, "View more" for the next five,
   and a way through to the full list with filters.

   Self-contained: hotels.html does not load bj-booking.css, so the
   tokens this needs are declared here on .bjhr. Everything is prefixed
   bjhr- so it cannot collide with the search panel's own classes.
   Built and driven by js/bj-hotel-reco.js.

   Compact pass, 2026-10-08: on a laptop (1366 x ~650) the five cards
   were 587px tall inside a 324px scroll box, so the price and button
   sat below the fold. The card keeps the designer's language - the
   orange match badge, the amenity chips, the dashed rule over the
   price, the orange button - scaled so the whole card is on screen:
   the head is one band (kicker beside the title, the search chips in
   one row), the photo is 16:9 with the stars in its corner, the
   address is one line (the full one in the tooltip), type is a step
   smaller, the price and "View details" face each other with the fare
   breakdown under both, and every weight is 500/600 - Poppins 700/800
   is not loaded on the site, so those were being synthesised. Nothing
   was removed.
   ===================================================================== */
.bjhr {
  --navy: #17233e; --navy-700: #22315a;
  --orange: #f5761a; --orange-600: #dd660f;
  --ink: #17233e; --muted: #5a6377; --faint: #8a93a8;
  --line: #e7e6e1; --line-soft: #f0efea; --canvas: #f7f6f2;
  --ok: #1a7f4b; --ok-bg: #edf8f1; --ok-line: #bfe3cd; --warn: #9a6b00;
  --ease: cubic-bezier(.4, 0, .2, 1);

  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility 0s linear .28s;
}
.bjhr.is-open { opacity: 1; visibility: visible; transition: opacity .28s var(--ease); }
body.bjhr-lock { overflow: hidden; }

/* the page shows through, softened: a blur under a navy tint */
.bjhr__backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 35, 62, .55);
  -webkit-backdrop-filter: blur(10px) saturate(.9);
  backdrop-filter: blur(10px) saturate(.9);
}

.bjhr__panel {
  position: relative; z-index: 1;
  width: min(1320px, 100%); max-height: calc(100vh - 24px);
  display: flex; flex-direction: column;
  background: var(--canvas); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(11, 17, 32, .7);
  transform: translateY(16px) scale(.98);
  transition: transform .32s var(--ease);
}
.bjhr.is-open .bjhr__panel { transform: none; }

/* ---------------------------------------------------------------
   Head - what was searched, restated so the cards have context.
   One band: the kicker beside the title, the sentence under them,
   the search chips in a row to the right.
   --------------------------------------------------------------- */
.bjhr__head {
  display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap;
  padding: 12px 24px 11px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; border-bottom: 3px solid var(--orange);
}
.bjhr__head-txt {
  flex: 1 1 440px; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px;
}
.bjhr__kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(245, 118, 26, .18); color: #ffb072;
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.bjhr__kicker i, .bjhr__kicker svg { font-size: 9px; }
.bjhr__head h2 {
  margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25;
  color: #fff; text-transform: none; letter-spacing: 0;
}
.bjhr__head h2 span { color: var(--orange); }
.bjhr__sub { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.bjhr__chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: center; margin-left: auto; max-width: 720px; }
.bjhr__chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 11.5px; font-weight: 500; color: #fff; white-space: nowrap; line-height: 1.3;
}
.bjhr__chips span i, .bjhr__chips span svg { color: var(--orange); font-size: 10.5px; }
.bjhr__x {
  flex: none; align-self: flex-start;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s var(--ease);
}
.bjhr__x:hover { background: var(--orange); }

/* ---------------------------------------------------------------
   Body
   --------------------------------------------------------------- */
.bjhr__body { overflow-y: auto; padding: 12px 24px 4px; -webkit-overflow-scrolling: touch; }
.bjhr__notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
  background: #eef3fb; border: 1px solid #cbd9ef; color: #24395f;
  font-size: 12.5px; line-height: 1.5;
}
.bjhr__notice i, .bjhr__notice svg { margin-top: 2px; color: #3b5b95; flex: none; }
.bjhr__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bjhr__empty {
  grid-column: 1 / -1; text-align: center; padding: 36px 16px;
  background: #fff; border: 1px dashed var(--line); border-radius: 14px;
  color: var(--muted); font-size: 13.5px; line-height: 1.6;
}
.bjhr__empty a { color: var(--orange); font-weight: 600; }

/* ---------------------------------------------------------------
   Card
   --------------------------------------------------------------- */
.bjhr-card {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 35, 62, .04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  animation: bjhrIn .35s var(--ease) both;
}
.bjhr-card:hover {
  transform: translateY(-3px); border-color: rgba(245, 118, 26, .45);
  box-shadow: 0 16px 32px -16px rgba(23, 35, 62, .32);
}
@keyframes bjhrIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* photo: match badge top-left, rank top-right, the stars bottom-left on
   the dark gradient - so the words under it start with the name */
.bjhr-card__media {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: var(--line-soft); overflow: hidden;
}
.bjhr-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.bjhr-card:hover .bjhr-card__media img { transform: scale(1.05); }
.bjhr-card__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
  background: linear-gradient(180deg, rgba(23, 35, 62, 0), rgba(23, 35, 62, .55));
  pointer-events: none;
}
.bjhr-card__match {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-600)); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 1.4;
  box-shadow: 0 4px 10px -4px rgba(245, 118, 26, .7);
}
.bjhr-card__match i, .bjhr-card__match svg { font-size: 8.5px; }
.bjhr-card__rank {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--navy); font-size: 10.5px; font-weight: 600;
}
.bjhr-card__stars {
  position: absolute; left: 10px; bottom: 8px; z-index: 2;
  color: #ffb45c; font-size: 9.5px; letter-spacing: 1.5px; line-height: 1; white-space: nowrap;
  filter: drop-shadow(0 1px 2px rgba(11, 17, 32, .6));
}
.bjhr-card__type {
  position: absolute; right: 10px; bottom: 8px; z-index: 2;
  color: #fff; font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(11, 17, 32, .6);
}
.bjhr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bjhr-card__body {
  padding: 10px 12px 7px; flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.bjhr-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bjhr-card__score {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 6px; border-radius: 6px;
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.bjhr-card__score small { font-size: 9.5px; font-weight: 500; color: rgba(255, 255, 255, .75); }
.bjhr-card__name {
  margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink);
  text-transform: none; letter-spacing: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bjhr-card__name a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.bjhr-card__name a:hover { color: var(--orange); }
/* the address is one line, cut with an ellipsis; the full one is in the
   tooltip and on the hotel's page */
.bjhr-card__loc, .bjhr-card__dist {
  margin: 0; font-size: 11px; line-height: 1.4; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bjhr-card__loc i, .bjhr-card__loc svg, .bjhr-card__dist i, .bjhr-card__dist svg {
  color: var(--orange); margin-right: 5px; font-size: 10.5px; width: 11px; text-align: center;
}
.bjhr-card__dist { color: var(--faint); }
/* amenity chips: each at most the card's width, cut with an ellipsis and
   the full words in the tooltip - a chip never spills past the card */
.bjhr-card__amen { list-style: none; margin: 3px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bjhr-card__amen li {
  display: block; max-width: 100%;
  padding: 2px 7px; border-radius: 5px;
  background: var(--canvas); border: 1px solid var(--line-soft);
  font-size: 10px; font-weight: 500; line-height: 1.4; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bjhr-card__amen li i, .bjhr-card__amen li svg { font-size: 9px; color: var(--navy); }

/* why it was picked - green is a match against the search, amber a
   candid miss, grey a fact about the stay */
.bjhr-card__why { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bjhr-card__why li { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
.bjhr-card__why li i, .bjhr-card__why li svg { width: 11px; margin-top: 2px; text-align: center; font-size: 10px; color: var(--faint); flex: none; }
.bjhr-card__why li.ok { color: var(--ok); font-weight: 500; }
.bjhr-card__why li.ok i, .bjhr-card__why li.ok svg { color: var(--ok); }
.bjhr-card__why li.warn { color: var(--warn); font-weight: 500; }
.bjhr-card__why li.warn i, .bjhr-card__why li.warn svg { color: var(--warn); }

/* foot: the figure and "View details" face each other over the dashed
   rule, the breakdown of the figure in small print under both */
.bjhr-card__foot {
  margin-top: auto; padding: 8px 12px 9px;
  border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px;
}
.bjhr-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; min-width: 0; }
.bjhr-card__price del { font-size: 11px; color: var(--faint); }
.bjhr-card__price strong { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: -.3px; }
.bjhr-card__price small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.bjhr-card__price em {
  font-style: normal; font-size: 10px; font-weight: 600; color: var(--ok);
  background: var(--ok-bg); border: 1px solid var(--ok-line); padding: 1px 6px; border-radius: 999px;
}
.bjhr-card__price span, .bjhr-card__note {
  grid-column: 1 / -1; margin: 0; font-size: 10px; line-height: 1.35; color: var(--muted);
  text-wrap: balance; /* two even lines rather than one word left over */
}
.bjhr-card__price span { flex-basis: 100%; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.bjhr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .1px; line-height: 1.3;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease),
              color .22s var(--ease), border-color .22s var(--ease);
}
.bjhr-btn--primary {
  background: linear-gradient(90deg, var(--orange), var(--orange-600)); color: #fff;
  box-shadow: 0 6px 14px -7px rgba(245, 118, 26, .6);
}
.bjhr-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(245, 118, 26, .65); }
.bjhr-btn--primary i, .bjhr-btn--primary svg { font-size: 10px; transition: transform .2s var(--ease); }
.bjhr-btn--primary:hover i, .bjhr-btn--primary:hover svg { transform: translateX(3px); }
.bjhr-btn--navy {
  padding: 10px 20px; font-size: 13px;
  background: var(--navy); color: #fff; box-shadow: 0 6px 16px -7px rgba(23, 35, 62, .5);
}
.bjhr-btn--navy:hover { color: #fff; transform: translateY(-2px); }
.bjhr-btn--ghost { padding: 10px 20px; font-size: 13px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.bjhr-btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.bjhr [hidden] { display: none !important; }
.bjhr__more { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 12px 0 10px; }

/* ---------------------------------------------------------------
   Foot
   --------------------------------------------------------------- */
.bjhr__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px; background: #fff; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.bjhr__foot span { display: inline-flex; align-items: center; gap: 7px; }
.bjhr__foot span i, .bjhr__foot span svg { color: var(--ok); }
.bjhr__foot a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange); font-weight: 500; text-decoration: none; cursor: pointer;
}
.bjhr__foot a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 1199px) { .bjhr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  /* the chips wrap under the title here, so the close button is pinned to
     the corner instead of drifting to the end of whichever row has room */
  .bjhr__head { position: relative; }
  .bjhr__head-txt { padding-right: 40px; }
  .bjhr__chips { margin-left: 0; max-width: none; }
  .bjhr__x { position: absolute; top: 12px; right: 14px; }
}
@media (max-width: 767px) {
  .bjhr { padding: 0; align-items: flex-end; }
  .bjhr__panel { max-height: 100vh; max-height: 100dvh; border-radius: 18px 18px 0 0; }
  /* the head on a phone was ~230px: the five chips wrapped into three
     rows under three lines of sentence (the designer, 2026-10-08: "chota
     ho skta h agr toh chota kro"). Now one band: kicker and title, the
     sentence a size down, the chips in ONE row that scrolls sideways,
     edge to edge - nothing dropped. */
  .bjhr__head { padding: 12px 14px 10px; gap: 8px; }
  .bjhr__head-txt { flex-basis: 100%; gap: 3px 8px; padding-right: 36px; }
  .bjhr__kicker { padding: 2px 8px; font-size: 9.5px; letter-spacing: .06em; }
  .bjhr__head h2 { font-size: 17px; line-height: 1.2; }
  .bjhr__sub { font-size: 11.5px; line-height: 1.4; }
  /* a scrolling row hid the last chips ("pura toh aahi nhi rha h"), so on a
     phone the five are plain words with their icons, wrapping into two
     short lines with dots between - the owner's rule for phones: facts as
     words, never rows of chips */
  .bjhr__chips { flex: 1 1 100%; flex-wrap: wrap; gap: 3px 16px; margin: 0; padding: 0; max-width: none; }
  /* no dots between them: a dot lands at the start of a wrapped line; the
     orange icon in front of each fact already keeps them apart */
  .bjhr__chips span {
    flex: 0 0 auto; padding: 0; border: 0; border-radius: 0; background: none;
    font-size: 11.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; gap: 5px;
  }
  .bjhr__chips span i, .bjhr__chips span svg { font-size: 10px; }
  .bjhr__x { width: 28px; height: 28px; top: 10px; right: 12px; font-size: 11px; }
  .bjhr__body { padding: 12px 14px 4px; }
  .bjhr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bjhr__foot { padding: 9px 16px; }
  /* no chip rows on phones (site rule): the amenities are the results
     page's tick words */
  .bjhr-card__amen { gap: 2px 10px; font-size: 11px; line-height: 1.4; }
  .bjhr-card__amen li {
    display: inline-flex; align-items: flex-start; gap: 5px;
    padding: 0; border: 0; background: none; border-radius: 0;
    font-size: inherit; white-space: normal; overflow: visible;
  }
  .bjhr-card__amen li::before { content: "\2713"; flex: none; color: var(--ok); font-weight: 600; }
  /* two to a row leaves no room beside the figure: the button goes under it */
  .bjhr-card__foot { grid-template-columns: 1fr; gap: 6px; }
  .bjhr-card__foot .bjhr-btn--primary { width: 100%; }
}
@media (max-width: 479px) {
  .bjhr__grid { grid-template-columns: 1fr; }
  /* one to a row: the figure and the button face each other again */
  .bjhr-card__foot { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .bjhr-card__foot .bjhr-btn--primary { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bjhr, .bjhr__panel, .bjhr-card { transition: none; animation: none; }
  .bjhr-card:hover, .bjhr-card:hover .bjhr-card__media img { transform: none; }
}
