.directory-page {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
}

.directory-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Sidebar */
.filter-sidebar {
  flex: 0 0 300px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 1rem;
  height: fit-content;
  font-family: 'Inter', sans-serif;
}

.filter-sidebar h2 {
  font-family: 'Lora', serif;
  color: #1a1a1a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.filter-group label {
  display: block;
  color: #4a4a4a;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-family: 'Inter', sans-serif;
}

.filter-group input[type="text"],
.filter-group select {
  width: 90%;
  padding: 0.6rem;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: #1a1a1a;
  outline: none;
}


.filter-sidebar .btn {
  width: 100%;
  margin-top: 1rem;
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 500;
  padding: 0.6rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: none;
  box-shadow: none;
  display: inline-block;
  align-self: flex-start;
  text-decoration: none;
}

.filter-sidebar .btn:hover {
  background: #333333;
  transform: translateY(-2px);
}

/* Results */
.results {
  flex: 1;
  min-width: 400px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.results h2 {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

#results-count {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #4a4a4a;
  margin: 0;
}

/* Cards */
.info-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  font-family: 'Inter', sans-serif;
}

.info-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.info-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #4a4a4a;
  margin: 0.3rem 0;
}

.info-card.queried {
  background: #f9f9f9;
  opacity: 0.6;
}

.query-buttons {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.query-btn {
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.query-btn.active {
  background-color: #333333;
}

.query-btn:hover {
  background: #333333;
  transform: translateY(-2px);
}

/* No results */
.no-results {
  background: #f9f9f9;
  color: #4a4a4a;
  padding: 1rem;
  border-radius: 8px;
  font-style: italic;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

/* Intro Section */
.directory-intro {
  max-width: 1100px;
  margin: 2rem auto 1rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-family: 'Inter', sans-serif;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.intro-image img {
  max-width: 140px;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.1));
}

.vertical-divider {
  width: 2px;
  height: 100px;
  background: #1a1a1a;
  border-radius: 2px;
}

.intro-text h1 {
  font-family: 'Lora', serif;
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.intro-text p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* Filter Links */
.filter-links {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #4a4a4a;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.filter-links a {
  color: #1a1a1a;
  text-decoration: none;
}

.filter-links a:hover {
  text-decoration: underline;
}

/* Divider */
.intro-divider {
  width: 90%;
  height: 2px;
  background: #1a1a1a;
  border: none;
  margin: 2rem auto;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .directory-container {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    position: static;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .intro-content {
    flex-direction: column;
    align-items: center;
  }

  .vertical-divider {
    display: none;
  }
}
