/* ── Neighborhood page styles ── */

.neighborhood-hero {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
}

.neighborhood-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.13) 0%, transparent 55%),
    linear-gradient(90deg, rgba(0, 42, 41, 0.57) 0%, rgba(0, 42, 41, 0.03) 100%);
}

.neighborhood-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.neighborhood-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  opacity: 0.9;
}

.neighborhood-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.neighborhood-hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.2rem, 7vw, 6.6rem);
  line-height: 0.92;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: -0.035em;
}

.neighborhood-hero p {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  margin: 0 0 32px;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.3;
}

.neighborhood-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.neighborhood-hero-tags span {
  background: #004f4d;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* ── Page body ── */
.neighborhood-page {
  background: #fbfaf7;
  color: #2e2e2e;
  font-family: "Inter", sans-serif;
}

.neighborhood-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.neighborhood-section + .neighborhood-section {
  border-top: 1px solid rgba(0, 79, 77, 0.12);
}

.compact-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: #004f4d;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  color: #188f8b;
  text-decoration: none;
}

/* ── Kicker / section labels ── */
.section-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  color: #007c78;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-kicker::before {
  content: "";
  width: 38px;
  height: 3px;
  background: #007c78;
  border-radius: 999px;
}

.section-title,
.overview-copy h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #004f4d;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  font-weight: 500;
}

/* ── Overview ── */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
  gap: 70px;
  align-items: center;
}

.overview-copy p {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.8;
  color: #374151;
  margin: 0 0 20px;
  max-width: 720px;
}

.overview-copy p:last-child {
  margin-bottom: 0;
}

.overview-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.overview-image {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 79, 77, 0.12);
  display: block;
}

.overview-image-placeholder {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 60px rgba(0, 79, 77, 0.12);
}

/* ── Known For ── */
.known-for-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.known-for-tags span {
  background: #ffffff;
  color: #004f4d;
  border: 1px solid rgba(0, 79, 77, 0.14);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.neighborhood-overview-section {
  position: relative;
  overflow: visible;
}

/* ── Perfect For card ── */
.perfect-for-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 64px;
  align-items: center;
  background: linear-gradient(135deg, #eef7f6 0%, #fffdf8 100%);
  border-radius: 32px;
  padding: 64px;
  box-shadow: 0 24px 60px rgba(0, 79, 77, 0.12);
}

/* ── Palm stamp — lives in the perfect-for card ── */
.pf-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 280px;
  pointer-events: none;
  user-select: none;
  transform: rotate(-8deg);
}

.pf-stamp svg {
  width: 100%;
  height: auto;
  display: block;
}

.perfect-for-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.circle-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #c9f0ee;
  color: #004f4d;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}

.perfect-for-graphic span {
  color: #007c78;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.perfect-for-copy h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #004f4d;
  font-size: 44px;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.perfect-for-copy p {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.8;
  color: #374151;
  margin: 0 0 16px;
}

.perfect-for-copy p:last-child {
  margin-bottom: 0;
}
.perfect-for-copy strong {
  color: #263238;
  font-weight: 800;
}

/* ── Properties ── */
.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.properties-header .section-title {
  margin-bottom: 0;
}

.neighborhood-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #004f4d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 24px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 79, 77, 0.24);
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  flex-shrink: 0;
}

.neighborhood-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 79, 77, 0.28);
  color: #ffffff;
  text-decoration: none;
}

.neighborhood-property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* ── Property card ── */
.nd-prop-card {
  background: #ffffff;
  border: 1px solid #e8e4dc;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.nd-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.nd-prop-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.nd-prop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nd-prop-card:hover .nd-prop-card__img img {
  transform: scale(1.04);
}

.nd-prop-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(24, 143, 139, 0.92);
  color: white;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nd-prop-card__body {
  padding: 1.15rem 1.3rem 1.3rem;
}

.nd-prop-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #188f8b;
  margin: 0 0 3px;
}

.nd-prop-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #004f4d;
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nd-prop-card__location {
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
}

.nd-prop-card__divider {
  height: 1px;
  background: #e8e4dc;
  margin: 10px 0;
}

.nd-prop-card__stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: #1f3f3d;
  font-weight: 500;
  flex-wrap: wrap;
}

.nd-prop-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nd-prop-card__stats i {
  color: #188f8b;
  font-size: 0.72rem;
}

/* ── Empty state ── */
.empty-neighborhood-listings {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.empty-neighborhood-listings h3 {
  color: #004f4d;
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.empty-neighborhood-listings p {
  color: #4b5563;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ── Map ── */
.map-section {
  padding-bottom: 90px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.map-header p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 680px;
  margin: 8px 0 0;
}

.map-header .section-title {
  margin-bottom: 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #374151;
  font-weight: 600;
  flex-shrink: 0;
  align-self: flex-end;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
}

.legend-pin {
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: #004f4d;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-block;
  border: 2.5px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.legend-box {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px dashed rgba(0, 79, 77, 0.5);
  border-radius: 4px;
  display: inline-block;
}

.map-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 79, 77, 0.12);
}

#neighborhood-map {
  height: 540px;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.cayliving-map-pin {
  background: #004f4d;
  border: 4px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.cayliving-map-pin .pin-dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  left: 12px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .overview-grid,
  .perfect-for-card {
    grid-template-columns: 1fr;
  }

  .overview-image-wrap {
    justify-content: flex-start;
  }
  .overview-image,
  .overview-image-placeholder {
    max-width: 100%;
  }

  .neighborhood-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .properties-header,
  .map-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .perfect-for-card {
    padding: 42px 34px;
  }
}

@media (max-width: 980px) {
  .neighborhood-hero h1 {
    font-size: 64px;
  }
  .section-title,
  .overview-copy h2 {
    font-size: 40px;
  }
  .perfect-for-copy h2 {
    font-size: 34px;
  }
  .overview-copy p,
  .perfect-for-copy p {
    font-size: 17px;
  }
  .neighborhood-hero p {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .neighborhood-hero {
    min-height: 370px;
  }

  .neighborhood-hero-inner,
  .neighborhood-section {
    width: min(calc(100% - 32px), 1180px);
  }

  .neighborhood-hero h1 {
    font-size: 52px;
  }

  .neighborhood-property-grid {
    grid-template-columns: 1fr;
  }

  .perfect-for-graphic {
    align-items: flex-start;
  }

  #neighborhood-map {
    height: 380px;
  }
}

/* ── Sign-in button override ── */
.sign-in-btn {
  background: transparent !important;
  color: #0f766e !important;
  border: 1px solid rgba(15, 118, 110, 0.3) !important;
  padding: 6px 14px;
  border-radius: 8px;
}

.sign-in-btn:hover {
  background: rgba(15, 118, 110, 0.08) !important;
  border-color: rgba(15, 118, 110, 0.5) !important;
}
