/* Mobile-first conversion layer — Sufi Ceremony */
@media (max-width: 767px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-radius: 16px;
  }

  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.admin-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container { width: 100%; padding-left: var(--mobile-gutter); padding-right: var(--mobile-gutter); }

  /* Compact, uncluttered header */
  .site-header { min-height: 60px; padding: 0 !important; background: rgba(255,255,255,.97); }
  .site-header .container { min-height: 60px; padding: 0 14px; overflow: visible; }
  .site-branding { order: 1; justify-content: flex-start; flex: 1; }
  .custom-logo-link { max-width: 126px; }
  .custom-logo { max-height: 36px; width: auto; }
  .header-cta.btn-book-now { display: none; }
  .menu-toggle { order: 2; min-width: 48px; height: 44px; padding: 0 12px; }
  .main-navigation { padding-top: calc(60px + env(safe-area-inset-top)); }
  .main-navigation.toggled { padding-top: calc(60px + env(safe-area-inset-top)); }
  .main-navigation a { min-height: 52px; display: flex; align-items: center; }

  /* First screen: value first, booking immediately after */
  .hero-section { min-height: 0; padding: 0; background: linear-gradient(145deg,#173b4c 0%,#255b69 62%,#7c6646 100%); }
  .hero-overlay { background: linear-gradient(150deg,rgba(18,50,64,.96),rgba(38,85,95,.9) 62%,rgba(126,98,55,.78)); backdrop-filter: none; }
  .hero-content-wrapper { padding: 24px 0 28px; }
  .hero-grid { gap: 20px; }
  .hero-left { text-align: left; }
  .price-badge { margin: 0 0 12px; padding: 7px 11px; border-width: 1px; border-radius: 999px; font-size: .88rem; background: rgba(255,255,255,.1); }
  .price-badge .woocommerce-Price-amount { font-size: 1.05rem; font-weight: 800; }
  .hero-title { font-size: clamp(2rem, 9.2vw, 2.65rem); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 12px; text-wrap: balance; }
  .hero-kicker { margin: 0 0 8px; color: #e3c982; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .hero-description { font-size: .98rem; line-height: 1.55; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-cta-buttons { margin: 0; }
  .hero-cta-buttons .btn-primary { min-height: 50px; width: 100%; border-radius: 12px; }
  .hero-cta-buttons .btn-secondary { display: none; }

  /* Thumb-friendly booking card */
  .booking-box { margin: 0; padding: 18px 16px; border-radius: var(--mobile-radius); box-shadow: 0 14px 34px rgba(8,30,38,.25); background: #fff; backdrop-filter: none; }
  .booking-title { font-size: 1.3rem; margin: 0 0 14px; }
  .booking-form { gap: 13px; }
  .form-group label { font-size: .78rem; margin-bottom: 6px; }
  .form-control { width: 100%; min-height: 52px; padding: 12px; font-size: 16px; border-width: 1px; background: #fff; }
  .quantity-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quantity-selector { min-height: 50px; padding: 4px; gap: 2px; border-width: 1px; }
  .qty-btn { width: 40px; height: 40px; flex: 0 0 40px; font-size: 1.35rem; }
  .qty-input { min-width: 24px; font-size: 1rem; padding: 0; }
  .price-summary { margin-top: 0; padding: 12px; border-radius: 12px; }
  .price-breakdown { margin-bottom: 8px; padding-bottom: 8px; }
  .price-total { font-size: 1rem; }
  .total-amount { font-size: 1.32rem; }
  .btn-add-to-cart { min-height: 54px; margin-top: 0; padding: 12px; border-radius: 12px; font-size: .94rem; }
  .trust-indicators { gap: 8px; margin-top: 12px; flex-direction: column; align-items: flex-start; }
  .trust-item { font-size: .8rem; }

  /* Scan-friendly content below the fold */
  section:not(.hero-section) { padding-top: 44px; padding-bottom: 44px; }
  .quick-info-section { padding: 18px 0 !important; }
  .info-cards { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .info-card { min-height: 104px; padding: 14px 10px; border-radius: 12px; align-items: flex-start; }
  .info-icon { width: 34px; height: 34px; flex: 0 0 34px; }
  .info-content h4 { font-size: .74rem; }
  .info-content p { font-size: .82rem; line-height: 1.3; }
  .section-header { margin-bottom: 22px; }
  .section-label { font-size: .72rem; letter-spacing: 1.4px; }
  .section-title { font-size: 1.65rem; line-height: 1.16; }
  .section-subtitle { font-size: .92rem; line-height: 1.5; }
  .itinerary-timeline { padding-left: 20px; }
  .timeline-content { padding: 15px; border-radius: 12px; }
  .timeline-content h3 { font-size: 1rem; }
  .itinerary-description p { font-size: .9rem; line-height: 1.55; }
  .schedule-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
  .schedule-table { min-width: 520px; }
  .schedule-table th, .schedule-table td { padding: 12px 10px; font-size: .85rem; }
  .inclusions-grid { gap: 14px; }
  .inclusion-block { padding: 18px 14px; border-radius: 14px; }
  .inclusion-pills { gap: 7px; }
  .pill { font-size: .78rem; padding: 7px 9px; }
  .location-detail-item { padding: 14px; }
  .map-container, .location-map iframe { min-height: 300px !important; height: 300px !important; }
  .reviews-section { padding-left: 0; padding-right: 0; }
  .reviews-slider-wrapper { padding: 0; }
  .review-card { padding: 18px 16px; border-radius: 14px; }
  .review-nav { display: none !important; }
  .cta-section .btn-primary, .cta-section .btn-secondary { width: 100%; min-height: 52px; }
  .sufi-faq-list { display: grid; gap: 10px; }
  .sufi-faq-list details { background: #fff; border: 1px solid rgba(31,78,95,.12); border-radius: 12px; padding: 0 14px; }
  .sufi-faq-list summary { min-height: 54px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: #1f4e5f; }
  .sufi-faq-list p { margin: 0 0 16px; font-size: .92rem; line-height: 1.6; }

  /* Checkout is a single, calm column */
  .woocommerce-checkout-page .container { padding-left: 12px; padding-right: 12px; }
  .woocommerce-checkout-page .entry-header { margin: 22px 0 12px; text-align: center; }
  .woocommerce-checkout-page .entry-title { font-size: 1.65rem; }
  .rex-checkoutify-checkout .checkout-content-wrapper,
  .rex-checkoutify-checkout .checkout-row,
  .rex-checkoutify-checkout .checkout-col2 { display: block !important; }
  .rex-checkoutify-checkout .checkout-col { width: 100% !important; max-width: none !important; }
  .rex-checkoutify-checkout .checkout-single-section { padding: 16px 12px !important; border-radius: 14px !important; }
  .rex-checkoutify-checkout .rex-checkoutify-input { min-height: 50px; font-size: 16px !important; }
  .rex-checkoutify-checkout .rex-checkoutify-btn { min-height: 54px; font-size: 1rem !important; position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 20; box-shadow: 0 8px 22px rgba(31,78,95,.3); }
  .rex-checkoutify-checkout .woocommerce-checkout-review-order-table { font-size: .88rem; }

  /* Persistent mobile action; hidden while the form itself is visible */
  .sufi-mobile-reserve { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid rgba(31,78,95,.12); box-shadow: 0 -8px 25px rgba(15,45,57,.14); transition: transform .25s ease, opacity .25s ease; }
  .sufi-mobile-reserve.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .sufi-mobile-reserve__price { min-width: 92px; color: #1f4e5f; font-size: .76rem; line-height: 1.15; }
  .sufi-mobile-reserve__price strong { display: block; font-size: 1.08rem; }
  .sufi-mobile-reserve__button { flex: 1; min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; background: #c6a664; color: #fff; font-size: .92rem; font-weight: 800; text-transform: uppercase; text-decoration: none; box-shadow: 0 5px 15px rgba(158,124,54,.28); }
  body.woocommerce-checkout .sufi-mobile-reserve,
  body.woocommerce-order-received .sufi-mobile-reserve { display: none; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.9rem; }
  .quantity-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr !important; }
  .sufi-mobile-reserve__price { min-width: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .sufi-mobile-reserve { transition: none; }
}

/* FAQ is visible to visitors and search engines on every viewport. */
.faq-section { background: #f7f5f0; }
.sufi-faq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.sufi-faq-list details { background: #fff; border: 1px solid rgba(31,78,95,.12); border-radius: 14px; padding: 0 18px; box-shadow: 0 4px 14px rgba(31,78,95,.05); }
.sufi-faq-list summary { min-height: 60px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: #1f4e5f; }
.sufi-faq-list p { margin: 0 0 18px; line-height: 1.65; }
.hero-kicker { margin: 0 0 10px; color: #e3c982; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
