#properties-section {
  background: #f5f7fa;
}
#properties-section .section-title {
  margin: 0 auto 36px;
  max-width: 760px;
  text-align: center;
}
#properties-section .section-title h2 {
  color: #002e6e;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.12;
  margin-bottom: 10px;
}
#properties-section .section-title p {
  color: #526070 !important;
  font-size: 1rem;
}
#properties-section .property-grid {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#properties-section .property-card {
  background: #fff;
  border: 1px solid rgba(0, 46, 110, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(0, 30, 70, 0.1);
  display: flex;
  flex-direction: column;
  min-height: auto;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
#properties-section .property-card:hover {
  box-shadow: 0 24px 54px rgba(0, 30, 70, 0.16);
  transform: translateY(-5px);
}
#properties-section .img-container {
  background: #e9eef5;
  height: 238px;
  overflow: hidden;
  position: relative;
}
#properties-section .img-container::after {
  background:
    linear-gradient(180deg, rgba(0, 21, 50, 0.08) 0%, rgba(0, 21, 50, 0.2) 45%, rgba(0, 16, 38, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 21, 50, 0.22) 0%, rgba(0, 21, 50, 0) 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
#properties-section .img-container img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}
#properties-section .property-card:hover .img-container img {
  transform: scale(1.06);
}
#properties-section .tag {
  background:
    linear-gradient(135deg, rgba(var(--tag-rgb, 215, 164, 58), 0.9), rgba(var(--tag-rgb-dark, 138, 82, 0), 0.72)),
    rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 10px 24px rgba(0, 21, 50, 0.22);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  left: 16px;
  letter-spacing: 0;
  line-height: 1;
  padding: 9px 14px;
  position: absolute;
  text-transform: uppercase;
  top: 16px;
  z-index: 2;
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
#properties-section .tag-apartment { --tag-rgb: 214, 151, 42; --tag-rgb-dark: 132, 78, 8; }
#properties-section .tag-commercial,
#properties-section .tag-office { --tag-rgb: 123, 74, 226; --tag-rgb-dark: 62, 36, 128; }
#properties-section .tag-plot { --tag-rgb: 18, 132, 103; --tag-rgb-dark: 6, 86, 66; }
#properties-section .tag-land { --tag-rgb: 87, 123, 51; --tag-rgb-dark: 48, 82, 29; }
#properties-section .tag-villa { --tag-rgb: 168, 96, 36; --tag-rgb-dark: 111, 55, 20; }
#properties-section .tag-shop { --tag-rgb: 190, 91, 54; --tag-rgb-dark: 128, 47, 28; }
#properties-section .tag-rent { --tag-rgb: 12, 124, 158; --tag-rgb-dark: 5, 76, 103; }
#properties-section .tag-penthouse { --tag-rgb: 143, 85, 139; --tag-rgb-dark: 93, 45, 91; }
#properties-section .tag-property { --tag-rgb: 215, 164, 58; --tag-rgb-dark: 138, 82, 0; }
#properties-section .prop-price {
  background:
    linear-gradient(135deg, rgba(0, 61, 132, 0.92), rgba(0, 36, 84, 0.86)),
    rgba(0, 46, 110, 0.74);
  backdrop-filter: blur(12px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 21, 50, 0.24);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  padding: 11px 15px;
  position: absolute;
  right: 16px;
  z-index: 2;
  -webkit-backdrop-filter: blur(12px) saturate(145%);
}
#properties-section .property-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 22px;
}
#properties-section .property-content h3 {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: #071f3f;
  display: -webkit-box;
  font-size: 1.14rem;
  font-weight: 900;
  line-clamp: 1;
  line-height: 1.36;
  margin: 0 0 10px;
  max-height: 1.36em;
  overflow: hidden;
  text-overflow: ellipsis;
}
#properties-section .property-content .location {
  align-items: flex-start;
  color: #5f6f84;
  display: flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 8px;
  line-height: 1.45;
  margin: 0 0 18px;
  min-height: 1.45em;
  overflow: hidden;
  white-space: nowrap;
}
#properties-section .property-content .location i {
  color: #c06e05;
  flex: 0 0 auto;
  font-size: 1rem;
  margin-top: 2px;
}
#properties-section .property-content .specs {
  align-items: center;
  color: #253043;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 20px;
  min-height: 24px;
}
#properties-section .property-content .specs span {
  align-items: center;
  color: #22324a;
  display: flex;
  font-size: 0.94rem;
  font-weight: 700;
  gap: 5px;
  line-height: 1.25;
  min-width: 0;
  white-space: nowrap;
}
#properties-section .property-content .specs i {
  color: #c06e05;
  font-size: 0.9rem;
}
#properties-section .property-content .specs span + span::before {
  background: #7c8797;
  content: "";
  display: inline-block;
  height: 1.05em;
  margin: 0 8px;
  width: 1px;
}
#properties-section .view-btn {
  align-items: center;
  background: #002e6e;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin-top: 0;
  min-height: 44px;
  padding: 12px 18px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 100%;
}
#properties-section .view-btn:hover,
#properties-section .view-btn:focus-visible {
  background: #c06e05;
  color: #fff;
  transform: translateY(-1px);
}
#properties-section .view-all-section {
  display: flex;
  justify-content: center;
  margin-top: 34px;
  text-align: center;
}
@media (max-width: 1024px) {
  #properties-section .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  #properties-section .section-title {
    margin-bottom: 26px;
  }
  #properties-section .property-grid {
    gap: 22px;
    grid-template-columns: 1fr;
  }
  #properties-section .img-container {
    height: 215px;
  }
  #properties-section .property-content {
    padding: 20px;
  }
}