/* ==============================
   PROPERTIES SECTION STYLES
   ============================== */

.properties-section {
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600') center/cover no-repeat fixed;
  padding: 70px 0 60px;
  overflow: hidden;
  position: relative;
}

.properties-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 20, 35, 0.92), rgba(15, 42, 60, 0.88));
}

.properties-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.properties-header-left {
  text-align: center;
  flex: 1;
}

.properties-label {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  color: #c9a84c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.properties-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.properties-nav {
  display: flex;
  gap: 10px;
  position: absolute;
  right: 15px;
  top: 0;
  z-index: 2;
}

.properties-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.properties-nav button:hover {
  background: #c9a84c;
  border-color: #c9a84c;
}

.properties-slider-wrap {
  position: relative;
  z-index: 1;
}

.properties-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.properties-slider::-webkit-scrollbar {
  display: none;
}

/* ---- Card ---- */
.property-card {
  min-width: 340px;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

/* Image wrapper */
.property-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.property-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  pointer-events: none;
}

.property-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f0f0f0;
  transition: transform 0.5s ease;
}

.property-card:hover .property-card-img {
  transform: scale(1.05);
}

/* Type badge */
.property-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Price tag on image */
.property-price-tag {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  z-index: 3;
  letter-spacing: 0.3px;
}

.property-price-tag i {
  color: #c9a84c;
  margin-right: 2px;
  font-size: 12px;
}

/* Card body */
.property-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-location {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-location i {
  color: #c9a84c;
  font-size: 12px;
}

.property-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f2a3c;
  margin-bottom: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.property-spec {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8f8f8;
  padding: 4px 10px;
  border-radius: 6px;
}

.property-spec i {
  color: #c9a84c;
  font-size: 12px;
}

/* Card footer with price + button */
.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.property-price {
  font-size: 17px;
  font-weight: 800;
  color: #0f2a3c;
  letter-spacing: 0.2px;
}

.btn-view-details {
  display: inline-block;
  padding: 9px 22px;
  border: 1.5px solid #c9a84c;
  color: #c9a84c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-view-details:hover {
  background: #c9a84c;
  color: #fff;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.35);
}

@media (max-width: 767px) {
  .properties-section {
    padding: 50px 0 60px;
  }
  .properties-title {
    font-size: 26px;
  }
  .property-card {
    min-width: 290px;
    max-width: 290px;
  }
  .property-card-img {
    aspect-ratio: 16 / 10;
  }
  .properties-nav {
    position: static;
    justify-content: center;
    margin-top: 10px;
  }
  .properties-header {
    flex-direction: column;
  }
  .property-price {
    font-size: 15px;
  }
  .property-card-body {
    padding: 16px 18px 18px;
  }
}
