/* ==========================================================================
   Glidova holiday results v4 (tours/search)
   Loaded by holidays/tours.php and sightseeing/search_result_page.php, which
   add body.g4-hol and the Plus Jakarta Sans font used on the flight and hotel
   results pages. Activity-specific rules live in activity_results_v4.css.
   ========================================================================== */

body.g4-hol {
  --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-navy: #171e43;
  --hx-green: #00843b;
  --hx-amber: #f1b62c;
  --hx-line: #e3e8ef;
  --hx-page: #f7f9fc;
  --hx-shadow: 0 6px 24px rgba(16, 23, 46, .04);
  --hx-shadow-hover: 0 10px 28px rgba(16, 23, 46, .09);
  --hx-width: min(1240px, calc(100vw - 48px));
  background: var(--hx-page) !important;
  font-family: var(--hx-font) !important;
}

/* tours-style.css sets overflow-x:hidden on html+body, which turns body into the
   scroll container and breaks the window-scroll sticky header/search bar. */
html:has(> body.g4-hol),
body.g4-hol {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

body.g4-hol :where(.hx4, .modfictions:is(.for_holiday_modi, .for_activity_modi), .select2-container) :where(h1, h2, h3, h4, h5, h6, p, a, span, div, li, label, button, input, select, strong, small, em):not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not(.glyphicon) {
  font-family: var(--hx-font) !important;
}

/* --------------------------------------------------------------------------
   Search band: navy strip behind the transparent header, search bar
   overlapping its lower edge.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi),
  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) .hotel-modern-hero-wrap,
  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) .hotel-modern-hero {
    height: 150px !important;
    min-height: 0 !important;
    margin: 0 !important;
    top: 0 !important;
    background-color: var(--hx-navy) !important;
    background-image: none !important;
    overflow: visible !important;
  }

  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) {
    position: relative;
    z-index: 1;
    margin-bottom: 52px !important;
  }

  /* The admin hero image arrives as an inline !important background; clip it
     to an empty content box instead of fighting the inline declaration. */
  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) .hotel-modern-hero {
    box-sizing: border-box !important;
    padding: 150px 0 0 !important;
    background-clip: content-box !important;
  }

  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) .hotel-modern-hero::before,
  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) .hotel-modern-hero::after,
  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) .hotel-modern-hero-wrap::before,
  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) .hotel-modern-hero-wrap::after {
    display: none !important;
  }

  body.g4-hol .modfictions:is(.for_holiday_modi, .for_activity_modi) .hotel-modern-content {
    display: none !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search):not(.hotel-search-sticky) {
    position: absolute !important;
    top: 118px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    width: var(--hx-width) !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 8px 8px 12px !important;
    background: #fff !important;
    background-image: none !important;
    border: 1px solid var(--hx-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(16, 23, 46, .10) !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search).hotel-search-sticky {
    border-radius: 0 !important;
    border-width: 0 0 1px !important;
    box-shadow: 0 4px 14px rgba(16, 23, 46, .06) !important;
    padding: 8px max(8px, calc((100vw - 1240px) / 2)) !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-field:not(.hotel-modern-action) {
    position: relative;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 6px 16px !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid var(--hx-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-field:not(.hotel-modern-action):has(+ .hotel-modern-action) {
    border-right: 0 !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-field:not(.hotel-modern-action)::before,
  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-field:not(.hotel-modern-action)::after,
  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-icon {
    display: none !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-text {
    width: 100%;
    padding: 0 !important;
    min-width: 0;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-label {
    display: block !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    color: var(--hx-muted) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 14px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-text > .select2-container .select2-selection {
    height: 20px !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-text > .select2-container .select2-selection__rendered {
    padding: 0 18px 0 0 !important;
    color: var(--hx-ink) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-text > .select2-container .select2-selection__arrow {
    height: 20px !important;
    top: 0 !important;
    right: 0 !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-field.hotel-modern-action {
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 0 0 8px !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-search-button {
    width: auto !important;
    min-width: 120px !important;
    height: 48px !important;
    padding: 0 24px !important;
    background: var(--hx-orange) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 18px rgba(255, 90, 31, .25) !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-search-button:hover {
    background: #e84a10 !important;
  }

  body.g4-hol :is(#holiday_search, #activity_search) .hotel-modern-search-button .fa {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */
body.g4-hol .hx4 {
  clear: both;
  width: var(--hx-width);
  margin: 0 auto;
  padding: 0 0 70px;
  color: var(--hx-ink);
  font-size: 13px;
  line-height: 1.5;
}

body.g4-hol .hx4 *,
body.g4-hol .hx4 *::before,
body.g4-hol .hx4 *::after {
  box-sizing: border-box;
}

body.g4-hol .hx4 svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.g4-hol .hx4-banner {
  margin: 0 0 16px;
}

body.g4-hol .hx4-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--hx-muted);
  font-size: 12px;
}

body.g4-hol .hx4-crumbs a {
  color: var(--hx-blue);
  text-decoration: none;
}

body.g4-hol .hx4-crumbs a:hover {
  text-decoration: underline;
}

body.g4-hol .hx4-crumbs__current {
  color: var(--hx-text);
}

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

body.g4-hol .hx4-layout--empty {
  grid-template-columns: minmax(0, 1fr);
}

/* --------------------------------------------------------------------------
   Filter sidebar
   -------------------------------------------------------------------------- */
body.g4-hol .hx4-side {
  position: sticky;
  top: 90px;
}

body.g4-hol .hx4-side__mobile-head {
  display: none;
}

body.g4-hol .hx4-filter {
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  box-shadow: var(--hx-shadow);
  overflow: hidden;
}

body.g4-hol .hx4-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hx-line);
}

body.g4-hol .hx4-filter__head h2 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body.g4-hol #reset_filters.hx4-filter__reset {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--hx-blue) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  cursor: pointer;
}

body.g4-hol .hx4-filter__reset:hover {
  text-decoration: underline;
}

body.g4-hol .hx4-fsec {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--hx-line);
}

body.g4-hol .hx4-fsec:last-child {
  border-bottom: 0;
}

body.g4-hol .hx4-fsec h3 {
  margin: 0 0 8px;
  color: var(--hx-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

body.g4-hol .hx4-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin: 0;
  padding: 3px 0;
  color: var(--hx-text);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

body.g4-hol .hx4-check.is-extra {
  display: none;
}

body.g4-hol .hx4-fsec.is-expanded .hx4-check.is-extra {
  display: flex;
}

body.g4-hol .hx4-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.g4-hol .hx4-check__box {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #8fa1b8;
  border-radius: 4px;
  background: #fff;
  transition: background .15s, border-color .15s;
}

body.g4-hol .hx4-check__box::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

body.g4-hol .hx4-check:hover .hx4-check__box {
  border-color: var(--hx-blue);
}

body.g4-hol .hx4-check input:checked + .hx4-check__box {
  background: var(--hx-blue);
  border-color: var(--hx-blue);
}

body.g4-hol .hx4-check input:checked + .hx4-check__box::after {
  opacity: 1;
}

body.g4-hol .hx4-check input:focus-visible + .hx4-check__box {
  outline: 2px solid rgba(0, 108, 228, .35);
  outline-offset: 2px;
}

body.g4-hol .hx4-check__text {
  flex: 1 1 auto;
  min-width: 0;
}

body.g4-hol .hx4-check__count {
  flex: 0 0 auto;
  color: var(--hx-faint);
  font-size: 12px;
}

body.g4-hol .hx4-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hx-blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

body.g4-hol .hx4-more svg {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
  transition: transform .2s;
}

body.g4-hol .hx4-fsec.is-expanded .hx4-more svg {
  transform: rotate(-90deg);
}

body.g4-hol .hx4-price__label {
  margin: 0 0 12px;
  color: var(--hx-ink);
  font-size: 12.5px;
  font-weight: 600;
}

body.g4-hol .hx4-slider {
  position: relative;
  height: 4px;
  margin: 6px 9px 10px;
  border-radius: 4px;
  background: #dbe3ee;
  touch-action: none;
  cursor: pointer;
}

body.g4-hol .hx4-slider__range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: var(--hx-blue);
}

body.g4-hol .hx4-slider__handle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--hx-blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 23, 46, .2);
  cursor: grab;
}

body.g4-hol .hx4-slider__handle:last-child {
  left: 100%;
}

body.g4-hol .hx4-slider__handle:focus-visible {
  outline: 3px solid rgba(0, 108, 228, .3);
  outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   Results header, sort tabs and layout toggle
   -------------------------------------------------------------------------- */
body.g4-hol .hx4-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 12px;
}

body.g4-hol .hx4-head h1 {
  margin: 0;
  color: var(--hx-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.2px;
}

body.g4-hol .hx4-head p {
  margin: 0;
  color: var(--hx-muted);
  font-size: 12.5px;
}

body.g4-hol .hx4-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

body.g4-hol .hx4-sort {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
}

body.g4-hol .hx4-sort button {
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--hx-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background .15s, color .15s;
}

body.g4-hol .hx4-sort button:hover {
  background: #f3f6fa;
}

body.g4-hol .hx4-sort button.is-active {
  background: var(--hx-blue-soft);
  border-color: var(--hx-blue);
  color: var(--hx-blue);
}

body.g4-hol .hx4-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.g4-hol .hx4-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hx-line);
  border-radius: 8px;
  background: #fff;
  color: var(--hx-ink);
  font-size: 12.5px;
  font-weight: 600;
}

body.g4-hol .hx4-filter-toggle svg {
  width: 16px;
  height: 16px;
}

body.g4-hol .hx4-view {
  display: inline-flex;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: 8px;
}

body.g4-hol .hx4-view button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--hx-muted);
  cursor: pointer;
}

body.g4-hol .hx4-view button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

body.g4-hol .hx4-view button.is-active {
  background: var(--hx-blue-soft);
  color: var(--hx-blue);
}

/* --------------------------------------------------------------------------
   Package cards: list layout (default)
   -------------------------------------------------------------------------- */
body.g4-hol .hx4-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.g4-hol .hx4-list > li:not(.hx4-card) {
  grid-column: 1 / -1;
}

body.g4-hol .hx4-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 180px;
  gap: 16px;
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: 10px;
  box-shadow: var(--hx-shadow);
  transition: box-shadow .2s, border-color .2s;
}

body.g4-hol .hx4-card[hidden] {
  display: none !important;
}

body.g4-hol .hx4-card:hover {
  border-color: #d3dbe6;
  box-shadow: var(--hx-shadow-hover);
}

body.g4-hol .hx4-card__media {
  position: relative;
  display: block;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eef5;
}

body.g4-hol .hx4-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

body.g4-hol .hx4-card:hover .hx4-card__media img {
  transform: scale(1.04);
}

body.g4-hol .hx4-card__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--hx-green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.g4-hol .hx4-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 2px 0;
}

body.g4-hol .hx4-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

body.g4-hol .hx4-card__title a {
  color: var(--hx-ink);
  text-decoration: none;
}

body.g4-hol .hx4-card__title a:hover {
  color: var(--hx-blue);
}

body.g4-hol .hx4-card__place,
body.g4-hol .hx4-card__duration {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  color: var(--hx-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.g4-hol .hx4-card__place svg,
body.g4-hol .hx4-card__duration svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

body.g4-hol .hx4-card__place span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.g4-hol .hx4-card__desc {
  display: -webkit-box;
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--hx-text);
  font-size: 12.5px;
  line-height: 1.5;
}

body.g4-hol .hx4-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: auto;
}

body.g4-hol .hx4-card__duration {
  color: var(--hx-ink);
  font-weight: 600;
}

body.g4-hol .hx4-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hx-ink);
  font-size: 12px;
  font-weight: 700;
}

body.g4-hol .hx4-stars {
  --hx4-rating: 0;
  position: relative;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
}

body.g4-hol .hx4-stars::before {
  content: "\2605\2605\2605\2605\2605";
  color: #d8dee8;
}

body.g4-hol .hx4-stars::after {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--hx4-rating) * 20%);
  overflow: hidden;
  color: var(--hx-amber);
  white-space: nowrap;
}

body.g4-hol .hx4-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  padding: 2px 0;
  text-align: right;
}

body.g4-hol .hx4-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

body.g4-hol .hx4-card__price small {
  color: var(--hx-muted);
  font-size: 11.5px;
  line-height: 1.3;
}

body.g4-hol .hx4-card__price strong {
  color: var(--hx-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

body.g4-hol .hx4-card__price strong.hx4-card__price--ask {
  font-size: 14px;
  font-weight: 700;
}

body.g4-hol .hx4-card__price span {
  color: var(--hx-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

body.g4-hol .hx4-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--hx-blue);
  border-radius: 6px;
  background: #fff;
  color: var(--hx-blue) !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s;
}

body.g4-hol .hx4-card__cta:hover {
  background: var(--hx-blue-soft);
}

body.g4-hol .hx4-card__cta svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Grid layout: compact cards, image on top
   -------------------------------------------------------------------------- */
body.g4-hol .hx4-list.is-grid {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}

body.g4-hol .hx4-list.is-grid .hx4-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

body.g4-hol .hx4-list.is-grid .hx4-card__media {
  height: 140px;
  border-radius: 0;
}

body.g4-hol .hx4-list.is-grid .hx4-card__body {
  gap: 5px;
  padding: 10px 12px 0;
}

body.g4-hol .hx4-list.is-grid .hx4-card__title {
  font-size: 14px;
}

body.g4-hol .hx4-list.is-grid .hx4-card__place,
body.g4-hol .hx4-list.is-grid .hx4-card__duration,
body.g4-hol .hx4-list.is-grid .hx4-card__rating {
  font-size: 11.5px;
}

body.g4-hol .hx4-list.is-grid .hx4-card__desc {
  font-size: 12px;
}

body.g4-hol .hx4-list.is-grid .hx4-card__meta {
  padding-top: 2px;
}

body.g4-hol .hx4-list.is-grid .hx4-card__aside {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 12px 12px;
  padding: 10px 0 0;
  border-top: 1px solid var(--hx-line);
  text-align: left;
}

body.g4-hol .hx4-list.is-grid .hx4-card__price {
  align-items: flex-start;
}

body.g4-hol .hx4-list.is-grid .hx4-card__price small,
body.g4-hol .hx4-list.is-grid .hx4-card__price span {
  font-size: 10.5px;
}

body.g4-hol .hx4-list.is-grid .hx4-card__price span {
  display: none;
}

body.g4-hol .hx4-list.is-grid .hx4-card__price strong {
  font-size: 16px;
}

body.g4-hol .hx4-list.is-grid .hx4-card__cta {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Tablet / mobile: off-canvas filters, stacked cards
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  body.g4-hol .hx4 {
    --hx-width: calc(100vw - 28px);
    padding-top: 18px;
  }

  body.g4-hol .hx4-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.g4-hol .hx4-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000010;
    width: min(320px, 88vw);
    overflow-y: auto;
    background: #fff;
    transform: translateX(-100%) !important;
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }

  body.g4-hol .hx4.is-filters-open .hx4-side {
    transform: none !important;
    visibility: visible;
    transition: transform .25s ease;
  }

  body.g4-hol .hx4-side__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid var(--hx-line);
    font-size: 15px;
  }

  body.g4-hol .hx4-side__close {
    border: 0;
    background: none;
    color: var(--hx-ink);
    font-size: 24px;
    line-height: 1;
  }

  body.g4-hol .hx4-filter {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.g4-hol .hx4-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000009;
    background: rgba(16, 23, 46, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }

  body.g4-hol .hx4.is-filters-open .hx4-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.g4-hol .hx4-filter-toggle {
    display: inline-flex;
  }

  body.g4-hol .hx4-toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  body.g4-hol .hx4-tools {
    justify-content: space-between;
  }

  body.g4-hol .hx4-sort {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.g4-hol .hx4-sort button {
    flex: 0 0 auto;
  }

  body.g4-hol .hx4-list.is-list .hx4-card {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  body.g4-hol .hx4-list.is-list .hx4-card__media {
    height: 120px;
  }

  body.g4-hol .hx4-list.is-list .hx4-card__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--hx-line);
    text-align: left;
  }

  body.g4-hol .hx4-list.is-list .hx4-card__price {
    align-items: flex-start;
  }
}

@media (min-width: 992px) {
  body.g4-hol .hx4-backdrop {
    display: none;
  }
}

@media (max-width: 520px) {
  body.g4-hol .hx4-list.is-list .hx4-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  body.g4-hol .hx4-list.is-list .hx4-card__media {
    height: 100px;
  }

  body.g4-hol .hx4-list.is-list .hx4-card__desc {
    display: none;
  }

  body.g4-hol .hx4-list.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.g4-hol .hx4-list.is-grid .hx4-card__media {
    height: 110px;
  }

  body.g4-hol .hx4-list.is-grid .hx4-card__desc {
    display: none;
  }

  body.g4-hol .hx4-list.is-grid .hx4-card__aside {
    flex-direction: column;
    align-items: stretch;
  }

  body.g4-hol .hx4-head h1 {
    font-size: 19px;
  }
}

/* ==========================================================================
   Dark mode
   ========================================================================== */
body.g4-hol.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: #15803d;
  --hx-line: rgba(255, 255, 255, .08);
  --hx-page: #0b1020;
  --hx-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --hx-shadow-hover: 0 10px 28px rgba(0, 0, 0, .45);
  --gd-card: #151b31;
  --gd-field: #0f1528;
  --gd-tile: #1b2240;
  background: #0b1020 !important;
}

body.g4-hol.dark-mode .modfictions.for_holiday_modi .hotel-modern-text > .select2-container .select2-selection__rendered {
  color: var(--hx-ink) !important;
}

body.g4-hol.dark-mode .modfictions.for_holiday_modi .hotel-modern-text > .select2-container .select2-selection__arrow b {
  border-top-color: var(--hx-muted) !important;
}

@media (min-width: 992px) {
  body.g4-hol.dark-mode #holiday_search {
    background: var(--gd-card) !important;
    border-color: rgba(255, 255, 255, .1) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45) !important;
  }

  body.g4-hol.dark-mode #holiday_search .hotel-modern-field:not(.hotel-modern-action):hover {
    background: var(--gd-field) !important;
  }
}

body.g4-hol.dark-mode :is(.hx4-filter, .hx4-sort, .hx4-view, .hx4-filter-toggle, .hx4-card) {
  background: var(--gd-card) !important;
  border-color: var(--hx-line) !important;
}

@media (max-width: 991px) {
  body.g4-hol.dark-mode .hx4-side {
    background: var(--gd-card) !important;
  }

  body.g4-hol.dark-mode .hx4-side__mobile-head {
    color: var(--hx-ink);
  }
}

body.g4-hol.dark-mode .hx4-card:hover {
  border-color: rgba(143, 148, 255, .35) !important;
}

body.g4-hol.dark-mode .hx4-card__media {
  background: var(--gd-tile);
}

body.g4-hol.dark-mode .hx4-check__box {
  background: var(--gd-field);
  border-color: rgba(255, 255, 255, .25);
}

body.g4-hol.dark-mode .hx4-check input:checked + .hx4-check__box {
  background: var(--hx-blue);
  border-color: var(--hx-blue);
}

body.g4-hol.dark-mode .hx4-slider {
  background: rgba(255, 255, 255, .1) !important;
}

body.g4-hol.dark-mode .hx4-check__count {
  color: var(--hx-muted);
}

body.g4-hol.dark-mode .hx4-slider__handle {
  background: var(--gd-card);
}

body.g4-hol.dark-mode .hx4-stars::before {
  color: #3b4360;
}

body.g4-hol.dark-mode .hx4-sort button:hover {
  background: rgba(255, 255, 255, .05);
}

body.g4-hol.dark-mode :is(.hx4-crumbs a, #reset_filters.hx4-filter__reset, .hx4-more, .hx4-sort button.is-active, .hx4-view button.is-active) {
  color: #a5a9f5 !important;
}

body.g4-hol.dark-mode .hx4-sort button.is-active {
  background: rgba(91, 97, 224, .18);
  border-color: rgba(143, 148, 255, .45);
}

body.g4-hol.dark-mode .hx4-card__title a:hover {
  color: #c7caff;
}

body.g4-hol.dark-mode .hx4-card__cta {
  background: transparent;
  border-color: #6f75f0;
  color: #c7caff !important;
}

body.g4-hol.dark-mode .hx4-card__cta:hover {
  background: rgba(91, 97, 224, .2);
}
