/* Phone layout for the main site pages (Home, Stays, About, Deals, property pages).
   The pages are styled inline for desktop; these rules only apply on narrow
   screens and only touch elements that carry a gs-* class.
   Gorge Guide and the guest guides have their own phone styles. */

/* Full-bleed sections use 100vw, which is wider than the page when the browser
   shows a permanent scrollbar (most Windows PCs). Clip the few extra pixels so
   the page never scrolls sideways. 'clip' (not 'hidden') keeps the sticky header working. */
html, body { overflow-x: clip; }

@media (max-width: 760px) {
  .gs-amen, .gs-sleep { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .gs-tourgrid { grid-template-columns: 1fr !important; }
  /* Header: logo + Book button on top, menu links on their own row below */
  .gs-head { flex-wrap: wrap !important; gap: 10px 12px !important; padding: 12px 16px !important; }
  .gs-head > a:first-child { font-size: 26px !important; }
  .gs-nav { order: 3; width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px !important; font-size: 15px !important; }
  .gs-nav > a[href="/"] { display: none; } /* the logo already links home; keeps the menu on one row */
  .gs-cta { padding: 9px 16px !important; font-size: 14px !important; }

  /* Sections: 16px side margins, gentler top/bottom spacing */
  .gs-sec { padding-left: 16px !important; padding-right: 16px !important; }
  .gs-vsec { padding-top: 48px !important; padding-bottom: 48px !important; }
  .gs-mx { margin-left: 16px !important; margin-right: 16px !important; }

  /* Multi-column grids become one column */
  .gs-stack { grid-template-columns: 1fr !important; gap: 22px !important; }

  /* Rows of things that should wrap instead of overflow */
  .gs-wrap { flex-wrap: wrap !important; }

  /* Property page photo gallery: just the main photo (tap for all photos) */
  .gs-gallery { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; height: 280px !important; }
  .gs-gallery > div:not(:first-child):not([style*="absolute"]) { display: none !important; }

  /* Property page booking column: not sticky on phones */
  .gs-book { position: static !important; max-height: none !important; overflow: visible !important; }
  /* …and the price card comes first on phones, right under the photos */
  .gs-book { order: -1; }
  /* slim "Check dates & book" bar pinned to the bottom on phones */
  .gs-mbar { display: block !important; }
  .gs-dot { display: none; }
  .gs-places { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 14px !important; }
  body { padding-bottom: 64px; }

  /* Large headings scale down a little */
  .gs-h { font-size: 30px !important; line-height: 1.15 !important; }
}

/* Phone-only bottom bar on property pages (shown by the mobile rule above) */
.gs-mbar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; text-align: center; background: #F0A868; color: #fff; font-weight: 700; font-size: 16px; padding: 14px; border-radius: 12px; text-decoration: none; box-shadow: 0 8px 24px rgba(76,107,84,.25); }
