/* ===================================================================
   ANDAMAN BEACH OUTLOOK — Mobile-first Responsive Overrides
   =================================================================== */

/* ---------- About page hero ---------- */
@media (max-width: 991px) {
  .abo-about-hero-card {
    min-height: clamp(320px, 50svh, 480px);
  }

  .abo-about-hero-inner {
    padding: calc(var(--nav-h) + 16px) 20px 32px;
  }

  .abo-about-hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .abo-about-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .abo-about-hero-title {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }
}

@media (max-width: 991px) {
  .abo-about-intro {
    padding: 40px 0;
  }

  .abo-about-intro-row,
  .abo-about-intro-row--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .abo-about-intro-side {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    order: 2;
    border-radius: 24px;
    box-shadow: 8px 8px 18px var(--neu-shadow-dark), -8px -8px 18px var(--neu-shadow-light);
    padding: 24px 20px;
  }

  .abo-about-intro-card {
    border-radius: 24px;
    box-shadow: 8px 8px 18px var(--neu-shadow-dark), -8px -8px 18px var(--neu-shadow-light);
  }

  .abo-about-intro-row .abo-about-intro-card,
  .abo-about-intro-row--reverse .abo-about-intro-card {
    order: 1;
  }

  .abo-about-intro-card,
  .abo-about-intro-card--image-right {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
  }

  .abo-about-intro-card .abo-about-intro-media,
  .abo-about-intro-card .abo-about-intro-content,
  .abo-about-intro-card--image-right .abo-about-intro-media,
  .abo-about-intro-card--image-right .abo-about-intro-content {
    grid-column: 1;
    grid-row: auto;
  }

  .abo-about-intro-media img {
    min-height: 260px;
  }

  .abo-about-intro-content {
    padding: 32px 28px 36px;
  }

  .abo-about-cta {
    padding-bottom: 48px;
  }
}

/* ---------- ≤1200px : condense hero stats / grids ---------- */
@media (max-width: 1200px) {
  .abo-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abo-portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .abo-trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .abo-footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .abo-footer-top .abo-footer-col-links2 { display: none; }
}

/* ---------- ≤991px : collapse nav, stack two-column sections ---------- */
@media (max-width: 991px) {
  :root { --nav-h: 88px; }

  .abo-header .abo-nav-menu,
  .abo-nav-menu,
  .abo-nav-search,
  .abo-header .abo-submenu {
    display: none !important;
  }

  .abo-hamburger-toggle {
    display: flex !important;
  }

  /* backdrop-filter on nav traps fixed mobile drawer — use solid bg on mobile */
  .abo-nav,
  .abo-nav.is-scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .abo-hide-mobile { display: none !important; }

  .abo-nav-brand img { height: 50px; }
  .abo-nav.is-scrolled .abo-nav-brand img { height: 44px; }
  .abo-mobile-panel-head img { height: 46px; }

  .abo-search-card-inner {
    grid-template-columns: 1fr 1fr;
    padding: 26px 24px;
    gap: 14px 12px;
  }

  .abo-search-card-inner .abo-btn {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }

  .abo-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; gap: 16px; padding: 12px; transform: none; }
  .abo-stat-item { padding: 22px 14px 18px; }
  .abo-search-card { margin-top: -52px; }

  .abo-features-grid { grid-template-columns: 1fr; gap: 60px; }
  .abo-features-media-frame { min-height: 400px; }
  .abo-features-glass img { min-height: 360px; }
  .abo-features-badge { right: 12px; bottom: -24px; }

  .abo-why-wrap { grid-template-columns: 1fr; gap: 44px; }
  .abo-why-cards { max-width: 520px; }

  .abo-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 46px; }
  .abo-timeline::before { display: none; }

  .abo-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .abo-contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .abo-contact-form-card { padding: 32px; height: auto; }
  #abo-contact-form { display: block; }
  .abo-form-group-message { flex: none; }
  .abo-form-group-message textarea { min-height: 150px; flex: none; }

  .abo-footer-top { grid-template-columns: 1fr 1fr; padding: 28px 0 18px; row-gap: 24px; }
}

/* ---------- ≤767px : single column, larger tap targets ---------- */
@media (max-width: 767px) {
  .abo-section { padding: 80px 0; }
  .abo-section-tight { padding: 64px 0; }

  .abo-hero { min-height: 92vh; }
  .abo-hero .abo-hero-title { max-width: 100%; }
  .abo-hero .abo-hero-desc { max-width: 100%; }
  .abo-hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
  }
  .abo-hero-cta .abo-btn { width: 100%; }

  .page-home .abo-hero-content { padding-bottom: 48px; }
  .abo-scroll-cue { display: none; }

  .abo-search-card {
    margin-top: -44px;
    margin-bottom: 28px;
  }

  .abo-hero-stats { margin-bottom: 48px; padding: 12px; transform: none; }
  .abo-stat-item { padding: 20px 12px 16px; }

  .abo-search-card-inner {
    grid-template-columns: 1fr 1fr;
    padding: 24px 20px;
    gap: 14px 12px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 20px 44px -14px rgba(49, 77, 135, 0.2),
      0 8px 24px -8px rgba(76, 119, 208, 0.14);
  }

  .abo-search-card-inner .abo-btn {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
  }

  .abo-field { min-width: 0; }

  .abo-field label {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .abo-field input,
  .abo-field select {
    min-height: 48px;
    font-size: 16px;
    padding: 12px 14px 12px 40px;
  }

  .abo-field-input svg {
    left: 14px;
    width: 16px;
    height: 16px;
  }

  .abo-services-grid { grid-template-columns: 1fr; }
  .abo-service-card { min-height: auto; }

  .abo-filter-bar { margin-bottom: 24px; overflow: visible; }

  .abo-filter-scroll {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    padding: 6px 2px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .abo-filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .abo-filter-btn {
    flex-shrink: 0;
  }

  .abo-portfolio-nav {
    display: flex;
  }

  .abo-portfolio-arrow,
  .abo-portfolio-dots {
    display: inline-flex;
  }

  .abo-portfolio-dots {
    display: flex;
  }

  .abo-portfolio-track {
    width: 100%;
    padding: 4px 0 12px;
  }

  .abo-portfolio-grid {
    display: flex;
    gap: 16px;
    grid-template-columns: unset;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .abo-dest-card {
    flex: 0 0 100%;
    width: 100%;
    height: 440px;
    min-height: 440px;
    aspect-ratio: auto;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    transform: none;
    border: none;
    box-shadow: none;
  }

  .abo-dest-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 4;
    pointer-events: none;
    box-shadow: none;
  }

  .abo-dest-card::after {
    top: auto;
    bottom: 0;
    height: 78%;
    transform: none;
    background: linear-gradient(
      to top,
      rgba(15, 23, 42, 0.9) 0%,
      rgba(15, 23, 42, 0.78) 14%,
      rgba(15, 23, 42, 0.58) 28%,
      rgba(15, 23, 42, 0.38) 42%,
      rgba(15, 23, 42, 0.22) 56%,
      rgba(15, 23, 42, 0.1) 70%,
      rgba(15, 23, 42, 0.04) 84%,
      rgba(15, 23, 42, 0) 100%
    );
  }

  .abo-dest-content {
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    padding: 1.5rem 1.35rem 1.75rem;
    z-index: 3;
    text-align: left;
  }

  .abo-dest-content > * + * {
    margin-top: 0.75rem;
  }

  .abo-dest-content > *:not(.abo-dest-title) {
    opacity: 1 !important;
    transform: none !important;
  }

  .abo-dest-content .loc {
    justify-content: flex-start;
  }

  .abo-dest-content .abo-dest-title {
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
  }

  .abo-dest-copy {
    font-style: italic;
    line-height: 1.45;
    max-width: none;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.94);
    text-align: left;
  }

  .abo-dest-content .abo-dest-cta {
    margin-top: 1rem;
    flex-shrink: 0;
    align-self: flex-start;
  }

  .abo-dest-price {
    z-index: 5;
    box-shadow: none;
  }

  .abo-dest-card img {
    height: 100%;
  }

  .abo-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .abo-timeline { grid-template-columns: 1fr; }

  .abo-testimonial-card { padding: 32px 22px; }
  .abo-testimonial-text { font-size: 1.08rem; }

  .abo-faq-question { padding: 20px; font-size: 0.95rem; }
  .abo-faq-answer p { padding: 0 20px 22px; }

  .abo-form-row { grid-template-columns: 1fr; }
  .abo-contact-form-card { padding: 26px; }

  .abo-footer-top { grid-template-columns: 1fr; padding: 24px 0 16px; row-gap: 22px; }
  .abo-footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .abo-footer-bottom-links { flex-wrap: wrap; justify-content: center; }

  .abo-back-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---------- ≤575px : phones ---------- */
@media (max-width: 575px) {
  .abo-container { padding: 0 18px; }

  .abo-hero-badge { font-size: 0.68rem; padding: 6px 12px; }
  .abo-hero-badge svg { width: 12px; height: 12px; }
  .abo-hero .abo-hero-title { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .abo-hero-cta .abo-btn { font-size: 0.84rem; padding: 11px 22px; }
  .abo-hero .abo-hero-desc { font-size: 1rem; }
  .abo-hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px; }
  .abo-stat-item { padding: 18px 10px 14px; }
  .abo-stat-item:hover { transform: translateY(-4px) scale(1.02); }

  .abo-search-card { margin-top: -36px; }
  .abo-search-card-inner { padding: 20px 16px; gap: 12px 10px; }
  .abo-field label { font-size: 0.66rem; }

  .abo-section-title { font-size: 1.6rem; }
  .abo-section-sub { font-size: 0.95rem; }

  .abo-trust-strip { grid-template-columns: 1fr 1fr; }

  .abo-dest-card {
    height: 420px;
    min-height: 420px;
    aspect-ratio: auto;
  }

  .abo-dest-content .abo-dest-title {
    font-size: 1.15rem;
  }

  .abo-dest-copy {
    font-size: 0.84rem;
  }

  .abo-mobile-panel { width: 90vw; padding: 22px 18px; }

  .abo-contact-card { flex-direction: column; }

  .page-destination .abo-dest-page-grid {
    grid-template-columns: 1fr;
  }

  .page-destination .abo-dest-page-side {
    position: static;
  }

  .page-destination .abo-dest-related-grid {
    grid-template-columns: 1fr;
  }

  .page-destination .abo-dest-page-hero {
    min-height: clamp(320px, 48vh, 480px);
  }

  .page-destination .abo-dest-page-hero-inner {
    padding: calc(var(--nav-h) + 32px) clamp(18px, 5vw, 28px) 40px;
  }

  .page-destination .abo-dest-page-title {
    max-width: 100%;
  }

  .page-destination .abo-dest-page-lead {
    max-width: 42ch;
  }

  .page-destination .abo-dest-page-hero:has(.abo-dest-page-hero-bg--cellular) {
    min-height: clamp(320px, 48vh, 480px);
  }

  .page-destination .abo-dest-page-hero-bg--cellular {
    background-position: 32% 22%;
  }
}

@media (max-width: 991px) and (min-width: 641px) {
  .page-destination .abo-dest-related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {

  .page-package .abo-pkg-layout,
  .page-package-list .abo-pkg-list-layout {
    grid-template-columns: 1fr;
  }
  .page-package .abo-pkg-side,
  .page-package-list .abo-pkg-filters {
    position: static;
  }
  .page-package .abo-pkg-day-body { padding-left: 18px; }
  .page-package-list .abo-pkg-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) and (min-width: 700px) {
  .page-package-list .abo-pkg-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Gallery page */
@media (max-width: 1100px) {
  .page-gallery .abo-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .page-gallery .abo-gallery-hero {
    min-height: min(68vh, 520px);
  }
  .page-gallery .abo-gallery-hero-inner {
    padding: calc(var(--nav-h) + 36px) 18px 40px;
  }
  .page-gallery .abo-gallery-main {
    padding: 36px 0 64px;
  }
  .page-gallery .abo-gallery-toolbar {
    gap: 8px;
    margin-bottom: 22px;
  }
  .page-gallery .abo-gallery-filter {
    padding: 8px 14px;
    font-size: 0.7rem;
  }
  .page-gallery .abo-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .page-gallery .abo-gallery-item {
    aspect-ratio: 1 / 1;
  }
  .page-gallery .abo-gallery-item-meta strong {
    font-size: 0.9rem;
  }
  .page-gallery .abo-gallery-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }
  .abo-lightbox {
    padding: 12px;
  }
  .abo-lightbox-dialog {
    flex-direction: column;
    gap: 10px;
  }
  .abo-lightbox-figure {
    max-width: 100%;
    order: 1;
  }
  .abo-lightbox-nav {
    order: 2;
  }
  .abo-lightbox-nav.prev { align-self: flex-start; }
  .abo-lightbox-nav.next { align-self: flex-end; margin-top: -56px; }
  .abo-lightbox-close {
    top: 8px;
    right: 8px;
  }
}

