/* SGSSIN Directory – Styles | SiteAdda Labs */

:root {
  --gold: #c9a84c; --gold-light: #f0d080;
  --navy: #1a2a5e; --navy-dark: #0f1a3e;
  --saffron: #e07b30; --green: #25a244;
  --white: #fff; --bg: #f8f5ef;
  --text: #222; --gray: #555; --border: #e0d5c0;
  --r: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; background: #f4f4f8; color: var(--text); font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── DIR HERO ── */
.dir-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a4a8e 100%);
  padding: 40px 20px 50px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dir-hero::before {
  content: 'ੴ';
  position: absolute; top: -20px; right: 40px;
  font-size: 200px; opacity: 0.04; line-height: 1;
  color: var(--gold);
}
.dir-hero h1 { font-size: 30px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.dir-hero p  { font-size: 15px; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 24px; }

/* ── SEARCH BAR ── */
.dir-search-wrap {
  max-width: 680px; margin: 0 auto;
  display: flex; gap: 0;
  background: #fff; border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  overflow: hidden;
}
.dir-search-wrap input {
  flex: 1; border: none; outline: none;
  padding: 14px 22px; font-size: 14px;
  font-family: inherit; background: transparent;
}
.dir-search-wrap button {
  background: var(--gold); color: var(--navy-dark);
  border: none; padding: 14px 28px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.dir-search-wrap button:hover { background: var(--saffron); color: #fff; }

/* ── STATS BAR ── */
.dir-stats {
  background: var(--navy);
  display: flex; justify-content: center; gap: 0;
  flex-wrap: wrap;
}
.dir-stat {
  padding: 12px 30px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background .2s;
}
.dir-stat:last-child { border-right: none; }
.dir-stat:hover, .dir-stat.active { background: var(--gold); }
.dir-stat:hover .ds-num,
.dir-stat:hover .ds-label,
.dir-stat.active .ds-num,
.dir-stat.active .ds-label { color: var(--navy-dark); }
.ds-num   { font-size: 22px; font-weight: 800; color: var(--gold); line-height: 1; }
.ds-label { font-size: 11px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 3px; }

/* ── LAYOUT ── */
.dir-layout {
  max-width: 1260px; margin: 0 auto;
  padding: 30px 16px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── SIDEBAR ── */
.dir-sidebar {
  background: #fff; border-radius: var(--r);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky; top: 80px;
  overflow: hidden;
}
.sidebar-head {
  background: var(--navy); color: var(--gold);
  padding: 13px 18px; font-size: 13px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px;
}
.filter-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.filter-section h4 { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; font-weight: 600; }
.filter-btn {
  display: block; width: 100%;
  text-align: left; padding: 8px 12px;
  border: none; background: none;
  font-size: 13.5px; cursor: pointer;
  border-radius: 5px; font-family: inherit;
  color: var(--text); transition: background .15s;
  margin-bottom: 2px;
}
.filter-btn:hover   { background: var(--bg); }
.filter-btn.active  { background: var(--navy); color: #fff; font-weight: 600; }
.filter-btn .fc     { font-size: 15px; margin-right: 7px; }
.filter-btn .fcount { float: right; background: var(--gold); color: var(--navy-dark); font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 700; margin-top: 2px; }

/* ── MAIN AREA ── */
.dir-main-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.dir-main-head h2 { font-size: 18px; color: var(--navy); font-weight: 700; }
.dir-count { font-size: 13px; color: var(--gray); }
.btn-submit-listing {
  background: var(--saffron); color: #fff;
  padding: 9px 20px; border-radius: 5px;
  font-size: 13px; font-weight: 700;
  transition: background .2s;
  display: flex; align-items: center; gap: 6px;
}
.btn-submit-listing:hover { background: #c06020; color: #fff; }

/* ── SORT/VIEW BAR ── */
.dir-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.dir-bar select {
  border: 1.5px solid var(--border); border-radius: 5px;
  padding: 7px 12px; font-size: 13px; font-family: inherit;
  background: #fff; cursor: pointer; color: var(--text);
}
.view-toggle { display: flex; gap: 4px; margin-left: auto; }
.view-btn {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 5px; padding: 6px 10px; cursor: pointer;
  font-size: 16px; transition: all .2s;
}
.view-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── GRID VIEW ── */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.biz-card {
  background: #fff; border-radius: var(--r);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.biz-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.13); }
.biz-card.featured::before {
  content: '⭐ Featured';
  position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: var(--navy-dark);
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 10px; z-index: 1;
}
.biz-img {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, var(--navy), #2a4a8e);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative;
  overflow: hidden;
}
.biz-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.biz-type-badge {
  position: absolute; bottom: 8px; left: 10px;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; text-transform: uppercase;
}
.badge-business { background: var(--saffron); color: #fff; }
.badge-member   { background: var(--green);   color: #fff; }
.biz-body { padding: 14px; }
.biz-cat  { font-size: 11px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.biz-name { font-size: 15px; color: var(--navy); font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.biz-sub  { font-size: 12.5px; color: var(--gray); margin-bottom: 8px; }
.biz-addr { font-size: 12px; color: var(--gray); display: flex; align-items: flex-start; gap: 5px; margin-bottom: 10px; }
.biz-addr span { flex-shrink: 0; }
.biz-actions { display: flex; gap: 7px; }
.btn-call {
  flex: 1; background: var(--navy); color: #fff;
  border: none; padding: 8px 10px; border-radius: 5px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  text-align: center; transition: background .2s;
}
.btn-call:hover { background: var(--navy-dark); color: #fff; }
.btn-wa {
  flex: 1; background: #25d366; color: #fff;
  border: none; padding: 8px 10px; border-radius: 5px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  text-align: center; transition: background .2s;
}
.btn-wa:hover { background: #128c7e; color: #fff; }
.btn-detail {
  background: var(--bg); color: var(--navy);
  border: 1.5px solid var(--border); padding: 7px 10px;
  border-radius: 5px; font-size: 12px; font-weight: 600;
  cursor: pointer; text-align: center; transition: all .2s;
}
.btn-detail:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── LIST VIEW ── */
.biz-list { display: flex; flex-direction: column; gap: 14px; }
.biz-list-item {
  background: #fff; border-radius: var(--r);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 16px; align-items: center; padding: 16px;
  transition: box-shadow .2s;
}
.biz-list-item:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.12); }
.biz-list-icon {
  width: 70px; height: 70px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), #2a4a8e);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; flex-shrink: 0; overflow: hidden;
  position: relative;
}
.biz-list-icon img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.biz-list-info h3 { font-size: 15px; color: var(--navy); font-weight: 700; margin-bottom: 3px; }
.biz-list-info .meta { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.biz-list-info .desc { font-size: 12.5px; color: var(--gray); line-height: 1.5; }
.biz-list-actions { display: flex; flex-direction: column; gap: 7px; min-width: 110px; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px; border-radius: 5px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--navy);
}
.page-btn:hover, .page-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── DETAIL MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 5000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px;
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  background: var(--navy); color: #fff;
  padding: 20px 22px; border-radius: 12px 12px 0 0;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-head h2 { font-size: 18px; color: var(--gold); margin-bottom: 4px; }
.modal-head p  { font-size: 12.5px; color: rgba(255,255,255,0.7); }
.modal-close {
  background: none; border: none; color: #fff;
  font-size: 26px; cursor: pointer; line-height: 1;
  margin-left: 12px; flex-shrink: 0;
}
.modal-body { padding: 22px; }
.modal-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--navy), #2a4a8e);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; border-radius: var(--r); margin-bottom: 18px;
  overflow: hidden; position: relative;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.modal-info-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.modal-info-row .mi { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.modal-info-row div strong { display: block; font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.modal-info-row div span  { font-size: 13.5px; color: var(--text); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.modal-actions a, .modal-actions button {
  flex: 1; padding: 12px 16px; border-radius: 6px;
  font-size: 14px; font-weight: 700; text-align: center;
  border: none; cursor: pointer; min-width: 130px;
}
.btn-modal-call { background: var(--navy); color: #fff; }
.btn-modal-wa   { background: #25d366; color: #fff; }
.btn-modal-mail { background: var(--bg); color: var(--navy); border: 1.5px solid var(--border) !important; }

/* ── SUBMIT FORM PAGE ── */
.submit-page { max-width: 760px; margin: 0 auto; padding: 36px 16px 60px; }
.submit-card { background: #fff; border-radius: var(--r); box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; }
.submit-head { background: var(--navy); color: #fff; padding: 22px 26px; }
.submit-head h1 { font-size: 22px; color: var(--gold); margin-bottom: 4px; }
.submit-head p  { font-size: 13px; color: rgba(255,255,255,0.7); }
.submit-body { padding: 28px 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.fg { margin-bottom: 0; }
.fg label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.fg label .req { color: var(--saffron); }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 5px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: #fafafa; transition: border-color .2s;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; border-color: var(--gold); background: #fff; }
.fg textarea { min-height: 90px; resize: vertical; }
.type-toggle { display: flex; gap: 12px; margin-bottom: 22px; }
.type-btn {
  flex: 1; padding: 12px; border: 2px solid var(--border);
  border-radius: var(--r); text-align: center; cursor: pointer;
  transition: all .2s; background: #fff;
}
.type-btn:hover   { border-color: var(--navy); }
.type-btn.active  { border-color: var(--navy); background: var(--navy); color: #fff; }
.type-btn .ti     { font-size: 28px; display: block; margin-bottom: 5px; }
.type-btn .tl     { font-size: 13px; font-weight: 700; display: block; }
.type-btn.active .ti, .type-btn.active .tl { color: #fff; }
.form-section-title {
  font-size: 13px; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.7px;
  margin: 20px 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}
.btn-submit-form {
  width: 100%; background: var(--navy); color: #fff;
  border: none; padding: 14px; border-radius: 6px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .2s; margin-top: 10px;
}
.btn-submit-form:hover { background: var(--saffron); }
.submit-note {
  background: #fff8e6; border: 1px solid var(--gold);
  border-radius: 5px; padding: 12px 16px;
  font-size: 13px; color: #7a5800; margin-bottom: 20px;
}

/* ── ADMIN ── */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.admin-topbar {
  background: var(--navy-dark); color: #fff;
  padding: 12px 20px; display: flex;
  align-items: center; justify-content: space-between;
  gap: 12px;
}
.admin-topbar h1 { font-size: 16px; color: var(--gold); font-weight: 700; }
.admin-topbar a  { color: #bbb; font-size: 13px; }
.admin-topbar a:hover { color: var(--gold); }
.admin-tabs { display: flex; gap: 0; background: var(--navy); margin-bottom: 24px; }
.admin-tab {
  padding: 12px 22px; color: #bbb; font-size: 13.5px;
  font-weight: 600; cursor: pointer; border: none;
  background: none; font-family: inherit; transition: .2s;
  border-bottom: 3px solid transparent;
}
.admin-tab:hover   { color: #fff; }
.admin-tab.active  { color: var(--gold); border-bottom-color: var(--gold); }
.admin-card { background: #fff; border-radius: var(--r); box-shadow: 0 2px 12px rgba(0,0,0,0.08); margin-bottom: 14px; overflow: hidden; }
.admin-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; padding: 14px 16px; align-items: center; border-bottom: 1px solid var(--border); }
.admin-item:last-child { border-bottom: none; }
.admin-item-icon { width: 50px; height: 50px; border-radius: 8px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; overflow: hidden; position: relative; }
.admin-item-icon img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.admin-item h3 { font-size: 14px; color: var(--navy); font-weight: 700; margin-bottom: 3px; }
.admin-item p  { font-size: 12px; color: var(--gray); }
.admin-item-acts { display: flex; gap: 7px; }
.btn-approve { background: #25a244; color: #fff; border: none; padding: 7px 14px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-reject  { background: #dc3545; color: #fff; border: none; padding: 7px 14px; border-radius: 5px; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-delete  { background: #dc3545; color: #fff; border: none; padding: 7px 12px; border-radius: 5px; font-size: 12px; cursor: pointer; }
.btn-edit    { background: var(--navy); color: #fff; border: none; padding: 7px 12px; border-radius: 5px; font-size: 12px; cursor: pointer; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat-box { background: #fff; border-radius: var(--r); padding: 18px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.07); border-top: 3px solid var(--gold); }
.admin-stat-box .asn { font-size: 32px; font-weight: 800; color: var(--navy); }
.admin-stat-box .asl { font-size: 12px; color: var(--gray); margin-top: 4px; }
.badge-pending  { background: #fff3cd; color: #856404; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.badge-approved { background: #d4edda; color: #155724; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 700; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state .ei { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .dir-layout { grid-template-columns: 1fr; }
  .dir-sidebar { position: static; }
  .biz-grid { grid-template-columns: repeat(2,1fr); }
  .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .dir-hero h1   { font-size: 22px; }
  .biz-grid      { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .biz-list-item { grid-template-columns: 60px 1fr; }
  .biz-list-actions { flex-direction: row; grid-column: 1/-1; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-item { grid-template-columns: 50px 1fr; }
  .admin-item-acts { grid-column: 1/-1; }
  .dir-stats { gap: 0; }
  .dir-stat  { padding: 10px 16px; }
  .ds-num    { font-size: 18px; }
}
