body {
  font-family: 'Segoe UI', sans-serif;
  padding: 2em;
  background: #fdfaf5; /* soft cream */
  color: #3e3e3e;
}

h1 {
  text-align: center;
  color: #5a4a3f; /* warm brown */
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.directory-controls {
  text-align: center;
  margin-bottom: 1.5em;
}

button {
  margin: 0 0.5em;
  padding: 0.6em 1.2em;
  font-size: 1em;
  background-color: #a3c9a8; /* soft green */
  color: #2c3e50;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #8bbf94;
}

#directory-grid {
  display: block;
  width: 100%;
}

.street-group {
  display: block;
  width: 100%;
  margin: 3em auto;
  padding: 1.5em;
  border-radius: 12px;
  background-color: #f8f9fc;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
  max-width: 900px;
  clear: both;
}

.street-header {
  text-align: center;
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 1em;
  color: #2c3e50;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3em;
  letter-spacing: 0.5px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5em;
  justify-content: center;
  align-items: stretch;
}

.neighbor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.neighbor-card h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #5a4a3f; /* warm brown */
}

.neighbor-card a {
  color: #5a4a3f; /* warm brown */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.neighbor-card a:hover {
  color: #2c5f2c; /* dark green */
}

.neighbor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.neighbor-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#street-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  margin: 1em auto 2em;
  padding: 0.5em;
  max-width: 800px;
}

.index-link {
  text-decoration: none;
  color: #3e5f3e;
  font-weight: bold;
  padding: 0.4em 0.8em;
  border: 1px solid #b8b8b8;
  border-radius: 6px;
  background-color: #e6f0e6;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.index-link:hover {
  background-color: #d4e8d4;
}

html {
  scroll-behavior: smooth;
}

.neighbor-card:not(:last-child) {
  border-bottom: 1px dashed #eee;
}

.street-group:not(:last-child) {
  border-bottom: 1px dashed #ddd;
}

@keyframes fadeIn {
  to { opacity: 1; }
}
.neighbor-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.neighbor-card-link:hover .neighbor-card {
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transform: scale(1.02);
  transition: all 0.2s ease;
}
.search-container {
  display: flex;
  max-width: 575px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  gap: 8px; /* spacing between input and button */
}

#searchInput {
  border-radius: 16px;
  flex: 1; /* optional: lets input grow */
  padding: 6px 10px;
  font-size: 16px;
}

button {
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
}

