

/* REMOVE SCROLL HORIZONTAL */
html, body {
    overflow-x: hidden;
}
/* ============================================================
   AF IMÓVEIS — CSS Personalizado
   Estilo: Elegante, moderno, com identidade imobiliária premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* ─── Variáveis de cor ─── */
:root {
  --primary:    #000;   /* Azul escuro institucional */
  --accent:     #c89b4f;   /* Dourado imobiliário       */
  --accent-light: #e8c97a;
  --bg-light:   #f7f5f0;   /* Fundo creme suave         */
  --text-dark:  #1e1e1e;
  --text-muted: #6b6b6b;
  --white:      #ffffff;
  --shadow:     0 4px 24px rgba(26,60,94,0.10);
  --radius:     10px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

/* ─── SLIDER PRINCIPAL — menor e elegante ─── */
#featured {
  margin: 0;
  padding: 0;
  background: var(--primary);
}

#main-slider {
  max-height: 420px;          /* ← Altura máxima controlada */
  overflow: hidden;
}

#main-slider .flexslider {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#main-slider ul.slides li img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;          /* Cobre sem distorcer       */
  object-position: center;
  display: block;
}

/* Overlay sutil no slider */
#main-slider ul.slides li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,60,94,0.15), rgba(26,60,94,0.40));
  pointer-events: none;
}

/* ─── CALLACTION / FAIXA DE CHAMADA ─── */
.callaction {
  background: linear-gradient(135deg, var(--primary) 0%, #25527a 100%);
  padding: 22px 0;
  border-bottom: 4px solid var(--accent);
}

.callaction .big-cta .cta-text h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.callaction .big-cta .cta-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ─── SEÇÃO DE CONTEÚDO / CARROSSÉIS ─── */
#content {
  padding: 40px 0 50px;
  background: var(--bg-light);
}

/* ─── BADGE LOCAÇÃO / VENDA ─── */
.box-yellow {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: inline-block;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(200,155,79,0.25);
}

/* ─── CARROSSEL DE IMÓVEIS ─── */
.carousel {
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid #e8e0d0;
}

.carousel-inner {
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

/* Imagem do imóvel */
.carousel-inner .item img,
.carousel-inner .item img.img400 {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.carousel-inner .item:hover img {
  transform: scale(1.03);
}

/* Caption do imóvel */
.carousel-caption {
   position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 0; /* 👈 remove o espaço interno */

  background: linear-gradient(to top, rgba(26,60,94,0.92), transparent);
  text-align: left;
}

.carousel-caption h9 {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  display: block;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Indicators do carrossel */
.carousel-indicators li {
  background-color: rgba(255,255,255,0.5);
  border-color: var(--accent);
  width: 10px;
  height: 10px;
}
.carousel-indicators .active {
  background-color: var(--accent);
  width: 12px;
  height: 12px;
}

/* Setas do carrossel */
.carousel-control {
  background: none !important;
  opacity: 0.8;
}
.carousel-control .glyphicon {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* Espaçamento entre os dois carrosséis */
.col-md-6 + .col-md-6 {
  padding-left: 20px;
}

/* ─── CURSOR POINTER NOS CARDS ─── */
.imbclick {
  cursor: pointer;
}

/* ─── MODAL DE DETALHES ─── */
#detalhes .modal-header {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}
#detalhes .modal-header h4 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
}
#detalhes .modal-header .close {
  color: var(--accent-light);
  opacity: 1;
  font-size: 22px;
}
#detalhes .modal-footer {
  background: #f0ece4;
  border-top: 1px solid #ddd;
}

/* ─── BOTÕES ─── */
.btn-default {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.25s;
}
.btn-default:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ─── SCROLL UP ─── */
.scrollup {
  background: var(--accent);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.scrollup:hover { background: var(--primary); }
.scrollup .fa { color: var(--white); font-size: 18px; }

/* ─── FOOTER ─── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 30px 0;
  border-top: 4px solid var(--accent);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
}
footer a { color: var(--accent-light); }
footer a:hover { color: var(--white); text-decoration: none; }

/* ─── LINHA DIVISÓRIA ─── */
#content hr {
  border-color: #ddd5c5;
  margin: 40px 0 0;
}

/* ─── RESPONSIVO ─── */
@media (max-width: 768px) {
  #main-slider,
  #main-slider ul.slides li img {
    max-height: 220px;
  }

  .carousel-inner .item img,
  .carousel-inner .item img.img400 {
    height: 200px;
  }

  .col-md-6 + .col-md-6 {
    padding-left: 15px;
    margin-top: 30px;
  }

  .callaction .big-cta .cta-text h2 {
    font-size: 18px;
  }

  .box-yellow {
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  #main-slider,
  #main-slider ul.slides li img {
    max-height: 160px;
  }
}