body {
  background: #fbfaf7;
}

.sign-in-btn {
  background: transparent !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.3) !important;
}
.sign-in-btn:hover {
  background: rgba(15, 118, 110, 0.08) !important;
  border-color: rgba(15, 118, 110, 0.5) !important;
}

/* ── Hero ── */
.nbhds-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #d4eae8;
}
@media (max-width: 900px) {
  .nbhds-hero {
    height: 380px;
  }
}
@media (max-width: 600px) {
  .nbhds-hero {
    height: 340px;
  }
}

.nbhds-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.nbhds-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.82) 32%,
    rgba(255, 255, 255, 0.38) 60%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

.nbhds-hero__text {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nbhds-hero__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #004f4d;
  margin-bottom: 18px;
  opacity: 0.75;
}

.nbhds-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: #004f4d;
  margin: 0 0 24px;
}

.nbhds-hero__sub {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  font-weight: 500;
  color: #374151;
  max-width: 480px;
  margin: 0;
}

@media (max-width: 600px) {
  .nbhds-hero__text {
    padding: 0 20px;
  }
  .nbhds-hero__eyebrow {
    font-size: 0.7rem;
    margin-bottom: 12px;
  }
  .nbhds-hero__sub {
    font-size: 0.9rem;
    max-width: 100%;
  }
}

/* ── Grid container ── */
.nbhds-container {
  max-width: 1180px;
  margin: -50px auto 0;
  padding: 0 40px 80px;
  position: relative;
  z-index: 3;
}

.nbhds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* Lone last card stays left-aligned at half width */
.nbhds-grid > a:last-child:nth-child(odd) {
  grid-column: 1;
}

@media (max-width: 900px) {
  .nbhds-container {
    padding: 0 24px 60px;
    margin-top: -30px;
  }
  .nbhds-grid {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .nbhds-container {
    padding: 0 16px 50px;
    margin-top: -20px;
  }
  .nbhds-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .nbhds-grid > a:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* ── Cards ── */
.district-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 79, 77, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.district-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0, 79, 77, 0.13);
}

/* ── Card image area ── */
.image-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .image-hero {
    height: 300px;
  }
}
@media (max-width: 640px) {
  .image-hero {
    height: 260px;
  }
}

.image-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.district-card:hover .image-hero img {
  transform: scale(1.04);
}

/* Gradient at bottom of image so overlay text is readable */
.image-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.54) 0%,
    rgba(0, 0, 0, 0.24) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* Placeholder for cards without images */
.image-hero--placeholder {
  background: linear-gradient(135deg, #004f4d 0%, #188f8b 100%);
}

/* Text overlaid on the image */
.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px 18px;
  z-index: 2;
}

.image-overlay h2 {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin: 0 0 4px;
  line-height: 1.2;
}

.image-overlay p {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ── Card body ── */
.location-card-content {
  padding: 22px 24px 26px;
}

.district-description {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 14px;
  padding: 0;
}

.location-tags {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #004f4d;
  margin: 0 0 20px;
  padding: 0;
  letter-spacing: 0.01em;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007c78 0%, #004f4d 55%, #003b39 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 13px 22px;
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 79, 77, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  border: none;
  cursor: pointer;
}

.district-card:hover .explore-btn {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 79, 77, 0.3);
}

/* ── Account modal styles ── */
.acct-signin-btn {
  background: #ff9800;
  color: white;
  border: none;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.acct-type-btn {
  background: white;
  border: 2px solid #c4cdd6;
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
  min-height: 112px;
  box-sizing: border-box;
}
.acct-type-btn:hover {
  border-color: rgba(0, 79, 77, 0.35);
  background: #f0fdf4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.acct-type-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 79, 77, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #004f4d;
  margin-bottom: 0.5rem;
}
.acct-type-label {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.acct-type-desc {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}
#accountTypeModal .auth-modal-body > p:first-child {
  margin-bottom: 0.7rem !important;
}
#accountTypeModal .auth-modal-body > div:nth-child(2) {
  margin-bottom: 0.9rem !important;
}
#accountTypeModal .auth-modal-close {
  top: 18px;
  opacity: 0.7;
}
