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

/* ---------- About page ---------- */
@media (max-width: 991px) {
  .page-about .abo-about-hero {
    min-height: clamp(300px, 44vh, 420px);
  }
  .page-about .abo-about-hero-inner {
    padding: calc(var(--nav-h) + 24px) 18px 40px;
  }
  .page-about .abo-about-hero-title {
    max-width: 100%;
  }
  .page-about .abo-about-story {
    padding: 40px 0;
  }
  .page-about .abo-about-story-grid,
  .page-about .abo-about-story-grid--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-about .abo-about-story-media img {
    min-height: 240px;
  }
  .page-about .abo-about-cta {
    padding: 24px 0 40px;
  }
  .page-about .abo-about-cta-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 18px;
  }
  .page-about .abo-about-cta-card h2 {
    font-size: 1.35rem;
  }
  .page-about .abo-about-cta-action {
    align-self: flex-start;
  }
}

/* ---------- ≤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: 96px;
    --logo-h: 64px;
    --logo-h-scrolled: 56px;
    --logo-h-footer: 60px;
  }

  .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: var(--logo-h); }
  .abo-nav.is-scrolled .abo-nav-brand img { height: var(--logo-h-scrolled); }
  .abo-mobile-panel-head img { height: 52px; width: 52px; }

  .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: 1.15fr 1fr 1.1fr;
    padding: 28px 0 18px;
    row-gap: 28px;
  }
  .abo-footer-top .abo-footer-col-links2 {
    display: none;
  }
}

/* ---------- ≤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; }

  /* Mobile footer — brand, contact actions, then links */
  .abo-footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 0;
    padding: 36px 0 4px;
  }

  .abo-footer-top .abo-footer-col-links2 {
    display: block;
  }

  .abo-footer-brand {
    grid-column: 1 / -1;
    order: 1;
    text-align: center;
    padding: 0 0 22px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .abo-footer-brand img {
    margin: 0 auto 10px;
    height: 52px;
    max-width: min(220px, 70vw);
  }

  .abo-footer-tagline {
    margin: 0 auto;
    max-width: 28ch;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
  }

  .abo-footer-social {
    justify-content: center;
    margin-top: 18px;
    gap: 12px;
  }

  .abo-footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
  }

  .abo-footer-social svg {
    width: 17px;
    height: 17px;
  }

  .abo-footer-col-contact {
    grid-column: 1 / -1;
    order: 2;
    padding: 22px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .abo-footer-col-explore {
    order: 3;
    padding: 22px 0 10px;
  }

  .abo-footer-col-links2 {
    order: 4;
    padding: 22px 0 10px;
  }

  .abo-footer h5 {
    margin: 0 0 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  .abo-footer-links {
    gap: 0;
  }

  .abo-footer-links a {
    display: block;
    padding: 9px 0;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
  }

  .abo-footer-links a:hover,
  .abo-footer-links a:active {
    padding-left: 0;
    color: var(--color-warm);
  }

  .abo-footer-contact {
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
  }

  .abo-footer-contact li {
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .abo-footer-contact svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }

  .abo-footer-contact a {
    color: #fff;
    font-weight: 500;
    word-break: break-word;
  }

  .abo-footer-phone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .abo-footer-phone-list a {
    display: inline-block;
    padding: 2px 0;
  }

  .abo-footer-contact-address span {
    color: rgba(255, 255, 255, 0.78);
  }

  .abo-footer-newsletter {
    margin-top: 2px;
    gap: 8px;
  }

  .abo-footer-newsletter-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
  }

  .abo-footer-newsletter-row {
    display: flex;
    gap: 8px;
  }

  .abo-footer-newsletter input {
    padding: 13px 16px;
    font-size: 0.92rem;
    min-height: 48px;
    border-radius: 14px;
  }

  .abo-footer-newsletter .abo-btn {
    min-width: 52px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
  }

  .abo-footer-newsletter-note {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
  }

  .abo-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .abo-footer-bottom p {
    font-size: 0.74rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.42);
  }

  .abo-footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

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

  .abo-footer-top {
    column-gap: 18px;
  }

  .abo-footer-tagline {
    font-size: 0.84rem;
  }

  .abo-footer-links a {
    font-size: 0.88rem;
  }

  .page-package-list .abo-pkg-list-dest-grid {
    grid-template-columns: 1fr;
  }
  .page-package-list .abo-pkg-list-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .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; }
  .abo-mobile-dropdown { width: min(100vw - 48px, 340px); }

  .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-facts {
    grid-template-columns: 1fr;
  }

  .page-destination .abo-dest-fact {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
  }

  .page-destination .abo-dest-fact:first-child {
    padding-left: 0;
  }

  .page-destination .abo-dest-fact:last-child {
    border-bottom: none;
    padding-right: 0;
  }

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

  .page-destination .abo-dest-gallery figure:first-child {
    grid-column: 1 / -1;
  }

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

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

  .page-destination .abo-dest-page-title {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .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(340px, 48vh, 460px);
  }

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

@media (max-width: 991px) and (min-width: 641px) {
  .page-package .abo-pkg-related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-package .abo-pkg-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-package .abo-pkg-fact {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding: 18px 16px;
  }
  .page-package .abo-pkg-fact:first-child { padding-left: 0; }
  .page-package .abo-pkg-fact:last-child {
    border-right: none;
    padding-right: 0;
  }

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

  .page-destination .abo-dest-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-destination .abo-dest-fact {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding: 20px 18px;
  }

  .page-destination .abo-dest-fact:first-child {
    padding-left: 0;
  }

  .page-destination .abo-dest-fact:last-child {
    border-right: none;
    padding-right: 0;
  }

  .page-destination .abo-dest-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-destination .abo-dest-gallery figure:first-child {
    grid-column: auto;
  }
}

@media (max-width: 991px) {

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

  .page-destination .abo-dest-page-side {
    position: static;
    max-width: 420px;
  }

  .page-package .abo-pkg-top {
    grid-template-columns: 1fr;
  }
  .page-package .abo-pkg-side {
    position: static;
    max-width: 420px;
  }
  .page-package-list .abo-pkg-list-finder {
    margin-top: 0;
    padding-top: 20px;
  }
  .page-package-list .abo-pkg-list-finder-form {
    grid-template-columns: 1fr;
  }
  .page-package-list .abo-pkg-list-finder-submit {
    width: 100%;
  }
  .page-package-list .abo-pkg-list-title {
    max-width: 100%;
  }
  .page-package-list .abo-pkg-list-dest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-package .abo-pkg-day-body { padding-left: 18px; }
  .page-package .abo-pkg-facts {
    grid-template-columns: 1fr;
  }
  .page-package .abo-pkg-fact {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
  }
  .page-package .abo-pkg-fact:last-child {
    border-bottom: none;
  }
  .page-package .abo-pkg-split {
    grid-template-columns: 1fr;
  }
  .page-package .abo-pkg-related-grid {
    grid-template-columns: 1fr;
  }
  .page-package .abo-pkg-hero {
    min-height: clamp(340px, 48vh, 460px);
  }
  .page-package .abo-pkg-hero-title {
    max-width: 100%;
  }

  .page-register .abo-register-layout {
    grid-template-columns: 1fr;
  }
  .page-register .abo-register-side,
  .page-register .abo-register-side-card,
  .page-register .abo-register-panel {
    height: auto;
    min-height: 0;
  }
  .page-register .abo-register-title {
    max-width: 100%;
  }

  .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: clamp(300px, 44vh, 420px);
  }
  .page-gallery .abo-gallery-hero-inner {
    padding: calc(var(--nav-h) + 24px) 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;
  }
}

