
/* ═══════════════════════════════════════════
   RESPONSIVE — Garden Beach Villa
   ALL rules inside media queries. No exceptions.
═══════════════════════════════════════════ */

/* ── TABLET: 768px – 1023px ── */
@media (max-width: 1023px) {
  #main-nav,
  .nav-inner {
    overflow: visible;
  }

  .nav-right,
  .hamburger,
  #main-nav .lang-dropdown {
    position: relative;
    z-index: 2;
  }

  #main-nav .lang-dropdown-menu {
    z-index: 2000;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .accommodation-split { grid-template-columns: 1fr; }
  .accommodation-video-wrap { height: 420px; order: 1; }
  .accommodation-info { order: 2; padding: 48px 40px; }
}

/* Footer tablet / small laptop — scale desktop layout down (same proportions & alignment) */
@media (min-width: 768px) and (max-width: 1399px) {
  .footer {
    padding: clamp(36px, 4vw, 56px) clamp(14px, 2vw, 32px) 0;
    overflow-x: clip;
  }

  /* Slightly wider brand track so the name stays one line like desktop */
  .footer-inner {
    zoom: 0.62;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(228px, 1.35fr) 1.95fr 0.55fr 0.9fr;
  }

  .footer-col--brand {
    min-width: 240px;
  }

  /* Match desktop lockup: text block only as wide as the name, not full column */
  .footer-logo-lockup {
    flex-wrap: nowrap;
    align-items: center;
    width: fit-content;
    max-width: 100%;
  }

  .footer-logo-text {
    flex: 0 0 auto;
    width: max-content;
    max-width: calc(100% - 48px);
    align-items: stretch;
  }

  .footer-logo-name {
    white-space: nowrap;
    width: 100%;
    letter-spacing: 0.1em;
  }

  .footer-logo-tagline {
    white-space: nowrap;
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    zoom: 1;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .footer-inner { zoom: 0.72; }
}

@media (min-width: 1100px) and (max-width: 1279px) {
  .footer-inner { zoom: 0.8; }
}

@media (min-width: 1280px) and (max-width: 1399px) {
  .footer-inner { zoom: 0.88; }
}

/* Firefox / browsers without zoom: proportional scale fallback */
@supports not (zoom: 1) {
  @media (min-width: 768px) and (max-width: 1399px) {
    .footer-inner {
      zoom: unset;
      transform: scale(0.72);
      transform-origin: top left;
      width: calc(100% / 0.72);
      margin-bottom: -8%;
    }
  }
}


/* ── MOBILE: max-width 767px ── */
@media (max-width: 767px) {

  /* NAV — centered brand; flag + hamburger on the right */
  .nav-links, .nav-cta, .lang-switcher { display: none; }
  #main-nav .lang-dropdown {
    display: block;
    pointer-events: auto;
    flex-shrink: 0;
  }
  .lang-dropdown--mobile { display: none; }
  .hamburger { display: flex; }

  #main-nav,
  .nav-inner {
    overflow: visible;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 10px;
    height: 60px;
  }

  .nav-logo {
    position: static;
    transform: none;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: min(58vw, 200px);
    gap: 8px;
    z-index: 1;
    pointer-events: none;
  }

  .nav-logo .nav-icon,
  .nav-logo .nav-logo-text-group {
    pointer-events: auto;
  }

  .nav-icon {
    height: 28px;
  }

  .nav-logo-text-group {
    align-items: flex-start;
    min-width: 0;
    gap: 2px;
  }

  .nav-logo-name {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding-bottom: 2px;
    width: auto;
    white-space: nowrap;
  }

  .nav-logo-tagline {
    font-size: 7px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .nav-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 0;
    position: relative;
    z-index: 20;
  }

  #main-nav .lang-dropdown {
    position: relative;
    z-index: 20;
    order: 1;
  }

  .nav-right .hamburger {
    order: 2;
  }

  #main-nav .lang-dropdown-menu {
    z-index: 2000;
  }

  .lang-dropdown-toggle {
    padding: 7px 8px;
  }

  .hamburger {
    flex-shrink: 0;
    padding: 8px 4px;
  }

  /* HERO */
  .hero {
    height: 100svh;
    min-height: 560px;
    padding-top: 60px;
    padding-bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  }
  .hero-content { padding: 0 24px; }
  .hero-headline { font-size: clamp(42px, 10vw, 60px); line-height: 0.95; }
  .hero-location { font-size: 9px; letter-spacing: 0.22em; }
  .hero-sub-line { font-size: 11px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
  .hero-buttons .btn { width: 200px; justify-content: center; }
  .hero-scroll {
    display: flex;
    margin-top: 32px;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 10px rgba(20, 16, 11, 0.45);
  }
  .hero-scroll .scroll-line {
    height: 44px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  /* INTRO */
  .intro { margin-top: -100px; padding: 192px 24px 56px; }
  .intro-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .intro-headline {
    font-size: clamp(30px, 8vw, 42px);
    text-align: center;
  }
  .intro-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }
  .intro-body { font-size: 14px; order: 2; text-align: center; }
  .intro-photo {
    display: block;
    order: 1;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 8px;
    border-width: 5px;
  }
  .intro-stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .intro-stat-card { padding: 16px 12px; }
  .stat-card-val { font-size: 18px; }

  /* ACCOMMODATION */
  .accommodation { padding: 0; }
  .accommodation-split { grid-template-columns: 1fr; }
  .accommodation-video-wrap { height: 280px; order: 1; width: 100%; }
  .accommodation-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .accommodation-info { order: 2; padding: 32px 24px 40px; }
  .accommodation-headline { font-size: clamp(26px, 7vw, 36px); }
  .accommodation-body { font-size: 13px; }
  .feature-pills { gap: 6px; }
  .feature-pills li { font-size: 9px; padding: 4px 8px; }
  .accommodation-ctas { flex-direction: column; gap: 10px; }
  .accommodation-ctas .btn { width: 100%; justify-content: center; }

  /* AMENITIES — swipe one category at a time */
  .amenities {
    background: var(--ivory, #F5F0E8) !important;
    overflow: hidden;
    padding: 0;
  }
  .amenities .section-label { color: var(--gold, #C4A35A); }
  .amenities-headline {
    color: var(--obsidian, #1A1611);
    font-size: clamp(26px, 7vw, 34px);
  }
  .amenities-headline em { color: var(--gold, #C4A35A); }
  .amenities-inner { padding: 48px 0 16px; }
  .amenities-header { margin-bottom: 24px; text-align: center; padding: 0 16px; }
  .amenities-intro { display: none; }

  .amenities-categories {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
    padding: 0 20px 4px;
    box-sizing: border-box;
  }

  .amenities-categories::-webkit-scrollbar { display: none; }

  .amenity-category {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: center;
    background: #ffffff;
    border: 1px solid rgba(196, 163, 90, 0.22);
    border-radius: 16px;
    overflow: hidden;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(26, 22, 17, 0.05);
  }

  .amenity-category-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    color: var(--gold, #C4A35A);
  }

  .amenity-category-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold, #C4A35A);
    opacity: 0.85;
  }

  .amenity-category-title {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold, #C4A35A);
    margin-bottom: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
  }

  .amenity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  .amenity-list li {
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: #6A6057;
    line-height: 1.45;
    padding: 9px 0;
    border-bottom: 1px solid rgba(196, 163, 90, 0.12);
  }

  .amenity-list li:last-child { border-bottom: none; padding-bottom: 0; }

  .amenity-list li svg { display: none; }

  .amenities-swipe-hint {
    display: block;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stone, #9E8672);
    margin: 10px 0 0;
    padding: 0 20px;
  }

  /* ACTIVITIES — horizontal scroll, one card at a time */
  .activities { padding: 20px 0 48px; overflow: hidden; }
  .activities .section-header { padding: 0 16px; margin-bottom: 24px; }
  .activities-grid {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 20px 4px;
    scroll-padding-inline: 20px;
    box-sizing: border-box;
  }
  .activities-grid::-webkit-scrollbar { display: none; }
  .activity-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: center;
    border-radius: 12px;
  }
  .activity-image-wrap { height: 200px; }
  .activity-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 20px;
  }
  .activity-title {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.2;
    margin: 0;
  }
  .activity-body {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
  }

  .activities-swipe-hint {
    display: block;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stone, #9E8672);
    margin: 14px 0 0;
    padding: 0 18px;
  }

  /* GALLERY — horizontal scroll, no buttons */
  .gallery { padding: 48px 0 40px; }
  .gallery-header { padding: 0 20px; margin-bottom: 24px; }
  .gallery-headline { font-size: clamp(28px, 8vw, 40px); }
  .gallery-controls { display: none; }
  .gallery-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: default;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-viewport::-webkit-scrollbar { display: none; }
  .gallery-track {
    padding: 0 20px;
    gap: 8px;
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  .gallery-item:nth-child(4n+1),
  .gallery-item:nth-child(4n+2),
  .gallery-item:nth-child(4n+3),
  .gallery-item:nth-child(4n+4) {
    transform: none;
  }
  .gallery-item { width: 220px; height: 280px; border-radius: 8px; overflow: hidden; }
  .gallery-item img { border-radius: 8px; }
  .gallery-item--tall { height: 340px; }
  .gallery-item--wide { width: 280px; }

  /* TESTIMONIALS — 1 row only */
  .testimonials { padding: 48px 0; }
  .testimonials .section-header { padding: 0 20px; margin-bottom: 28px; }
  .testimonials .section-title { font-size: clamp(26px, 7vw, 34px); }
  .reviews-band { gap: 0; }
  .reviews-row:nth-child(2),
  .reviews-row:nth-child(3) { display: none; }
  .reviews-row:first-child { display: block; }
  .review-card { width: 260px; padding: 16px 18px; }
  .review-stars { font-size: 9px; }
  .review-body { font-size: 13px; -webkit-line-clamp: 3; }
  .review-name { font-size: 10px; }
  .review-source { font-size: 9px; }

  /* FAQ — compact accordion */
  .faq-section { padding: 48px 20px 40px; }
  .faq-section::before { display: none; }
  .faq-list { margin-top: 24px; }
  .faq-q {
    font-size: 16px;
    padding: 10px 0;
    gap: 12px;
  }
  .faq-q::after { font-size: 18px; }
  .faq-a {
    font-size: 13px;
    line-height: 1.6;
    padding: 0 28px 10px 0;
  }

  /* LOCATION — map visible, stats below */
  .location { padding: 48px 0 0; }
  .location-header { padding: 0 20px 24px; text-align: center; }
  .location-headline { font-size: clamp(24px, 7vw, 34px); }
  .location-map-wrap {
    display: flex;
    flex-direction: column;
  }
  .location-map-frame {
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .location-map-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
  }
  .location-footer {
    position: static;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px;
    background: rgba(26, 22, 17, 0.92);
  }
  .location-sep { width: 28px; height: 1px; }
  .location-stat { padding: 0; }
  .location-stat-value { font-size: 20px; }
  .location-cta { margin-left: 0; }

  /* ENQUIRE */
  .enquire-content { grid-template-columns: 1fr; padding: 56px 20px 40px; gap: 28px; }
  .enquire-headline { font-size: clamp(36px, 9vw, 50px); }
  .enquire-card { padding: 24px 20px; border-radius: 12px; }
  .enquire-card-title { font-size: 20px; margin-bottom: 18px; }
  .enquiry-form { gap: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .enquire-submit { padding: 14px; font-size: 11px; }
  .enquire-contact-row { flex-direction: column; gap: 6px; }
  .enquire-contact-sep { display: none; }

  /* FOOTER — mobile layout */
  .footer { padding: 48px 20px 0; }

  .footer-col--nav { display: none; }
  .footer-col--contact { display: none; }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: none;
    align-items: center;
    text-align: center;
  }

  .footer-col--partners {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-col--partners > .footer-col-title,
  .footer-col--partners > .footer-partners-list {
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    width: 100%;
  }

  .footer-col--brand {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: auto;
  }

  .footer-col--partners { order: 2; }

  .footer-logo-lockup {
    justify-content: center;
    margin-bottom: 14px;
  }

  .footer-logo-text {
    align-items: center;
  }

  .footer-logo-name,
  .footer-logo-tagline {
    text-align: center;
  }

  .footer-tagline {
    font-size: clamp(10px, 2.75vw, 12px);
    margin-bottom: 18px;
    text-align: center;
    max-width: none;
    white-space: nowrap;
  }

  .footer-tagline br { display: none; }

  .footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 0;
  }

  .footer-col-title {
    text-align: center;
    margin-bottom: 14px;
  }

  .footer-partners-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
  }

  .footer-partner-item:nth-child(1) img { height: 16px; }
  .footer-partner-item:nth-child(2) img { height: 14px; }
  .footer-partner-item:nth-child(3) img { height: 32px; }
  .footer-partner-item:nth-child(4) img { height: 24px; }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 14px 0;
  }

  .footer-bottom p,
  .footer-copy,
  .footer-policy { font-size: 10px; }

  /* STICKY BAR */
  .sticky-bar { padding: 10px 20px; }
  .sticky-bar-text { font-size: 10px; }
  .sticky-bar-btn { padding: 8px 12px; font-size: 10px; }

  /* WHATSAPP FLOAT */
  .whatsapp-float { bottom: 72px; right: 16px; width: 44px; height: 44px; }

  /* BOOKING MODAL */
  .booking-modal { padding: 0; align-items: flex-end; }
  .booking-panel {
    grid-template-columns: 1fr;
    width: 100%;
    height: 92svh;
    border-radius: 20px 20px 0 0;
  }
  .booking-brand { display: none; }
  .booking-picker-body { padding: 20px; }
  .booking-picker-header { padding: 16px 20px; }
  .booking-form-row { grid-template-columns: 1fr 1fr; gap: 14px; }
}


/* ── SMALL MOBILE: 479px and below ── */
@media (max-width: 479px) {
  .hero-headline { font-size: 40px; }
  .activity-image-wrap { height: 180px; }
  .gallery-item { width: 190px; height: 250px; }
  .booking-form-row { grid-template-columns: 1fr; }
}
