/* Apartments directory — subscribed communities grid */

.nn-apts {
  /* Top gap aligned with App Features (.af-section / hero title spacing) */
  padding: 2.35rem 0 3rem;
  background:
    linear-gradient(180deg, #eef4fb 0%, #f7fafc 22%, #ffffff 100%);
}

.nn-apts__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 0 0 1.15rem;
}

.nn-apts__eyebrow {
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #2563eb;
}

.nn-apts__head h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 800;
  color: #16325c;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.nn-apts__sub {
  margin: 0;
  max-width: 38rem;
  color: #64748b;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.5;
}

.nn-apts__meta {
  margin: 0 0 1rem;
}

.nn-apts__meta p {
  margin: 0;
  color: #64748b;
  font-size: .9rem;
  font-weight: 600;
}

.nn-apts__meta strong {
  color: #16325c;
  font-weight: 800;
}

.nn-apts__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .85rem;
}

.nn-apt-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 36, 68, .05);
  display: flex;
  flex-direction: column;
}

.nn-apt-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.nn-apt-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nn-apt-card__badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .2rem .5rem;
  border-radius: 4px;
}

.nn-apt-card__badge--premium { background: #d97706; }
.nn-apt-card__badge--campus { background: #0f766e; }

.nn-apt-card__body {
  padding: .65rem .7rem .75rem;
  display: grid;
  gap: .28rem;
}

.nn-apt-card__body h2 {
  margin: 0;
  font-size: .9rem;
  font-weight: 800;
  color: #16325c;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.25em;
}

.nn-apt-card__loc {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nn-apt-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  font-size: .72rem;
  font-weight: 650;
  color: #475569;
}

.nn-apt-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.nn-apts__sentinel {
  height: 1px;
  margin-top: 1.25rem;
}

.nn-apts__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  margin-top: 1.5rem;
}

.nn-apts__more .nn-btn {
  min-width: 160px;
}

.nn-apts__end {
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-size: .88rem;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .nn-apts__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .nn-apts__grid { grid-template-columns: repeat(3, 1fr); }
  .nn-apts__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .nn-apts { padding: 1.5rem 0 2.25rem; }
  .nn-apts__grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
}

@media (max-width: 420px) {
  .nn-apts__grid { grid-template-columns: 1fr; }
}
