/* ================= LATEST PROPERTIES SECTION ================= */

.properties-section {
  padding: 85px 0 95px;
  background: #ffffff;
}

.properties-container {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
}

.properties-header {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.properties-tag {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.properties-header h2 {
  color: #050505;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1.2px;
}

.properties-header p {
  max-width: 760px;
  margin: 24px auto 0;
  color: #3f3f46;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
}

.properties-top-actions {
  margin-top: 55px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.property-nav-btn {
  border: none;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.property-nav-btn:hover {
  color: var(--green);
}

/* Grid */
.properties-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

/* Card */
.property-card {
  background: #ffffff;
  overflow: hidden;
  transition: 0.28s ease;
}

.property-card:hover {
  transform: translateY(-6px);
}

.property-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
  background: #e5e7eb;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.45s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.06);
}

.property-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72),
    rgba(0, 0, 0, 0.05) 58%
  );
}

/* Badges */
.property-badges {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-badge {
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(8, 22, 59, 0.82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.property-badge.featured {
  background: var(--green);
}

.property-badge.open-house {
  background: rgba(0, 0, 0, 0.72);
}

/* Price and image actions */
.property-image-bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-price {
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.property-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(8, 22, 59, 0.62);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s ease;
  backdrop-filter: blur(8px);
}

.property-icon-btn:hover {
  background: var(--green);
  transform: translateY(-2px);
}

/* Body */
.property-body {
  padding: 22px 0 0;
}

.property-title {
  color: #050505;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-location {
  color: #7a7a7a;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 26px;
  margin-bottom: 12px;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.property-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.property-meta i {
  color: #111827;
  font-size: 15px;
}

.property-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.property-type {
  color: #050505;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.property-details-btn {
  min-height: 43px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  transition: 0.25s ease;
}

.property-details-btn:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.property-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(8, 22, 59, 0.13);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7a7a7a;
  font-size: 13px;
}

.property-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.property-footer i {
  color: #7a7a7a;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .properties-section {
    padding: 70px 0;
  }

  .properties-container {
    width: min(100% - 40px, 760px);
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .properties-top-actions {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .properties-container {
    width: min(100% - 32px, 480px);
  }

  .properties-tag {
    font-size: 14px;
    letter-spacing: 5px;
  }

  .properties-header h2 {
    font-size: 32px;
  }

  .properties-header p {
    font-size: 16px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .property-image {
    height: 240px;
  }
}