/* Homepage mobile compaction.
   All primary text and links remain server-rendered; this file changes only
   their mobile presentation and reading order. */

@media (max-width: 768px) {
  .page-home :where(.featured-safari-grid, .why-grid, .home-booking-steps__list, .secure-payment-grid) {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-home :where(.featured-safari-grid, .why-grid, .home-booking-steps__list, .secure-payment-grid)::-webkit-scrollbar {
    display: none;
  }

  .page-home :where(.featured-safari-grid, .why-grid, .home-booking-steps__list, .secure-payment-grid):focus-visible {
    outline: 2px solid var(--luxury-gold, #c8a96b);
    outline-offset: 5px;
  }

  .page-home .mobile-scroll-guidance {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    margin: 0 0 12px;
    color: var(--luxury-gold-deep, #80631f);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .page-home .mobile-scroll-guidance > span[aria-hidden="true"] {
    font-size: 0.9rem;
    line-height: 1;
  }

  .page-home .home-booking-steps .mobile-scroll-guidance {
    margin-inline: auto;
  }

  /* Keep the opening useful, but avoid spending a complete phone screen on it. */
  .page-home .herro {
    min-height: clamp(620px, 78svh, 680px) !important;
    padding: calc(88px + env(safe-area-inset-top, 0px)) 18px 148px !important;
  }

  .page-home .herro-content h1 {
    max-width: 20ch;
    margin: 0 auto 17px;
    font-size: clamp(1.86rem, 7.7vw, 2.36rem) !important;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.012em;
  }

  .page-home .herro-subtext {
    display: -webkit-box;
    visibility: visible !important;
    overflow: hidden;
    max-width: 32rem;
    margin: 0 auto 23px;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .page-home .herro-content {
    width: min(100%, 350px);
    margin-inline: auto;
  }

  .page-home .herro-buttons-wrapper {
    width: 100%;
    margin: 0;
  }

  .page-home .herro-trust {
    gap: 6px 7px;
    margin-bottom: 18px;
  }

  .page-home .herro-trust span {
    min-height: 29px;
    padding-inline: 9px;
    font-size: 0.6rem;
  }

  /* Editorial intro: copy first, landscape media second, and expandable detail. */
  .page-home .welcome-gamba {
    padding: 44px 16px 46px !important;
  }

  .page-home .welcome-container {
    gap: 22px !important;
  }

  .page-home .welcome-editorial-copy {
    grid-row: 1 !important;
  }

  .page-home .welcome-editorial-media {
    grid-row: 2 !important;
    width: 100vw !important;
    max-height: none;
    margin-inline: calc(50% - 50vw) !important;
  }

  .page-home .welcome-container h2 {
    margin-bottom: 18px !important;
    font-size: clamp(2rem, 9vw, 2.65rem) !important;
    line-height: 1.02;
  }

  .page-home .welcome-container p {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .page-home .welcome-seo-intro {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .page-home .welcome-editorial-copy.is-expanded .welcome-seo-intro {
    display: block;
    overflow: visible;
  }

  /* Trust content stays complete, but reads as one swipeable row. */
  .page-home .why-choose {
    padding: 44px 0 48px !important;
  }

  .page-home .why-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px !important;
  }

  .page-home .why-gallery {
    position: relative;
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100vw;
    margin-inline: 0;
    z-index: 1;
  }

  .page-home .why-gallery__frame {
    border-radius: 0;
  }

  .page-home .why-left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: relative;
    z-index: 2;
    min-width: 0;
    padding-inline: 14px;
  }

  .page-home .why-left h2 {
    font-size: clamp(2rem, 9vw, 2.55rem) !important;
  }

  .page-home .why-subtitle {
    margin-bottom: 22px !important;
    font-size: 0.96rem !important;
    line-height: 1.62;
  }

  .page-home .why-grid {
    display: flex;
    width: calc(100vw - 14px);
    margin-right: -14px;
    padding: 2px 14px 10px 0;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }

  .page-home .why-item {
    flex: 0 0 min(80vw, 320px);
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-content: start;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .page-home .why-item h3 {
    font-size: 1.05rem !important;
    line-height: 1.18;
  }

  .page-home .why-item p {
    font-size: 0.9rem !important;
    line-height: 1.55;
  }

  /* Reviews are already swipeable; tighten their introduction and gutters. */
  .page-home .guest-feedback {
    padding: 34px 14px 38px;
    background: #fff;
  }

  .page-home .guest-feedback__intro {
    gap: 8px;
    margin-bottom: 20px;
  }

  .page-home .guest-feedback__eyebrow {
    font-size: 0.58rem;
    font-weight: 400;
  }

  .page-home .guest-feedback h2 {
    font-size: 1.36rem;
    font-weight: 400;
  }

  .page-home .guest-feedback__intro > p:last-child {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.58;
  }

  /* A plain, compact founder profile on the same clean white surface. */
  .page-home .founder-highlight-section {
    padding: 38px 14px 42px;
    background: #fff;
  }

  .page-home .founder-highlight-container {
    width: min(100%, 430px) !important;
  }

  .page-home .founder-highlight-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    text-align: left;
  }

  .page-home .founder-image-wrapper {
    position: relative;
    width: 100%;
    height: clamp(220px, 66vw, 280px);
    overflow: hidden;
    border-radius: 8px;
  }

  .page-home .founder-image-wrapper::after {
    display: none;
  }

  .page-home .founder-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center 28%;
    box-shadow: none;
  }

  .page-home .founder-text {
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 2px;
    text-align: left;
  }

  .page-home .founder-heading {
    margin: 0 0 10px;
    padding-top: 0;
    color: var(--luxury-forest-deep);
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.2rem, 5.2vw, 1.48rem) !important;
    font-weight: 400;
    line-height: 1.28;
  }

  .page-home .founder-heading::before {
    display: none;
  }

  .page-home .founder-subtext {
    display: block;
    overflow: visible;
    margin-bottom: 16px;
    color: #53635c;
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.62;
  }

  .page-home .founder-link-button {
    min-height: 40px;
    padding: 8px 10px 8px 14px;
    gap: 8px;
    border-color: #b9c8c1;
    background: #fff;
    color: #21483a;
    font-size: 0.72rem;
    font-weight: 400;
    box-shadow: none;
  }

  .page-home .founder-link-badge {
    min-width: 42px;
    min-height: 24px;
    font-size: 0.5rem;
    font-weight: 400;
  }

  /* Four complete packages in one row: all content remains in the DOM. */
  .page-home .safari-product-showcase {
    padding: 44px 14px 50px !important;
  }

  .page-home .safari-product-hero {
    gap: 16px;
    margin-bottom: 26px;
  }

  .page-home .safari-product-showcase .safari-product-kicker {
    margin-bottom: 10px;
  }

  .page-home .safari-product-title {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.22em;
    font-size: clamp(2.25rem, 10vw, 3rem) !important;
    line-height: 1;
  }

  .page-home .safari-product-title span,
  .page-home .safari-product-title span:nth-child(2),
  .page-home .safari-product-title span:nth-child(3) {
    width: auto;
    margin-left: 0;
  }

  .page-home .safari-product-intro-wrap {
    gap: 12px;
    padding-bottom: 0;
  }

  .page-home .safari-product-showcase .safari-product-intro {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .page-home .safari-product-showcase .safari-product-metrics {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page-home .safari-product-showcase .safari-product-metrics::-webkit-scrollbar {
    display: none;
  }

  .page-home .safari-product-showcase .safari-product-metrics li {
    flex: 0 0 auto;
    min-height: 28px;
    padding-inline: 9px;
    font-size: 0.6rem;
  }

  body.page-home .safari-product-showcase .featured-safari-grid {
    display: flex !important;
    width: calc(100vw - 14px) !important;
    margin-right: -14px;
    padding: 2px 14px 14px 0;
    gap: 14px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }

  body.page-home .safari-product-showcase .featured-safari-grid > .safari-cardhome {
    /* Leave a deliberate slice of the following route visible as a swipe cue. */
    flex: 0 0 92% !important;
    width: 92% !important;
    max-width: 92% !important;
    min-height: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.page-home .safari-product-showcase .featured-safari-grid .safari-cardhome > .safari-card-media,
  body.page-home .safari-product-showcase .featured-safari-grid .safari-cardhome::after {
    min-height: 0;
    /* Restore the original cinematic mobile image height. */
    aspect-ratio: 4 / 4.7 !important;
  }

  .page-home .featured-safari-grid .safari-card-image-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .page-home .featured-safari-grid .safari-card-title,
  .page-home .featured-safari-grid .safari-cardhome:nth-child(4) .safari-card-title {
    font-size: clamp(1.02rem, 4.4vw, 1.2rem) !important;
    line-height: 1.14 !important;
  }

  .page-home .featured-safari-grid .safari-content {
    min-height: 218px !important;
    gap: 8px;
    align-content: start;
    padding: 14px 14px 16px;
    text-align: left !important;
  }

  .page-home .featured-safari-grid .safari-card-support {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    justify-self: stretch !important;
    text-align: left !important;
    font-size: 0.76rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .page-home .featured-safari-grid .safari-card-day-tag {
    min-height: 22px;
    margin-right: 4px;
    padding-inline: 7px;
    font-size: 0.5rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em;
  }

  .page-home .featured-safari-grid .safari-card-route {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    justify-self: stretch !important;
    text-align: left !important;
    font-size: 0.58rem !important;
    font-weight: 400 !important;
    line-height: 1.42 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .page-home .featured-safari-grid .safari-cardhome .price {
    justify-self: start !important;
    padding: 5px 8px;
    text-align: left !important;
    font-size: 0.66rem !important;
    font-weight: 400 !important;
  }

  .page-home .featured-safari-grid .safari-card-actions {
    width: 100%;
    justify-self: stretch !important;
    justify-content: center !important;
  }

  .page-home .featured-safari-grid .enquire-btn {
    min-height: 42px;
  }

  .page-home .safari-product-showcase .view-more-wrapper {
    margin-top: 24px;
  }

  /* Keep signature experiences cinematic while preserving the horizontal flow. */
  .page-home .home-experience-links {
    padding: 44px 14px 48px;
  }

  .page-home .home-experience-links__header {
    gap: 12px;
    margin-bottom: 22px;
  }

  .page-home .home-experience-links__header h2 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .page-home .home-experience-links__header p {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .page-home .home-experience-link-card {
    flex-basis: min(86vw, 380px);
    min-height: clamp(340px, 100vw, 410px);
  }

  .page-home .home-experience-link-card:first-child {
    flex-basis: min(88vw, 400px);
    min-height: clamp(370px, 108vw, 440px);
  }

  .page-home .guest-photo-gallery {
    margin-top: 0;
    padding: 42px 14px 50px;
  }

  .page-home .guest-photo-gallery__intro {
    margin-bottom: 16px;
  }

  .page-home .guest-photo-gallery__intro h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  /* FAQ keeps all eight answers and the video, with a compact closed state. */
  .page-home .faq {
    padding: 40px 10px 48px;
    background: linear-gradient(180deg, #111812 0%, #172017 25%, var(--luxury-surface) 25%, var(--luxury-surface) 100%);
  }

  .page-home .faq .container {
    gap: 12px;
    padding: 18px 12px;
  }

  .page-home .faq-editorial {
    gap: 12px;
  }

  .page-home .faq h2 {
    font-size: clamp(2rem, 9vw, 2.55rem) !important;
  }

  .page-home .faq-intro {
    margin-bottom: 4px;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  .page-home .faq-sticky-image {
    max-height: 190px;
    margin-bottom: 4px;
    aspect-ratio: 16 / 9;
  }

  .page-home .faq-question {
    min-height: 58px;
    padding: 12px 12px 12px 50px;
    font-size: 0.92rem !important;
    line-height: 1.25;
  }

  .page-home .faq-list {
    gap: 8px;
  }

  .page-home .faq-item {
    margin-bottom: 0;
  }

  .page-home .faq-item::before {
    top: 14px;
    left: 12px;
  }

  .page-home .faq-icon {
    width: 28px;
    height: 28px;
  }

  .page-home .faq-answer {
    padding-inline: 50px 12px;
  }

  /* Booking and payment remain complete in shallow, swipeable groups. */
  .page-home .home-booking-steps {
    padding: 36px 14px;
  }

  .page-home .home-booking-steps__inner {
    padding: 24px 18px;
  }

  .page-home .home-booking-steps__header {
    margin-bottom: 20px;
  }

  .page-home .home-booking-steps h2 {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
  }

  .page-home .home-booking-steps__list {
    display: flex;
    margin-right: -18px;
    padding: 0 18px 8px 0;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }

  .page-home .home-booking-steps__list li {
    flex: 0 0 min(68vw, 250px);
    font-size: 0.88rem;
    line-height: 1.4;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .page-home .home-booking-steps__list li::before {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .page-home .secure-payment-section {
    padding: 44px 14px 50px;
  }

  .page-home .secure-payment-header {
    gap: 16px;
    margin-bottom: 26px;
  }

  .page-home .payment-eyebrow {
    margin-bottom: 10px;
  }

  .page-home .payment-display-title {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.22em;
    font-size: clamp(2.2rem, 10vw, 3rem) !important;
    line-height: 1;
  }

  .page-home .payment-display-title span,
  .page-home .payment-display-title span:nth-child(2),
  .page-home .payment-display-title span:nth-child(3),
  .page-home .payment-display-title span:nth-child(4) {
    margin-left: 0;
  }

  .page-home .payment-intro-block {
    gap: 12px;
    padding-bottom: 0;
  }

  .page-home .secure-payment-header p:not(.payment-eyebrow) {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .page-home .payment-trust-strip {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
  }

  .page-home .payment-trust-strip li {
    flex: 0 0 auto;
    min-height: 28px;
    padding-inline: 9px;
    font-size: 0.6rem;
  }

  .page-home .secure-payment-grid {
    display: flex;
    width: calc(100vw - 14px);
    margin-right: -14px;
    padding: 2px 14px 12px 0;
    gap: 12px;
    align-items: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }

  .page-home .secure-payment-grid > * {
    flex: 0 0 min(84vw, 340px);
    width: min(84vw, 340px);
    min-height: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .page-home .payment-assurance-card {
    order: 1;
  }

  .page-home .payment-process-card {
    order: 2;
  }

  .page-home .payment-showcase-image--ishasha {
    order: 3;
  }

  .page-home .payment-showcase-image--lobelias {
    order: 4;
  }

  .page-home .payment-assurance-card h3,
  .page-home .payment-process-card h3 {
    max-width: none;
    padding-bottom: 10px;
    font-size: 1.55rem;
  }

  .page-home .payment-assurance-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .payment-assurance-list li[data-payment-bg] {
    min-height: 0;
    padding: 12px 10px;
    font-size: 0.78rem !important;
    line-height: 1.42 !important;
  }

  .page-home .payment-assurance-list li[data-payment-bg] strong,
  .page-home .payment-process-list strong {
    margin-bottom: 5px;
    font-size: 0.88rem;
  }

  .page-home .payment-method-list {
    padding-top: 12px;
    gap: 8px 10px;
  }

  .page-home .payment-method-list li,
  .page-home .payment-method-list li:first-child {
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
  }

  .page-home .payment-process-card {
    padding-top: 18px !important;
  }

  .page-home .payment-process-list li {
    padding: 14px 0 14px 42px;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .page-home .payment-process-list li::before {
    top: 15px;
    width: 34px;
    height: 30px;
  }

  .page-home .payment-showcase-image {
    height: 260px;
    aspect-ratio: 16 / 10;
  }

  .page-home .payment-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-home .home-final-cta {
    padding: 42px 20px;
  }

  .page-home .home-final-cta__copy {
    padding: 18px 0 22px;
  }

  .page-home .home-final-cta__eyebrow {
    margin-bottom: 12px;
    font-size: 0.5rem !important;
    font-weight: 500;
  }

  .page-home .home-final-cta h2 {
    margin-bottom: 18px;
    font-size: clamp(1.72rem, 7.2vw, 2.15rem) !important;
    font-weight: 400 !important;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .page-home .home-final-cta__response {
    margin-bottom: 12px;
    font-size: 0.82rem !important;
    font-weight: 400;
    line-height: 1.55;
  }

  .page-home .home-final-cta__note {
    font-size: 0.66rem !important;
    font-weight: 400;
    line-height: 1.55;
  }

}

@media (prefers-reduced-motion: reduce) {
  .page-home :where(.featured-safari-grid, .why-grid, .home-booking-steps__list, .secure-payment-grid) {
    scroll-behavior: auto;
  }
}

@media (max-width: 768px) {
  .page-home .herro-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    min-height: 142px;
    max-width: none;
    margin: 0;
    padding: 28px 18px 14px;
    gap: 10px 16px;
    border: 0;
    background: linear-gradient(
      to top,
      rgba(3, 16, 12, 0.92) 0%,
      rgba(5, 23, 17, 0.68) 52%,
      rgba(5, 23, 17, 0) 100%
    );
  }

  .page-home .herro-trust span {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 28px;
    padding: 0;
    gap: 8px;
    border: 0;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
  }

  .page-home .herro-trust span::before {
    width: 28px;
    height: 28px;
    font-size: 0.86rem;
  }

  .page-home .herro-trust strong {
    font-size: 0.69rem;
    line-height: 1.2;
  }

  .page-home .herro-trust small {
    margin-top: 2px;
    font-size: 0.58rem;
    line-height: 1.25;
  }
}
