/* Route B overlay: modern responsive layer on top of the site's own
   global.css (which is loaded first and keeps the original design).
   Adds: hero slider mechanics (was jQuery/slick), the property photo
   gallery (scroll-snap), form styling (was Sprout Forms), and mobile
   fixes. Palette matches the original: teal #a2bbb5, text #4f4f4f. */

img { max-width: 100%; }

/* --- Hero / wallpaper slider ------------------------------------- */
.global-background__slides { position: absolute; inset: 0; }
.global-background__slides__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity 1.2s ease-in-out;
  background-size: cover; background-position: center;
  pointer-events: none;
}
.global-background__slides__slide.is-active { opacity: 1; pointer-events: auto; }
/* The slide's seo-content block stays visually hidden, exactly as on
   the live site: the original global.css sizes it 0x0 with z-index -1
   (an SEO-only block). The H1 is in the DOM, not on the photo. */

/* Home content card sits below the hero, as on the current site. */
.slide__container--home { margin-top: 46vh; }

/* --- Property photo gallery -------------------------------------- */
.slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.contain-iframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.slider__nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.slider__nav__item {
  width: 64px; height: 44px; padding: 0; border: 2px solid transparent;
  background-size: cover; background-position: center; cursor: pointer;
  background-color: #e8e8e8; color: #4f4f4f; font-size: 0.8rem;
}
.slider__nav__item.is-active { border-color: #a2bbb5; }
.slider__nav__item--map { display: flex; align-items: center; justify-content: center; }

/* --- Listings ------------------------------------------------------ */
.listings__listing__image { width: 100%; height: auto; display: block; }
.floorplans { display: flex; gap: 8px; flex-wrap: wrap; }
.floorplans img { border: 1px solid rgba(79, 79, 79, 0.25); }

/* --- Forms (contact + employment application) --------------------- */
.site-form { max-width: 640px; }
.form-field { margin-bottom: 1em; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.3em; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
  width: 100%; padding: 0.55em 0.7em; font: inherit; color: #4f4f4f;
  border: 1px solid rgba(79, 79, 79, 0.4); border-radius: 3px; background: #fff;
  box-sizing: border-box;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid #a2bbb5; outline-offset: 0; border-color: #a2bbb5;
}
.form-field--required { position: relative; }
.form-field--required::before {
  content: "*"; position: absolute; display: inline-block;
  transform: translateX(-150%); color: #CC0000; font-size: .8rem;
}
.notification--success {
  background: #eef6ec; border: 1px solid #a2bbb5; color: #33523f;
  padding: 0.8em 1em; border-radius: 3px;
}
.select-wrap select {
  font: inherit; padding: 0.5em 0.6em; max-width: 100%;
  border: 1px solid rgba(79, 79, 79, 0.4); border-radius: 3px; background: #fff;
}

/* --- Footer association logos ------------------------------------- */
/* Desktop: blocks at their natural 70px pitch (5em block, 7.5px side
   padding), container's -7.5px margin from global.css in force, rows
   flow from the left. Phone (<=640px), per Michael's Nov 25 zig-zag
   direction: the 3-over-4 rows spread across ~92% of the strip width
   (space-between inside 16px container padding, nothing touching the
   edges), the unequal centered rows keep their staggered offset, and
   the rows interlock (row 1 inset by half of row 2 pitch) and the row pitch tightens to 63px (55px block + 4px margins). */
.footer__member-blocks { justify-content: flex-start; }
@media (max-width: 640px) {
  .footer__member-blocks { justify-content: space-between; padding: 0 16px; }
  .footer__member-blocks__block {
    flex: 0 1 auto; width: 5em; margin: 4px 0; padding: 0 7.5px; justify-content: center;
  }
  /* True interlock (Michael, Nov 25): row 1 insets by half of row 2's
     pitch - (content width - block width) / 6, written as 100%/6 minus
     70px/6 - so each row-1 logo's center falls midway between two
     row-2 centers. Row 2 keeps the full space-between spread. Row
     pitch is now 63px (55px block + 4px margins). */
  .footer__member-blocks > :nth-child(1) { margin-left: calc(16.6667% - 11.67px); }
  .footer__member-blocks > :nth-child(3) { margin-right: calc(16.6667% - 11.67px); }
}

/* Member logos are plain images: the propped/cover contain component
   crops them, so its image mechanics are fully neutralized for this
   strip only — no absolute positioning, no transform, no overflow
   clip. The anchor box itself keeps live's 55x55 size so block
   heights and the row pitch match the live site. */
.footer__member-blocks__block a.contain-img {
  height: 55px !important; overflow: visible; padding: 0; width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer__member-blocks__block a.contain-img--propped::before {
  content: none; padding-top: 0;
}
.footer .footer__member-blocks__block img {
  position: static; width: auto; height: auto; max-width: 72px;
  max-height: 56px; object-fit: initial; display: block;
  transform: none; top: auto; left: auto;
}
.footer__member-blocks { align-items: center; }
.footer__member-break { display: none; }
.footer__member-blocks__block { flex: 0 1 auto; }
@media (max-width: 640px) {
  .footer__member-break { display: block; flex-basis: 100%; height: 0; }
  .footer__member-blocks__block a.contain-img { width: 100%; }
  .footer .footer__member-blocks__block img { width: 100%; max-width: none; max-height: none; height: auto; }
}

/* --- Language toggle (Phase 3 Spanish pages) ----------------------- */
.lang-toggle {
  margin-left: 0.75em; font-size: 0.85em; font-weight: 700;
  color: #4f4f4f; text-decoration: none; align-self: center;
}
.lang-toggle:hover, .lang-toggle:focus { text-decoration: underline; }

/* --- Property card Google rating badge (Phase 3) -------------------- */
.listings__listing__rating { font-weight: 700; color: #4f4f4f; margin: 0.25em 0 0.5em; }

/* --- Footer legal row ------------------------------------------------ */
.footer__blocks--legal { margin-bottom: 0; padding-bottom: 1em; }
.footer__block--legal { text-align: center; margin-bottom: 0; }
.footer__block--legal a { white-space: nowrap; }
.footer__member-blocks__block img { max-height: 64px; width: auto; }

/* --- Mobile (<= 767px) ---------------------------------------------- */
@media (max-width: 767px) {
  /* Fix 3b: keep page text from ever ghosting through the fixed header
     on mobile - the header bar is effectively opaque at this width.
     (Title geometry itself is unchanged from the live site.) */
  .header { background-color: rgba(255, 255, 255, 0.97); }
  /* Fix 6: the hero map sits inside the content card on mobile (the
     original stylesheet bleeds it past the card with -30px margins);
     fixed height, clipped to the box. Desktop rendering unchanged. */
  .map--hero {
    margin-left: 0; margin-right: 0; width: auto;
    /* fixed height via the contain mechanism (height is 0 !important in
       global.css; the box height comes from padding-top) */
    padding-top: 320px; overflow: hidden;
    border: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  }
  .map--hero::after { display: none; }
  .slide__container--home { margin-top: 38vh; }
  .sidenav { display: none; }
  .media, .media--divided { display: block; }
  .media__image, .media__content { width: 100%; }
  .slider__nav__item { width: 52px; height: 38px; }
  .footer__block { margin-bottom: 1.2em; }
}

/* --- Phase 2: accessibility + fair housing ------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #484d51; color: #fff; padding: 0.6em 1em;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid #47766c; outline-offset: 2px; }
p.footer__headings { font-weight: 700; font-size: 1rem; }
.footer__blocks--eho { margin-bottom: 0; }
.footer__block--eho { text-align: center; margin-bottom: 0.5em; }
.footer__eho-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: inherit; text-decoration: none;
}
.footer__eho-icon { width: 30px; height: 30px; }

/* Form anti-spam (Nov 25, 2026): honeypot field parked off-screen for
   humans (bots fill it and are silently dropped); Turnstile spacing. */
.form-field--hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.routeb-turnstile { margin: 0 0 1em; }
