/* 5891 Highway 215 — "Estate" design: responsive layer.
   The design uses inline styles, so mobile overrides need !important. */

*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; }

/* Two-column blocks (overview, details, location, agent card) collapse on tablet */
@media (max-width: 980px) {
  .est-collapse { grid-template-columns: 1fr !important; }
  .est-features { grid-template-columns: repeat(2, 1fr) !important; }
  .est-agent { grid-template-columns: 1fr !important; text-align: center !important; }
}

/* Mobile navigation: collapse the nav into a hamburger dropdown */
@media (max-width: 860px) {
  .est-navtoggle { display: flex !important; }
  .est-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    background: rgba(20, 23, 15, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 0 18px !important;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
  }
  [data-nav].nav-open .est-nav { display: flex !important; }
  .est-nav a.est-navlink {
    color: #fff !important;
    padding: 15px 34px !important;
    font-size: 0.82rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .est-nav a[href="#contact"] {
    margin: 16px 34px 4px !important;
    text-align: center;
  }
}

/* 3D virtual-tour facade: hover/focus polish (poster zooms, play button pops) */
[data-tour-launch] { -webkit-tap-highlight-color: transparent; }
[data-tour-launch]:hover img,
[data-tour-launch]:focus-visible img { transform: scale(1.05); }
[data-tour-launch]:hover [data-tour-play],
[data-tour-launch]:focus-visible [data-tour-play] { transform: scale(1.08); background: var(--ink2); }
[data-tour-launch]:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
/* On phones a 16:9 box collapses to a sliver — give the iGUIDE viewer a tall portrait frame */
@media (max-width: 720px) {
  .est-tourframe { padding-bottom: 0 !important; height: 78vh !important; min-height: 480px !important; max-height: 760px !important; }
}

/* Hamburger → X animation when the menu is open */
[data-nav].nav-open .est-navtoggle [data-bar]:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
[data-nav].nav-open .est-navtoggle [data-bar]:nth-child(2) { opacity: 0 !important; }
[data-nav].nav-open .est-navtoggle [data-bar]:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }

@media (max-width: 600px) {
  .est-features { grid-template-columns: 1fr !important; }
  .est-form { grid-template-columns: 1fr !important; }
  .est-drive { grid-template-columns: repeat(2, 1fr) !important; }
  /* a touch less side padding on the smallest screens */
  section, footer { padding-left: 22px !important; padding-right: 22px !important; }
}

/* Gallery thumbnails already auto-fit (minmax 230px); nudge down on phones */
@media (max-width: 440px) {
  .est-thumbs { grid-template-columns: repeat(2, 1fr) !important; }
}
