/* ==========================================================================
   responsive.css — Media queries for hero + navigation
   ========================================================================== */

/* Tablet — hide desktop menu */
@media (max-width: 1024px) {
  .nav {
    width: calc(100% - 32px);
  }

  .menu {
    display: none;
  }
}

/* Mobile — compact navbar + offcanvas menu */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 112px;
  }

  .nav {
    top: 24px;
    width: calc(100% - 28px);
    height: 58px;
    padding: 0 12px;
  }

  .logo img {
    width: 112px;
    max-height: 38px;
  }

  .nav > .connect-button {
    display: none;
  }

  h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  .section-title {
    font-size: 34px;
    line-height: 1.1;
  }

  .section-para {
    font-size: 16px;
  }

  .stats > div {
    border-left: 0;
    border-top: 1px solid rgba(124, 88, 60, .25);
    padding: 18px 8px;
  }

  .stats > div:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(124, 88, 60, .25);
  }

  .hero-content {
    padding: 120px 18px 58px;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-copy {
    margin-top: 24px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 30px;
    gap: 12px;
  }

  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ad7b51;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
  }

  .mobile-menu-toggle img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
  }

  /* Offcanvas mobile nav panel */
  .mobile-nav-panel.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 34px 28px;
    background: rgba(74, 46, 39, .94);
    color: #fff;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s ease, opacity .32s ease;
    --bs-offcanvas-height: 100%;
    --bs-offcanvas-width: 100%;
    width: 100%;
    border: 0;
    box-shadow: none;
    visibility: visible;
  }

  .mobile-nav-panel.show,
  .mobile-nav-panel.showing {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
  }

  .mobile-nav-head img {
    width: 128px;
    height: auto;
    object-fit: contain;
  }

  .mobile-menu-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-nav-links {
    display: grid;
    gap: 6px;
  }

  .mobile-nav-links a {
    padding: 15px 2px;
    color: #fff;
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .mobile-nav-links .mobile-connect {
    width: fit-content;
    margin-top: 18px;
    padding: 12px 22px;
    gap: 9px;
    font-size: 18px;
  }

  .mobile-nav-links .mobile-connect img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* Small mobile — smaller section padding */
@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
}

/* Extra small — tighter text + full-width buttons */
@media (max-width: 420px) {
  h1 {
    font-size: 36px;
  }

  .section-title {
    font-size: 30px;
  }

  .connect-button,
  .hero-button,
  .hero-outline-button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

/* Tablet — safari section */
@media (max-width: 1024px) {
  .safari-head {
    min-height: auto;
  }

  .safari-controls {
    margin-top: 40px;
  }

  .safari-track-wrap {
    margin-right: 0;
  }
}

/* Small mobile — safari section */
@media (max-width: 640px) {
  .dark-band {
    padding: 56px 0;
  }

  .safari-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .safari-track-wrap {
    width: 100%;
  }

  .safari-card {
    flex-basis: min(320px, calc(100vw - 82px));
  }
}

/* Extra small — safari section */
@media (max-width: 420px) {
  .safari-controls {
    align-items: stretch;
    gap: 18px;
  }

  .safari-arrows {
    justify-content: center;
  }

  .safari-card {
    flex-basis: min(300px, calc(100vw - 56px));
  }

  .price-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Extra small — tours section */
@media (max-width: 420px) {
  .tour-card {
    border-radius: 22px;
    padding: 16px;
  }

  .tour-img {
    height: 180px;
  }

  .tour-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Tablet — choose + reviews */
@media (max-width: 1024px) {
  .review-marquee {
    --review-card-width: 340px;
  }
}

/* Small mobile — choose + reviews */
@media (max-width: 640px) {
  .choose {
    padding: 56px 0;
  }

  .review-marquee {
    --review-card-width: calc(100vw - 64px);
  }

  .choose-img img {
    height: 360px;
  }
}

/* Extra small — choose + reviews */
@media (max-width: 420px) {
  .benefit {
    min-height: 210px;
  }

  .choose-img img {
    height: 300px;
  }
}

/* Mobile — gallery section (columns stack) */
@media (max-width: 768px) {
  .gallery {
    padding: 56px 18px;
  }

  .gallery-video-item {
    height: 300px;
  }

  .gallery-side-marquee {
    height: 520px;
    gap: 18px;
  }

  .gallery-image-track,
  .gallery-image-set {
    gap: 18px;
  }

  .gallery-image-set .gallery-item {
    flex: 0 0 calc(100vw - 72px);
  }

  .gallery-play {
    width: 64px;
    height: 64px;
  }
}

/* Extra small — gallery */
@media (max-width: 420px) {
  .gallery-image-set .gallery-item {
    flex-basis: calc(100vw - 56px);
  }

  .insta {
    max-width: 100%;
    font-size: 16px;
    padding: 10px 18px;
  }
}

/* Mobile — contact section */
@media (max-width: 768px) {
  .quick-contact h3,
  .form-card h3 {
    font-size: 28px;
  }

  .contact-item {
    padding: 11px 14px;
    gap: 12px;
    min-height: 68px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .contact-icon svg {
    width: 21px;
    height: 21px;
  }

  .contact-item small {
    font-size: 14px;
  }

  .contact-item strong {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .contact-item.address strong {
    font-size: 14px;
  }

  .form-card {
    border-radius: 22px;
    padding: 22px;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 15px 14px;
  }
}

/* Footer responsive */
@media (max-width: 768px) {
  footer {
    padding: 46px 0 28px;
  }

  footer h4 {
    font-size: 22px;
  }

  footer p,
  footer li {
    font-size: 15px;
  }

  .footer-grid {
    margin-bottom: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  footer {
    padding: 42px 0 30px;
  }
}

/* Safari packages section responsive */
@media (max-width: 768px) {
  .safari-tabs {
    gap: 10px;
    margin-bottom: 28px;
  }

  .safari-tab {
    padding: 9px 20px;
    font-size: 14px;
  }

  .safari-pagination {
    margin-top: 32px;
  }
}

@media (max-width: 420px) {
  .safari-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .safari-page {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Safari detail page responsive (safari-detail.html)
   ========================================================================== */
@media (max-width: 1024px) {
  .detail-content {
    padding: 54px 0 76px;
  }

  .booking-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .detail-hero {
    min-height: 560px;
  }

  .detail-hero-title {
    font-size: clamp(38px, 8vw, 64px);
  }

  .detail-hero-img {
    object-position: center 52%;
  }

  .detail-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .detail-content {
    padding: 42px 0 60px;
  }

  .detail-title,
  .detail-section-title,
  .included-title {
    font-size: 28px;
  }

  .intro {
    font-size: 16px;
  }

  .timeline-item {
    padding-left: 26px;
  }

  .booking-card {
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .detail-hero {
    min-height: 510px;
  }

  .detail-hero-title {
    font-size: clamp(34px, 11vw, 48px);
  }

  .detail-content {
    padding: 36px 0 54px;
  }

  .booking-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .booking-card h2 {
    font-size: 28px;
  }

  .included-card {
    height: 110px;
  }
}
