/* =====================================================
   B2B PANEL — design layer
   Loaded last on every logged-in / public (non-login) page.
   Uses only theme.css tokens (--primary, --secondary, --heading,
   --text, --border ...), so re-branding = overriding theme vars.
   Sections: base · home sections (search form: b2b-search.css) (header lives in header.css)
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =====================================================
   BASE
===================================================== */
body.b2b {
  font-family: var(--font-ui);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.b2b :where(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
  font-family: var(--font-ui);
  color: var(--heading);
}

.b2b .form-check-input {
  border-color: color-mix(in srgb, var(--border), #000 12%);
}

.b2b .form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.b2b .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* one page width for header, content and footer (matches .hdr-container / .aa-container) */
.b2b .container {
  max-width: 1320px;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 767.98px) {
  .b2b .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =====================================================
   HOME SECTIONS
===================================================== */
.b2b .section-bg {
  background: var(--bg);
}

.b2b .def_layout_content > section {
  padding: 52px 0;
}

.b2b .headingblock {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 24px;
}

.b2b .headingblock .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.b2b .heading-one::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: var(--secondary);
}

.b2b .heading-one {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.b2b .heading-one span {
  color: var(--primary);
}

.b2b .headingblock .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2b .headingblock .link.dealssection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.b2b .headingblock .link.dealssection::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.b2b .headingblock .link.dealssection:hover {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

.b2b .headingblock .link.dealssection:hover::after {
  transform: translateX(3px);
}

.b2b .headingblock .custom-nav {
  display: flex;
  gap: 8px;
}

.b2b .headingblock .custom-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 13px;
  color: var(--primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.b2b .headingblock .custom-nav button:hover {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

/* in-heading pills (Best offer / Holiday / ...) */
.b2b .headingblock .nav-tabs {
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.b2b .headingblock .nav-tabs .nav-link {
  margin: 0;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.b2b .headingblock .nav-tabs .nav-link.active {
  color: var(--primary);
  background: var(--surface);
  box-shadow: 0 4px 12px -6px rgba(15, 27, 51, 0.35);
}

/* cards: one radius / border / shadow language */
.b2b .offer-box,
.b2b .destination-item,
.b2b .routes_box,
.b2b .holidayCardWrapper_box,
.b2b .countries-visa .card,
.b2b .PopularActivity .card,
.b2b .post-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 28px -22px rgba(15, 27, 51, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.b2b .offer-box:hover,
.b2b .destination-item:hover,
.b2b .routes_box:hover,
.b2b .holidayCardWrapper_box:hover,
.b2b .countries-visa .card:hover,
.b2b .PopularActivity .card:hover,
.b2b .post-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px rgba(15, 27, 51, 0.5);
}

.b2b .routes_box {
  background: var(--surface);
}

.b2b .routes_box .low-price {
  color: var(--heading);
}

.b2b .owl-carousel .owl-stage-outer {
  padding: 6px 0 18px;
}

/* =====================================================
   RESPONSIVE (search form lives in b2b-search.css)
===================================================== */
@media (max-width: 991px) {
  /* section headings stay left-aligned on small screens */
  .b2b .headingblock {
    flex-direction: row;
    align-items: flex-end;
    text-align: left;
  }

  .b2b .headingblock .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .b2b .heading-one {
    text-align: left;
  }
}

/* =====================================================
   HOME SECTIONS (hm-*) — markup: template/home-page-offers.php
===================================================== */
.hm {
  --hm-gap: 20px;
  --hm-radius: 18px;
  --hm-shadow: 0 14px 34px -24px rgba(15, 27, 51, 0.45);
  --hm-shadow-hover: 0 26px 44px -26px rgba(15, 27, 51, 0.55);
  background: var(--surface);
}

.hm-section {
  padding: 56px 0;
}

.hm-section--tint {
  background: var(--bg);
}

/* --- section head --- */
.hm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}

.hm-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.b2b .hm-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.hm-title span {
  color: var(--primary);
}

.hm-sub {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.hm-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hm-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hm-viewall i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.hm-viewall:hover {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

.hm-viewall:hover i {
  transform: translateX(3px);
}

.hm-foot {
  margin-top: 14px;
  text-align: center;
}

.hm-pills {
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hm-section--tint .hm-pills {
  background: var(--surface);
}

.hm-pills .nav-link {
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hm-pills .nav-link:hover {
  color: var(--primary);
}

.hm-pills .nav-link.active {
  color: var(--on-primary);
  background: var(--primary);
  box-shadow: 0 8px 18px -10px var(--primary);
}

.hm-arrows {
  display: flex;
  gap: 8px;
}

.hm-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 13px;
  color: var(--heading);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hm-arrow[hidden] {
  display: none !important;
}

.hm-arrow:hover {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
}

/* --- rails: native scroll-snap carousels --- */
.hm-rail {
  --hm-cols: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--hm-cols) - 1) * var(--hm-gap)) / var(--hm-cols));
  gap: var(--hm-gap);
  margin: -8px -6px -18px;
  padding: 8px 6px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 6px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.hm-rail::-webkit-scrollbar {
  display: none;
}

.hm-rail > * {
  scroll-snap-align: start;
  min-width: 0;
}

.hm-rail--3 { --hm-cols: 3; }
.hm-rail--4 { --hm-cols: 4; }
.hm-rail--5 { --hm-cols: 5; }

.hm-rail-wrap {
  position: relative;
}

.hm-arrow--float {
  position: absolute;
  top: 50%;
  z-index: 3;
  box-shadow: 0 10px 24px -12px rgba(15, 27, 51, 0.5);
  transform: translateY(-50%);
}

.hm-arrow--prev { left: -20px; }
.hm-arrow--next { right: -20px; }

/* --- shared bits --- */
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  white-space: nowrap;
}

.hm-chip--dark {
  color: #fff;
  background: rgba(6, 14, 30, 0.62);
  backdrop-filter: blur(6px);
}

.hm-chip--light {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.hm-chip--accent {
  color: var(--on-secondary);
  background: var(--secondary);
}

.hm-tag {
  align-self: flex-start;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--secondary-soft);
  border-radius: 6px;
}

.hm-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  white-space: nowrap;
}

.hm-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.hm-price--muted {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.hm-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}

.hm-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.hm-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 11px;
  color: #f5a524;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hm-btn--primary {
  color: var(--on-primary);
  background: var(--primary);
}

.hm-btn--primary:hover {
  color: var(--on-primary);
  background: var(--primary-dark);
}

.hm-btn--light {
  color: var(--primary-dark);
  background: #fff;
}

.hm-btn--light:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.hm-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hm-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.hm-route__go {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* every clickable card lifts the same way */
.hm-deal,
.hm-dest,
.hm-route,
.hm-pkg,
.hm-visa,
.hm-card {
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hm-deal:hover,
.hm-dest:hover,
.hm-route:hover,
.hm-pkg:hover,
.hm-visa:hover,
.hm-card:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--primary), var(--border) 70%);
  box-shadow: var(--hm-shadow-hover);
  transform: translateY(-4px);
}

.hm-deal:hover .hm-link i,
.hm-card:hover .hm-link i {
  transform: translateX(3px);
}

.hm-route:hover .hm-route__go,
.hm-card:hover .hm-route__go {
  color: var(--on-primary);
  background: var(--primary);
}

.hm img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* --- quick actions --- */
.hm-quick {
  padding: 28px 0 4px;
}

.hm-quick__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.hm-wallet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  color: #fff;
  background:
    radial-gradient(240px 120px at 100% 0%, color-mix(in srgb, var(--secondary), transparent 65%), transparent 70%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--hm-radius);
  box-shadow: 0 18px 34px -22px var(--primary);
}

.hm-wallet__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hm-wallet__amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hm-wallet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hm-wallet .hm-btn {
  padding: 7px 12px;
  font-size: 12.5px;
}

.hm-quick__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--heading);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hm-quick__item:hover {
  color: var(--heading);
  border-color: color-mix(in srgb, var(--primary), var(--border) 60%);
  box-shadow: var(--hm-shadow-hover);
  transform: translateY(-3px);
}

.hm-quick__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 17px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hm-quick__item:hover .hm-quick__icon {
  color: var(--on-primary);
  background: var(--primary);
}

.hm-quick__item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}

.hm-quick__item small {
  font-size: 12.5px;
  color: var(--text-muted);
}

.hm-quick__go {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hm-quick__item:hover .hm-quick__go {
  color: var(--primary);
  opacity: 1;
  transform: none;
}

/* --- deals (horizontal ticket) --- */
.hm-deal {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
  min-height: 168px;
}

.hm-deal__img {
  overflow: hidden;
}

.hm-deal:hover img,
.hm-dest:hover img,
.hm-pkg:hover img,
.hm-visa:hover img,
.hm-card:hover .hm-card__img img {
  transform: scale(1.05);
}

.hm-deal__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-left: 1px dashed var(--border);
}

.hm-deal__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--heading);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hm-deal__desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hm-deal .hm-link {
  margin-top: auto;
}

/* --- destinations (tall image tiles) --- */
.hm-dest {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 0;
}

.hm-dest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 14, 30, 0.82) 100%);
}

.hm-dest__body {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
}

.hm-dest__body strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hm-dest__price {
  align-self: flex-start;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--heading);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
}

.hm-dest__price b {
  font-size: 13.5px;
  font-weight: 800;
}

/* --- flight routes (ticket) --- */
.hm-route {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.hm-route__codes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.hm-route__codes > span:not(.hm-route__line) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hm-route__codes b {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.hm-route__codes small {
  overflow: hidden;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hm-route__to {
  align-items: flex-end;
  text-align: right;
}

.hm-route__line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 20px;
  color: var(--primary);
}

.hm-route__line::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1.5px dashed color-mix(in srgb, var(--primary), #fff 45%);
}

.hm-route__line i {
  position: relative;
  padding: 0 6px;
  font-size: 13px;
  background: var(--surface);
}

.hm-route__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
}

.hm-route__trip {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 6px;
}

.hm-route__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

/* --- holiday packages --- */
.hm-pkg {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hm-pkg__img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hm-pkg__img .hm-chip {
  position: absolute;
  z-index: 1;
}

.hm-pkg__img .hm-chip--dark {
  right: 12px;
  bottom: 12px;
}

.hm-pkg__img .hm-chip--accent {
  top: 12px;
  left: 12px;
}

.hm-pkg__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 0;
}

.b2b .hm-pkg__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--heading);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hm-pkg__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hm-pkg__cities span {
  padding: 4px 9px;
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  border-radius: 6px;
}

.hm-pkg__cities b {
  color: var(--secondary);
}

.hm-pkg__inc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-pkg__inc li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.hm-pkg__inc i {
  font-size: 12px;
  color: var(--primary);
}

.hm-pkg__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

/* --- visa --- */
.hm-visa {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hm-visa__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.hm-visa__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.hm-visa__body strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--heading);
}

.hm-visa__body small {
  font-size: 12.5px;
  color: var(--text-muted);
}

.hm-visa__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.hm-visa__row .hm-chip i {
  color: #f5a524;
}

/* --- generic image card (hotels, transfers, activities, blog) --- */
.hm-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hm-card__img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

.hm-card__img--contain img {
  padding: 14px;
  object-fit: contain;
}

.hm-card__img .hm-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.hm-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 0;
}

.hm-card__title {
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--heading);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hm-card__title--wrap {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hm-card__title i {
  font-size: 12px;
  color: var(--primary);
}

.hm-card__loc {
  overflow: hidden;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hm-card__loc i {
  margin-right: 4px;
  color: var(--secondary);
}

.hm-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hm-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border-radius: 6px;
}

.hm-specs i {
  color: var(--primary);
}

.hm-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
}

.hm-post__excerpt {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* --- notifications --- */
.hm-notes {
  display: grid;
  gap: 10px;
}

.hm-notes .notification-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.hm-notes .notification-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
}

.hm-notes .notification-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 10px;
}

.b2b .hm-notes .notification-header h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.hm-notes .faq-toggle {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.hm-notes .notification-content {
  display: none;
  padding: 0 18px 16px 66px;
  font-size: 14px;
  color: var(--text);
}

.hm-notes .notification-card.active .notification-content {
  display: block;
}

.hm-notes .notification-card.active .faq-toggle {
  transform: rotate(180deg);
}

/* --- responsive --- */
@media (max-width: 1199px) {
  .hm-rail--5 { --hm-cols: 4; }
  .hm-rail--4 { --hm-cols: 3; }

  .hm-arrow--prev { left: -8px; }
  .hm-arrow--next { right: -8px; }
}

@media (max-width: 991px) {
  .hm-section {
    padding: 44px 0;
  }

  .hm-rail--5 { --hm-cols: 3.2; }
  .hm-rail--4,
  .hm-rail--3 { --hm-cols: 2.2; }

  .hm-arrow--float,
  .hm-arrows {
    display: none;
  }
}

@media (max-width: 575px) {
  .hm {
    --hm-gap: 14px;
  }

  .hm-section {
    padding: 36px 0;
  }

  .hm-rail--5 { --hm-cols: 2.15; }
  .hm-rail--4,
  .hm-rail--3 { --hm-cols: 1.2; }

  .hm-quick__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hm-wallet {
    grid-column: 1 / -1;
  }

  .hm-quick__item {
    padding: 12px;
  }

  .hm-quick__item small {
    display: none;
  }

  .hm-quick__icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .hm-deal {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

/* Select2 lists attached to <body> must sit above an open Bootstrap modal (z-index 1055) */
body.modal-open > .select2-container--open {
  z-index: 1065;
}

/* =====================================================
   LISTING PAGES ("View all": offers, blog, destinations, routes, visa,
   hotels, transfers, activities, hajj, umrah) — same cards as the home
   sections, laid out as a grid. Header: template/partials/list-head.php
===================================================== */
.hm.hm-list {
  padding-bottom: 64px;
  background: var(--bg);
}

.hm-list .aa-page__hero {
  padding: 34px 0 88px;
}

.hm-list__sub {
  max-width: 640px;
  margin: 8px 0 0;
  font-size: 15px;
  color: color-mix(in srgb, #fff, transparent 22%);
}

.hm-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.hm-list__count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, #fff, transparent 86%);
  border: 1px solid color-mix(in srgb, #fff, transparent 78%);
  border-radius: 999px;
}

.hm-list__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hm-list__tabs a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, #fff, transparent 88%);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.hm-list__tabs a:hover {
  background: color-mix(in srgb, #fff, transparent 75%);
}

.hm-list__tabs a.is-active {
  color: var(--primary);
  background: #fff;
}

.hm-list__body {
  position: relative;
  z-index: 1;
  margin-top: -58px;
}

.hm-grid {
  --hm-cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--hm-cols), minmax(0, 1fr));
  gap: var(--hm-gap);
}

.hm-grid--3 { --hm-cols: 3; }
.hm-grid--5 { --hm-cols: 5; }

.hm-grid > * {
  min-width: 0;
}

/* grouped pages (offers by service): headings sit below the hero, not over it */
.hm-list--flat .aa-page__hero {
  padding-bottom: 44px;
}

.hm-list--flat .hm-list__body {
  margin-top: 0;
  padding-top: 30px;
}

.hm-list__group + .hm-list__group {
  margin-top: 34px;
}

.hm-list__group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
}

.hm-list__group-title small {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.hm-list__empty {
  padding: 56px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--hm-radius);
}

.hm-list__empty > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.hm-list__empty h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
}

.hm-list__empty p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.hm-list__pager {
  margin-top: 28px;
}

/* package facts (hajj / umrah cards) */
.hm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hm-facts li {
  min-width: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.hm-facts b {
  display: block;
  overflow: hidden;
  font-size: 13px;
  color: var(--heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* transfer enquiry button inside a card */
.hm-card__foot .hm-btn {
  padding: 7px 14px;
  font-size: 13px;
}

@media (max-width: 1199px) {
  .hm-grid--5 { --hm-cols: 4; }
  .hm-grid--4 { --hm-cols: 3; }
}

@media (max-width: 991px) {
  .hm-grid--5 { --hm-cols: 3; }
  .hm-grid--4,
  .hm-grid--3 { --hm-cols: 2; }
}

@media (max-width: 575px) {
  .hm-grid--5 { --hm-cols: 2; }
  .hm-grid--4,
  .hm-grid--3 { --hm-cols: 1; }
  .hm-list .aa-page__hero { padding-bottom: 80px; }
}
