* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e1e8ed;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
}

/* Hero Section & Gallery */
.hero {
  position: relative;
  background-color: var(--text-dark);
  overflow: hidden;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.nav-btn {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.nav-btn:hover {
  background: white;
  transform: scale(1.1);
}

.nav-btn svg {
  color: var(--text-dark);
}

.image-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  opacity: 0.7;
}

.thumbnail:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.thumbnail.active {
  opacity: 1;
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-content h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Property Header */
.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.property-title h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 1.1rem;
}

.address svg {
  flex-shrink: 0;
}

.price-tag {
  background: linear-gradient(135deg, var(--accent-color), #2980b9);
  color: white;
  padding: 20px 35px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.price {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.period {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.stat-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.stat-item svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.stat-info p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Section Title */
.section-title {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  border-radius: 2px;
}

/* Description Section */
.description-section {
  margin-bottom: 60px;
}

.description-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent-color);
}

.description-content p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.description-content p:last-child {
  margin-bottom: 0;
}

/* Features Section */
.features-section {
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-card {
  background: white;
  padding: 35px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 3px solid var(--accent-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-card svg {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Rental Details */
.rental-details {
  margin-bottom: 60px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.detail-item {
  padding: 20px;
  border-radius: 10px;
  background: var(--bg-light);
  transition: var(--transition);
}

.detail-item:hover {
  background: #e8f4f8;
}

.detail-item h3 {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 500;
}

.detail-item p {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 600;
}

.detail-item p.highlight {
  color: var(--accent-color);
  font-size: 1.5rem;
}

/* Location Section */
.location-section {
  margin-bottom: 60px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.location-item {
  padding: 20px;
  background: var(--bg-light);
  border-radius: 10px;
  border-left: 3px solid var(--accent-color);
  transition: var(--transition);
}

.location-item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}

.location-item strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Contact Section */
.contact-section {
  margin-bottom: 40px;
}

.contact-card {
  background: linear-gradient(135deg, var(--primary-color), #34495e);
  color: white;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.contact-card h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-card > p {
  font-size: 1.15rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
}

.contact-item svg {
  flex-shrink: 0;
}

.contact-item a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-color);
}

.cta-button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 18px 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.footer p {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .gallery-main {
    height: 400px;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .thumbnail {
    height: 80px;
  }

  .property-header {
    flex-direction: column;
  }

  .property-title h2 {
    font-size: 2rem;
  }

  .price {
    font-size: 2.5rem;
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .stat-item {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .description-content {
    padding: 25px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .details-grid {
    padding: 25px;
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 40px 25px;
  }

  .contact-card h2 {
    font-size: 2rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 20px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .gallery-main {
    height: 300px;
  }

  .container {
    padding: 40px 15px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > section {
  animation: fadeIn 0.6s ease-out;
}
