/* Property Card Component */

/* Properties Section */
.properties {
  padding: var(--space-80) 0;
  background-color: #fff;
}

.properties__header {
  text-align: center;
  margin-bottom: var(--space-48);
}

.properties__title {
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.properties__subtitle {
  font-size: var(--fs-base);
  color: #666;
  line-height: var(--lh-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.properties__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-24);
}

/* Property Card */
.property-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.property-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.property-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-card__image img {
  transform: scale(1.05);
}

/* Image Placeholder */
.property-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.property-card__image-placeholder svg {
  width: 48px;
  height: 48px;
  color: #9ca3af;
  opacity: 0.7;
}

.property-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #fff;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-card__badge--sale {
  color: #dc2626;
}

.property-card__badge--rent {
  color: #2563eb;
}

/* Featured Badge */
.property-card__featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-card__featured-badge svg {
  width: 12px;
  height: 12px;
}

/* Featured card highlight */
.property-card--featured {
  border: 2px solid #f59e0b;
}

/* Property Card Link */
.property-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.property-card__link:hover {
  text-decoration: none;
  color: inherit;
}

.property-card__content {
  padding: 20px;
}

.property-card__price {
  font-size: 15px;
  color: #999;
  margin-bottom: 8px;
}

.property-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.property-card__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.property-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

.property-card__meta-icon {
  width: 18px;
  height: 18px;
  color: #999;
  flex-shrink: 0;
}

.property-card__meta-icon svg {
  width: 100%;
  height: 100%;
}

/* Properties Footer */
.properties__footer {
  text-align: center;
  margin-top: var(--space-40, 40px);
}

.properties__view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-dark-green, #166534);
  color: #fff;
  font-size: var(--fs-base, 16px);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md, 8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.properties__view-all:hover {
  background: var(--color-dark-green-hover, #14532d);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.properties__view-all svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px;
  max-height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.properties__view-all:hover svg {
  transform: translateX(4px);
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
  .properties__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-20);
  }
}

@media (max-width: 1024px) {
  .properties__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-20);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .properties {
    padding: var(--space-48) 0;
  }

  .properties__grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .properties__title {
    font-size: 1.5rem;
  }

  .property-card__title {
    font-size: 18px;
  }

  .property-card__meta {
    gap: 16px;
  }
}

