.hm-makers-directory {
  width: 100%;
}

.hm-makers-directory__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 0 0 16px 0;
  justify-content: center;
}

.hm-makers-directory__control {
  min-width: 220px;
  flex: 0 0 auto;
}

.hm-makers-directory__control--search {
  flex: 1 1 320px;
  min-width: 260px;
}

.hm-makers-directory__label {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.hm-makers-directory__select,
.hm-makers-directory__input {
  width: 100%;
  box-sizing: border-box;
}

.hm-makers-directory__grid {
  display: grid;
  gap: 12px;
}

.hm-makers-directory[data-columns="1"] .hm-makers-directory__grid { grid-template-columns: 1fr; }
.hm-makers-directory[data-columns="2"] .hm-makers-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-makers-directory[data-columns="3"] .hm-makers-directory__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-makers-directory[data-columns="4"] .hm-makers-directory__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-makers-directory[data-columns="5"] .hm-makers-directory__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hm-makers-directory[data-columns="6"] .hm-makers-directory__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .hm-makers-directory[data-columns="4"] .hm-makers-directory__grid,
  .hm-makers-directory[data-columns="5"] .hm-makers-directory__grid,
  .hm-makers-directory[data-columns="6"] .hm-makers-directory__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hm-makers-directory__controls {
    flex-direction: column;
    align-items: stretch;
  }
  .hm-makers-directory__control,
  .hm-makers-directory__control--search {
    min-width: 0;
    width: 100%;
  }
  .hm-makers-directory__grid {
    grid-template-columns: 1fr !important;
  }
}

.hm-makers-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 14px 14px;
  background: #fff;
}

.hm-makers-card__name {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.hm-makers-card__name a {
  text-decoration: none;
  font-weight: inherit;
}

.hm-makers-card__name a:hover {
  text-decoration: underline;
}

.hm-makers-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hm-makers-card__pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
}

.hm-makers-directory__empty {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}

.hm-makers-card__department,
.hm-makers-card__location {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 6px;
}

.hm-makers-card__department {
  color: #555;
}

.hm-makers-card__location {
  color: #777;
}

/* Hiding department dropdown temporarily */
[data-role="dept"] {
  display: none;
}

.hm-makers-directory__control:first-child {
  display: none;
}

/* Make search control larger and centered */
.hm-makers-directory__control--search {
  flex: 0 1 900px;
  width: 100%;
  max-width: 900px;
  min-width: 260px;
  margin-bottom: 30px;
}

/* Hide the label for cleaner look */
.hm-makers-directory__control--search .hm-makers-directory__label {
  display: none;
}
/* Large Google-style search input */
.hm-makers-directory input.hm-makers-directory__input[type="search"] {
  width: 100%;
  min-height: 84px !important;
  height: 84px !important;
  padding: 0 30px !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  border-radius: 999px !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hm-makers-directory input.hm-makers-directory__input[type="search"]::placeholder {
  font-size: 24px;
  line-height: 1.2;
}

.hm-makers-directory input.hm-makers-directory__input[type="search"]:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.hm-makers-directory input.hm-makers-directory__input[type="search"]:focus {
  outline: none;
  border-color: #ccc !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
