/* ============================================
   Responsive – Desktop, Tablet, Mobile
   ============================================ */

/* Tablet */
@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }

  .nav-pill-wrap {
    display: flex;
  }

  .main-nav {
    display: flex;
    align-items: center;
  }

  .main-nav--pills {
    gap: 24px;
  }

  .nav-pill {
    padding: 10px 6px;
  }

  .header-inner {
    padding-left: 50px;
    padding-right: 50px;
  }

  .btn-nav-book {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .trek-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }

  .overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-title--two-line {
    font-size: 48px;
    line-height: 1.15;
  }

  .hero-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .container {
    padding: 0 32px;
  }

  .hero-inner {
    padding-left: 70px;
    padding-right: 70px;
  }

  .hero-title--two-line {
    font-size: 72px;
    line-height: 1.15;
  }

  .trek-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .gallery-masonry {
    column-count: 3;
    column-gap: 24px;
  }

  .gallery-masonry .gallery-item {
    margin-bottom: 24px;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav-pill-wrap {
    display: none !important;
  }

  /* Hide desktop nav when not using pills (legacy pages) so hamburger is the only CTA */
  .site-header .main-nav:not(.main-nav--pills),
  .site-header .nav-cta {
    display: none !important;
  }

  .btn-nav-book {
    display: none;
  }

  .nav-toggle {
    display: flex !important;
    position: relative;
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    touch-action: manipulation;
  }

  .site-header.is-solid .nav-toggle {
    background: var(--color-white);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle span {
    display: block !important;
    width: 22px !important;
    height: 2.5px !important;
    border-radius: 2px;
    background-color: var(--color-primary) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  }

  .site-header.is-solid .nav-toggle span {
    background-color: var(--color-primary) !important;
  }

  /* Mobile: smaller logo, fit inside header bar */
  .site-header {
    height: 72px;
    padding: 12px 0;
  }

  .site-header .header-inner {
    height: 48px;
    min-height: 48px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header .logo--img {
    margin-top: 0;
    margin-left: 0;
    align-self: center;
  }

  .site-header .logo--img img {
    height: 138px;
    max-width: 160px;
  }

  .nav-toggle span:nth-child(1) {
    transform-origin: center center;
  }

  .nav-toggle span:nth-child(2) {
    margin: 0;
    transform-origin: center center;
  }

  .nav-toggle span:nth-child(3) {
    transform-origin: center center;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7.25px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7.25px) rotate(-45deg);
  }

  .hero-inner {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero--bromo {
    padding: 0 0 32px;
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero--bromo__center {
    padding-top: 88px;
    padding-bottom: 32px;
  }

  .hero-title--two-line {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.2;
    word-break: break-word;
  }
  .hero-pill {
    margin-bottom: 18px;
  }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .hero--bromo__left {
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-people {
    justify-content: center;
  }

  .hero-avatars {
    justify-content: center;
  }

  .hero-avatar {
    margin-left: -10px;
  }

  .hero-avatar:first-child {
    margin-left: 0;
  }

  .hero--bromo__right {
    justify-self: center;
    max-width: 100%;
  }

  .hero-slider {
    max-width: 100%;
  }

  .hero-slider__arrow--prev {
    left: 4px;
  }

  .hero-slider__arrow--next {
    right: 4px;
  }

  .hero-slider__arrow {
    width: 38px;
    height: 38px;
  }

  .hero-carousel-track {
    gap: 16px;
  }

  .hero-card {
    flex: 0 0 200px;
    width: 200px;
    height: 250px;
    border-radius: 16px;
  }

  .hero-card__overlay {
    padding: 18px 14px 16px;
  }

  .hero-card__title {
    font-size: 0.88rem;
  }

  .hero-card__meta {
    font-size: 0.7rem;
  }

  .hero-card__desc {
    font-size: 0.68rem;
  }

  .highlight-cards-section {
    overflow: hidden;
  }

  .highlight-slider__viewport {
    overflow: hidden;
  }

  .highlight-slider__arrow--prev {
    left: 4px;
  }

  .highlight-slider__arrow--next {
    right: 4px;
  }

  .highlight-slider__arrow {
    width: 38px;
    height: 38px;
  }

  .highlight-card {
    flex: 0 0 280px;
    width: 280px;
    min-width: 0;
    height: 400px;
  }

  .highlight-carousel-track {
    gap: 20px;
  }

  .highlight-card__content {
    padding: 16px 14px 54px;
  }

  .highlight-card__title {
    font-size: 0.92rem;
  }

  .highlight-card__desc {
    font-size: 0.72rem;
  }

  .hero-buttons-wrap {
    justify-content: center;
  }

  .hero-footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 20px;
  }

  .hero-pagination__bar {
    width: 100px;
  }

  .hero-fade {
    height: 100px;
  }

  .section--after-hero {
    margin-top: -40px;
  }

  .trek-slider {
    padding: 0 20px;
    margin-top: 32px;
    overflow: hidden;
  }

  .trek-slider__stage {
    min-height: 320px;
    overflow: visible;
  }

  .trek-slider__track {
    min-height: 300px;
  }

  .trek-slide {
    width: 260px;
    height: 340px;
    margin-left: -130px;
  }

  .trek-slide.is-left {
    transform: translateX(-200px) scale(0.9);
  }

  .trek-slide.is-right {
    transform: translateX(200px) scale(0.9);
  }

  .trek-slide.is-far-left {
    transform: translateX(-320px) scale(0.75);
  }

  .trek-slide.is-far-right {
    transform: translateX(320px) scale(0.75);
  }

  .trek-slide__title {
    font-size: 1.2rem;
  }

  .trek-slide__content {
    padding: 20px 18px 24px;
  }

  .trek-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .section {
    padding: 56px 0;
  }

  .experience-section__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.25;
    word-break: break-word;
  }

  .experience-section__features {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .experience-section__desc {
    margin-bottom: 40px;
    font-size: 0.95rem;
  }

  .experience-section__container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .experience-grid--booking {
    gap: 32px;
  }

  .experience-grid--booking .experience-image--booking-sidebar {
    order: 1;
  }

  .experience-image {
    order: -1;
  }

  .experience-grid--booking .experience-content {
    order: -1;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-qr-card {
    position: static;
    top: auto;
  }

  .booking-form {
    padding: 22px 20px 26px;
  }

  .treks-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 24px;
  }

  .treks-search-wrap {
    min-width: 0;
  }

  .treks-search {
    max-width: none;
  }

  .treks-difficulty {
    flex-direction: column;
    align-items: flex-start;
  }

  .trek-card__media .trek-card__overlay {
    padding: 28px 22px 26px;
    min-height: 52%;
  }

  .trek-card__overlay .trek-card__title {
    font-size: 1.28rem;
    margin-bottom: 14px;
  }

  .trek-card__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .trek-card__overlay .trek-card__meta {
    margin-bottom: 22px;
  }

  .trek-card__btn {
    padding: 16px 24px;
    font-size: 0.975rem;
  }

  .need-help-box {
    padding: 28px 20px 32px;
  }

  .need-help-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .need-help-header {
    margin-bottom: 24px;
  }

  .hero-content {
    padding: 120px 20px 80px;
  }

  .stats {
    margin-top: -40px;
  }

  .stat-card {
    padding: 22px 20px;
  }

  .stat-value {
    font-size: 1.65rem;
  }

  .page-hero .hero-content {
    padding: 140px 20px 60px;
  }
  .page-hero--about .hero-bg {
    background-image: url('../assets/assets/about/aboutmob.webp');
  }

  .trek-detail-hero {
    min-height: 45vh;
    padding-bottom: 24px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  /* Trek detail page – property style */
  .tdp-wrap {
    padding: 20px 16px 32px;
  }
  .tdp-page .tdp-wrap {
    padding-top: 96px;
  }

  .highlight-cards-section .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .need-help-input,
  .need-help-select,
  .need-help-textarea {
    min-width: 0;
    width: 100%;
  }

  .section-title,
  .section-desc {
    word-break: break-word;
  }

  .tdp-card {
    padding: 24px 20px 36px;
    border-radius: 20px;
  }

  .tdp-head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .tdp-title {
    font-size: 1.5rem;
  }

  .tdp-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    margin-bottom: 24px;
  }

  .tdp-gallery__main {
    grid-row: span 2;
    min-height: 220px;
  }

  .tdp-gallery__side {
    flex-direction: column;
  }

  .tdp-gallery__side img {
    min-height: 110px;
    flex: 1;
  }

  .tdp-main {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .tdp-booking__card {
    position: static;
  }

  .tdp-itinerary li {
    flex-direction: column;
    gap: 12px;
  }
  .tdp-itinerary__day {
    width: auto;
    padding: 0 12px;
  }
  .tdp-gear-list {
    grid-template-columns: 1fr;
  }

  .tdp-featured {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 28px 20px;
  }

  .cta-section {
    padding: 80px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stats-grid {
    gap: 12px;
  }

  .trek-card__body {
    padding: 20px;
  }

  .steps-list li {
    gap: 16px;
    margin-bottom: 22px;
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
