/* === Grafton Chamber Directory Refined Styles === */

#chamber-directory-wrapper {
  color: #fff;
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 20px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* --- HEADER ONLY (Black Background) --- */
.directory-header {
  text-align: center;
  margin-bottom: 25px;
  background: #f5f5f7; /* only header black */
  padding: 30px 20px;
    border: 1px solid #ddd;
  border-radius: 5px;
}

.directory-header h2 {
  font-size: 34px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}

.directory-header .sub {
  font-size: 15px;
  color: #000;
}

/* --- Filter Bar --- */
.directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 30px 0 40px;
  background: #f5f5f7;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.directory-controls input,
.directory-controls select {
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s ease;
  min-width: 220px;
}

.directory-controls input:focus,
.directory-controls select:focus {
  border-color: #1D66CC;
  outline: none;
  box-shadow: 0 0 0 2px rgba(29,102,204,0.2);
}

.clear-btn {
  background: #1D66CC;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  min-width: 100px;
}

.clear-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29,102,204,0.3);
}

/* --- Directory Grid --- */
#chamber-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.directory-card {
  background: #f5f5f7;
  border-radius: 5px;
  border: 1px solid #ddd;
  padding: 18px;
  color: #f5f5f7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.directory-card:hover {
  transform: translateY(-4px);
  border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0e0f12 center/cover no-repeat;
  border-radius: 5px;
  margin-bottom: 12px;
}

.directory-card h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.cat,
.addr {
  font-size: 14px;
  color: #000;
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions a {
  background: #1D66CC;
  color: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.actions a:hover {
  background: #3182f0;
  box-shadow: 0 3px 10px rgba(29,102,204,0.3);
}

.no-results {
  text-align: center;
  color: #666;
  margin-top: 25px;
}
