/**
 * Featured Property Hero Section
 * 
 * Provides styling for the featured property showcase on the homepage
 * Includes responsive design and smooth animations
 */

/* Main container */
.featured-property-hero {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--color-light-bg, #f8f9fa) 0%, var(--color-gray-100, #f1f3f5) 100%);
  overflow: hidden;
}

/* Dark mode styles */
[data-theme="dark"] .featured-property-hero {
  background: linear-gradient(135deg, var(--color-dark-bg-light, #0a0a0a) 0%, var(--color-dark-bg, #000000) 100%);
}

.featured-property-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.featured-property-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  position: relative;
}

/* Text content styling */
.featured-property-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

/* Badges */
.featured-badge, 
.for-sale-badge, 
.for-rent-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.featured-badge {
  background: linear-gradient(135deg, var(--accent-color, #d4af37) 0%, var(--accent-color-dark, #b49225) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.for-sale-badge {
  background: linear-gradient(135deg, var(--success-color, #2ecc71) 0%, #27ae60 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.for-rent-badge {
  background: linear-gradient(135deg, var(--info-color, #3498db) 0%, #2980b9 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Title and location */
.featured-property-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--color-text-primary, #333333);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .featured-property-title {
  color: var(--color-text-primary, #ffffff);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.featured-property-location {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary, #666666);
}

.featured-property-location i {
  color: var(--accent-color, #d4af37);
  margin-right: 0.5rem;
}

/* Property details */
.featured-property-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .detail-item {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

.detail-item i {
  color: var(--accent-color, #d4af37);
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Price */
.featured-property-price {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.featured-property-price .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-color, #d4af37);
  position: relative;
  display: inline-block;
}

.featured-property-price .price::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color, #d4af37);
  opacity: 0.5;
}

/* Description */
.featured-property-description {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #666666);
  max-width: 90%;
}

[data-theme="dark"] .featured-property-description {
  color: var(--color-text-secondary, #e0e0e0);
}

/* Action buttons */
.featured-property-actions {
  display: flex;
  gap: 1rem;
}

.btn-view-details {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color, #0c2340) 0%, var(--primary-color-dark, #0a1c32) 100%);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(12, 35, 64, 0.2);
}

.btn-view-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.3);
}

.btn-favorite {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #6c757d;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-favorite:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.btn-favorite i {
  font-size: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.btn-favorite.favorited i {
  color: #e5383b !important;
  transform: scale(1.1);
  animation: heart-pulse 1s infinite;
}

.btn-favorite:hover i {
  color: #e5383b;
  transform: scale(1.1);
}

.btn-favorite.favorited {
  color: #e5383b;
  background-color: rgba(255, 255, 255, 0.9);
}

@keyframes heart-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Property image */
.featured-property-image {
  flex: 1;
  position: relative;
  z-index: 1;
}

.featured-property-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg) translateZ(0);
  transition: all 0.5s ease;
  filter: brightness(1.02) contrast(1.05);
}

.featured-property-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-color, #d4af37) 0%, transparent 100%);
  opacity: 0.1;
  z-index: -1;
  transition: all 0.5s ease;
}

.featured-property-image:hover::before {
  transform: scale(1.02) translateY(-5px);
  opacity: 0.15;
}

.featured-property-image img:hover {
  transform: perspective(1000px) rotateY(0) translateZ(0);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .featured-property-image img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  filter: brightness(0.95) contrast(1.1);
}

/* Decorative elements */
.featured-property-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(var(--accent-color-rgb, 212, 175, 55), 0.05);
  z-index: 0;
}

.featured-property-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: rgba(var(--accent-color-rgb, 212, 175, 55), 0.05);
  z-index: 0;
}

/* Animation for content appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-property-text {
  animation: fadeInUp 1s ease-out;
}

.featured-property-image {
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Media queries for responsive design */
@media (max-width: 1024px) {
  .featured-property-title {
    font-size: 2rem;
  }
  
  .featured-property-price .price {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .featured-property-hero {
    padding: 4rem 0;
  }
  
  .featured-property-content {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  
  .featured-property-image img {
    transform: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .featured-property-title {
    font-size: 1.75rem;
  }
  
  .featured-property-details {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .featured-property-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-view-details, 
  .btn-favorite {
    width: 100%;
    justify-content: center;
  }
  
  .btn-favorite {
    height: auto;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-top: 0.5rem;
  }
  
  .featured-property-hero {
    padding: 3rem 0;
  }
} 