/* ============================================================
 ⚜️ HABESHA BUSINESS MARKETPLACE – Directory Grid (Elegant Light Emerald & Gold v3)
============================================================ */

/* ---------- Palette ---------- */
:root {
  --gold: #d6ad61;
  --soft-gold: #f5d897;
  --emerald: #1a7d6a;
  --mint: #5fd3b8;
  --cream: #f8f6f1;
  --white: #ffffff;
  --gray: #e9e7e2;
  --shadow: rgba(0,0,0,0.1);
  --text-dark: #1a1a1a;
  --text-muted: #666;
}

/* ============================================================
   1. TOOLBAR
============================================================ */
.hbm-dir-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f6f1 100%);
  border: 1px solid rgba(214,173,97,0.3);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 4px 12px var(--shadow);
  margin-bottom: 30px;
}

.hbm-dir-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hbm-dir-filters input,
.hbm-dir-filters select {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.1);
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 180px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
  transition: border 0.25s ease;
}
.hbm-dir-filters input:focus,
.hbm-dir-filters select:focus {
  border-color: var(--emerald);
  outline: none;
}
.hbm-dir-filters input::placeholder { color: var(--text-muted); }

/* ============================================================
   2. VIEW TOGGLE BUTTONS
============================================================ */
.hbm-dir-toggle {
  display: flex;
  gap: 8px;
}
.hbm-view-btn {
  background: #fff;
  color: var(--emerald);
  border: 1px solid var(--emerald);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}
.hbm-view-btn.active,
.hbm-view-btn:hover {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 0 8px rgba(26,125,106,0.35);
}

/* ============================================================
   3. MAP
============================================================ */
#hbm-map {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin: 20px 0 40px;
}

/* ============================================================
   4. GRID & CARDS
============================================================ */
.hbm-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.hbm-card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfcf8 100%);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden;
  color: var(--text-dark);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hbm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(214,173,97,0.25);
}

.hbm-card-img {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.hbm-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--emerald);
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.hbm-status.closed { background: #b94646; }
.hbm-status.unknown { background: #999; }

.hbm-card-body {
  padding: 18px;
}
.hbm-card-body h3 {
  color: var(--emerald);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.hbm-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  min-height: 60px;
  line-height: 1.5;
}

/* ============================================================
   5. CARD BUTTONS
============================================================ */
.hbm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.hbm-btn.mini {
  background: var(--gold);
  color: #000;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: 0.25s ease;
}
.hbm-btn.mini.ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.hbm-btn.mini:hover {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}

/* ============================================================
   6. LOADING & EMPTY STATES
============================================================ */
.hbm-loading { opacity: 0.6; pointer-events: none; }
.hbm-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 30px 0;
}

/* ============================================================
   7. POPUP STYLES
============================================================ */
.hbm-popup h4 {
  margin: 4px 0;
  color: var(--emerald);
  font-size: 1rem;
}
.hbm-popup a {
  color: var(--emerald);
  font-weight: 600;
  text-decoration: none;
}
.hbm-popup a:hover { color: var(--gold); }

/* ============================================================
   8. RESPONSIVE DESIGN
============================================================ */
@media (max-width: 700px) {
  .hbm-dir-filters input,
  .hbm-dir-filters select { min-width: 140px; }
}
