/* ============================================================
   FRA-OFRS Public Pages – Main Stylesheet
   Palette: Surface #FFFFFF / Primary Sage #723480 / Accent Gold #808034
   Fonts:   Inter (body) · Poppins (display)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Primary Sage ───────────────────────────────────────── */
  --sage-900: #3A1A42;
  --sage-800: #4A2154;
  --sage-700: #5C2A68;
  --sage-600: #723480;   /* Primary */
  --sage-500: #5C2A68;   /* Hover / darker */
  --sage-400: #6B9E8A;
  --sage-300: #8FBFAE;
  --sage-200: #DBD4FF;
  --sage-100: #DFF0EB;   /* Soft mint */
  --sage-50:  #F3EFFB;   /* Very light faint */

  /* ── Accent Gold (warm, used sparingly) ─────────────────── */
  --gold-600: #B8895A;
  --gold-500: #808034;
  --gold-400: #E0BC96;
  --gold-100: #FFFFE3;
  --gold-50:  #FDF8F2;

  /* ── Status ─────────────────────────────────────────────── */
  --success:        #16A34A;
  --success-bg:     #DCFCE7;
  --success-border: #86EFAC;
  --error:          #DC2626;
  --error-bg:       #FEF2F2;
  --error-border:   #FECACA;
  --warning:        #F59E0B;
  --warning-bg:     #FFFBEB;

  /* ── Backgrounds ─────────────────────────────────────────── */
  --bg:         #FFFFFF;
  --bg-section: #FFFFFF;

  /* ── Text ────────────────────────────────────────────────── */
  --text-primary:   #1F2937;
  --text-secondary: #6B7280;

  /* ── Border ──────────────────────────────────────────────── */
  --border: #D9E2EC;

  /* ── Grays ───────────────────────────────────────────────── */
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white:    #FFFFFF;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.03);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.07), 0 10px 10px rgba(0,0,0,.02);

  /* ── Radii ───────────────────────────────────────────────── */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Typography ──────────────────────────────────────────── */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  --transition:    .2s ease;
  --transition-md: .3s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-section);
  min-height: 100vh; display: flex; flex-direction: column;
}
main.main-content { flex: 1; }
a { color: var(--sage-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage-500); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; display: flex; align-items: center;
  gap: 24px; height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { display: flex; align-items: center; justify-content: center; }
.brand-logo { height: 42px; width: 42px; object-fit: contain; border-radius: 50%; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--sage-600); display: block; line-height: 1; font-family: var(--font-display); }
.brand-sub  { font-size: 10px; color: var(--gray-500); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; display: block; }
.nav-links  { display: flex; gap: 4px; margin-left: auto; }
.nav-link   { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--gray-700); transition: all var(--transition); }
.nav-link:hover, .nav-link.active { background: var(--sage-50); color: var(--sage-600); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Pill user-button ────────────────────────────────────── */
.pub-user-dd { position: relative; }
.pub-user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: none; border: 1.5px solid var(--border);
  cursor: pointer; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  transition: border-color .15s, background .15s; line-height: 1.5; box-shadow: none;
}
.pub-user-pill:hover,
.pub-user-pill[aria-expanded="true"] {
  border-color: var(--sage-600); background: var(--sage-50);
  color: var(--sage-600); outline: none; box-shadow: none;
}
.pub-user-pill.dropdown-toggle::after { display: none; }
.pub-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-600), var(--sage-400));
  color: var(--white); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; line-height: 1; object-fit: cover;
}
.pub-user-caret { font-size: 11px; color: var(--gray-400); }

/* ── Pill dropdown ───────────────────────────────────────── */
.pub-dropdown-menu {
  position: absolute; right: 0; top: 100%;
  z-index: 1050; display: none;
  min-width: 210px; padding: 8px 0; margin-top: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
  font-family: var(--font-body); list-style: none;
}
.pub-dropdown-menu.show { display: block; }
.pub-dd-header { padding: 10px 16px; border-bottom: 1px solid var(--gray-100); margin-bottom: 4px; }
.pub-dd-name { font-weight: 700; font-size: 14px; color: var(--gray-900); font-family: var(--font-display); }
.pub-dd-role { font-size: 12px; color: var(--gray-500); text-transform: capitalize; margin-top: 2px; }
.pub-dropdown-menu .dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--gray-700); font-family: var(--font-body);
  text-decoration: none; background: none; border: none;
  width: 100%; transition: background .12s, color .12s;
  white-space: nowrap; cursor: pointer;
}
.pub-dropdown-menu .dropdown-item:hover { background: var(--sage-50); color: var(--sage-600); }
.pub-dropdown-menu .dropdown-item.text-danger { color: var(--error); }
.pub-dropdown-menu .dropdown-item.text-danger:hover { background: var(--error-bg); color: var(--error); }
.pub-dropdown-divider { height: 0; margin: 4px 0; overflow: hidden; border-top: 1px solid var(--gray-100); }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 6px; color: var(--gray-700); }
.mobile-nav {
  display: none; flex-direction: column; background: var(--white);
  border-bottom: 1px solid var(--border); padding: 12px 24px;
}
.mobile-nav a { padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-weight: 500; color: var(--gray-700); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 9px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
/* Primary — solid sage */
.btn-primary { background: var(--sage-600); color: var(--white); border-color: var(--sage-600); }
.btn-primary:hover {
  background: var(--sage-500); border-color: var(--sage-500); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(114,52,128,.28);
}
/* Ghost / Secondary — white with border */
.btn-ghost {
  background: var(--white); color: var(--gray-700);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--sage-50); color: var(--sage-600);
  border-color: var(--sage-600);
}
/* Teal/Sage outlined */
.btn-teal { background: var(--sage-600); color: var(--white); border-color: var(--sage-600); }
.btn-teal:hover {
  background: var(--sage-500); border-color: var(--sage-500); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(114,52,128,.28);
}
.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ── Skinny Hero ─────────────────────────────────────────── */
.hero-section { max-width: 1280px; margin: 0 auto; padding: 16px 24px 0; }
.skinny-hero {
  border-radius: 20px; overflow: hidden; height: 420px;
  position: relative; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  text-align: left; padding: 40px 64px 96px;
  background-image:
    linear-gradient(to right, rgba(10,35,24,.92) 0%, rgba(10,35,24,.72) 38%, rgba(10,35,24,.25) 65%, rgba(10,35,24,0) 100%),
    url('../images/hero-banner.jpg');
  background-size: cover; background-position: center right;
  background-color: #dde8e4;
}
.sh-content { position: relative; z-index: 1; max-width: 640px; }

/* Announcement pill */
.sh-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(0,0,0,.50); backdrop-filter: blur(8px);
  color: #fff; border-radius: 99px;
  padding: 5px 16px 5px 5px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.18); margin-bottom: 22px; cursor: default;
}
.sh-pill-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.sh-pill-arrow { opacity: .7; font-size: 14px; margin-left: 2px; }

.sh-title {
  font-family: var(--font-display);
  font-size: clamp(26px,4.5vw,50px); font-weight: 700;
  color: #fff; line-height: 1.18; margin-bottom: 14px; letter-spacing: -.02em;
}
.sh-subtitle { font-size: 16px; color: rgba(255,255,255,.82); max-width: 440px; margin: 0; line-height: 1.65; }

/* Search card */
.sh-search-wrap { max-width: 760px; margin: -52px auto 0; padding: 0 24px; position: relative; z-index: 10; }
.sh-search-card {
  background: var(--white); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10), 0 2px 12px rgba(0,0,0,.05);
}

/* Tabs */
.sh-tabs { display: flex; padding: 0 20px; border-bottom: 1.5px solid var(--border); gap: 4px; }
.sh-tab {
  padding: 14px 18px; background: none; border: none;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  color: var(--gray-500); cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  transition: color .15s, border-color .15s;
}
.sh-tab:hover { color: var(--sage-600); }
.sh-tab.active { color: var(--sage-600); border-bottom-color: var(--sage-600); }

/* Search row */
.sh-search-row { display: flex; align-items: center; padding: 12px 14px; gap: 0; }
.sh-location { padding: 0 18px 0 6px; border-right: 1.5px solid var(--border); flex-shrink: 0; cursor: pointer; }
.sh-location-label { font-size: 10px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.sh-location-val   { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 5px; }
.sh-search-input { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.sh-search-input i { color: var(--gray-400); font-size: 17px; flex-shrink: 0; }
.sh-search-input input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-body); font-size: 14.5px;
  color: var(--text-primary); background: transparent;
}
.sh-search-input input::placeholder { color: var(--gray-400); }
.sh-search-btn {
  width: 46px; height: 46px; border-radius: 12px; border: none;
  background: var(--sage-600); color: #fff; font-size: 20px;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .12s;
}
.sh-search-btn:hover { background: var(--sage-500); transform: scale(1.04); }

/* Stats strip */
.hero-stats-strip {
  display: flex; justify-content: center; gap: 48px;
  padding: 32px 24px 0; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto;
}
.hss-item { text-align: center; }
.hss-num   { font-size: 26px; font-weight: 700; color: var(--sage-600); display: block; line-height: 1; font-family: var(--font-display); }
.hss-label { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-top: 4px; display: block; }

/* Legacy .hero */
.hero { background: linear-gradient(135deg, var(--sage-900) 0%, var(--sage-700) 100%); color: var(--white); padding: 60px 24px; text-align: center; }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,.14); color: var(--sage-100); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: var(--radius-full); margin-bottom: 20px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(28px,4vw,46px); line-height: 1.2; margin-bottom: 14px; }
.hero h1 span { color: var(--sage-100); }
.hero p { font-size: 16px; opacity: .85; max-width: 480px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 60px 24px; }
.section-bg { background: var(--bg-section); }
.section-container { max-width: 1280px; margin: 0 auto; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(22px,3vw,30px); color: var(--gray-900); font-weight: 700; }
.section-title span { color: var(--sage-600); }

/* ── Entity Cards ────────────────────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.entity-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.entity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.entity-card-cover { height: 140px; background: linear-gradient(135deg, var(--sage-600), var(--sage-800)); position: relative; overflow: hidden; }
.entity-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.entity-card-cover.is-community { background: linear-gradient(135deg, var(--sage-400), var(--sage-600)); }
.entity-card-logo { position: absolute; bottom: -10px; left: 16px; width: 52px; height: 52px; border-radius: var(--radius); border: 3px solid var(--white); overflow: hidden; background: var(--white); box-shadow: var(--shadow-md); }
.entity-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.entity-card-logo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--sage-600), var(--sage-300)); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--white); font-family: var(--font-display); }
.entity-card-logo-placeholder.is-community { background: linear-gradient(135deg, var(--sage-300), var(--sage-600)); }
.entity-card-body { padding: 28px 16px 16px; }
.entity-card-type { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.entity-card-name { font-size: 15px; font-weight: 700; color: var(--gray-900); margin: 3px 0 6px; line-height: 1.3; font-family: var(--font-display); }
.entity-card-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entity-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-400); flex-wrap: wrap; }

/* ── Promo Cards ─────────────────────────────────────────── */
.promo-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo-card-img { height: 180px; background: linear-gradient(135deg, var(--sage-700), var(--sage-400)); overflow: hidden; position: relative; }
.promo-card-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-type-badge { position: absolute; top: 12px; left: 12px; }
.promo-card-body { padding: 16px; }
.promo-card-title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; line-height: 1.35; font-family: var(--font-display); }
.promo-card-meta  { font-size: 12px; color: var(--gray-400); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.promo-card-desc  { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.promo-card-footer{ padding: 12px 16px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.promo-card-owner { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-500); }
.promo-card-link  { transition: transform var(--transition), box-shadow var(--transition); }
.promo-card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-primary { background: var(--sage-100); color: var(--sage-700); }
.badge-success  { background: var(--success-bg); color: #14532D; }
.badge-warning  { background: var(--warning-bg); color: #92400E; }

/* ── Directory Search UI ─────────────────────────────────── */

/* Main search bar */
.dir-search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition);
  margin-bottom: 10px;
}
.dir-search-bar:focus-within { border-color: var(--sage-600); box-shadow: 0 0 0 3px rgba(114,52,128,.10); }
.dir-search-bar > .bi { color: var(--gray-400); font-size: 17px; flex-shrink: 0; }
.dir-search-input {
  flex: 1; border: none; outline: none;
  font-size: 15px; font-family: var(--font-body);
  color: var(--gray-800); background: transparent;
  padding: 7px 0; min-width: 0;
}
.dir-search-input::placeholder { color: var(--gray-400); }

/* Filter toggle button */
.dir-filter-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all var(--transition);
}
.dir-filter-toggle:hover,
.dir-filter-toggle.is-active { border-color: var(--sage-600); background: var(--sage-50); color: var(--sage-600); }
.dir-filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--sage-600); color: var(--white);
  font-size: 10px; font-weight: 700;
}


/* Filter panel */
.dir-filter-panel {
  display: none;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 4px;
}
.dir-filter-panel.is-open { display: block; }

/* Type pill section */
.dir-filter-section { margin-bottom: 18px; }
.dir-filter-section-label {
  font-size: 11px; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 8px;
}
.dir-type-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.dir-type-pills input[type="radio"] { display: none; }
.dir-type-pills label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
  margin: 0;
}
.dir-type-pills label:hover { border-color: var(--sage-400); color: var(--sage-600); background: var(--sage-50); }
.dir-type-pills input[type="radio"]:checked + label {
  background: var(--sage-600); border-color: var(--sage-600); color: var(--white);
}

/* Filter selects grid */
.dir-filter-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.dir-filter-group { flex: 1; min-width: 160px; }
.dir-filter-label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--gray-400); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 5px;
}
.dir-filter-select {
  width: 100%; padding: 8px 32px 8px 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--gray-700); background: var(--white);
  outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M5 7L0 0h10z' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  transition: border-color var(--transition);
}
.dir-filter-select:focus { border-color: var(--sage-600); }

/* Filter actions */
.dir-filter-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  border-top: 1px solid var(--border); padding-top: 14px;
}

/* Active filter chips */
.dir-active-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; margin-bottom: 20px;
}
.dir-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 8px 5px 12px;
  background: var(--sage-50); border: 1.5px solid var(--sage-200);
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; color: var(--sage-700);
  text-decoration: none; transition: all var(--transition);
}
.dir-chip:hover { background: var(--sage-100); border-color: var(--sage-400); }
.dir-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sage-200); color: var(--sage-800);
  font-size: 11px; line-height: 1;
}
.dir-chip:hover .dir-chip-x { background: var(--sage-300); }
.dir-clear-all {
  margin-left: auto; font-size: 12px; font-weight: 500;
  color: var(--gray-400); text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  transition: color var(--transition);
}
.dir-clear-all:hover { color: var(--error); }

/* Results header */
.dir-results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dir-results-count { font-size: 13px; color: var(--gray-500); }
.dir-results-count strong { color: var(--gray-900); }

/* Legacy search-filter classes (kept for safety) */
.search-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-count { font-size: 14px; color: var(--gray-500); }
.results-count strong { color: var(--gray-900); }

.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px;
  color: var(--text-primary); background: var(--white); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--sage-600);
  box-shadow: 0 0 0 3px rgba(114,52,128,.14);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%236B7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.search-results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.results-count { font-size: 14px; color: var(--gray-500); }
.results-count strong { color: var(--gray-900); }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 20px 0; }
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.page-btn:hover { border-color: var(--sage-600); background: var(--sage-50); color: var(--sage-600); }
.page-btn.active { background: var(--sage-600); border-color: var(--sage-600); color: var(--white); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }

/* ── Utilities ───────────────────────────────────────────── */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-wrapper { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.text-center  { text-align: center; }
.text-muted   { color: var(--gray-500); }
.text-sm      { font-size: 13px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--sage-900); color: var(--gray-300); margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo  { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: .75rem; letter-spacing: -.02em; font-family: var(--font-display); }
.footer-brand p { font-size: .875rem; line-height: 1.6; color: var(--gray-400); margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 36px; height: 36px; background: var(--gold-600); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1rem; transition: background .2s; }
.footer-social a:hover { background: var(--gold-400); }
.footer-links h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--gray-400); text-decoration: none; font-size: .875rem; margin-bottom: .6rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--sage-800); padding: 1.25rem 1.5rem; text-align: center; font-size: .8rem; color: var(--gray-500); max-width: 1200px; margin: 0 auto; }

/* ── Flash Alerts ────────────────────────────────────────── */
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.flash-success { background: var(--success-bg); color: #14532D; border: 1px solid var(--success-border); }
.flash-error   { background: var(--error-bg);   color: #7F1D1D; border: 1px solid var(--error-border); }
.flash-info    { background: var(--sage-50); color: var(--sage-700); border: 1px solid var(--sage-100); }
.flash-icon    { font-size: 18px; line-height: 1; flex-shrink: 0; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, var(--sage-900), var(--sage-700)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-header h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0; font-family: var(--font-display); }
.modal-close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 20px; cursor: pointer; line-height: 1; padding: 0; }
.modal-close:hover { color: #fff; }
.modal-body   { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.form-row   { display: grid; gap: 16px; margin-bottom: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.form-group label .req { color: var(--error); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Promotion Detail ────────────────────────────────────── */
.promo-detail { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.promo-detail-hero { position: relative; width: 100%; max-height: 480px; overflow: hidden; background: linear-gradient(135deg, var(--sage-700), var(--sage-400)); }
.promo-detail-hero img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.promo-detail-hero-placeholder { height: 280px; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.promo-detail-badge { position: absolute; top: 16px; left: 16px; }
.promo-detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 32px; align-items: start; }
.promo-detail-title { font-family: var(--font-display); font-size: clamp(20px,3vw,30px); font-weight: 700; color: var(--gray-900); line-height: 1.25; margin-bottom: 20px; }
.promo-detail-meta { display: flex; flex-wrap: wrap; gap: 30px; padding: 20px; background: var(--sage-50); border-radius: var(--radius-sm); margin-bottom: 28px; }
.promo-meta-item   { display: flex; align-items: flex-start; gap: 10px; }
.promo-meta-icon   { font-size: 20px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.promo-meta-label  { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); margin-bottom: 2px; }
.promo-meta-value  { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.promo-detail-desc { border-top: 1px solid var(--gray-100); padding-top: 24px; }
.promo-detail-text { font-size: 15px; color: var(--gray-600); line-height: 1.75; white-space: pre-wrap; }
.promo-sidebar-card   { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.promo-sidebar-header { padding: 12px 16px; background: var(--sage-600); color: #fff; font-size: 13px; font-weight: 700; font-family: var(--font-display); }
.promo-sidebar-body   { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.promo-sidebar-row    { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--gray-600); }
.promo-sidebar-row a  { color: var(--sage-600); text-decoration: none; word-break: break-all; }
.promo-sidebar-row a:hover { text-decoration: underline; }
.promo-sidebar-row span:first-child { flex-shrink: 0; }

/* ── Flex card grid (fra-row / fra-col) ──────────────────── */
.fra-row { display: flex; flex-wrap: wrap; gap: 20px; }
.fra-col { flex: 0 0 calc(33.333% - 14px); min-width: 270px; box-sizing: border-box; }
@media (max-width: 960px)  { .fra-col { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 580px)  { .fra-col { flex: 0 0 100%; } }
.fra-col .entity-card { height: 100%; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-nav { display: flex; }
  /* Keep the brand from overflowing past the hamburger on small screens */
  .nav-container { padding: 0 16px; gap: 12px; }
  .nav-brand  { flex: 1 1 auto; min-width: 0; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero { padding: 50px 20px; }
  .hero-section { padding: 12px 12px 0; }
  .skinny-hero { height: 340px; padding: 32px 28px 80px; border-radius: 16px; text-align: left; align-items: flex-start; }
  .sh-title { font-size: clamp(22px,5vw,34px); }
  .sh-subtitle { font-size: 14px; }
  .sh-search-wrap { padding: 0 12px; margin-top: -44px; }
  .sh-tabs { padding: 0 12px; }
  .sh-tab { padding: 11px 12px; font-size: 13px; }
  .sh-location { display: none; }
  .sh-search-input { padding: 0 10px; }
  .hero-stats-strip { gap: 24px; padding-top: 24px; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .promo-detail-body { grid-template-columns: 1fr; padding: 20px; }
  .promo-detail-sidebar { order: -1; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 11px 20px; font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-container { grid-template-columns: 1fr; }
  .sh-tabs { gap: 0; overflow-x: auto; }
  .sh-tab { white-space: nowrap; }
  .hero-stats-strip { gap: 20px; }
  .hss-num { font-size: 22px; }
}
