/* Silver Bell Apartments — site styles.
   Pages are composed with inline styles (the Tierra Verde design idiom); this file
   holds the shared base, responsive rules, hover states, and the carousel/lightbox. */

html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; font-family: "Public Sans", -apple-system, sans-serif; color: #1C2620; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; text-decoration: none; }
img { max-width: 100%; }
main { display: block; }

/* Accessible skip link and focus */
.sb-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #0C3B21; color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.sb-skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #1BAC4E; outline-offset: 2px; }

/* Header (shared partial) */
[data-sbh="cta-sm"] { display: none; }
@media (max-width: 960px) {
  [data-sbh="proof"] { display: none !important; }
  [data-sbh="nav"] { order: 3; width: 100%; flex-wrap: nowrap !important; overflow-x: auto; gap: 28px !important; scrollbar-width: none; border-top: 1px solid #DBE3DC; padding-top: 8px; margin-top: 2px; }
  [data-sbh="nav"]::-webkit-scrollbar { display: none; }
}
@media (max-width: 620px) {
  [data-sbh="cta"] { display: none !important; }
  [data-sbh="cta-sm"] { display: inline-block !important; }
}

/* Page-level responsive rules (from the original page designs) */
@media (max-width: 620px) {
  [data-sb="ctarow"] { flex-direction: column !important; align-items: stretch !important; }
  [data-sb="btn"] { display: block !important; width: 100%; text-align: center; box-sizing: border-box; }
  [data-sb="stats"] { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px 16px !important; }
  [data-sb="footbottom"] { justify-content: center !important; text-align: center; }
}

/* Photo boxes */
.sb-media { position: relative; overflow: hidden; background: #EDF3EE; }
.sb-media > img, .sb-media > .sb-carousel { width: 100%; height: 100%; }
.sb-media > img { object-fit: cover; display: block; }
.sb-media-hero { aspect-ratio: 4 / 3; max-height: 440px; }
.sb-map iframe { width: 100%; height: 100%; display: block; }
.sb-placeholder { background: repeating-linear-gradient(45deg, #EDF3EE, #EDF3EE 14px, #E2ECE4 14px, #E2ECE4 28px); display: flex; align-items: center; justify-content: center; font-family: Menlo, monospace; font-size: 13px; color: #55645B; }

/* Carousel: CSS scroll-snap does the work; JS adds arrows and dots */
.sb-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; background: #EDF3EE; }
.sb-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sb-track::-webkit-scrollbar { display: none; }
.sb-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.sb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-slide[data-lightbox] { cursor: zoom-in; }
.sb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(12,59,33,0.72); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; transition: background .15s; }
.sb-arrow:hover { background: #0C3B21; }
.sb-prev { left: 12px; } .sb-next { right: 12px; }
.sb-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.sb-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,0.55); cursor: pointer; }
.sb-dots button[aria-current="true"] { background: #fff; width: 22px; }
.sb-carousel:not(.is-ready) .sb-arrow, .sb-carousel:not(.is-ready) .sb-dots { display: none; }

/* Gallery grid */
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px 20px; }
.sb-grid figure { margin: 0; }
.sb-grid .sb-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #EDF3EE; cursor: zoom-in; border: 0; padding: 0; }
.sb-grid .sb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.sb-grid .sb-thumb:hover img { transform: scale(1.03); }
.sb-grid figcaption { font-size: 13px; color: #55645B; margin-top: 8px; }
.sb-soon { aspect-ratio: 4 / 3; border-radius: 12px; border: 1px dashed #C9D4CC; }

/* Lightbox */
.sb-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(12,38,24,0.94); display: none; align-items: center; justify-content: center; padding: 56px 16px 48px; }
.sb-lightbox.is-open { display: flex; }
.sb-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.sb-lightbox .sb-arrow { background: rgba(255,255,255,0.14); }
.sb-lightbox .sb-arrow:hover { background: rgba(255,255,255,0.3); }
.sb-lightbox .sb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,0.14); color: #fff; font-size: 26px; cursor: pointer; }
.sb-lightbox .sb-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; text-align: center; color: #C9D4CC; font-size: 13px; }
body.sb-noscroll { overflow: hidden; }

/* Forms */
input, textarea, button { font: inherit; }
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) { border-color: #C0392B !important; }
.sb-hp { position: absolute; left: -9999px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sb-grid .sb-thumb img { transition: none; }
}

/* GENERATED by the design export conversion: hover states for inline-styled elements. */
.hv-background-159140-color-fff:hover { background: #159140 !important; color: #fff !important; }
.hv-border-color-1bac4e:hover { border-color: #1BAC4E !important; }
.hv-border-color-7bd89b-color-7bd89b:hover { border-color: #7BD89B !important; color: #7BD89B !important; }
.hv-background-0f4a2a:hover { background: #0F4A2A !important; }
