/* ================================================================
   site-fixes.css — final layout fixes, loaded LAST on every page
   (after responsive-global.css / mobile-res.css), so the rules here
   win over the older page-level styles.
   ================================================================ */

/* ---------- header: menu items never wrap onto two lines ---------- */
.site-header nav a,
.site-header .dropbtn {
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1240px) {
  header.site-header {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .site-header .logo img {
    height: 72px !important;
  }
  .site-header nav a,
  .site-header .dropdown {
    margin-left: 12px !important;
    font-size: 13px !important;
  }
  .site-header .dropbtn {
    font-size: 13px !important;
  }
  .site-header .arrow {
    margin-left: 4px !important;
  }
  /* keep "Sign In"; account creation stays reachable from the sign-in page */
  .nav-auth-signup {
    display: none !important;
  }
  .nav-auth-group {
    margin-left: 12px !important;
  }
}

@media (max-width: 991px) {
  .promo-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
    max-width: 100% !important;
  }
}

/* ---------- banners start exactly under the fixed promo bar + header ---- */
.reviews-hero {
  margin-top: var(--site-top, 125px) !important;
}

/* About Us: full-width banner right under the header, like the other pages
   (it used to sit half under the header on desktop and inset on phones) */
section.about-page {
  padding: 0 !important;
}

.about-page .about-banner {
  margin-top: var(--site-top, 125px);
  height: 55vh !important;
  min-height: 300px !important;
  max-height: 520px;
  padding: 0 20px !important;
}

@media (max-width: 768px) {
  .about-page .about-banner {
    height: 42vh !important;
    min-height: 240px !important;
  }
}

@media (min-width: 901px) {
  .about-page .about-content {
    padding-top: 72px !important;
  }
}

/* ---------- prices: JOD + USD side by side ---------- */
.px-jod { white-space: nowrap; }
.px-usd { white-space: nowrap; }

/* ---------- homepage "Why choose us" cards ---------- */
.why-icon { flex-shrink: 0; }

@media (max-width: 900px) {
  .why {
    flex-direction: column !important;
    gap: 10px;
  }
  .why-icon {
    margin-bottom: 0 !important;
    width: 42px !important;
    height: 42px !important;
  }
}

/* ---------- never let long words / links push the page sideways ---------- */
h1, h2, h3, h4, p, li, a, span, strong, label {
  overflow-wrap: break-word;
}

/* ---------- tour / package lists: keep "<strong>Label:</strong> text" on
   one flowing line (they were flex rows, which split the bold label) ---- */
.tp-feature-text li,
.tp-highlight-card li {
  display: block !important;
  position: relative;
  padding-left: 22px;
}

.tp-feature-text li::before,
.tp-highlight-card li::before {
  position: absolute;
  left: 0;
  top: 1px;
}

/* ---------- "Explore our desert experiences" cards: 2 per row on phones --- */
@media (max-width: 900px) {
  .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .shortcut-card {
    padding: 18px 12px !important;
  }
  .shortcut-card p {
    margin-bottom: 8px !important;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ---------- homepage trip planner: option cards fill their grid cell ---- */
.trip-form .category,
.trip-form .day {
  display: block !important;
  margin: 0 !important;
  font-weight: inherit;
}

.trip-form .category > div,
.trip-form .day > div {
  height: 100%;
}

@media (max-width: 600px) {
  .trip-form .category-options { gap: 12px; }
  .trip-form .category div {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: left;
    padding: 16px 18px;
  }
  .trip-form .category div i {
    grid-row: span 2;
    margin: 0 !important;
    width: 44px;
    height: 44px;
  }
  .trip-form .days-options { gap: 10px; }
  .trip-form .day div { padding: 16px 8px; }
}

/* ---------- homepage package cards: keep the gold line under the price --- */
.package .px-from::after {
  flex-basis: 100%;
}

/* ---------- tour / package pages: the price + booking card follows the
   visitor while scrolling on desktop (its column must span the full height
   of the content for position: sticky to work) ---- */
@media (min-width: 992px) {
  .tp-layout > .tp-sidebar {
    align-self: stretch;
  }
  .tp-booking-card {
    position: sticky;
    top: calc(var(--site-top, 125px) + 20px);
  }
}

/* ---------- WhatsApp float: stay clear of content edges ---------- */
@media (max-width: 600px) {
  .wa-float { right: 12px; bottom: 12px; }
}
