/* Property Card Component */
.property-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.property-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

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

.property-ref {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.property-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #3498db;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
}

.property-status.for-sale {
  background-color: #2ecc71;
}

.property-status.for-rent-short {
  background-color: #e74c3c;
}

.property-status.for-rent-long {
  background-color: #f39c12;
}

.property-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.property-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 5px;
}

.property-rental-price {
  margin-bottom: 10px;
}

.property-price-period {
  font-size: 0.85rem;
  font-weight: normal;
  color: #555;
  margin: 0;
  margin-top: -3px;
}

.property-price-note {
  font-size: 0.8rem;
  font-style: italic;
  color: #777;
  margin: 0;
}

.property-location {
  color: #7f8c8d;
  margin-bottom: 12px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-features {
  display: flex;
  justify-content: space-between;
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.feature {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #555;
}

.icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  text-align: center;
  line-height: 20px;
}

/* These icons will now be styled using the secondary color from admin settings */
.bed-icon,
.bath-icon,
.area-icon {
  color: var(--property-secondary-color, #2c3e50);
}

.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.property-tag {
  background-color: #f8f9fa;
  color: #555;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid #eee;
}

.tag-pool {
  background-color: #e3f2fd;
  color: #1976d2;
  border-color: #bbdefb;
}

.tag-garden {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-color: #c8e6c9;
}

.tag-parking {
  background-color: #fff3e0;
  color: #e65100;
  border-color: #ffe0b2;
}

.view-details {
  background-color: var(--property-button-color, #3498db);
  color: var(--property-button-text-color, white);
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.property-card:hover .view-details {
  background-color: var(--property-button-hover-color, #2980b9);
}

/* List view styles */
.list-view .property-card {
  flex-direction: row;
  height: 180px;
}

.list-view .property-image {
  width: 260px;
  height: 100%;
  flex-shrink: 0;
}

.list-view .property-content {
  flex: 1;
}

/* Ensure consistent sizing in grid layouts */
.grid-view .property-card {
  height: 450px;
}

/* Carousel view styles */
.carousel-view .property-card {
  flex: 0 0 320px;
  height: 450px;
  margin-right: 15px;
}