/* Mobile presentation. Desktop styles remain in their existing stylesheets. */
@media(max-width:820px) {
  html:has(.home-page), body.home-page { height:100%;overflow:hidden;background:#202623; }
  .home-page { --mobile-screen:100dvh; }
  .home-page > .site-head { position:fixed;inset:0 0 auto;height:68px;margin:0; }
  .home-page .site-head .top-inner { padding-top:env(safe-area-inset-top); }
  .home-page > main {
    position:fixed;inset:0;height:100%;height:100dvh;width:100%;
    overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-snap-type:y mandatory;scroll-padding:0;
    background:#202623;
  }
  .home-page:has(#navegacion.open) > main { overflow-y:hidden; }
  .home-page main > section[id],.home-page #predios .property { scroll-snap-align:start;scroll-margin:0; }
  .home-page .panel-anchor { display:block;height:0; }
  .home-page .panel-scroll > section:is(#inicio,#el-rancho,#territorio,#predios,#naturaleza,#contacto),
  .home-page .panel-scroll .property,.home-page .panel-scroll .nature-lead { position:relative;top:auto; }
  .home-page .place {
    min-height:var(--mobile-screen);height:auto;
    padding:max(100px,calc(env(safe-area-inset-top) + 76px)) 24px max(100px,calc(env(safe-area-inset-bottom) + 76px));
  }
  .home-page .welcome-down,.home-page .welcome-pause { bottom:max(20px,env(safe-area-inset-bottom)); }
  .home-page .ranch-intro { padding-block:64px;min-width:0; }
  .home-page #territorio { --map-height:var(--mobile-screen);margin:0;padding:0;scroll-snap-stop:always; }
  .home-page #territorio .chapter-head {
    top:max(82px,calc(env(safe-area-inset-top) + 64px));
    left:22px;right:22px;width:auto;margin:0;
  }
  .home-page #territorio .chapter-head h2 { font-size:clamp(27px,6vw,38px); }
  .home-page #territorio .chapter-head>p { font-size:14px;line-height:1.45;max-width:38ch; }
  .home-page #territorio #map-zoom {
    bottom:max(66px,calc(env(safe-area-inset-bottom) + 50px));width:calc(100% - 108px);height:44px;
  }
  .home-page #territorio .map-north { bottom:max(76px,calc(env(safe-area-inset-bottom) + 60px)); }
  .home-page #territorio .region-caption {
    inset:auto 18px max(22px,calc(env(safe-area-inset-bottom) + 8px));
  }
  .home-page #territorio .region-caption span { max-width:100%;font-size:10px;line-height:1.4; }
  .home-page #mapa-predios .ax-credit {
    max-width:calc(100% - 36px);font-size:10px;line-height:1.4;
    bottom:max(22px,calc(env(safe-area-inset-bottom) + 8px));right:18px;
  }
  .home-page #mapa-predios .ax-side {
    bottom:max(116px,calc(env(safe-area-inset-bottom) + 100px));max-height:45dvh;
  }
  .home-page #predios .chapter-head {
    position:absolute;z-index:4;
    top:max(70px,calc(env(safe-area-inset-top) + 28px));
    left:24px;right:76px;width:auto;padding:0;margin:0;
  }
  .home-page #predios .chapter-head h2 { font-size:22px;line-height:1.15; }
  .home-page #predios .chapter-head>p { margin-top:6px;font-size:14px;line-height:1.4;max-width:32ch; }
  .home-page #predios .property,.home-page .panel-scroll #predios .property {
    position:relative;top:auto;min-height:var(--mobile-screen);height:auto;
    grid-template-columns:80px minmax(0,1fr);grid-template-rows:auto auto;
    align-content:center;align-items:start;gap:24px 18px;
    padding:96px 24px max(76px,calc(env(safe-area-inset-bottom) + 48px));contain:none;
  }
  .home-page #predios .property:first-child,.home-page .panel-scroll #predios .property:first-child {
    padding-top:max(160px,calc(env(safe-area-inset-top) + 132px));
  }
  .home-page #predios .property-number {
    position:relative;top:auto;grid-area:1/1;align-self:start;font-size:72px;line-height:.92;margin:0;
  }
  .home-page #predios .property-number,.home-page #predios .property-number-ink {
    white-space:nowrap;overflow-wrap:normal;word-break:normal;
  }
  .home-page #predios .property-body { grid-area:1/2;padding:0;min-width:0; }
  .home-page #predios .property h3 { font-size:clamp(26px,7vw,34px);line-height:1.06; }
  .home-page #predios .property .meta { margin:10px 0 14px;font-size:14px;line-height:1.4; }
  .home-page #predios .property-body>p:not(.meta) { font-size:16px;line-height:1.45; }
  .home-page #predios .property details { margin-top:18px;font-size:15px; }
  .home-page #predios .property>.property-photo {
    grid-area:2/1/3/-1;width:100%;height:auto;aspect-ratio:1.8;max-height:24dvh;object-fit:cover;align-self:start;
  }
  .home-page #predios .property>.property-backdrop { height:100%;filter:brightness(.5); }
  .home-page .panel-scroll .nature-lead { min-height:var(--mobile-screen); }
  .home-page .nature-lead .chapter-head { margin-bottom:max(48px,env(safe-area-inset-bottom)); }
  .home-page #contacto { min-height:var(--mobile-screen);padding-bottom:max(48px,env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) {
  .home-page>main { scroll-snap-type:y proximity;scroll-behavior:auto; }
}

@media(max-width:820px){
 .home-page #predios .property{scroll-snap-stop:always;}
}
