/* =============================================================================
   PositiveGym – Facilities Section  v2026-11
   ============================================================================= */

.facilities-page {
  padding: clamp(72px, 8vw, 110px) clamp(20px, 6vw, 80px);
  color: #f0f1f3;
  background: var(--pg483, #0e1012);
}

.facilities-showcase {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
}

.facilities-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(244,210,13,.28);
  border-radius: 999px;
  background: rgba(244,210,13,.08);
  color: var(--pgt-accent, #f4d20d);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.facilities-showcase h1,
.facilities-showcase h2 {
  margin: 0 0 16px;
  color: #f0f1f3;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.facilities-showcase h1 span,
.facilities-showcase h2 span {
  color: var(--pgt-accent, #f4d20d);
}

.facilities-intro {
  max-width: 60ch;
  margin: 0 auto 36px;
  color: rgba(200,208,218,.78);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  line-height: 1.7;
}

/* ── Slideshow ─────────────────────────────────────────────────────────────── */
.facility-slideshow {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(244,210,13,.45);
  border-radius: 18px;
  background: #060708;
  box-shadow: 0 24px 72px rgba(0,0,0,.55);
}

.facility-slide {
  position: relative;
  display: grid;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  height: clamp(320px, 62vh, 680px);
}

.facility-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.facility-slide figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
}

/* Navigation arrows */
.facility-image-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(244,210,13,.92);
  color: #111;
  font-size: 1.1rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.facility-image-arrow:hover { transform: translateY(-50%) scale(1.08); background: #ffe45c; }
.facility-image-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.facility-image-arrow--previous { left: 16px; }
.facility-image-arrow--next     { right: 16px; }

/* Accessible live region */
.facility-live-status {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Controls + dots */
.facility-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: rgba(220,224,230,.8);
  font-size: .9rem;
  font-weight: 700;
}

.facility-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: min(100%, 440px);
}

.facility-dot {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
}
.facility-dot:hover      { background: #fff; border-color: #fff; }
.facility-dot.is-active  { transform: scale(1.4); border-color: #f4d20d; background: #f4d20d; }
.facility-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.facility-slideshow:focus-visible { outline: 3px solid #f4d20d; outline-offset: 3px; }

.facilities-empty {
  padding: 52px 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  color: rgba(200,208,218,.6);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .facilities-page  { padding-inline: 18px; }
  .facilities-intro { margin-bottom: 26px; }
  .facility-slide   { height: clamp(260px, 56vh, 520px); }
  .facility-image-arrow { width: 42px; height: 42px; }
  .facility-image-arrow--previous { left: 10px; }
  .facility-image-arrow--next     { right: 10px; }
  .facility-dots { gap: 5px; }
  .facility-dot  { -webkit-appearance: none; appearance: none; flex: 0 0 6px; width: 6px !important; height: 6px !important; min-width: 0; min-height: 0; padding: 0 !important; border-width: 1px; border-radius: 50% !important; }
}

/* ── Light mode ────────────────────────────────────────────────────────────── */
html[data-theme="light"] .facilities-page { background: #f0f2f5; color: #0f1217; }
html[data-theme="light"] .facilities-eyebrow { color: #c9a000; border-color: rgba(201,160,0,.28); background: rgba(201,160,0,.08); }
html[data-theme="light"] .facilities-showcase h1,
html[data-theme="light"] .facilities-showcase h2 { color: #0f1217; }
html[data-theme="light"] .facilities-showcase h1 span,
html[data-theme="light"] .facilities-showcase h2 span { color: #c9a000; }
html[data-theme="light"] .facilities-intro { color: #3c4250; }
html[data-theme="light"] .facility-slideshow { border-color: rgba(201,160,0,.4); }
html[data-theme="light"] .facility-controls { color: #3c4250; }
