/* Property Card Styles */
.property-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  position: relative;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  height: 250px;
  background-color: var(--charcoal);
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.property-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--gold);
  color: var(--black);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  z-index: 1;
}

.property-tag.sold-tag {
  background-color: var(--red);
  color: var(--white);
}

.property-details {
  padding: 1.5rem;
}

.property-details h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--black);
}

.property-price {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.property-address {
  color: var(--charcoal);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.property-features span {
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.property-features i {
  color: var(--gold);
  margin-right: 0.5rem;
}

.property-card.sold .property-price {
  color: var(--red);
}

/* Property Grid Layout */
.property-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 576px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Featured Property Card */
.property-card.featured {
  border: 2px solid var(--gold);
}

.property-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 50px 50px 0 0;
  border-color: var(--gold) transparent transparent transparent;
  z-index: 2;
}

.property-card.featured::after {
  content: '\f005'; /* Star icon */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 5px;
  left: 5px;
  color: var(--black);
  z-index: 3;
  font-size: 1rem;
}

/* Property Card Horizontal Layout */
.property-card-horizontal {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .property-card-horizontal {
    flex-direction: row;
    height: 220px;
  }
  
  .property-card-horizontal .property-image {
    width: 40%;
    height: 100%;
  }
  
  .property-card-horizontal .property-details {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Property Card Mini */
.property-card-mini {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

.property-card-mini .property-image-mini {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-right: 1rem;
}

.property-card-mini .property-image-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card-mini .property-details-mini {
  flex: 1;
}

.property-card-mini h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.property-card-mini .property-price-mini {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.property-card-mini .property-address-mini {
  font-size: 0.8rem;
  color: var(--charcoal);
}

/* Property Listing Page Specific Styles */
.property-filters {
  background-color: var(--cream);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 2rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
}

.filter-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.property-sorting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sort-options select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
}

.view-options button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
}

.view-options button.active {
  color: var(--gold);
}

/* Property Details Page Specific Styles */
.property-gallery {
  margin-bottom: 2rem;
}

.property-main-image {
  height: 400px;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.property-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.property-thumbnail {
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.property-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-fast);
}

.property-thumbnail:hover img {
  opacity: 0.8;
}

.property-info-section {
  margin-bottom: 2rem;
}

.property-amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .property-amenities {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amenity-item {
  display: flex;
  align-items: center;
}

.amenity-item i {
  color: var(--gold);
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.property-map {
  height: 300px;
  background-color: var(--cream);
  border-radius: var(--border-radius-md);
  margin-bottom: 2rem;
}

.property-agent-card {
  background-color: var(--cream);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .property-agent-card {
    flex-direction: row;
    text-align: left;
  }
}

.agent-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .agent-image {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
}

.agent-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info {
  flex: 1;
}

.agent-info h3 {
  margin-top: 0;
}

.agent-contact {
  margin-top: 1rem;
}

.agent-contact a {
  margin-right: 1rem;
}

/* Similar Properties Section */
.similar-properties {
  margin-top: 3rem;
}

.similar-properties h2 {
  margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .property-features {
    flex-direction: column;
  }
  
  .property-features span {
    margin-right: 0;
  }
  
  .property-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }
}
