/* ==========================================================================
   Bridger Companies — site.css
   Inner-page styles (portfolio, property pages) built from the same tokens
   as pages/home.css. Loaded after it on every page.
   ========================================================================== */

/* ---------- shared inner-page type ---------- */

.inner-section { padding-block: clamp(80px, 11vw, 148px); }
.inner-section--light { background: var(--light); }

.inner-title {
  font-family: var(--font-sb); font-weight: 600;
  font-size: clamp(1.724rem, 3.4vw, 2.263rem);
  line-height: 1.15; color: var(--navy);
  margin-bottom: 22px;
}
.inner-body {
  font-family: var(--font-md); font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.75; color: var(--ink);
  max-width: 760px;
}
.inner-narrow { max-width: 820px; }

/* ---------- factbar (property pages) ---------- */

.factbar { background: var(--navy-deep); color: #fff; }
.factbar__list {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 88px);
  padding-block: clamp(22px, 3vw, 34px);
}
.factbar dl { margin: 0; }
.factbar dt {
  font-family: var(--font-sb); font-weight: 600; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--concrete);
}
.factbar dd {
  margin: 6px 0 0;
  font-family: var(--font-sb); font-weight: 600; font-size: 1.05rem;
  color: #fff;
}
/* linked facts (Google Maps location, external website) */
.factbar__map-link {
  color: #fff; text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}
.factbar__map-link:hover { color: var(--taupe); text-decoration-color: var(--taupe); }

/* property pages run their content sections tighter than standard */
.inner-section--tight { padding-block: clamp(40px, 5.5vw, 68px); }

/* embedded location map (property pages) — full color, rounded card
   on the light section */
.map-embed {
  position: relative;
  width: 100%; /* pin width: aspect-ratio + min-height must stretch height, not width */
  aspect-ratio: 16 / 7;
  min-height: 320px;
  background: var(--light, #f8f9fb);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--taupe, #e3dcd7);
  box-shadow: 0 14px 34px rgba(6, 32, 56, 0.08);
}
@media (max-width: 743px) {
  .map-embed { aspect-ratio: 4 / 3; }
}
.map-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.map-embed__caption { margin: 0; }
.map-embed__caption .u-cta { margin-top: 18px; }

.section--full-bleed-primary .inner-body { color: rgba(255, 255, 255, 0.86); }
.section--full-bleed-primary .u-cta { color: #fcfcfc; }

/* ---------- property gallery + pager ---------- */

.community-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2.5vw, 28px); margin-top: 10px;
}
.community-gallery__item { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-deep); }
.community-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%); transition: filter 0.5s ease;
}
.community-gallery__item:hover img { filter: grayscale(0); }

.pager { background: var(--paper); border-top: 1px solid var(--taupe); }
.pager__row {
  display: flex; justify-content: space-between; gap: 24px;
  padding-block: clamp(26px, 4vw, 40px);
}
.pager .u-cta { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .community-gallery__item img { transition: none; }
}
