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

html {
  width: 100%;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  min-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: #fff;
  width: 100%;
}

.container {
  width: 100%;
  min-width: 100%;
  background: #fff;
  overflow-x: hidden;
  position: relative;
}

.main-content {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Seção esquerda - fundo teal */
.left-section {
  flex: 0 0 35%;
  min-width: 0;
  background: #8c8c8c;
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.left-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' opacity='0.08'%3E%3Cpath fill='%23fff' d='M0 200 Q50 150 100 200 T200 200 V0 H0 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

/* Faixa verde sobre o corte diagonal (borda do clip-path) */
.left-section::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -4px;
  bottom: -4px;
  width: 100px;
  background: #8c8c8c;
  transform: skewX(-6deg);
  transform-origin: top right;
  z-index: 2;
  pointer-events: none;
}

.nav {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
}

.nav a.active {
  padding-bottom: 4px;
  border-bottom: 2px solid #FFC23F;
}

.nav a:hover:not(.active) {
  opacity: 0.85;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  letter-spacing: 0.12em;
  font-size: 4.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.hero-title-viva {
  color: #FFC23F;
}

.hero-title-ferias {
  color: #E8DCC4;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  max-width: 320px;
}

.btn-read-more {
  display: inline-block;
  background: #FFC23F;
  color: #000;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn-read-more:hover {
  background: #e6ae38;
  box-shadow: 0 8px 20px rgba(255, 194, 63, 0.4);
}

/* Seção direita - imagem de fundo (carrossel via slide.js) */
.right-section {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 0;
  margin-left: -20px;
  background-color: #B0BAA4;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 100%);
}

.right-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: opacity 0.6s ease;
}

.right-section-bg.slide-fade-out {
  opacity: 0;
}

.right-section .search-bar,
.right-section .price-badge {
  z-index: 1;
}

.search-bar {
  position: absolute;
  top: 2.5rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-bar input {
  width: 180px;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 25px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.search-bar input::placeholder {
  color: #888;
}

.search-bar button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar button svg {
  width: 18px;
  height: 18px;
}

.price-badge {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #e87d35;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.price-badge .label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #333;
}

.price-badge .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

/* Rodapé fixo */
.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
}

.divider-line {
  height: 3px;
  background: #e87d35;
  width: 100%;
}

.features-section {
  display: flex;
  align-items: center;
  padding: 1rem 4rem;
  background: #fff;
  width: 100%;
  gap: 2rem;
}

.features-inner {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c8c8c;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #333;
  text-transform: uppercase;
  text-align: center;
  max-width: 100px;
  line-height: 1.2;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.footer-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #B0BAA4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.85;
}

.footer-social svg {
  width: 14px;
  height: 14px;
}

.right-section .price-badge {
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
}

/* Fundo mobile - carrossel de imagens (slide.js) */
.mobile-slide-bg {
  display: none;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  /* Carrossel de imagens no fundo - igual ao PC */
  .mobile-slide-bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: opacity 0.6s ease;
  }

  .mobile-slide-bg.slide-fade-out {
    opacity: 0;
  }

  body {
    background-color: #1a1a1a;
  }

  .container {
    min-height: 100vh;
    background: transparent;
    overflow: visible;
  }

  .main-content {
    flex-direction: column;
    min-height: auto;
    background: transparent;
    overflow: visible;
    padding-bottom: 140px;
  }

  /* Seção direita na home: filtro abaixo do botão, centralizado */
  .right-section:not(.right-section--casas) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1rem 1.5rem;
    margin-top: 1rem;
    margin-left: 0;
    background: transparent;
    clip-path: none;
  }

  .right-section:not(.right-section--casas) .right-section-bg,
  .right-section:not(.right-section--casas) .search-bar {
    display: none;
  }

  .right-section:not(.right-section--casas) .booking-widget {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    z-index: 10;
    box-sizing: border-box;
    overflow: visible;
  }

  /* Parte esquerda: overlay com conteúdo */
  .left-section {
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
    padding: 5rem 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Remove a faixa diagonal no mobile */
  .left-section::after {
    display: none;
  }

  .left-section::before {
    display: none;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
  }

  /* Menu fixo no topo no mobile */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    gap: 1.25rem;
    margin: 0;
    padding: max(1rem, env(safe-area-inset-top)) 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }

  .nav a {
    font-size: 0.7rem;
  }

  /* Footer compacto no mobile - apenas 3 itens */
  .features-inner .feature-item:nth-child(n+4) {
    display: none;
  }

  .features-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  .features-section {
    padding: 0.75rem 1rem;
  }

  .feature-item {
    flex: 0 0 auto;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
  }

  .feature-item span {
    font-size: 0.55rem;
  }

  .footer-social {
    margin-left: 0.5rem;
  }

  .footer-social a {
    width: 24px;
    height: 24px;
  }

  .divider-line {
    height: 2px;
  }
}
