/* =====================================================================
   Beyond Journey - Hotel journey: hero, search widget, landing sections
   ---------------------------------------------------------------------
   The design team's hotels.html carried these rules inline; they live
   here so the same widget serves the landing page and the "modify search"
   bar on the results page. Tokens match the flights/holiday panels.
   ===================================================================== */
:root {
  --bjhs-primary: #f5761a;
  --bjhs-dark: #17233e;
  --bjhs-muted: #56607a;
  --bjhs-line: #e7e6e1;
  --bjhs-tint: #fdf1e6;
  --bjhs-grad: linear-gradient(90deg, #f5761a 0%, #dd660f 100%);
}

/* ---------------- hero ---------------- */
.hotel-hero { position: relative; display: flex; flex-direction: column; padding: 44px 0 52px; }
.hotel-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hotel-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,35,62,.70) 0%, rgba(23,35,62,.44) 48%, rgba(23,35,62,.62) 100%);
}
.hotel-hero__text { position: relative; z-index: 2; text-align: center; padding: 0 16px; margin-bottom: 26px; }
.hotel-hero__kicker {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 7px 18px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; letter-spacing: 1px; text-transform: uppercase; font-size: clamp(11px, .25vw + 10px, 12px); font-weight: 600;
}
.hotel-hero__kicker i { color: var(--bjhs-primary); }
.hotel-hero__text h1 { font-size: clamp(24px, 2.4vw + 12px, 34px); line-height: 1.2; color: #fff; }
.hotel-hero__text p { font-size: clamp(13.5px, .5vw + 12px, 16px); line-height: 1.55; max-width: 620px; margin: 4px auto 0; color: #fff; opacity: .85; }
.hotel-search-inner { position: relative; z-index: 5; }
@media (max-width: 991px) { .hotel-hero { padding: 32px 0 36px; } }
@media (max-width: 767px) { .hotel-hero { padding: 30px 0 30px; } .hotel-hero__text { margin-bottom: 18px; } }

/* ---------------- search card ---------------- */
.hotel-card {
  background: #fff; border: 1px solid #eceae4; border-radius: 22px; padding: 24px 24px 40px;
  box-shadow: 0 6px 16px -10px rgba(23,35,62,.18), 0 28px 60px -24px rgba(23,35,62,.38);
  max-width: 1250px; margin: auto; position: relative; width: 95%;
}
.hotel-card--bar { padding: 16px 16px 34px; border-radius: 16px; width: 100%; box-shadow: 0 10px 30px -18px rgba(23,35,62,.35); }
.card-heading { font-size: 17px; font-weight: 800; margin-bottom: 14px; color: var(--bjhs-dark); display: flex; align-items: center; gap: 10px; }
.card-heading i { color: var(--bjhs-primary); }

.search-grid { display: flex; border: 1px solid var(--bjhs-line); border-radius: 14px; position: relative; background: #fff; }
.grid-item { flex: 1; min-width: 0; padding: 12px 16px; border-right: 1px solid var(--bjhs-line); position: relative; cursor: pointer; transition: background-color .25s ease; }
.grid-item:last-child { border-right: none; }
.grid-item:hover, .grid-item.is-open { background: var(--bjhs-tint); }
.grid-item.is-invalid { box-shadow: inset 0 0 0 2px #d9534f; }
@media (min-width: 992px) {
  .grid-item:first-child { border-radius: 13px 0 0 13px; }
  .grid-item:last-child { border-radius: 0 13px 13px 0; }
  .grid-item--dest { flex: 1.4; }
}
.label-text { color: var(--bjhs-primary); font-weight: 700; font-size: 12px; margin-bottom: 4px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-wrap { margin-right: 5px; font-size: 12px; }
.main-val { font-size: 17px; font-weight: 800; color: var(--bjhs-dark); display: block; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-val small { font-size: 13px; font-weight: 600; color: var(--bjhs-muted); }
.sub-text { font-size: 12px; color: var(--bjhs-muted); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the typed field sits where the display value is, so the label above it stays put */
.grid-item--dest .main-val { display: none; }
.grid-item--dest.is-open .main-val,
.grid-item--dest .dest-input { display: block; }
.dest-input {
  width: 100%; border: 0; outline: 0; padding: 0; margin: 0; background: transparent;
  font: inherit; font-size: 17px; font-weight: 800; color: var(--bjhs-dark); line-height: 1.25;
}
.dest-input::placeholder { color: #a7aebf; font-weight: 600; }

/* quick picks */
.hotel-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--bjhs-muted); }
.hotel-quick > span { font-weight: 700; color: var(--bjhs-dark); margin-right: 2px; }
.hotel-quick button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--bjhs-line); border-radius: 999px;
  background: #fff; color: var(--bjhs-dark); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.hotel-quick button i { color: var(--bjhs-primary); font-size: 11px; }
.hotel-quick button:hover, .hotel-quick button.is-on { border-color: var(--bjhs-primary); background: var(--bjhs-tint); color: var(--bjhs-primary); }

/* popovers */
.pop-popup, .dest-menu {
  position: absolute; top: 100%; left: 0; width: 340px; background: #fff; border: 1px solid #eceae4;
  box-shadow: 0 18px 46px -14px rgba(23,35,62,.35); border-radius: 14px; z-index: 1000; display: none; padding: 14px; margin-top: 8px; cursor: default;
}
.pop-popup.is-open, .dest-menu.is-open { display: block; }
.pop-popup.right-align { right: 0; left: auto; }
.dest-menu { padding: 6px; max-height: 320px; overflow-y: auto; }
.dest-menu[role="listbox"] .option-item { padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: 8px; cursor: pointer; }
.dest-menu .option-item i { color: #888; width: 16px; text-align: center; }
.dest-menu .option-item strong { display: block; font-size: 14px; color: var(--bjhs-dark); }
.dest-menu .option-item small { display: block; color: #777; font-size: 12px; }
.dest-menu .option-item:hover, .dest-menu .option-item.is-active { background: var(--bjhs-tint); }
.dest-menu .dest-note { padding: 12px; font-size: 13px; color: var(--bjhs-muted); display: flex; align-items: center; gap: 8px; }
.dest-menu .dest-note i { color: var(--bjhs-primary); }

/* occupancy */
.occ-room { border: 1px solid var(--bjhs-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.occ-room__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--bjhs-dark); font-size: 13px; margin-bottom: 8px; }
.occ-room__head button { border: 0; background: none; color: #d9534f; font-size: 12px; cursor: pointer; font-family: inherit; }
.occ-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13.5px; color: var(--bjhs-dark); }
.occ-row small { display: block; color: #777; font-size: 11.5px; }
.occ-ctrl { display: flex; align-items: center; gap: 10px; }
.occ-ctrl output { min-width: 16px; text-align: center; font-weight: 700; }
.counter-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bjhs-primary); background: #fff; cursor: pointer; font-weight: 700; color: var(--bjhs-primary); line-height: 1; }
.counter-btn:disabled { opacity: .35; cursor: not-allowed; }
.occ-ages { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.occ-ages select, .occ-nat select {
  font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--bjhs-line); border-radius: 8px; background: #fff; color: var(--bjhs-dark);
}
.occ-ages select.is-invalid { border-color: #d9534f; }
.occ-add { width: 100%; border: 1px dashed var(--bjhs-primary); background: #fff; color: var(--bjhs-primary); border-radius: 8px; padding: 8px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px; }
.occ-add:disabled { opacity: .4; cursor: not-allowed; }
.occ-nat { margin: 12px 0 4px; font-size: 13px; color: var(--bjhs-dark); }
.occ-nat label { display: block; font-weight: 700; margin-bottom: 4px; }
.occ-nat select { width: 100%; }
.occ-apply { width: 100%; padding: 9px; background: var(--bjhs-primary); color: #fff; border: 0; border-radius: 6px; font-weight: 700; cursor: pointer; margin-top: 8px; font-family: inherit; }

/* search button */
.search-btn {
  background: var(--bjhs-grad); color: #fff; border: none; padding: 13px 56px; font-size: 17px; font-weight: 800; letter-spacing: .5px;
  white-space: nowrap; border-radius: 60px; position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 10px 28px rgba(245,118,26,.45); cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; font-family: inherit;
}
.search-btn:hover { transform: translateX(-50%) translateY(-2px) scale(1.02); box-shadow: 0 14px 34px rgba(245,118,26,.55); }
.search-btn:disabled { opacity: .7; cursor: progress; transform: translateX(-50%); }
.search-error { display: none; margin: 12px 0 0; color: #b02a37; font-size: 13px; font-weight: 600; }
.search-error.is-on { display: block; }

/* flatpickr accents */
.flatpickr-calendar { border-radius: 16px !important; box-shadow: 0 15px 40px rgba(0,0,0,.2) !important; border: none !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--bjhs-primary) !important; border-color: var(--bjhs-primary) !important; }
.flatpickr-day.inRange { background: var(--bjhs-tint) !important; border-color: var(--bjhs-tint) !important; box-shadow: none !important; }

/* responsive grid */
@media (max-width: 991px) {
  .search-grid { flex-wrap: wrap; }
  .grid-item { flex: 1 1 50% !important; border-bottom: 1px solid var(--bjhs-line); }
}
@media (max-width: 576px) {
  .grid-item { flex: 1 1 100% !important; padding: 10px 14px; }
  .pop-popup, .dest-menu { width: 100%; }
  .search-btn { font-size: 15px; padding: 12px 34px; }
  .hotel-card { padding: 20px 16px 34px; }
  .card-heading { font-size: 16px; margin-bottom: 11px; }
}

/* ---------------- landing sections ---------------- */
.bjhs-strip { background: var(--bjhs-dark); color: #fff; padding: 40px 0 18px; }
.bjhs-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bjhs-strip__item { text-align: center; padding: 6px 8px; }
.bjhs-strip__item strong { display: block; font-size: 24px; font-weight: 800; color: #fff; }
.bjhs-strip__item span { font-size: 12.5px; opacity: .8; }
@media (max-width: 767px) { .bjhs-strip__grid { grid-template-columns: repeat(2, 1fr); } .bjhs-strip { padding: 28px 0 14px; } }

.bjhs-section { padding: 56px 0; }
.bjhs-section--tint { background: #f7f5f0; }
.bjhs-section .section-title h4 { color: var(--bjhs-primary); }
.bjhs-cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bjhs-city {
  position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #dfe4ee; color: #fff; text-decoration: none;
  box-shadow: 0 10px 30px -18px rgba(23,35,62,.5);
}
.bjhs-city img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bjhs-city:hover img { transform: scale(1.05); }
.bjhs-city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,35,62,0) 40%, rgba(23,35,62,.85) 100%); }
.bjhs-city__txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.bjhs-city__txt strong { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.bjhs-city__txt span { font-size: 12.5px; opacity: .9; color: #fff; }
@media (max-width: 991px) { .bjhs-cities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .bjhs-cities { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.bjhs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bjhs-step { background: #fff; border: 1px solid #eceae4; border-radius: 16px; padding: 24px 22px; box-shadow: 0 10px 30px -22px rgba(23,35,62,.35); }
.bjhs-step__n { width: 40px; height: 40px; border-radius: 50%; background: var(--bjhs-tint); color: var(--bjhs-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.bjhs-step h3 { font-size: 17px; margin: 0 0 6px; color: var(--bjhs-dark); }
.bjhs-step p { margin: 0; color: var(--bjhs-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 767px) { .bjhs-steps { grid-template-columns: 1fr; } }

.bjhs-faq { max-width: 860px; margin: 0 auto; }
.bjhs-faq details { border: 1px solid #eceae4; border-radius: 12px; background: #fff; padding: 0 18px; margin-bottom: 10px; }
.bjhs-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--bjhs-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bjhs-faq summary::-webkit-details-marker { display: none; }
.bjhs-faq summary::after { content: "\002B"; color: var(--bjhs-primary); font-weight: 800; font-size: 18px; }
.bjhs-faq details[open] summary::after { content: "\2212"; }
.bjhs-faq details p { margin: 0 0 14px; color: var(--bjhs-muted); font-size: 14px; line-height: 1.65; }

.bjhs-cta { background: var(--bjhs-dark); color: #fff; padding: 48px 0; text-align: center; }
.bjhs-cta h2 { color: #fff; font-size: clamp(22px, 2vw + 12px, 30px); margin-bottom: 8px; }
.bjhs-cta p { color: #fff; opacity: .85; max-width: 620px; margin: 0 auto 18px; }
.bjhs-cta .nir-btn { display: inline-flex; align-items: center; gap: 8px; }
