/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 20px;
  }

  .properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  /* Header mobile */
  .desktop-nav {
    display: none;
  }

  .mobile-menu-icon {
    display: block;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }

  .mobile-menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }

  .mobile-nav.active {
    right: 0;
  }

  .mobile-nav ul {
    list-style: none;
  }

  .mobile-nav ul li {
    border-bottom: 1px solid #eee;
  }

  .mobile-nav ul li a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .mobile-nav ul li a:hover {
    color: var(--primary-color);
  }

  .mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
  }

  /* Overlay quando menu está aberto */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Ajustes de layout */
  .about-content,
  .loc-grid,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .diferenciais-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Hero adjustments */
  .hero {
    height: 70vh;
  }

  .hero-content img {
    max-width: 300px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    min-width: 200px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Prevenir overflow horizontal */
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 16px;
  }

  /* Top bar adjustments */
  .top-bar-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .contact-right {
    justify-content: center;
  }

  /* Header adjustments */
  .header-content {
    padding: 15px 0;
  }

  .logo h1 {
    font-size: 20px;
  }

  /* Hero adjustments */
  .hero {
    height: 60vh;
  }

  .hero-content img {
    max-width: 250px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* Properties grid */
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Section titles */
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* Diferenciais grid */
  .diferenciais-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery carousel */
  .gallery-carousel .swiper-slide {
    height: 260px;
  }

  /* Footer adjustments */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .contact-info p {
    justify-content: center;
  }

  /* Tab navigation */
  .tab-nav .container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tab-link {
    padding: 8px 16px;
    font-size: 14px;
  }

  .tab-link:not(:last-child)::before {
    display: none;
  }

  /* Whatsapp float button */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

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

  .hero {
    height: 50vh;
  }

  .hero-content img {
    max-width: 200px;
  }

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

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

  .property-image {
    height: 200px;
  }

  .blog-image {
    height: 160px;
  }

  .card {
    padding: 20px;
  }

  .newsletter-form {
    max-width: 100%;
  }

  /* Carousel arrows */
  .carousel-arrows {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }
}

/* Fix for horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}