/* ============================================================
   GJEPC Members Directory – Professional Design
   ============================================================ */

/* ---------- Page Section ---------- */
.dir-section {
  background: #f4f6f9;
  padding: 30px 0 60px;
}

/* ---------- Hero Banner ---------- */
.dir-hero-wrap {
  width: 100%;
  line-height: 0;
}

.dir-hero-img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

/* ---------- Full Width Search Section ---------- */
.dir-search-section {
  background: #000000;
  padding: 28px 0;
  width: 100%;
  margin-bottom: 0;
}

/* ---------- Search Bar ---------- */
.dir-search-box {
    background: transparent;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 0;
    box-shadow: none;
    border: 2px solid #fff;
    border-style: dotted;
}

.dir-search-box .form-control,
.dir-search-box select.form-control {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: rgba(255,255,255,.95);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: box-shadow .2s;
}

.dir-search-box .form-control:focus,
.dir-search-box select.form-control:focus {
  box-shadow: 0 0 0 3px rgba(168,156,93,.5);
  outline: none;
}

.dir-search-row2 {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.dir-search-row2 .dir-company-wrap {
  flex: 1;
  position: relative;
}

.dir-search-row2 .form-control {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: rgba(255,255,255,.95);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  width: 100%;
  transition: box-shadow .2s;
}

.dir-search-row2 .form-control:focus {
  box-shadow: 0 0 0 3px rgba(168,156,93,.5);
  outline: none;
}

#resetBtn {
  background: linear-gradient(135deg, #a89c5d, #c4b472);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  box-shadow: 0 4px 12px rgba(168,156,93,.4);
  transition: all .25s;
}

#resetBtn:hover {
  background: linear-gradient(135deg, #c4b472, #a89c5d);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168,156,93,.5);
}

/* ---------- Main Layout ---------- */
.dir-layout {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* ---------- Sidebar ---------- */
.dir-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.dir-sidebar-header {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  padding: 16px 18px;
}

.dir-sidebar-header h6 {
  color: #a89c5d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin: 0;
}

/* Tab Nav */
.dir-tab-nav {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  background: #fafafa;
}

.dir-tab-nav .dir-tab-btn {
  flex: 1;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #888;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}

.dir-tab-nav .dir-tab-btn.active {
  color: #000000;
  border-bottom-color: #a89c5d;
  background: #fff;
}

.dir-tab-nav .dir-tab-btn:hover:not(.active) {
  color: #000000;
  background: #f5f3ec;
}

/* Filter Items */
.dir-filter-list {
  padding: 10px 12px;
  max-height: 520px;
  overflow-y: auto;
}

.dir-filter-list::-webkit-scrollbar { width: 4px; }
.dir-filter-list::-webkit-scrollbar-track { background: #f1f1f1; }
.dir-filter-list::-webkit-scrollbar-thumb { background: #a89c5d; border-radius: 4px; }

.image-radio {
  display: block;
  margin-bottom: 4px;
}

.image-radio input[type=radio] { display: none; }

.image-radio label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  background: #f8f9fa;
}

.image-radio label:hover {
  background: #f5f3ec;
  border-color: #a89c5d;
}

.image-radio input[type=radio]:checked + label {
  background: #f5f3ec;
  border-color: #a89c5d;
  box-shadow: 0 2px 8px rgba(168,156,93,.2);
}

.image-radio img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.image-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #000000;
  line-height: 1.3;
}

/* ---------- Listing Area ---------- */
.dir-listing {
  flex: 1;
  min-width: 0;
  margin-left: 24px;
}

.dir-listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dir-listing-title {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
}

/* ---------- Directory Card ---------- */
.dir-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(0,0,0,.07);
  margin-bottom: 18px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid #eee;
}

.dir-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.dir-card-header {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dir-card-header .company-name {
  color: #a89c5d;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}

.dir-card-header .premium-badge {
  background: rgba(168,156,93,.2);
  color: #a89c5d;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(168,156,93,.4);
  letter-spacing: .5px;
}

.dir-card-body {
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dir-card-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #a89c5d;
  flex-shrink: 0;
}

.dir-card-info {
  flex: 1;
  min-width: 0;
}

.dir-card-info .info-row {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: #444;
  margin-bottom: 6px;
  line-height: 1.4;
}

.dir-card-info .info-row strong {
  color: #000000;
  font-weight: 700;
  white-space: nowrap;
  min-width: 130px;
}

.dir-card-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-view-more {
  background: #000000;
  color: #a89c5d !important;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  transition: all .25s;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

.btn-view-more:hover {
  background: #a89c5d;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(168,156,93,.4);
}

/* ---------- Pagination ---------- */
#pagination {
  text-align: center;
  margin: 28px 0 8px;
}

#pagination .btn {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  background: #fff;
  border: 1.5px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

#pagination .btn:hover {
  background: #a89c5d;
  color: #fff;
  border-color: #a89c5d;
}

#pagination .btn.active {
  background: #a89c5d;
  color: #fff;
  border-color: #a89c5d;
  font-weight: 700;
  pointer-events: none;
}

/* ---------- Autocomplete ---------- */
#company_results {
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

#company_results .list-group-item {
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  border-left: none;
  border-right: none;
}

#company_results .list-group-item:hover {
  background: #f5f3ec;
  color: #000000;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .dir-layout {
    flex-direction: column;
  }
  .dir-listing {
    margin-left: 0;
  }
  .dir-sidebar {
    width: 100%;
    position: static;
  }
  .dir-filter-list {
    max-height: 320px;
  }
}

@media (max-width: 576px) {
  .dir-search-box {
    padding: 16px;
  }
  .dir-search-row2 {
    flex-direction: column;
    gap: 10px;
  }
  #resetBtn {
    width: 100%;
  }
  .dir-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .dir-card-info .info-row {
    flex-direction: column;
    gap: 2px;
  }
  .dir-card-info .info-row strong {
    min-width: unset;
  }
}
