/* ── Properties summary bar ───────────────────────────────────────────────── */

.properties-summary {
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #eef5ff;
  border: 1px solid #c8d7ff;
  border-radius: 8px;
  color: #1a3a70;
  font-size: 14px;
  font-weight: 600;
}


/* ── Property card grid ───────────────────────────────────────────────────── */

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
}

/* li is a transparent wrapper — article is the actual grid item */
.image-gallery > li {
  display: contents;
}


/* ── Individual card ──────────────────────────────────────────────────────── */

.image-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.image-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}


/* ── Card photo ───────────────────────────────────────────────────────────── */

.image-item__photo {
  display: block;
  line-height: 0; /* removes gap below inline img */
}

.image-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}


/* ── Card body ────────────────────────────────────────────────────────────── */

.property-info-listing {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* ── Card title ───────────────────────────────────────────────────────────── */

.property-info-listing .property-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  max-width: none;
}

.property-info-listing .property-name a {
  color: #1a202c;
  text-decoration: none;
  font-size: 16px;
}

.property-info-listing .property-name a:hover {
  color: #0056b3;
}


/* ── Card definition list ─────────────────────────────────────────────────── */

.property-dl {
  margin: 0;
  font-size: 13px;
}

.property-dl dt {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #8c8f9c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.property-dl dt:first-child {
  margin-top: 0;
}

.property-dl dd {
  margin: 0;
  color: #1a202c;
  font-size: 14px;
}

.property-dl .property-price {
  color: #0f6fde;
  font-weight: 700;
  font-size: 15px;
}


/* ── Admin edit link ──────────────────────────────────────────────────────── */

.admin-actions {
  margin-bottom: 6px;
}

.admin-actions a {
  font-size: 12px;
  color: #999;
  text-decoration: underline;
  margin-right: 8px;
}


/* ── SEO text block ───────────────────────────────────────────────────────── */

.seo-text {
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}


/* ── Responsive ───────────────────────────────────────────────────────────── */

@media screen and (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }
}
