/* ============================================================
   DIRECTORY.CSS - PRISTINE PREMIUM UI (STRICT BRAND)
   ============================================================ */

:root {
  --ff-head: 'Bricolage Grotesque', sans-serif;
  --ff-body: 'Plus Jakarta Sans', sans-serif;
}

.directory-page { background: var(--bg); font-family: var(--ff-body); color: var(--text); }

/* Hero */
.dir-hero { background: var(--mnuc-navy); position: relative; overflow: hidden; padding: 72px 20px 56px; text-align: center; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; }
.dir-hero-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1400&q=80') center/cover no-repeat; opacity: 0.08; }
.dir-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.dir-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(5, 150, 105, 0.15); border: 1px solid rgba(5, 150, 105, 0.3); color: #34d399; font-size: 0.75rem; font-weight: 700; margin-bottom: 16px; }
.dir-hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.dir-hero-title { font-family: var(--ff-head); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 12px; letter-spacing: -0.02em; }
.dir-hero-title em { color: var(--mnuc-gold); font-style: normal; }
.dir-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

.dir-search-bar { display: flex; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.25); max-width: 600px; margin: 0 auto; }
.dir-search-bar input { flex: 1; border: none; padding: 16px 20px; font-size: 1rem; font-family: var(--ff-body); color: var(--text); background: transparent; }
.dir-search-bar input:focus { outline: none; }
.dir-search-bar button { padding: 0 24px; font-weight: 700; }

/* Layout */
.dir-main { padding: 40px 0 80px; }
.dir-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

/* Section Head */
.dir-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.dir-section-title { font-family: var(--ff-head); font-size: 1.3rem; font-weight: 800; color: var(--mnuc-navy); }
.dir-section-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* Grid */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 20px; }

/* Business Card */
.biz-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform 220ms ease, box-shadow 220ms ease; display: flex; flex-direction: column; }
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(14,32,64,0.1); border-color: transparent; }

.biz-img-wrap { position: relative; width: 100%; aspect-ratio: 16/10; background: rgba(0, 82, 255, 0.05); }
.biz-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.biz-card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--mnuc-navy); opacity: 0.4; }
.biz-card-ph svg { width: 40px; height: 40px; }

.biz-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; backdrop-filter: blur(8px); }
.biz-badge.verified { background: rgba(5, 150, 105, 0.9); color: var(--white); }

.biz-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.biz-cat { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mnuc-gold); margin-bottom: 5px; }
.biz-title { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 800; color: var(--mnuc-navy); line-height: 1.3; margin-bottom: 6px; }
.biz-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.biz-meta { font-size: 12px; color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 5px; margin-bottom: 16px; }
.biz-meta svg { color: var(--mnuc-blue); flex-shrink: 0; }

.biz-actions { margin-top: auto; display: flex; gap: 8px; }
.biz-actions .btn { flex: 1; }

/* Sidebar */
.dir-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.dir-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.dir-card-title { font-family: var(--ff-head); font-size: 1rem; font-weight: 700; color: var(--mnuc-navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.dir-card-title svg { color: var(--mnuc-gold); }
.dir-card-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }

/* Skeleton & Empty */
.dir-skel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; }
.dir-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; padding: 64px 20px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.empty-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin-bottom: 16px; }
.dir-empty h3 { font-family: var(--ff-head); font-size: 1.15rem; font-weight: 800; color: var(--mnuc-navy); margin-bottom: 8px; }
.dir-empty p { font-size: 0.9rem; color: var(--text-muted); max-width: 360px; }

/* Responsive */
@media (max-width: 900px) {
  .dir-layout { grid-template-columns: 1fr; }
  .dir-sidebar { position: static; }
}
@media (max-width: 600px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-hero { padding: 48px 16px 40px; }
}