body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f4f4f4;
  color: #333;
}

.nearmeContainer {
  padding: 1rem;
  background: #fff;
}

.banner {
  display: flex;
  align-items: center;
  background-color: #003831;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.logo {
  width: 108px;
  height: 108px;
  margin-right: 1rem;
}

.banner-text h1,
.banner-text p {
  color: #ffffff;
  margin: 0;
}

.banner-text h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.lookup {
  position: relative;
  margin-bottom: 1rem;
}

.lookup label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#address-input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 4px 0 0; /* rounded top corners only */
  border-bottom: none; /* remove bottom border */
}

.search-icon {
  position: absolute;
  left: 0.6rem;
  width: 18px;
  height: 18px;
  color: #999; /* matches placeholder text */
  pointer-events: none;
}

.clear-btn {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  display: none;
}

.clear-btn:hover {
  color: #000;
}

.autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-top: none; /* remove top border so it connects seamlessly */
  border-radius: 0 0 4px 4px; /* rounded bottom corners */
  max-height: 150px;
  overflow-y: auto;
  background: #fff;
}

.autocomplete-list li {
  padding: 0.5rem;
  cursor: pointer;
}

.autocomplete-list li:hover {
  background-color: #eee;
  font-weight: 500;
}

.details-container {
  margin-top: 1.5rem;
  width: 100%;
}

.details-container h2 {
  width: 100%;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Wrapper for all info-groups */
.info-groups-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two cards per row */
  gap: 1rem;
  width: 100%;
  align-items: stretch; /* equal height cards */
}

/* Responsive: stack groups on narrow screens */
@media (max-width: 768px) {
  .info-groups-wrapper {
    grid-template-columns: 1fr; /* one per row */
  }
}

/* Info-group styled as card */
.info-group {
  background: #fafafa; /* subtle light gray background */
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.info-group:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-group h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #003831;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon {
  width: 20px;
  height: 20px;
  color: #003831;
  flex-shrink: 0;
}

/* Items inside group */
.info-card {
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.info-card a {
  color: #00695c;
  text-decoration: none;
}

.info-card a:hover {
  text-decoration: underline;
  color: #004d40;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback message styling */
.no-data {
  background: #ffecec;
  color: #a94442;
  padding: 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}
