/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  font-display: swap;
}

/* Preload critical resources */
img {
  height: auto;
  max-width: 100%;
  transition: opacity 0.3s ease;
}

img[data-priority="high"] {
  opacity: 1;
}

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

/* Header Styles */
.header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo p {
  font-size: 1rem;
  opacity: 0.9;
}

.contact-info .hotline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Navigation Styles */
.navbar {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 20px 25px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #3498db;
  background-color: #f8f9fa;
}

/* Dropdown Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  text-transform: none;
  font-size: 0.85rem;
}

.dropdown-menu a:hover {
  background-color: #3498db;
  color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.search-box {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.search-box input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #333;
}

.search-box button {
  background: #3498db;
  border: none;
  padding: 15px 25px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background: #2980b9;
}

/* Main Content */
.main-content {
  padding: 60px 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Articles Section */
.articles-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
  text-align: center;
  position: relative;
}

.articles-section h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: #3498db;
  margin: 10px auto;
  border-radius: 2px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

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

.article-content {
  padding: 25px;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
}

.article-meta i {
  color: #3498db;
  margin-right: 5px;
}

.article-content h3 {
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-content h3 a {
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.article-content h3 a:hover {
  color: #3498db;
}

.article-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #2980b9;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  padding: 20px 0;
}

.page-btn {
  background: #fff;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-btn:hover:not(.disabled) {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.page-btn.active {
  background: #3498db;
  color: white;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

.page-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.prev-page,
.next-page {
  padding: 12px 20px;
  font-weight: 500;
}

/* Article Cards Animation */
.article-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.widget h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.widget h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #3498db;
  border-radius: 2px;
}

/* Search Widget */
.search-widget {
  display: flex;
  background: #f8f9fa;
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid #eee;
}

.search-widget input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  outline: none;
  background: transparent;
}

.search-widget button {
  background: #3498db;
  border: none;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-widget button:hover {
  background: #2980b9;
}

/* Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-post {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.popular-post .post-content h4 {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.popular-post .post-content h4 a {
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.popular-post .post-content h4 a:hover {
  color: #3498db;
}

.popular-post .post-content p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

/* Map Container */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}
.social-link > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;

  padding: 10px;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link.facebook {
  background: #3b5998;
}
.social-link.youtube {
  background: #ff0000;
}
.social-link.tiktok {
  background: #000;
}
.social-link.email {
  background: #e5edff;
}

/* Contact Info Widget */
.contact-info-widget {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #666;
}

.contact-item i {
  color: #3498db;
  width: 20px;
  text-align: center;
}

/* Loan Calculator Widget */
.loan-calculator {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.calculator-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calculator-input label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.calculator-input input {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.calculator-input input:focus {
  outline: none;
  border-color: #3498db;
}

.calculate-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.calculate-btn:hover {
  background: #2980b9;
}

.calculator-result {
  background: #e8f5e8;
  border: 2px solid #27ae60;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  display: none;
}

.calculator-result.show {
  display: block;
  animation: slideDown 0.5s ease-out;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #2c3e50;
}

.result-item:last-child {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.1rem;
  color: #27ae60;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: #3498db;
  font-size: 1.3rem;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #3498db;
}

.footer .social-links {
  margin-top: 20px;
}

.footer .contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer .contact-info i {
  color: #3498db;
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Slideshow Responsive */
  .slideshow-section {
    padding: 40px 0;
  }

  .slideshow-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .slide-content {
    flex-direction: column;
    min-height: auto;
  }

  .slide-image {
    height: 250px;
  }

  .slide-info {
    padding: 25px;
  }

  .slide-info h3 {
    font-size: 1.4rem;
  }

  .slide-info .price {
    font-size: 1.3rem;
  }

  .property-features {
    gap: 10px;
  }

  .property-features span {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .slide-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .slide-nav.prev {
    left: 10px;
  }

  .slide-nav.next {
    right: 10px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .article-card {
    margin-bottom: 20px;
  }

  .articles-section h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    height: 400px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .search-box {
    max-width: 90%;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .popular-post {
    flex-direction: column;
    gap: 10px;
  }

  .popular-post img {
    width: 100%;
    height: 150px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

/* Slideshow Styles */
.slideshow-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.slideshow-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 50px;
  position: relative;
}

.slideshow-section h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  margin: 15px auto;
  border-radius: 2px;
}

.slideshow-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.slideshow-container:hover {
  transform: translateY(-5px);
}

.slide {
  display: none;
  animation: slideIn 0.6s ease-in-out;
  position: relative;
}

.slide.active {
  display: block;
}

.slide-content {
  display: flex;
  min-height: 450px;
  position: relative;
}

.slide-image {
  flex: 1.2;
  overflow: hidden;
  position: relative;
}

.slide-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(52, 152, 219, 0.1),
    rgba(155, 89, 182, 0.1)
  );
  z-index: 1;
  transition: opacity 0.3s ease;
}

.slide-image:hover::before {
  opacity: 0;
}

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

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

.slide-info {
  flex: 1;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.slide-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #3498db, #2980b9);
}

.slide-info h3 {
  font-size: 1.9rem;
  color: #2c3e50;
  margin-bottom: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.slide-info .price {
  font-size: 1.6rem;
  color: #e74c3c;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.slide-info .location {
  color: #7f8c8d;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 500;
}

.slide-info .location i {
  color: #3498db;
  margin-right: 8px;
}

.slide-info .description {
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.property-features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.property-features span {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

.property-features span:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

.property-features i {
  color: white;
}

/* Enhanced Slide Navigation */
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.9),
    rgba(41, 128, 185, 0.9)
  );
  color: white;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.slide-nav:hover {
  background: linear-gradient(135deg, #3498db, #2980b9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.slide-nav.prev {
  left: 25px;
}

.slide-nav.next {
  right: 25px;
}

/* Enhanced Slide Indicators */
.slide-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.indicator.active,
.indicator:hover {
  background: #3498db;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

/* Progress Bar */
.slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 10;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2980b9);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

/* Slide Counter */
.slide-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(10px);
}

/* Thumbnail Navigation */
.slide-thumbnails {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.thumbnail {
  width: 60px;
  height: 40px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #3498db;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Play/Pause Button */
.play-pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.9),
    rgba(41, 128, 185, 0.9)
  );
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 15;
  opacity: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.play-pause-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.slideshow-container:hover .play-pause-btn {
  opacity: 1;
}

.play-pause-btn.paused {
  opacity: 0.9;
  background: linear-gradient(
    135deg,
    rgba(231, 76, 60, 0.9),
    rgba(192, 57, 43, 0.9)
  );
  animation: pulseGlow 2s infinite;
}

/* Autoplay status indicator */
.autoplay-status {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.autoplay-status.show {
  opacity: 1;
}

.autoplay-status.playing::before {
  content: "▶ ";
  color: #27ae60;
}

.autoplay-status.paused::before {
  content: "⏸ ";
  color: #e74c3c;
}

/* Slide Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.8),
      0 0 30px rgba(52, 152, 219, 0.6);
  }
}

/* Enhanced animations for slide content */
.slide.active .slide-info h3 {
  animation: slideInLeft 0.6s ease 0.2s both;
}

.slide.active .slide-info .price {
  animation: slideInLeft 0.6s ease 0.3s both;
}

.slide.active .slide-info .location {
  animation: slideInLeft 0.6s ease 0.4s both;
}

.slide.active .slide-info .description {
  animation: fadeIn 0.8s ease 0.5s both;
}

.slide.active .property-features {
  animation: slideInRight 0.6s ease 0.6s both;
}

/* Responsive Design Enhancements for Slideshow */
@media (max-width: 768px) {
  .slideshow-container {
    margin: 0 15px;
    border-radius: 15px;
  }

  .slide-content {
    flex-direction: column;
    min-height: auto;
  }

  .slide-image {
    height: 250px;
  }

  .slide-info {
    padding: 25px;
  }

  .slide-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .slide-info .price {
    font-size: 1.3rem;
  }

  .slide-info .description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .property-features {
    gap: 10px;
  }

  .property-features span {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .slide-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .slide-nav.prev {
    left: 15px;
  }

  .slide-nav.next {
    right: 15px;
  }

  .slide-indicators {
    bottom: 15px;
    padding: 8px 15px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .slide-thumbnails {
    display: none;
  }

  .slide-counter {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .play-pause-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .slideshow-section {
    padding: 40px 0;
  }

  .slideshow-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .slideshow-container {
    margin: 0 10px;
    border-radius: 12px;
  }

  .slide-info {
    padding: 20px;
  }

  .slide-info h3 {
    font-size: 1.3rem;
  }

  .slide-info .price {
    font-size: 1.2rem;
  }

  .property-features span {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* Touch/Swipe Indicators */
.slide-touch-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide-touch-indicator.left {
  left: 30px;
}

.slide-touch-indicator.right {
  right: 30px;
}

.slide-touch-indicator.show {
  opacity: 1;
}

/* Keyboard Navigation Hints */
.keyboard-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.slideshow-container:focus .keyboard-hint,
.slideshow-container:hover .keyboard-hint {
  opacity: 1;
}

/* Loading State */
.slide-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
}

.slide-loading::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid rgba(52, 152, 219, 0.3);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
