/* =====================================================================
   Beyond Journey - hotels.html add-ons (bjhh-)
   ---------------------------------------------------------------------
   Everything here is prefixed bjhh- and used only by hotels.html:

     .bjhh-actions   SEARCH plus "Quote on WhatsApp" under the panel
     .bjhh-recent    the visitor's last searches, one tap to re-run
     .bjhh-featured  top-rated stays from js/bj-hotel-data.js with a
                     place filter, filled in by js/bj-hotel-home.js
     .bjhh-cat       the four "stay type" tiles (were inline styles)
     .bjhh-chain     the hotel-group cards, now a real control
     .bjhh-group     the group / corporate booking band

   Colours are declared in place: hotels.html does not load
   bj-tokens.css. Navy #17233e, orange #f5761a, as everywhere else.
   ===================================================================== */

/* ---------------------------------------------------------------
   SEARCH + WhatsApp pair. The panel's own .search-btn is absolutely
   positioned on the card's bottom edge; the pair takes that spot and
   the button goes static inside it.
   --------------------------------------------------------------- */
.hotel-card .bjhh-actions {
  position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.hotel-card .bjhh-actions .search-btn { position: static; transform: none; }
.hotel-card .bjhh-actions .search-btn:hover { transform: translateY(-2px) scale(1.02); }

.bjhh-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 60px;
  background: #fff; color: #17233e; border: 1px solid #d5e9d9;
  font-size: 13.5px; font-weight: 800; letter-spacing: .3px; text-decoration: none;
  box-shadow: 0 10px 28px -12px rgba(23, 35, 62, .35);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bjhh-wa svg { width: 16px; height: 16px; fill: #25d366; flex: none; }
.bjhh-wa:hover, .bjhh-wa:focus {
  transform: translateY(-2px); color: #17233e; border-color: #25d366;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .55);
}
@media (max-width: 767px) {
  .bjhh-wa { padding: 11px 16px; font-size: 12.5px; }
}
@media (max-width: 400px) {
  .hotel-card .bjhh-actions { gap: 8px; }
  .bjhh-wa { padding: 10px 13px; font-size: 12px; }
}

/* ---------------------------------------------------------------
   Recent searches, under the Popular chips
   --------------------------------------------------------------- */
.bjhh-recent {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 10px; font-size: 12.5px; color: #56607a;
}
.bjhh-recent[hidden] { display: none; }
.bjhh-recent > span:first-child { font-weight: 700; color: #17233e; margin-right: 2px; }
.bjhh-recent button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px dashed #d8d5cc; border-radius: 999px;
  background: #fbfaf7; color: #17233e; font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.bjhh-recent button i, .bjhh-recent button svg { color: #56607a; font-size: 10.5px; }
.bjhh-recent button:hover { border-color: #f5761a; color: #f5761a; background: #fdf1e6; }
.bjhh-recent .bjhh-recent__clear {
  border: 0; background: none; padding: 5px 4px; color: #8a90a3; text-decoration: underline;
}
.bjhh-recent .bjhh-recent__clear:hover { background: none; color: #f5761a; }

/* ---------------------------------------------------------------
   Featured stays
   --------------------------------------------------------------- */
.bjhh-featured { padding: 56px 0 48px; background: #fff; }

.bjhh-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.bjhh-tabs[hidden] { display: none; }
.bjhh-tabs button {
  padding: 7px 15px; border: 1px solid #e7e6e1; border-radius: 999px;
  background: #fff; color: #17233e; font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.bjhh-tabs button[aria-selected="true"], .bjhh-tabs button:hover {
  border-color: #f5761a; background: #fdf1e6; color: #f5761a;
}

.bjhh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.bjhh-card {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid #eceae4; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 35, 62, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bjhh-card:hover {
  transform: translateY(-4px); border-color: rgba(245, 118, 26, .45);
  box-shadow: 0 18px 34px -18px rgba(23, 35, 62, .35);
}
.bjhh-card__media {
  position: relative; display: block; aspect-ratio: 16 / 10;
  background: #f1efe9; overflow: hidden;
}
.bjhh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bjhh-card:hover .bjhh-card__media img { transform: scale(1.05); }
.bjhh-card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 9px; border-radius: 999px;
  background: linear-gradient(90deg, #f5761a, #dd660f); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 3px 10px -3px rgba(245, 118, 26, .7);
}
.bjhh-card__type {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #17233e; font-size: 10.5px; font-weight: 700;
}
.bjhh-card__body { padding: 12px 14px 8px; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bjhh-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.bjhh-card__stars { color: #ffc107; font-size: 11px; letter-spacing: 1px; }
.bjhh-card__score {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 6px; background: #17233e; color: #fff; font-size: 11px; font-weight: 800;
}
.bjhh-card__score i, .bjhh-card__score svg { color: #ffc107; font-size: 9px; }
.bjhh-card__score small { font-size: 10px; font-weight: 600; opacity: .85; }
.bjhh-card__name {
  margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.25; color: #17233e;
  text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bjhh-card__name a { color: inherit; text-decoration: none; transition: color .2s ease; }
.bjhh-card__name a:hover { color: #f5761a; }
.bjhh-card__loc {
  margin: 0; font-size: 12px; color: #56607a; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bjhh-card__loc i, .bjhh-card__loc svg { color: #f5761a; font-size: 11px; margin-right: 4px; }
.bjhh-card__amen { display: flex; gap: 5px; margin-top: 4px; overflow: hidden; }
.bjhh-card__amen span {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 6px; background: #fbfaf7; border: 1px solid #f1efe9;
  font-size: 11px; font-weight: 600; color: #17233e; white-space: nowrap;
}
.bjhh-card__amen span i, .bjhh-card__amen span svg { font-size: 10px; color: #17233e; }
.bjhh-card__pills { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.bjhh-card__pills span { font-size: 10.5px; font-weight: 700; color: #56607a; }
.bjhh-card__pills span.ok { color: #1e8e3e; }
.bjhh-card__pills span i, .bjhh-card__pills span svg { margin-right: 3px; font-size: 10px; }
.bjhh-card__foot {
  margin-top: auto; padding: 9px 14px 12px; border-top: 1px solid #f1efe9;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.bjhh-card__price { min-width: 0; line-height: 1.2; }
.bjhh-card__price em {
  display: inline-block; margin-bottom: 3px;
  font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; color: #f5761a;
  background: rgba(245, 118, 26, .12); border: 1px solid rgba(245, 118, 26, .3);
  padding: 1px 6px; border-radius: 4px;
}
.bjhh-card__price div { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bjhh-card__price del { font-size: 11px; color: #8a90a3; }
.bjhh-card__price strong { font-size: 17px; font-weight: 800; color: #17233e; letter-spacing: -.2px; }
.bjhh-card__price small { display: block; font-size: 10px; color: #56607a; margin-top: 1px; }
.bjhh-card__ctas { display: flex; gap: 6px; flex: none; }
.bjhh-card__cta {
  padding: 7px 12px; border-radius: 7px; border: 0;
  background: #17233e; color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.bjhh-card__cta:hover { background: #f5761a; color: #fff; transform: translateY(-1px); }
.bjhh-card__cta--ghost { background: #fff; color: #17233e; border: 1px solid #e7e6e1; }
.bjhh-card__cta--ghost:hover { background: #fdf1e6; color: #f5761a; border-color: #f5761a; }

.bjhh-note { margin: 18px auto 0; max-width: 680px; text-align: center; font-size: 12.5px; color: #56607a; line-height: 1.6; }
.bjhh-note i, .bjhh-note svg { color: #f5761a; margin-right: 5px; }
.bjhh-note a { color: #f5761a; font-weight: 700; }
.bjhh-empty {
  grid-column: 1 / -1; text-align: center; padding: 36px 16px;
  border: 1px dashed #e7e6e1; border-radius: 12px; color: #56607a; font-size: 14px;
}
.bjhh-empty a { color: #f5761a; font-weight: 700; }

@media (max-width: 991px) {
  .bjhh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 575px) {
  /* one swipeable row, the way the other browse sets go on a phone */
  .bjhh-featured { padding: 40px 0 36px; }
  .bjhh-grid {
    display: flex; overflow-x: auto; overflow-y: hidden; gap: 12px;
    margin: 0 -12px; padding: 0 12px 8px;
    scroll-snap-type: x mandatory; scroll-padding-left: 12px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .bjhh-grid::-webkit-scrollbar { display: none; }
  .bjhh-card { flex: 0 0 76%; scroll-snap-align: start; }
  .bjhh-empty { flex: 0 0 100%; }
  .bjhh-tabs {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    margin: 0 -12px 16px; padding: 0 12px 4px; scrollbar-width: none;
  }
  .bjhh-tabs::-webkit-scrollbar { display: none; }
  .bjhh-tabs button { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bjhh-grid, .bjhh-tabs { scroll-snap-type: none; }
}

/* ---------------------------------------------------------------
   Stay-type tiles: the caption box is anchored to the tile's bottom
   edge, not to 80% of a 300px image the wrapper clips at 190px.
   --------------------------------------------------------------- */
.bjhh-cat-img { width: 100%; object-fit: cover; display: block; }
.bjhh-cat {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  min-width: 240px; max-width: calc(100% - 24px); padding: 12px 18px; border-radius: 12px;
  background: rgba(23, 35, 62, .88); text-align: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.bjhh-cat h5 { margin: 0 0 8px; color: #fff; font-size: 17px; font-weight: 600; }
.bjhh-cat a {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: #f5761a; color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background .2s ease;
}
.bjhh-cat a:hover { background: #dd660f; color: #fff; }
@media (max-width: 575px) {
  .bjhh-cat { bottom: 10px; min-width: 0; padding: 9px 12px; }
  .bjhh-cat h5 { margin-bottom: 5px; }
  .bjhh-cat a { padding: 5px 12px; font-size: 12px; }
}

/* ---------------------------------------------------------------
   Hotel-chain logo marquee ("Our Top Hotel Chains")
   ---------------------------------------------------------------
   One row that keeps moving. The track holds two identical sets and
   slides by exactly one set width (-50%), so the loop has no seam.
   Hover or keyboard focus pauses it; reduced-motion turns it into a
   plain swipeable row. Not a .row, so the phone rail rules in
   bj-space.css leave it alone.
   --------------------------------------------------------------- */
.bjhh-marquee {
  position: relative; overflow: hidden; padding: 8px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.bjhh-marquee__track {
  display: flex; width: max-content;
  animation: bjhhMarquee 42s linear infinite;
  will-change: transform;
}
.bjhh-marquee:hover .bjhh-marquee__track,
.bjhh-marquee:focus-within .bjhh-marquee__track { animation-play-state: paused; }
.bjhh-marquee__set { display: flex; flex: none; gap: 22px; padding-right: 22px; }
.bjhh-marquee__item {
  flex: none; width: 190px; height: 118px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #eceae4; border-radius: 12px;
  box-shadow: 0 6px 18px -12px rgba(23, 35, 62, .25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bjhh-marquee__item:hover {
  transform: translateY(-3px); border-color: rgba(245, 118, 26, .45);
  box-shadow: 0 14px 28px -14px rgba(23, 35, 62, .3);
}
/* explicit, not 100%: a percentage max-height has nothing definite to
   resolve against inside the card and the taller logos spilled out */
.bjhh-marquee__item img { max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; display: block; }
@keyframes bjhhMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .bjhh-marquee__set { gap: 14px; padding-right: 14px; }
  .bjhh-marquee__item { width: 150px; height: 96px; padding: 10px 14px; }
  .bjhh-marquee__item img { max-height: 76px; }
  .bjhh-marquee__track { animation-duration: 36s; }
}
@media (prefers-reduced-motion: reduce) {
  .bjhh-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .bjhh-marquee::-webkit-scrollbar { display: none; }
  .bjhh-marquee__track { animation: none; }
  .bjhh-marquee__set[aria-hidden="true"] { display: none; }
}

/* ---------------------------------------------------------------
   Hotel-group cards: the whole card opens the enquiry form
   --------------------------------------------------------------- */
a.bjhh-chain { display: block; color: inherit; text-decoration: none; }
a.bjhh-chain:hover, a.bjhh-chain:focus { color: inherit; }
a.bjhh-chain .team-content p { font-size: 13px; }
a.bjhh-chain .team-content i, a.bjhh-chain .team-content svg { color: #f5761a; margin-left: 3px; }

/* The group / corporate band that used to live here is now the shared
   component in css/bj-group-band.css (bjgb-), used by this page and
   holiday-packages.html. */
