/* ================================================================
   WADI RUM AL OMAR — Page-Specific Mobile Enhancements
   Fine-tuned fixes for individual page layouts and components.
   Imported AFTER responsive-global.css on all pages.
   ================================================================ */

/* ----------------------------------------------------------------
   TOUR PAGES (2h / 4h / 6h jeep tour, etc.)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .tour-section {
    padding-top: clamp(100px, 14vw, 130px) !important;
  }

  .tour-header {
    padding: clamp(20px, 5vw, 40px) clamp(18px, 5%, 48px) !important;
  }

  .tour-header h2 {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  .tour-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 0 clamp(18px, 5%, 48px) !important;
  }

  .tour-content {
    padding: 28px 22px !important;
    border-radius: 18px !important;
  }

  .tour-visual {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tour-image-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .tour-image-grid img {
    border-radius: 14px !important;
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .tour-cta {
    margin-top: 36px !important;
    text-align: center !important;
  }

  .tour-cta a {
    display: inline-block !important;
    width: auto !important;
    min-width: 220px !important;
  }
}

@media (max-width: 600px) {
  .tour-image-grid {
    grid-template-columns: 1fr !important;
  }

  .price-grid {
    grid-template-columns: 1fr !important;
  }

  .tour-block {
    margin-bottom: 28px !important;
  }

  .tour-block h3 {
    font-size: 17px !important;
  }

  .price-card {
    padding: 18px !important;
  }

  .price-card strong {
    font-size: 18px !important;
  }

  .tour-cta a {
    width: 100% !important;
    min-width: 0 !important;
    padding: 15px 20px !important;
  }

  .tour-label {
    font-size: 12px !important;
    padding: 6px 14px !important;
  }

  .sites-list {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------------
   PACKAGE PAGES (1Night+, 2Nights+, etc.)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .package-hero,
  .camp-hero,
  .about-banner,
  .contact-hero {
    min-height: 45vh !important;
    padding-top: 130px !important;
    padding-bottom: 50px !important;
  }

  .package-hero h1,
  .camp-hero h1,
  .about-banner h1 {
    font-size: clamp(26px, 7vw, 40px) !important;
    text-align: center !important;
  }
}

@media (max-width: 600px) {
  .package-hero h1,
  .about-banner h1 {
    font-size: clamp(22px, 9vw, 32px) !important;
  }
}

/* ----------------------------------------------------------------
   CAMP HOUSES / ACCOMMODATIONS
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .camp-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .camp-card,
  article.camp-card {
    max-width: 100% !important;
  }

  .camp-card img {
    height: 220px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 600px) {
  .camp-card img {
    height: 200px !important;
  }
}

/* ----------------------------------------------------------------
   GALLERY PAGE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .gallery-section {
    padding-top: clamp(110px, 16vw, 140px) !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .gallery-item {
    border-radius: 10px !important;
    overflow: hidden;
  }

  .gallery-filters {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  .filter-btn {
    padding: 8px 18px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

@media (max-width: 380px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------------
   ABOUT US PAGE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .about-page {
    overflow-x: hidden;
  }

  .about-content {
    padding: clamp(56px, 8vw, 100px) clamp(18px, 5%, 40px) !important;
  }

  .about-content p {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  .values {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-top: 40px !important;
  }

  .value {
    padding: 22px !important;
  }

  .value img {
    height: 140px !important;
  }

  .highlight {
    padding: 14px 16px !important;
  }
}

@media (max-width: 600px) {
  .values {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .about-content {
    padding: 48px 16px !important;
  }
}

/* ----------------------------------------------------------------
   FAQ PAGE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .faq-section,
  .faq-page {
    padding-top: clamp(110px, 16vw, 140px) !important;
  }

  .grid.faq-grid,
  .grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .card {
    padding: 24px !important;
    border-radius: 16px !important;
  }

  .card h3 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .card p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
}

/* ----------------------------------------------------------------
   CONTACT PAGE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .contact-wrapper,
  .contact-inner,
  .contact-page > div,
  .contact-section > div {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .contact-form {
    padding: clamp(28px, 5vw, 50px) clamp(18px, 5%, 40px) !important;
    border-radius: 16px !important;
  }

  .form-group {
    margin-bottom: 28px !important;
  }

  .form-group label {
    font-size: 12px !important;
  }

  .contact-btn {
    padding: 14px 20px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 600px) {
  .contact-form {
    padding: 24px 16px !important;
    border-radius: 12px !important;
  }
}

/* ----------------------------------------------------------------
   INFO PAGES (how-to-reach, what-to-bring, etc.)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    padding-left: clamp(18px, 5%, 48px) !important;
    padding-right: clamp(18px, 5%, 48px) !important;
  }

  .hero h1 {
    font-size: clamp(26px, 7.5vw, 42px) !important;
  }

  .hero p {
    font-size: 15px !important;
  }

  /* Info content sections */
  .info-block {
    padding: clamp(40px, 6vw, 70px) clamp(18px, 5%, 48px) !important;
  }

  .info-block .info-image img {
    border-radius: 18px !important;
    max-height: 320px !important;
    width: 100% !important;
  }

  .info-block ul,
  .info-block ol {
    padding-left: 18px !important;
  }

  .info-block li {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    line-height: 1.7 !important;
  }
}

/* ----------------------------------------------------------------
   SPECIAL TOURS (Sunrise, Sunset, Night, Camel, etc.)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .tour-hero-section,
  .special-tour-hero {
    min-height: 50vh !important;
    padding-top: 130px !important;
  }

  .tour-shortcut-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .shortcut-card {
    padding: 18px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 600px) {
  .tour-shortcut-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------------
   BOOKING FORMS (tour-booking, package-booking)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .booking-section,
  .booking-page,
  .booking-wrapper {
    padding-top: clamp(110px, 16vw, 140px) !important;
    padding-left: clamp(18px, 5%, 40px) !important;
    padding-right: clamp(18px, 5%, 40px) !important;
  }

  .booking-form,
  .form-container {
    padding: 28px 22px !important;
    border-radius: 18px !important;
    max-width: 100% !important;
  }

  .form-row,
  .form-cols {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .submit-btn,
  .booking-btn {
    padding: 15px 20px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 600px) {
  .booking-form,
  .form-container {
    padding: 22px 16px !important;
    border-radius: 14px !important;
  }
}

/* ----------------------------------------------------------------
   REVIEWS PAGE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .reviews-hero {
    padding: 50px clamp(18px, 5%, 40px) !important;
    margin-top: 110px !important;
  }

  .reviews-grid,
  #cms-reviews-container {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .rating-bar {
    padding: 20px clamp(18px, 5%, 40px) !important;
    gap: 24px !important;
  }

  .rating-stat-num {
    font-size: 26px !important;
  }

  .section-block {
    padding: 48px clamp(18px, 5%, 40px) !important;
  }

  .cms-section {
    padding: 48px clamp(18px, 5%, 40px) !important;
  }
}

@media (max-width: 600px) {
  .reviews-hero {
    padding: 40px 16px !important;
  }

  .rating-divider {
    display: none !important;
  }

  .rating-bar {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }
}

/* ----------------------------------------------------------------
   OMAR STORY PAGE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .story-section,
  .omar-story-page {
    padding-top: clamp(110px, 16vw, 140px) !important;
  }

  .story-grid,
  .omar-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .story-image img,
  .omar-image img {
    border-radius: 20px !important;
    max-height: 360px !important;
    width: 100% !important;
  }
}

/* ----------------------------------------------------------------
   POLICIES / TERMS / CANCELLATION PAGES
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .policy-section,
  .terms-section,
  .policies-page {
    padding-top: clamp(110px, 16vw, 140px) !important;
    padding-left: clamp(18px, 5%, 40px) !important;
    padding-right: clamp(18px, 5%, 40px) !important;
  }

  .policy-content,
  .terms-content {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .policy-content h2,
  .policy-content h3 {
    font-size: clamp(18px, 5vw, 24px) !important;
  }

  .policy-content p,
  .policy-content li {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }
}

/* ----------------------------------------------------------------
   PLAN YOUR VISIT FORM (index.html trip-form)
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .trip-form .form-block {
    padding: 32px 24px !important;
    border-radius: 18px !important;
  }

  .day-options {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .day div {
    padding: 14px 8px !important;
    font-size: 13px !important;
  }

  .budget-options {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  .day-options {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .day div {
    padding: 12px 6px !important;
    font-size: 12px !important;
  }

  .budget-options {
    grid-template-columns: 1fr !important;
  }

  .trip-form .form-block {
    padding: 24px 16px !important;
  }
}

/* ----------------------------------------------------------------
   SHARED HEADER — site-header (used on info pages)
   ---------------------------------------------------------------- */
@media (max-width: 991px) {
  header.site-header {
    padding: 0 20px !important;
    height: 65px !important;
  }

  .site-header .logo img {
    height: 80px !important;
  }

  .site-header nav {
    gap: 0 !important;
  }

  .site-header nav.active {
    padding: 16px 20px 24px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  .site-header .dropdown-content {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    padding: 0 0 0 12px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-header .dropdown-content a {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 600px) {
  header.site-header {
    height: 60px !important;
  }
}

/* ----------------------------------------------------------------
   UNIVERSAL: tap highlight removal, smooth image loading
   ---------------------------------------------------------------- */
a, button {
  -webkit-tap-highlight-color: transparent;
}

img {
  image-rendering: auto;
}

/* Prevent overflowing text */
h1, h2, h3, h4, h5, h6,
p, li, td, th, label {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ----------------------------------------------------------------
   SCROLLBAR — subtle gold on webkit
   ---------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f0ede8;
}

::-webkit-scrollbar-thumb {
  background: #c8a96a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b08840;
}

* {
  scrollbar-color: #c8a96a #f0ede8;
  scrollbar-width: thin;
}
