/* =========================================================
   FACILITY LISTING PAGE (facility.php) — append to home.css
   Mobile-first: base = phones, enhancements via min-width.
   Reuses the homepage hm-* components; only fc-* is new.
   ========================================================= */

.fc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Page header ---------- */
.fc-head{
  position:relative;isolation:isolate;overflow:hidden;
  padding:20px 0 40px;
}
.fc-head-inner{position:relative;z-index:2}
.fc-head-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  background:#e6e2d9 url("https://bestcareservices.co.ke/dash/uploads/image/westlands-facility-management-company.jpg") center/cover no-repeat;
}
.fc-head-bg::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(105deg,rgba(238,235,227,.95) 0%,rgba(238,235,227,.88) 50%,rgba(232,228,219,.74) 100%);
}
.fc-head-bg::after{
  content:"";position:absolute;inset:0;opacity:.5;
  background:repeating-linear-gradient(135deg,rgba(0,83,156,.035) 0 1px,transparent 1px 46px);
}
.fc-head-bg span{position:absolute;display:block;z-index:1}
.fc-head-bg .s1{
  width:320px;height:320px;border-radius:50%;right:-120px;top:-120px;
  background:radial-gradient(circle at 35% 35%,rgba(0,83,156,.16),rgba(0,83,156,.02) 70%);
  border:1px solid rgba(0,83,156,.12);
}
.fc-head-bg .s2{
  width:200px;height:200px;border-radius:44px;left:-70px;bottom:-80px;transform:rotate(24deg);
  background:linear-gradient(145deg,rgba(255,255,255,.55),rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.7);
}

/* ---------- Breadcrumbs ---------- */
.fc-crumbs{margin:0 0 18px;font-size:.85rem;line-height:1.4}
.fc-crumbs ol{
  display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;
  list-style:none;margin:0;padding:0;
}
.fc-crumbs li{display:inline-flex;align-items:center;color:#40536a}
.fc-crumbs li+li::before{
  content:"›";margin:0 8px;color:rgba(16,37,61,.45);font-size:1.05em;
}
.fc-crumbs a{color:#00539C;text-decoration:none;font-weight:600}
.fc-crumbs a:hover,.fc-crumbs a:focus-visible{text-decoration:underline}
.fc-crumbs [aria-current="page"]{color:#10253d;font-weight:600}

/* ---------- Search + count ---------- */
.fc-tools{
  display:flex;flex-direction:column;gap:10px;
  margin:28px 0 20px;
}
.fc-search{
  position:relative;display:block;
}
.fc-search i{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  color:#00539C;font-size:15px;pointer-events:none;
}
.fc-search input{
  width:100%;box-sizing:border-box;
  padding:14px 16px 14px 44px;
  font:inherit;font-size:1rem;color:#10253d;
  background:#fff;border:1px solid rgba(16,37,61,.16);border-radius:14px;
  box-shadow:0 4px 14px rgba(18,52,92,.06);
  -webkit-appearance:none;appearance:none;
}
.fc-search input::placeholder{color:#7a8aa0}
.fc-search input:focus{outline:2px solid #00539C;outline-offset:2px;border-color:transparent}
.fc-count{margin:0;font-size:.88rem;color:#40536a}

/* ---------- Listing grid ---------- */
.fc-grid{
  display:grid;gap:14px;
  grid-template-columns:1fr;
}
.fc-card[hidden]{display:none}
.fc-card{display:flex;flex-direction:column;gap:10px;height:100%}
.fc-card-title{margin:6px 0 0;font-size:1.05rem;line-height:1.3;color:#10253d}
.fc-card p{margin:0;font-size:.92rem;line-height:1.55;color:#40536a}
.fc-card .hm-link{margin-top:auto;padding-top:6px}

/* ---------- Pager ---------- */
.fc-pager{
  grid-column:1/-1;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
  margin-top:10px;
}
.fc-pager-info{font-size:.9rem;color:#40536a;order:-1;width:100%;text-align:center}

/* ---------- Empty states ---------- */
.fc-empty{
  margin:20px 0 0;padding:18px 20px;text-align:center;
  border:1px dashed rgba(16,37,61,.25);border-radius:16px;color:#40536a;
  background:rgba(255,255,255,.6);
}
.fc-empty[hidden]{display:none}
.fc-empty a{color:#00539C;font-weight:600}

/* ---------- Coverage + FAQ wrappers ---------- */
.fc-cov{display:block}
.fc-cov .hm-chips{margin:16px 0 20px}
.fc-cov .hm-aud-cta{display:flex;flex-wrap:wrap;gap:10px}
.fc-faq{max-width:820px;margin:0 auto}

/* ---------- Tablet ---------- */
@media (min-width:640px){
  .fc-head{padding:28px 0 56px}
  .fc-head-bg .s1{width:420px;height:420px;right:-120px;top:-150px}
  .fc-head-bg .s2{width:260px;height:260px}
  .fc-tools{flex-direction:row;align-items:center;justify-content:space-between}
  .fc-search{flex:1 1 420px;max-width:520px}
  .fc-grid{grid-template-columns:repeat(2,1fr);gap:18px}
  .fc-pager{justify-content:center;gap:18px}
  .fc-pager-info{order:0;width:auto}
}

/* ---------- Desktop ---------- */
@media (min-width:1024px){
  .fc-head{padding:36px 0 72px}
  .fc-head-inner{max-width:880px}
  .fc-grid{grid-template-columns:repeat(3,1fr)}
}

@media (prefers-reduced-motion:reduce){
  .fc-search input{transition:none}
}