/* ==========================================================================
   Glidova holiday details v4 (tours/details/{id})
   Loaded by holidays/holidays_new/detail_page.php, which adds body.g4-hd and
   the Plus Jakarta Sans font shared with the holiday/activity results pages.
   ========================================================================== */

body.g4-hd {
  --hx-font: "Plus Jakarta Sans", Arial, sans-serif;
  --hx-ink: #123052;
  --hx-text: #35516e;
  --hx-muted: #68809c;
  --hx-faint: #93a6bf;
  --hx-blue: #006ce4;
  --hx-blue-soft: #f0f6ff;
  --hx-orange: #ff591b;
  --hx-orange-dark: #e9470b;
  --hx-navy: #171e43;
  --hx-green: #00843b;
  --hx-green-soft: #eaf7ef;
  --hx-red: #d4111e;
  --hx-red-soft: #fdeeee;
  --hx-amber: #f1b62c;
  --hx-line: #e3e8ef;
  --hx-page: #f7f9fc;
  --hx-shadow: 0 6px 24px rgba(16, 23, 46, .04);
  --hx-width: min(1240px, calc(100vw - 48px));
  background: var(--hx-page) !important;
  font-family: var(--hx-font) !important;
}

body.g4-hd :where(.hd5, .hd5-mobile-bar, .hd5-modal, .hd5-toast) :where(h1, h2, h3, h4, h5, h6, p, a, span, div, li, label, button, strong, small, em, td, th):not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not(.glyphicon) {
  font-family: var(--hx-font) !important;
}

body.g4-hd .hd5-band {
  height: 96px;
  background: var(--hx-navy);
}

body.g4-hd .hd5,
body.g4-hd .hd5 * {
  box-sizing: border-box;
}

body.g4-hd .hd5 {
  clear: both;
  width: var(--hx-width);
  margin: 0 auto;
  padding: 14px 0 48px;
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.5;
}

body.g4-hd .hd5 svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.g4-hd .hd5 a {
  text-decoration: none;
}

/* Breadcrumb ------------------------------------------------------------- */
body.g4-hd .hd5-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--hx-muted);
}

body.g4-hd .hd5-crumbs a {
  color: var(--hx-blue);
}

body.g4-hd .hd5-crumbs a:hover {
  text-decoration: underline;
}

body.g4-hd .hd5-crumbs__current {
  color: var(--hx-muted);
}

/* Title row -------------------------------------------------------------- */
body.g4-hd .hd5-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

body.g4-hd .hd5-head__main {
  min-width: 0;
}

body.g4-hd .hd5-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

body.g4-hd .hd5-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hx-text);
  font-size: 12px;
  font-weight: 600;
}

body.g4-hd .hd5-chip svg {
  width: 14px;
  height: 14px;
  color: var(--hx-muted);
}

body.g4-hd .hd5-chip--type {
  border-color: transparent;
  background: var(--hx-blue-soft);
  color: var(--hx-blue);
}

body.g4-hd .hd5 h1 {
  margin: 0 0 6px;
  color: var(--hx-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

body.g4-hd .hd5-head__place {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--hx-text);
  font-size: 13.5px;
}

body.g4-hd .hd5-head__place svg {
  color: var(--hx-blue);
}

body.g4-hd .hd5-head__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

body.g4-hd .hd5-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hx-line);
  border-radius: 8px;
  background: #fff;
  color: var(--hx-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.g4-hd .hd5-icon-btn:hover {
  border-color: var(--hx-blue);
}

/* Stars: --hd5-rating sets how many of the five are filled. */
body.g4-hd .hd5-stars {
  --hd5-star-size: 12px;
  display: inline-block;
  width: calc(var(--hd5-star-size) * 5);
  height: var(--hd5-star-size);
  background: linear-gradient(90deg, var(--hx-amber) calc(var(--hd5-rating, 0) * 20%), #d6dde7 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 20.9l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E") 0 0 / var(--hd5-star-size) var(--hd5-star-size) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 20.9l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E") 0 0 / var(--hd5-star-size) var(--hd5-star-size) repeat-x;
}

body.g4-hd .hd5-stars--lg {
  --hd5-star-size: 16px;
}

/* Buttons ---------------------------------------------------------------- */
body.g4-hd .hd5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}

body.g4-hd .hd5-btn--primary {
  background: var(--hx-blue);
  color: #fff !important;
}

body.g4-hd .hd5-btn--primary:hover {
  background: #0057b8;
}

body.g4-hd .hd5-btn--block {
  display: flex;
  width: 100%;
  height: 46px;
  font-size: 15px;
}

body.g4-hd .hd5-link-btn {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hx-blue);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

body.g4-hd .hd5-link-btn:hover {
  text-decoration: underline;
}

/* Gallery ---------------------------------------------------------------- */
body.g4-hd .hd5-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 190px 190px;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}

body.g4-hd .hd5-gallery__item {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #dfe6ef;
  overflow: hidden;
  cursor: zoom-in;
}

body.g4-hd .hd5-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

body.g4-hd .hd5-gallery__item:hover img {
  transform: scale(1.03);
}

body.g4-hd .hd5-gallery__item--main {
  grid-row: 1 / span 2;
}

body.g4-hd .hd5-gallery--n1 {
  grid-template-columns: 1fr;
  grid-template-rows: 380px;
}

body.g4-hd .hd5-gallery--n2 {
  grid-template-columns: 2fr 1fr;
}

body.g4-hd .hd5-gallery--n2 .hd5-gallery__item:not(.hd5-gallery__item--main) {
  grid-row: 1 / span 2;
}

body.g4-hd .hd5-gallery--n3 {
  grid-template-columns: 2fr 1fr;
}

body.g4-hd .hd5-gallery--n4 {
  grid-template-columns: 2fr 1fr 1fr;
}

body.g4-hd .hd5-gallery--n4 .hd5-gallery__item:nth-child(4) {
  grid-column: 2 / span 2;
}

body.g4-hd .hd5-gallery__all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 23, 46, .18);
  cursor: pointer;
}

body.g4-hd .hd5-gallery__all:hover {
  background: #fff;
  color: var(--hx-blue);
}

/* Section tabs ----------------------------------------------------------- */
body.g4-hd .hd5-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-bottom: 16px;
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--hx-shadow);
}

body.g4-hd .hd5-tabs__inner {
  display: flex;
  gap: 4px;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.g4-hd .hd5-tabs__inner::-webkit-scrollbar {
  display: none;
}

body.g4-hd .hd5-tabs a {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 14px 13px;
  color: var(--hx-text);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

body.g4-hd .hd5-tabs a:hover {
  color: var(--hx-blue);
}

body.g4-hd .hd5-tabs a.is-active {
  color: var(--hx-blue);
}

body.g4-hd .hd5-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--hx-blue);
}

/* Layout ----------------------------------------------------------------- */
body.g4-hd .hd5-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

body.g4-hd .hd5-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

body.g4-hd .hd5-card {
  padding: 20px 22px;
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--hx-shadow);
  scroll-margin-top: 70px;
}

body.g4-hd .hd5-card h2 {
  margin: 0 0 14px;
  color: var(--hx-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

body.g4-hd .hd5-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.g4-hd .hd5-card__head h2 {
  margin: 0;
}

body.g4-hd .hd5-card__head span {
  color: var(--hx-muted);
  font-size: 12.5px;
  font-weight: 600;
}

body.g4-hd .hd5-muted {
  margin: 0;
  color: var(--hx-muted);
  font-size: 12.5px;
}

/* Rich text from the admin editor. */
body.g4-hd .hd5-prose {
  color: var(--hx-text);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.g4-hd .hd5-prose :where(p, ul, ol) {
  margin: 0 0 10px;
}

body.g4-hd .hd5-prose > :last-child {
  margin-bottom: 0;
}

body.g4-hd .hd5-prose :where(ul, ol) {
  padding-left: 20px;
}

body.g4-hd .hd5-prose li {
  margin-bottom: 4px;
}

body.g4-hd .hd5-prose :where(strong, b) {
  color: var(--hx-ink);
  font-weight: 700;
}

body.g4-hd .hd5-prose :where(h1, h2, h3, h4, h5, h6) {
  margin: 14px 0 6px;
  color: var(--hx-ink);
  font-size: 15px;
  font-weight: 700;
}

body.g4-hd .hd5-prose * {
  font-size: inherit !important;
  line-height: inherit !important;
  background-color: transparent !important;
}

body.g4-hd .hd5-prose :where(span, p, li, div):not(.fa) {
  color: inherit !important;
}

body.g4-hd .hd5-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

body.g4-hd .hd5-clamp {
  max-height: 7.6em;
  overflow: hidden;
}

body.g4-hd .hd5-clamp.is-clamped {
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

body.g4-hd .hd5-clamp.is-expanded {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Overview facts --------------------------------------------------------- */
body.g4-hd .hd5-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

body.g4-hd .hd5-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  background: var(--hx-page);
}

body.g4-hd .hd5-fact svg {
  width: 20px;
  height: 20px;
  color: var(--hx-blue);
}

body.g4-hd .hd5-fact div {
  min-width: 0;
}

body.g4-hd .hd5-fact small {
  display: block;
  color: var(--hx-muted);
  font-size: 11.5px;
}

body.g4-hd .hd5-fact strong {
  display: block;
  overflow: hidden;
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Itinerary -------------------------------------------------------------- */
body.g4-hd .hd5-days {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.g4-hd .hd5-days::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 31px;
  width: 2px;
  background: var(--hx-line);
}

body.g4-hd .hd5-day {
  position: relative;
  margin: 0 0 10px;
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  background: #fff;
}

body.g4-hd .hd5-day:last-child {
  margin-bottom: 0;
}

body.g4-hd .hd5-day__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

body.g4-hd .hd5-day__num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--hx-blue-soft);
  color: var(--hx-blue);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

body.g4-hd .hd5-day.is-open .hd5-day__num {
  background: var(--hx-blue);
  color: #fff;
}

body.g4-hd .hd5-day__title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--hx-ink);
  font-size: 14.5px;
  font-weight: 700;
}

body.g4-hd .hd5 .hd5-day__chev {
  width: 18px;
  height: 18px;
  color: var(--hx-muted);
  transition: transform .2s ease;
}

body.g4-hd .hd5-day.is-open .hd5-day__chev {
  transform: rotate(180deg);
}

body.g4-hd .hd5-day__body {
  display: none;
  gap: 16px;
  padding: 0 16px 16px 62px;
}

body.g4-hd .hd5-day.is-open .hd5-day__body {
  display: flex;
  align-items: flex-start;
}

body.g4-hd .hd5-day__img {
  flex: 0 0 200px;
  width: 200px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
}

body.g4-hd .hd5-day__body .hd5-prose {
  flex: 1 1 auto;
  min-width: 0;
}

/* Inclusions ------------------------------------------------------------- */
body.g4-hd .hd5-incl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

body.g4-hd .hd5-incl__col {
  padding: 14px 16px;
  border-radius: 10px;
}

body.g4-hd .hd5-incl__col--yes {
  background: var(--hx-green-soft);
}

body.g4-hd .hd5-incl__col--no {
  background: var(--hx-red-soft);
}

body.g4-hd .hd5-incl h3,
body.g4-hd .hd5-policy h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--hx-ink);
  font-size: 14px;
  font-weight: 700;
}

body.g4-hd .hd5-incl__col--yes h3 svg {
  color: var(--hx-green);
  stroke-width: 2.4;
}

body.g4-hd .hd5-incl__col--no h3 svg {
  color: var(--hx-red);
  stroke-width: 2.4;
}

/* Policies --------------------------------------------------------------- */
body.g4-hd .hd5-policy__row {
  padding: 12px 0;
  border-top: 1px solid var(--hx-line);
}

body.g4-hd .hd5-policy__row:first-child {
  padding-top: 0;
  border-top: 0;
}

body.g4-hd .hd5-policy__row:last-child {
  padding-bottom: 0;
}

/* Rating ----------------------------------------------------------------- */
body.g4-hd .hd5-score {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.g4-hd .hd5-score__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px 8px 8px 0;
  background: var(--hx-navy);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

body.g4-hd .hd5-score strong {
  display: block;
  color: var(--hx-ink);
  font-size: 15px;
  font-weight: 700;
}

body.g4-hd .hd5-score small {
  display: block;
  margin-top: 2px;
  color: var(--hx-muted);
  font-size: 12px;
}

/* Price card ------------------------------------------------------------- */
body.g4-hd .hd5-side {
  position: sticky;
  top: 66px;
}

body.g4-hd .hd5-price-card {
  padding: 20px;
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--hx-shadow);
}

body.g4-hd .hd5-price-card > small {
  color: var(--hx-muted);
  font-size: 12.5px;
}

body.g4-hd .hd5-price-card__price {
  margin: 2px 0;
  color: var(--hx-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

body.g4-hd .hd5-price-card__price span {
  color: var(--hx-muted);
  font-size: 13px;
  font-weight: 500;
}

body.g4-hd .hd5-price-card__price--ask {
  font-size: 22px;
}

body.g4-hd .hd5-price-card__list {
  display: grid;
  gap: 9px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--hx-line);
  border-bottom: 1px solid var(--hx-line);
  list-style: none;
}

body.g4-hd .hd5-price-card__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--hx-text);
  font-size: 13px;
  font-weight: 500;
}

body.g4-hd .hd5-price-card__list svg {
  color: var(--hx-green);
}

body.g4-hd .hd5-price-card__safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--hx-muted);
  font-size: 12px;
}

body.g4-hd .hd5-price-card__safe svg {
  width: 15px;
  height: 15px;
  color: var(--hx-green);
}

/* Mobile booking bar (hidden on desktop) --------------------------------- */
body.g4-hd .hd5-mobile-bar {
  display: none;
}

/* Gallery modal ---------------------------------------------------------- */
body.g4-hd.gallery-open {
  overflow: hidden !important;
}

body.g4-hd .hd5-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
}

body.g4-hd .hd5-modal.active {
  display: block;
}

body.g4-hd .hd5-modal .gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 32, .92);
}

body.g4-hd .hd5-modal .gallery-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1100px, calc(100vw - 32px));
  height: calc(100vh - 40px);
  margin: 20px auto;
  color: #fff;
}

body.g4-hd .hd5-modal .gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 12px;
}

body.g4-hd .hd5-modal .gallery-modal-title strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

body.g4-hd .hd5-modal .gallery-modal-title small {
  color: rgba(255, 255, 255, .7);
  font-size: 12.5px;
}

body.g4-hd .hd5-modal .gallery-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}

body.g4-hd .hd5-modal .gallery-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

body.g4-hd .hd5-modal .gallery-viewer {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-height: 0;
}

body.g4-hd .hd5-modal .gallery-image-container {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
}

body.g4-hd .hd5-modal #galleryModalImage {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

body.g4-hd .hd5-modal .gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--hx-ink);
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}

body.g4-hd .hd5-modal .gallery-prev {
  left: 8px;
}

body.g4-hd .hd5-modal .gallery-next {
  right: 8px;
}

body.g4-hd .hd5-modal .gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  overflow-x: auto;
}

body.g4-hd .hd5-modal .gallery-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  opacity: .6;
  overflow: hidden;
  cursor: pointer;
}

body.g4-hd .hd5-modal .gallery-thumb.active {
  border-color: #fff;
  opacity: 1;
}

body.g4-hd .hd5-modal .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Toast ------------------------------------------------------------------ */
body.g4-hd .hd5-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10060;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--hx-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease;
}

body.g4-hd .hd5-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  body.g4-hd .hd5-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  body.g4-hd .hd5-band {
    height: 70px;
  }

  body.g4-hd .hd5 {
    width: calc(100vw - 24px);
    padding-bottom: 96px;
  }

  body.g4-hd .hd5-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.g4-hd .hd5-head__actions .hd5-btn {
    display: none;
  }

  body.g4-hd .hd5 h1 {
    font-size: 22px;
  }

  body.g4-hd .hd5-gallery,
  body.g4-hd .hd5-gallery[class*="hd5-gallery--n"] {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
    border-radius: 10px;
  }

  body.g4-hd .hd5-gallery__item:not(.hd5-gallery__item--main) {
    display: none;
  }

  body.g4-hd .hd5-gallery__item--main {
    grid-row: auto;
  }

  body.g4-hd .hd5-layout {
    grid-template-columns: 1fr;
  }

  body.g4-hd .hd5-side {
    position: static;
  }

  body.g4-hd .hd5-card {
    padding: 16px;
  }

  body.g4-hd .hd5-day__body,
  body.g4-hd .hd5-day.is-open .hd5-day__body {
    flex-direction: column;
    padding: 0 14px 14px;
  }

  body.g4-hd .hd5-day__img {
    flex-basis: auto;
    width: 100%;
    height: 180px;
  }

  body.g4-hd .hd5-days::before {
    display: none;
  }

  body.g4-hd .hd5-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hx-line);
    background: #fff;
    box-shadow: 0 -6px 20px rgba(16, 23, 46, .08);
  }

  body.g4-hd .hd5-mobile-bar small {
    display: block;
    color: var(--hx-muted);
    font-size: 11.5px;
  }

  body.g4-hd .hd5-mobile-bar strong {
    color: var(--hx-ink);
    font-size: 18px;
    font-weight: 800;
  }
}

@media (max-width: 560px) {
  body.g4-hd .hd5-facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.g4-hd .hd5-fact {
    padding: 9px 10px;
  }
}

/* ==========================================================================
   Enquiry summary page (tours/summaryPage/{id}) — body.g4-hs
   ========================================================================== */
body.g4-hs :where(.hs5) :where(input, textarea, select) {
  font-family: var(--hx-font) !important;
}

body.g4-hs .hs5-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

body.g4-hs .hs5-steps li {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  color: var(--hx-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

body.g4-hs .hs5-steps li:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  margin-left: 4px;
  border-radius: 2px;
  background: var(--hx-line);
}

body.g4-hs .hs5-steps li.is-done::after {
  background: var(--hx-blue);
}

body.g4-hs .hs5-steps li > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--hx-line);
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

body.g4-hs .hs5-steps li.is-done,
body.g4-hs .hs5-steps li.is-active {
  color: var(--hx-ink);
}

body.g4-hs .hs5-steps li.is-done > span,
body.g4-hs .hs5-steps li.is-active > span {
  border-color: var(--hx-blue);
  background: var(--hx-blue);
  color: #fff;
}

body.g4-hs .hs5 .hs5-steps svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

body.g4-hs .hs5-banners {
  margin-bottom: 16px;
}

body.g4-hs .hs5-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

body.g4-hs .hs5-side {
  display: grid;
  gap: 12px;
}

body.g4-hs .hs5-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* Package summary */
body.g4-hs .hs5-pkg {
  padding: 0;
  overflow: hidden;
}

body.g4-hs .hs5-pkg__img {
  height: 180px;
  background: #dfe6ef;
}

body.g4-hs .hs5-pkg__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.g4-hs .hs5-pkg__body {
  padding: 16px 18px 18px;
}

body.g4-hs .hs5-pkg h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

body.g4-hs .hs5-pkg .hd5-head__place {
  align-items: flex-start;
  font-size: 12.5px;
}

body.g4-hs .hs5-pkg .hd5-head__place svg {
  margin-top: 2px;
}

body.g4-hs .hs5-pkg__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--hx-ink);
  font-size: 12.5px;
  font-weight: 700;
}

body.g4-hs .hs5-pkg .hd5-price-card__list {
  margin: 14px 0 12px;
  padding: 12px 0;
}

body.g4-hs .hs5-pkg__price small {
  color: var(--hx-muted);
  font-size: 12px;
}

body.g4-hs .hs5-pkg__price strong {
  display: block;
  color: var(--hx-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

body.g4-hs .hs5-pkg__price strong span {
  color: var(--hx-muted);
  font-size: 12.5px;
  font-weight: 500;
}

/* Collapsible side cards */
body.g4-hs .hs5-acc {
  padding: 0;
}

body.g4-hs .hs5-acc summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

body.g4-hs .hs5-acc summary::-webkit-details-marker {
  display: none;
}

body.g4-hs .hs5-acc summary h3 {
  flex: 1 1 auto;
  margin: 0;
  color: var(--hx-ink);
  font-size: 14.5px;
  font-weight: 700;
}

body.g4-hs .hs5-acc summary span {
  color: var(--hx-muted);
  font-size: 12px;
  font-weight: 600;
}

body.g4-hs .hs5 .hs5-acc summary svg {
  width: 18px;
  height: 18px;
  color: var(--hx-muted);
  transition: transform .2s ease;
}

body.g4-hs .hs5-acc[open] summary svg {
  transform: rotate(180deg);
}

body.g4-hs .hs5-acc > :not(summary) {
  margin-right: 18px;
  margin-left: 18px;
}

body.g4-hs .hs5-acc > :last-child {
  margin-bottom: 16px;
}

body.g4-hs .hs5-acc .hd5-link-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
}

body.g4-hs .hs5-acc__block {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--hx-page);
}

body.g4-hs .hs5-acc__block--yes {
  background: var(--hx-green-soft);
}

body.g4-hs .hs5-acc__block--no {
  background: var(--hx-red-soft);
}

body.g4-hs .hs5-acc__block h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 700;
}

body.g4-hs .hs5-acc__block--yes svg {
  color: var(--hx-green);
  stroke-width: 2.4;
}

body.g4-hs .hs5-acc__block--no svg {
  color: var(--hx-red);
  stroke-width: 2.4;
}

body.g4-hs .hs5-acc .hd5-prose {
  font-size: 13px;
}

body.g4-hs .hs5-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.g4-hs .hs5-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 23px;
  width: 2px;
  background: var(--hx-line);
}

body.g4-hs .hs5-timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.g4-hs .hs5-timeline__num {
  flex: 0 0 48px;
  padding: 3px 0;
  border-radius: 6px;
  background: var(--hx-blue-soft);
  color: var(--hx-blue);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

body.g4-hs .hs5-timeline__place {
  color: var(--hx-ink);
  font-size: 13.5px;
  font-weight: 600;
}

/* Enquiry form */
body.g4-hs .hs5-form-card {
  padding: 24px 26px;
}

body.g4-hs .hs5-form-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

body.g4-hs .hs5-lead {
  margin: 0 0 20px;
  color: var(--hx-text);
  font-size: 14px;
}

body.g4-hs .hs5-lead strong {
  color: var(--hx-ink);
  font-weight: 700;
}

body.g4-hs .hs5-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

body.g4-hs .hs5-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.g4-hs .hs5-field--full {
  grid-column: 1 / -1;
}

body.g4-hs .hs5-field label {
  margin: 0 0 6px;
  color: var(--hx-ink);
  font-size: 13.5px;
  font-weight: 700;
}

body.g4-hs .hs5-req {
  color: var(--hx-red);
}

body.g4-hs .hs5-field :is(input, textarea) {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c4cfdc;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: var(--hx-ink);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.g4-hs .hs5-field textarea {
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

body.g4-hs .hs5-field :is(input, textarea)::placeholder {
  color: var(--hx-faint);
}

body.g4-hs .hs5-field :is(input, textarea):hover {
  border-color: #93a6bf;
}

body.g4-hs .hs5-field :is(input, textarea):focus {
  border-color: var(--hx-blue);
  box-shadow: 0 0 0 3px rgba(0, 108, 228, .15);
}

body.g4-hs .hs5-field.has-error :is(input, textarea) {
  border-color: var(--hx-red);
  box-shadow: 0 0 0 3px rgba(212, 17, 30, .1);
}

body.g4-hs .hs5-error {
  display: none;
  margin-top: 5px;
  color: var(--hx-red);
  font-size: 12px;
  font-weight: 600;
}

body.g4-hs .hs5-field.has-error .hs5-error {
  display: block;
}

body.g4-hs .hs5-hint {
  margin-top: 5px;
  color: var(--hx-muted);
  font-size: 12px;
}

body.g4-hs .hs5-field.has-error .hs5-hint {
  display: none;
}

body.g4-hs .hs5-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

body.g4-hs .hs5-alert--success {
  border: 1px solid #a8dcbc;
  background: var(--hx-green-soft);
  color: #0b5d2c;
}

body.g4-hs .hs5-alert--error {
  border: 1px solid #f3b8bc;
  background: var(--hx-red-soft);
  color: #9b0d17;
}

body.g4-hs .hs5-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hx-line);
}

body.g4-hs .hs5-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hx-blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.g4-hs .hs5-back:hover {
  text-decoration: underline;
}

body.g4-hs .hs5 .hs5-back svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

body.g4-hs .hs5-send {
  min-width: 200px;
  height: 46px;
  font-size: 15px;
}

body.g4-hs .hs5-send:disabled {
  opacity: .7;
  cursor: wait;
}

body.g4-hs .hs5-safe {
  justify-content: flex-end;
}

/* What happens next */
body.g4-hs .hs5-next h2 {
  font-size: 17px;
}

body.g4-hs .hs5-next ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.g4-hs .hs5-next li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

body.g4-hs .hs5-next li > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hx-blue-soft);
  color: var(--hx-blue);
  font-size: 13px;
  font-weight: 800;
}

body.g4-hs .hs5-next strong {
  display: block;
  color: var(--hx-ink);
  font-size: 13.5px;
  font-weight: 700;
}

body.g4-hs .hs5-next p {
  margin: 2px 0 0;
  color: var(--hx-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  body.g4-hs .hs5 {
    padding-bottom: 40px;
  }

  body.g4-hs .hs5-layout {
    grid-template-columns: 1fr;
  }

  body.g4-hs .hs5-main {
    order: -1;
  }

  body.g4-hs .hs5-pkg {
    display: flex;
  }

  body.g4-hs .hs5-pkg__img {
    flex: 0 0 120px;
    height: auto;
    min-height: 120px;
  }

  body.g4-hs .hs5-pkg .hd5-price-card__list {
    display: none;
  }

  body.g4-hs .hs5-form-card {
    padding: 18px 16px;
  }

  body.g4-hs .hs5-form-card h1 {
    font-size: 20px;
  }

  body.g4-hs .hs5-next ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.g4-hs .hs5-steps li {
    font-size: 0;
  }

  body.g4-hs .hs5-steps li.is-active {
    font-size: 12.5px;
  }

  body.g4-hs .hs5-form__grid {
    grid-template-columns: 1fr;
  }

  body.g4-hs .hs5-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  body.g4-hs .hs5-send {
    width: 100%;
  }

  body.g4-hs .hs5-back {
    justify-content: center;
  }

  body.g4-hs .hs5-safe {
    justify-content: center;
  }
}

/* ==========================================================================
   Enquiry thank-you page (tours/enquiry_thankyou/{id})
   ========================================================================== */
body.g4-hs .ty5-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 28px;
}

body.g4-hs .ty5-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

body.g4-hs .ty5-hero__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--hx-green);
  color: #fff;
  box-shadow: 0 0 0 8px var(--hx-green-soft);
}

body.g4-hs .ty5 .ty5-hero__badge svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.6;
}

body.g4-hs .ty5-hero h1 {
  margin: 4px 0 8px;
  font-size: 24px;
}

body.g4-hs .ty5-hero__main p {
  margin: 0;
  color: var(--hx-text);
  font-size: 14.5px;
}

body.g4-hs .ty5-hero__main p strong {
  color: var(--hx-ink);
  font-weight: 700;
}

body.g4-hs .ty5-hero__next {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

body.g4-hs .ty5-hero__next li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--hx-text);
  font-size: 13.5px;
  font-weight: 500;
}

body.g4-hs .ty5-hero__next svg {
  color: var(--hx-blue);
}

body.g4-hs .ty5-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.g4-hs .ty5-btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--hx-blue);
  border-radius: 8px;
  color: var(--hx-blue) !important;
  font-size: 14px;
  font-weight: 700;
}

body.g4-hs .ty5-btn-ghost:hover {
  background: var(--hx-blue-soft);
}

body.g4-hs .ty5-hero__pkg {
  display: block;
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  background: var(--hx-page);
  overflow: hidden;
}

body.g4-hs .ty5-hero__pkg img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

body.g4-hs .ty5-hero__pkg > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

body.g4-hs .ty5-hero__pkg small {
  color: var(--hx-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.g4-hs .ty5-hero__pkg strong {
  color: var(--hx-ink);
  font-size: 15px;
  font-weight: 700;
}

body.g4-hs .ty5-hero__pkg span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hx-text);
  font-size: 12.5px;
}

body.g4-hs .ty5 .ty5-hero__pkg svg {
  width: 14px;
  height: 14px;
  color: var(--hx-muted);
}

/* Similar packages */
body.g4-hs .ty5-similar__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.g4-hs .ty5-similar__head h2 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 21px;
  font-weight: 800;
}

body.g4-hs .ty5-similar__head p {
  margin: 2px 0 0;
  color: var(--hx-muted);
  font-size: 13px;
}

body.g4-hs .ty5-similar__head .hd5-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

body.g4-hs .ty5-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.g4-hs .ty5-card {
  min-width: 0;
}

body.g4-hs .ty5-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--hx-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--hx-shadow);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

body.g4-hs .ty5-card__link:hover {
  box-shadow: 0 10px 28px rgba(16, 23, 46, .09);
  transform: translateY(-2px);
}

body.g4-hs .ty5-card__img {
  position: relative;
  height: 170px;
  background: #e8eef5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a6bf' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / 44px no-repeat;
}

body.g4-hs .ty5-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.g4-hs .ty5-card__dur {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(23, 30, 67, .85);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

body.g4-hs .ty5-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 14px 16px 16px;
}

body.g4-hs .ty5-card__type {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hx-blue-soft);
  color: var(--hx-blue);
  font-size: 11px;
  font-weight: 700;
}

body.g4-hs .ty5-card h3 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

body.g4-hs .ty5-card__place {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  color: var(--hx-text);
  font-size: 12.5px;
}

body.g4-hs .ty5 .ty5-card__place svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--hx-muted);
}

body.g4-hs .ty5-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
}

body.g4-hs .ty5-card__price small {
  display: block;
  color: var(--hx-muted);
  font-size: 11.5px;
}

body.g4-hs .ty5-card__price strong {
  color: var(--hx-ink);
  font-size: 18px;
  font-weight: 800;
}

body.g4-hs .ty5-card__cta {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--hx-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

body.g4-hs .ty5-card__link:hover .ty5-card__cta {
  background: #0057b8;
}

@media (max-width: 991px) {
  body.g4-hs .ty5-hero {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  body.g4-hs .ty5-hero h1 {
    font-size: 20px;
  }

  body.g4-hs .ty5-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body.g4-hs .ty5-hero__main {
    flex-direction: column;
    gap: 12px;
  }

  body.g4-hs .ty5-grid {
    grid-template-columns: 1fr;
  }

  body.g4-hs .ty5-similar__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Dark mode
   ========================================================================== */
body.g4-hd.dark-mode {
  --hx-ink: #f3f4f8;
  --hx-text: #c3c9d6;
  --hx-muted: #8b93a7;
  --hx-faint: #5f6780;
  --hx-blue: #5b61e0;
  --hx-blue-soft: rgba(91, 97, 224, .16);
  --hx-navy: #111733;
  --hx-green: #4ade80;
  --hx-green-soft: rgba(34, 197, 94, .12);
  --hx-red: #f87171;
  --hx-red-soft: rgba(239, 68, 68, .12);
  --hx-line: rgba(255, 255, 255, .08);
  --hx-page: #0f1528;
  --hx-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --gd-card: #151b31;
  --gd-field: #0f1528;
  --gd-tile: #1b2240;
  background: #0b1020 !important;
}

body.g4-hd.dark-mode :is(.hd5-card, .hd5-tabs, .hd5-price-card, .hd5-day, .ty5-card__link) {
  background: var(--gd-card);
  border-color: var(--hx-line);
}

body.g4-hd.dark-mode .ty5-card__link:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

body.g4-hd.dark-mode :is(.hd5-chip, .hd5-icon-btn) {
  background: var(--gd-card);
  border-color: rgba(255, 255, 255, .14);
}

body.g4-hd.dark-mode :is(.hd5-crumbs a, .hd5-icon-btn, .hd5-tabs a.is-active, .hd5-link-btn, .hs5-back, .ty5-btn-ghost, .ty5-hero__next svg, .hd5-fact svg) {
  color: #a5a9f5 !important;
}

body.g4-hd.dark-mode .ty5-btn-ghost {
  border-color: #6f75f0;
}

body.g4-hd.dark-mode :is(.hd5-chip--type, .hd5-day__num, .hs5-timeline__num, .hs5-next li > span, .ty5-card__type) {
  background: rgba(91, 97, 224, .2);
  color: #c7caff;
}

body.g4-hd.dark-mode .hd5-day.is-open .hd5-day__num {
  background: var(--hx-blue);
  color: #fff;
}

body.g4-hd.dark-mode .ty5-card__link:hover .ty5-card__cta,
body.g4-hd.dark-mode .hd5-btn--primary:hover {
  background: #4a50d0;
}

body.g4-hd.dark-mode .hd5-stars {
  background: linear-gradient(90deg, var(--hx-amber) calc(var(--hd5-rating, 0) * 20%), #3b4360 0);
}

body.g4-hd.dark-mode :is(.hd5-gallery__item, .hs5-pkg__img) {
  background: var(--gd-tile);
}

body.g4-hd.dark-mode .ty5-card__img {
  background-color: var(--gd-tile);
}

body.g4-hd.dark-mode .hd5-gallery__all {
  background: rgba(21, 27, 49, .92);
  color: var(--hx-ink);
}

body.g4-hd.dark-mode .hd5-gallery__all:hover {
  background: var(--gd-card);
}

body.g4-hd.dark-mode .hd5-score__badge {
  background: var(--hx-blue);
}

body.g4-hd.dark-mode .hs5-steps li > span {
  background: var(--gd-card);
}

body.g4-hd.dark-mode .hs5-steps li:is(.is-done, .is-active) > span {
  background: var(--hx-blue);
}

body.g4-hd.dark-mode .hs5-field :is(input, textarea) {
  background: var(--gd-field);
  border-color: rgba(255, 255, 255, .14);
}

body.g4-hd.dark-mode .hs5-field :is(input, textarea)::placeholder {
  color: var(--hx-muted);
}

body.g4-hd.dark-mode .hs5-field :is(input, textarea):hover {
  border-color: rgba(255, 255, 255, .25);
}

body.g4-hd.dark-mode .hs5-field :is(input, textarea):focus {
  border-color: #6f75f0;
  box-shadow: 0 0 0 3px rgba(91, 97, 224, .25);
}

body.g4-hd.dark-mode .hs5-alert--success {
  border-color: rgba(74, 222, 128, .3);
  color: #86efac;
}

body.g4-hd.dark-mode .hs5-alert--error {
  border-color: rgba(248, 113, 113, .3);
  color: #fca5a5;
}

body.g4-hd.dark-mode .ty5-hero__badge {
  background: #16a34a;
}

@media (max-width: 991px) {
  body.g4-hd.dark-mode .hd5-mobile-bar {
    background: var(--gd-card);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .4);
  }
}
