/* ==========================================
   FASILITAS.CSS
   ========================================== */

/* ── Hero (sama persis gaya profil-sekolah) ── */
.ps-hero {
  background: var(--bg-soft);
  padding: 64px 0 0;
  overflow: hidden;
}
.ps-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: flex-end;
  min-height: 400px;
}
.ps-hero-img {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ps-hero-img img {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  object-fit: contain; display: block;
}
.ps-hero-body {
  padding: 0 0 64px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.ps-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 20px;
}
.ps-hero-breadcrumb a { color: var(--ink-soft); }
.ps-hero-breadcrumb a:hover { color: var(--primary); }
.ps-hero-breadcrumb svg { width: 13px; height: 13px; }
.ps-hero-breadcrumb .current { color: var(--ink); font-weight: 600; }
.ps-hero-body h1 {
  font-size: 3rem; font-weight: 800;
  line-height: 1.1; margin: 0 0 20px; color: var(--ink);
}
.ps-hero-body h1 .red { color: var(--primary); }
.ps-hero-body p {
  font-size: 1rem; color: var(--ink-soft);
  line-height: 1.75; margin: 0 0 32px; max-width: 480px;
}
.ps-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff;
  font-size: 0.95rem; font-weight: 700;
  padding: 13px 28px; border-radius: 8px;
  transition: background .15s ease, transform .15s ease;
  width: fit-content;
}
.ps-hero-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.ps-hero-cta svg { width: 16px; height: 16px; }

/* ── Stats bar ── */
.fas-stats {
  background: var(--primary);
  padding: 32px 0;
}
.fas-stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px; text-align: center;
}
.fas-stats-row .num { font-size: 2rem; font-weight: 800; color: #fff; }
.fas-stats-row .lbl { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.75); letter-spacing: .05em; }

/* ── Main section ── */
.fas-main { padding: 64px 0 80px; }

/* Filter bar */
.fas-filter {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.fas-filter-btn {
  padding: 8px 20px; border-radius: 100px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.fas-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.fas-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Grid kartu */
.fas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.fas-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.fas-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(31,27,36,0.12); }
.fas-card-thumb {
  width: 100%; aspect-ratio: 16/10;
  background: var(--bg-soft-2); overflow: hidden; position: relative;
}
.fas-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fas-card-kategori {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 100px;
}
.fas-card-body { padding: 20px 22px 24px; }
.fas-card-body h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.fas-card-body p { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.6; }
.fas-specs {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.fas-spec-tag {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  color: var(--ink-soft); padding: 3px 10px;
}

/* ── Modal ── */
.fas-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(31,27,36,0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: all .25s ease;
}
.fas-modal-overlay.open { opacity: 1; visibility: visible; }
.fas-modal {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 640px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(31,27,36,0.22);
  transform: translateY(20px);
  transition: transform .25s ease;
}
.fas-modal-overlay.open .fas-modal { transform: translateY(0); }
.fas-modal-img {
  width: 100%; height: 260px;
  background: var(--bg-soft-2); position: relative; overflow: hidden;
}
.fas-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.fas-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.45); border: none; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.fas-modal-close:hover { background: rgba(0,0,0,0.65); }
.fas-modal-close svg { width: 18px; height: 18px; }
.fas-modal-body { padding: 28px 32px 32px; }
.fas-modal-body h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
.fas-modal-cat { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.fas-modal-body p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 20px; }
.fas-modal-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.fas-modal-spec {
  background: var(--primary-light); color: var(--primary);
  border-radius: 8px; font-size: 0.82rem; font-weight: 700;
  padding: 5px 14px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .ps-hero .container { grid-template-columns: 1fr; min-height: auto; }
  .ps-hero-img { order: 2; padding: 40px 0 0; }
  .ps-hero-body { order: 1; padding: 0 0 32px; }
  .ps-hero-body h1 { font-size: 2.2rem; }
  .fas-stats-row { grid-template-columns: repeat(2,1fr); }
  .fas-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .ps-hero-body h1 { font-size: 1.8rem; }
  .fas-grid { grid-template-columns: 1fr; }
  .fas-stats-row { grid-template-columns: repeat(2,1fr); }
}