/* Geo Retreats responsive layer — loaded after page-specific CSS. */
:root {
  --geo-content-gutter: clamp(16px, 4vw, 48px);
  --geo-section-space: clamp(36px, 6vw, 76px);
  --geo-text-body: 1rem;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.geo-page {
  width: 100%;
  max-width: 100%;
  font-size: clamp(15px, .25vw + 14px, 16px);
  line-height: 1.65;
  overflow-x: clip;
}
body.geo-page *, body.geo-page *::before, body.geo-page *::after { min-width: 0; }
body.geo-page img { max-width: 100%; }
/* Dynamic image markup uses real <img> elements inside the existing card layers. */
body.geo-page img.bento-bg,
body.geo-page img.act-bg-img { display:block; width:100%; height:100%; object-fit:cover; }
body.geo-page button,
body.geo-page input,
body.geo-page select,
body.geo-page textarea { font-family: var(--geo-font, 'Barlow', Arial, sans-serif); }
body.geo-page input,
body.geo-page select,
body.geo-page textarea { font-size: 16px !important; }
body.geo-page :where(a, button, input, select, textarea) { touch-action: manipulation; }

/* Fluid type scales preserve the current Barlow visual style. */
.geo-page .page-hero h1,
.geo-page .hero-strip-title,
.geo-page .camp-header-info h1 {
  font-size: clamp(1.85rem, 4.7vw, 3rem) !important;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.geo-page .section-title { font-size: clamp(1.55rem, 3.6vw, 2.6rem) !important; line-height: 1.16; }
.geo-page .story-content h2,
.geo-page .act-detail-content h2,
.geo-page .policy-card-header h2 { font-size: clamp(1.25rem, 2.5vw, 1.9rem) !important; line-height: 1.22; }
.geo-page .bento-title { font-size: clamp(1.45rem, 3.2vw, 2.2rem) !important; }
.geo-page .bento-sub-title { font-size: clamp(1.12rem, 2.2vw, 1.45rem) !important; }
.geo-page p { overflow-wrap: break-word; }

/* Header: use the existing hamburger menu before the desktop links become cramped. */
@media (min-width: 1025px) and (max-width: 1240px) {
  .geo-page .nav-menu { gap: .85rem; }
  .geo-page .nav-menu a { font-size: .82rem; letter-spacing: .25px; }
  .geo-page .navbar .btn-cta { padding: .58rem .9rem; font-size: .78rem; }
}
@media (max-width: 1024px) {
  .geo-page .navbar { min-height: 64px; gap: 12px; padding: .65rem var(--geo-content-gutter); }
  .geo-page .brand-logo { flex: 0 1 auto; min-width: 0; }
  .geo-page .brand-logo-img { display: block; height: 38px; max-width: min(48vw, 190px); width: auto; }
  .geo-page .mobile-toggle {
    display: inline-flex !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
  }
  .geo-page .navbar .btn-cta { display: none !important; }
  .geo-page .nav-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: min(76vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--geo-content-gutter) 16px;
    background: var(--primary-dark, #38393b);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 14px 24px rgba(0,0,0,.22);
    z-index: 1100;
  }
  .geo-page .nav-menu.active { display: flex !important; flex-direction: column; }
  .geo-page .nav-menu li { width: 100%; }
  .geo-page .nav-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: .7rem .4rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
    font-size: .92rem;
  }
  .geo-page .top-bar { gap: 8px 16px; padding: 7px var(--geo-content-gutter); }
  .geo-page .top-info { display: flex; flex-wrap: wrap; gap: 5px 14px; min-width: 0; }
  .geo-page .top-info span { margin: 0; }
  .geo-page .top-social { display: flex; gap: 12px; margin-left: auto; }
  .geo-page .top-social a { margin: 0; }
}

/* Common tablet layouts. */
@media (max-width: 900px) {
  .geo-page .section-padding { padding: var(--geo-section-space) var(--geo-content-gutter); }
  .geo-page .about-story-grid,
  .geo-page .contact-grid,
  .geo-page .details-container { grid-template-columns: minmax(0, 1fr) !important; }
  .geo-page .about-story-grid { gap: 2rem; }
  .geo-page .contact-grid { gap: 1.5rem; }
  .geo-page .act-detail-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem; }
  .geo-page .act-detail-content { padding: 1.4rem 1.4rem 1.4rem 0; }
  .geo-page .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
  .geo-page .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .geo-page .top-bar { align-items: flex-start; font-size: .72rem; }
  .geo-page .top-info { flex: 1 1 100%; gap: 4px 12px; }
  .geo-page .top-info span { font-size: .72rem; line-height: 1.4; }
  .geo-page .top-social { margin-left: 0; }
  .geo-page .brand-logo-img { height: 35px; max-width: 54vw; }
  .geo-page .page-hero,
  .geo-page .hero-banner-strip { padding: clamp(34px, 7vw, 54px) var(--geo-content-gutter); }
  .geo-page .page-hero p,
  .geo-page .hero-strip-desc { font-size: .98rem; line-height: 1.55; }
  .geo-page .section-padding { padding: 38px var(--geo-content-gutter); }
  .geo-page .section-header { margin-bottom: 1.65rem; padding-inline: var(--geo-content-gutter); }
  .geo-page .bento-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; min-height: 0; }
  .geo-page .bento-hero { min-height: 390px; padding: 1.35rem; }
  .geo-page .bento-side-stack { gap: 14px; }
  .geo-page .bento-sub { min-height: 245px; padding: 1.25rem; }
  .geo-page .bento-desc { font-size: .9rem; margin-bottom: .8rem; }
  .geo-page .bento-action-row { align-items: center; gap: 10px; }
  .geo-page .btn-sage,
  .geo-page .btn-submit,
  .geo-page .wa-direct-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
  .geo-page .camps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .geo-page .filter-wrapper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .geo-page .filter-item { min-width: 0; width: 100%; }
  .geo-page .act-detail-card { grid-template-columns: minmax(0, 1fr) !important; gap: 0; }
  .geo-page .act-detail-img { min-height: 0; aspect-ratio: 16 / 9; }
  .geo-page .act-detail-content { padding: 1.15rem; }
  .geo-page .act-meta { gap: 8px; font-size: .78rem; }
  .geo-page .act-meta span { padding: .35rem .65rem; }
  .geo-page .act-action-row { flex-wrap: wrap; }
  .geo-page .why-grid { gap: 12px; }
  .geo-page .why-box { padding: 1.25rem; }
  .geo-page .faq-section { padding: 42px var(--geo-content-gutter); }
  .geo-page .faq-question { padding: 1rem; gap: 10px; font-size: 1rem; }
  .geo-page .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .geo-page footer { padding: 2.8rem var(--geo-content-gutter) 1.5rem; }
  .geo-page .floating-wa { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 52px; height: 52px; font-size: 1.55rem; }
  .geo-page .form-row,
  .geo-page .geo-form-grid,
  .geo-page .geo-date-grid { grid-template-columns: minmax(0, 1fr); }
  .geo-page .form-control,
  .geo-page .field-input,
  .geo-page .filter-input,
  .geo-page .search-box input,
  .geo-page .gallery-url-input { min-height: 44px; font-size: 16px !important; }
  .geo-page .query-form-card { padding: 1.35rem; }
  .geo-page .info-card { padding: 1.2rem; gap: .9rem; }
  .geo-page .details-hero { padding: 1.25rem var(--geo-content-gutter) .75rem; }
  .geo-page .camp-header-row { align-items: flex-start; }
  .geo-page .photo-gallery-grid { margin-bottom: 1.5rem; padding-inline: var(--geo-content-gutter); gap: 7px; }
  .geo-page .details-container { padding-inline: var(--geo-content-gutter); gap: 1.2rem; }
  .geo-page .content-box { padding: 1.15rem; }
  .geo-page .booking-sidebar-card { position: static; margin-top: 1.25rem; }
  .geo-page .modal-box { width: 100%; max-height: 92dvh; padding: 1.1rem; }
  .geo-page .lightbox-stage { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 6px; }
  .geo-page .lightbox-nav,
  .geo-page .lightbox-close { width: 40px; height: 40px; }
  .geo-page .lightbox-thumb { flex-basis: 64px; width: 64px; height: 48px; }
}

@media (max-width: 560px) {
  .geo-page .camps-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .geo-page .camp-img { height: auto; aspect-ratio: 16 / 10; }
  .geo-page .camp-content { padding: 1.1rem; }
  .geo-page .vm-grid,
  .geo-page .why-grid,
  .geo-page .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .geo-page .vm-card { padding: 1.35rem; }
  .geo-page .policy-card { padding: 1.2rem; }
  .geo-page .policy-card-header { align-items: flex-start; gap: 10px; }
  .geo-page .policy-card-header h2 { font-size: 1.2rem !important; }
  .geo-page .notice-box { padding: 1rem; }
  .geo-page .sidebar-final-price { font-size: 1.8rem; }
  .geo-page .footer-brand p { max-width: 34ch; }
}

@media (max-width: 380px) {
  .geo-page-admin .leads-table tbody td { grid-template-columns: 6.1rem minmax(0,1fr); gap:6px; padding:9px 10px; }
  .geo-page .navbar { padding-inline: 14px; }
  .geo-page .brand-logo-img { height: 31px; max-width: 52vw; }
  .geo-page .page-hero h1,
  .geo-page .hero-strip-title,
  .geo-page .camp-header-info h1 { font-size: clamp(1.65rem, 8vw, 1.95rem) !important; }
  .geo-page .section-padding { padding-inline: 14px; }
  .geo-page .bento-hero { min-height: 360px; }
  .geo-page .bento-sub { min-height: 225px; }
  .geo-page .camp-footer { align-items: stretch; gap: 10px; flex-direction: column; }
  .geo-page .camp-footer .btn-sage { width: 100%; }
  .geo-page .lightbox-header { gap: 8px; }
  .geo-page .lightbox-stage { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .geo-page .lightbox-nav { width: 34px; height: 34px; }
}

/* Mobile property and activity pictures now request small responsive variants. */
@media (max-width: 768px) {
  .geo-page-about .page-hero { background-image: linear-gradient(rgba(30,31,33,.82),rgba(42,43,45,.9)), url('https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?auto=format&fit=crop&w=800&q=72'); }
  .geo-page-activities .page-hero { background-image: linear-gradient(rgba(30,31,33,.82),rgba(42,43,45,.9)), url('https://images.unsplash.com/photo-1526772662000-3f88f10405ff?auto=format&fit=crop&w=800&q=72'); }
  .geo-page-camps .page-hero { background-image: linear-gradient(rgba(42,43,45,.86),rgba(42,43,45,.92)), url('https://images.unsplash.com/photo-1510312305653-8ed496efae75?auto=format&fit=crop&w=800&q=72'); }
  .geo-page-contact .page-hero { background-image: linear-gradient(rgba(30,31,33,.82),rgba(42,43,45,.9)), url('https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?auto=format&fit=crop&w=800&q=72'); }
  .geo-page-terms .page-hero { background-image: linear-gradient(rgba(30,31,33,.82),rgba(42,43,45,.9)), url('https://images.unsplash.com/photo-1510312305653-8ed496efae75?auto=format&fit=crop&w=800&q=72'); }
  .geo-page-index .hero-banner-strip { background-image: linear-gradient(rgba(30,31,33,.82),rgba(42,43,45,.9)), url('https://images.unsplash.com/photo-1510312305653-8ed496efae75?auto=format&fit=crop&w=800&q=72'); }
}

/* Touch-first homepage activity carousel: horizontal swipe on phones, animation only on desktop. */
.slider-controls { display:flex; justify-content:center; align-items:center; gap:12px; max-width:1400px; margin:0 auto 8px; padding:0 var(--geo-content-gutter); color:var(--text-muted); font-size:.85rem; }
.slider-controls p { margin:0; }
.slider-controls button { border:1px solid var(--border-color); border-radius:999px; padding:7px 12px; background:#fff; color:var(--primary-dark); cursor:pointer; font-weight:700; }
.slider-wrapper.is-paused .slider-track { animation-play-state:paused !important; }
@media (max-width: 900px) {
  .slider-controls { justify-content:space-between; }
  .slider-controls button { display:none; }
  .slider-wrapper { overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .slider-wrapper::-webkit-scrollbar { display:none; }
  .slider-track { width:max-content; animation:none !important; gap:12px; padding:4px var(--geo-content-gutter) 14px; }
  .act-card-ref { width:min(78vw, 290px); height:clamp(300px, 92vw, 370px); scroll-snap-align:start; }
}

/* Admin CRM turns each lead row into a readable, tappable card on phones. */
@media (max-width: 768px) {
  .admin-wrapper { padding:0 14px; }
  .admin-header { position:static; padding:12px 14px; }
  .header-actions { display:grid; grid-template-columns:1fr; gap:8px; }
  .header-actions .btn-header { min-height:42px; justify-content:center; }
  .admin-nav-tabs { gap:6px; }
  .tab-btn { min-height:42px; padding:.6rem .85rem; font-size:.78rem; }
  .table-controls { align-items:stretch; padding:12px; }
  .table-controls > div { width:100%; }
  .table-controls select, .table-controls button { min-height:42px; }
  .search-box { min-width:0; width:100%; min-height:44px; }
  .table-responsive { overflow:visible; background:transparent; border:0; box-shadow:none; }
  .leads-table { display:block; width:100%; min-width:0 !important; border:0; }
  .leads-table thead { display:none; }
  .leads-table tbody { display:grid; gap:12px; }
  .leads-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr); overflow:hidden; background:#fff; border:1px solid var(--border-color); border-radius:12px; box-shadow:0 3px 12px rgba(0,0,0,.04); }
  .leads-table tbody td { display:grid; grid-template-columns:7.2rem minmax(0,1fr); gap:8px; width:100%; padding:10px 12px; border-bottom:1px solid var(--border-color); overflow-wrap:anywhere; }
  .leads-table tbody td::before { color:var(--text-muted); font-size:.7rem; font-weight:800; letter-spacing:.35px; text-transform:uppercase; content:''; }
  .leads-table tbody td:nth-child(1)::before { content:'Date / time'; }
  .leads-table tbody td:nth-child(2)::before { content:'Guest'; }
  .leads-table tbody td:nth-child(3)::before { content:'Property'; }
  .leads-table tbody td:nth-child(4)::before { content:'Stay dates'; }
  .leads-table tbody td:nth-child(5)::before { content:'Guests'; }
  .leads-table tbody td:nth-child(6)::before { content:'Lead source'; }
  .leads-table tbody td:nth-child(7)::before { content:'Enquiry / notes'; }
  .leads-table tbody td:nth-child(8)::before { content:'Status'; }
  .leads-table tbody td:nth-child(9)::before { content:'CRM follow-up'; }
  .leads-table tbody td:nth-child(10)::before { content:'Actions'; }
  .leads-table tbody td[colspan] { display:block; }
  .leads-table tbody td[colspan]::before { content:none; }
  .geo-lead-meta { min-width:0; width:100%; }
  .geo-lead-meta input { min-height:42px; font-size:16px !important; }
  .geo-lead-meta button { min-height:42px; }
  .geo-pagination { justify-content:space-between; }
  .items-grid { grid-template-columns:minmax(0,1fr) !important; }
  .form-grid-2, .form-grid-3 { grid-template-columns:minmax(0,1fr) !important; }
  .gallery-item-row { align-items:flex-start; flex-wrap:wrap; }
  .gallery-url-input { flex:1 1 calc(100% - 76px); }
}

@media (prefers-reduced-motion: reduce) {
  .slider-track { animation:none !important; }
}
