/* /assets/css/style.css ===================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
                 "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f8f9fa;
    color: #343a40;
}

.fs-6B {
    font-size: 0.8rem !important;
}
.fs-7 {
    font-size: 0.7rem !important;
}

.fs-8 {
    font-size: 0.6rem !important;
}
 
/* Collapse transitions */
#mobileMenu.collapse:not(.show) {
    transition: height .25s ease;
}

/* Hover shadow utility */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

/* Smooth transition utility */
.transition {
    transition: all 0.25s ease;
}


/* ==========================================================
   COLOR & THEME OVERRIDES
   ========================================================== */

.text-primary {
    color: #007bff !important;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    --bs-btn-hover-bg: #0056b3;
    --bs-btn-hover-border-color: #0056b3;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    --bs-btn-hover-bg: #007bff;
    --bs-btn-hover-color: #fff;
}

.btn-secondary-custom {
    background-color: #f5c542;
    border-color: #f5c542;
    color: #343a40;
    --bs-btn-hover-bg: #e0b33c;
    --bs-btn-hover-border-color: #e0b33c;
}

.bg-light-gradient {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}


/* ==========================================================
   NAVBAR / HEADER STYLES
   ========================================================== */

header a:hover {
    color: #000 !important;
    transition: 0.2s ease-in-out;
}
.navbar-brand .text-primary {
    color: #343a40 !important;
}

.navbar-brand .text-muted {
    color: #6c757d !important;
}


/* ==========================================================
   HERO (GENERIC)
   * Você pode substituir por HeroBlocks individuais via SECTION ID
   ========================================================== */
#hero-section  h2 {
    font-size: 2.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
  #hero-section  h2 {
      font-size: 1.6rem;
      font-weight: 600;
  }
}

/* ==========================================================
   FORM / INPUTS
   ========================================================== */

.input-group input.form-control {
    box-shadow: none !important;
}


/* ==========================================================
   CUSTOM COMPONENTS: CARDS (Imóveis, Blog, etc)
   ========================================================== */

.card {
    border: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================
   UNIFIED PROPERTY CARDS  (Catalog + Detalhes + Sugestões)
   ========================================================== */

/* Wrapper do card */
.property-card {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 .15rem .6rem rgba(0,0,0,0.05);
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .6rem 1rem rgba(0,0,0,0.10) !important;
}

/* Imagem */
.property-card .property-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* Versão horizontal (detalhes ou listagem) */
.property-card.horizontal {
    display: flex;
    gap: 1rem;
    padding: 10px;
}

.property-card.horizontal .property-img {
    width: 160px;
    height: 110px;
}

@media (max-width: 768px) {
    .property-card.horizontal {
        flex-direction: column;
    }

    .property-card.horizontal .property-img {
        width: 100%;
        height: 150px;
    }
}

/* Título */
.property-card h5 {
    font-size: 1rem;
    font-weight: 600;
}

/* Texto */
.property-card .text-muted.small {
    font-size: .82rem;
}

/* Preço */
.property-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
}

/* Ícones de características */
.property-features {
    font-size: .82rem;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Ícones */
.property-features i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Botão de detalhes */
.property-card .btn-details {
    margin-top: 10px;
    font-weight: 600;
    padding: 6px 14px;
    font-size: .85rem;
}


/* Cards list view */
.property-listing-item .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.property-listing-item img {
    height: 150px;
    object-fit: cover;
}

/* Blog cards */
.blog-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.blog-card .badge {
    background-color: #e9ecef !important;
    color: #007bff !important;
}


/* ==========================================================
   BADGES
   ========================================================== */

.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.property-card .badge,
.property-listing-item .badge {
    padding: 0.3em 0.6em;
    z-index: 10;
}

.property-card .badge.bg-warning {
    background-color: #f5c542 !important;
    color: #343a40 !important;
}

.property-card .badge.bg-success {
    background-color: #28a745 !important;
}

.property-card .badge.bg-primary {
    background-color: #007bff !important;
}


/* ==========================================================
   ICON CIRCLES
   ========================================================== */

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================== */

@media (max-width: 991.98px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .property-listing-item img {
        border-radius: .25rem .25rem 0 0 !important;
    }
}

@media (min-width: 992px) {
    .property-listing-item img {
        border-radius: .25rem 0 0 .25rem !important;
    }
}


/* ==========================================================
   BLOCKS ISOLADOS (sempre via SECTION ID)
   ========================================================== */

/* ===========================
   FILTER BAR (isolado)
   =========================== */

#filter-bar .form-control-lg,
#filter-bar .form-select-lg {
    height: 44px;
    background-color: #f8f9fa;
}

#filter-bar button.btn-lg {
    height: 44px;
}

#filter-bar .form-control:focus,
#filter-bar .form-select:focus {
    box-shadow: none !important;
    border-color: #0d6efd !important;
}

#filter-bar {
    background: #fff;
}
/* ===========================
   AD BANNER (isolado)
   =========================== */
.ad-banner {
    background-color: #f0f2f5;
}
.ad-banner .shadow-sm {
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.05) !important; /* suave */
}

.ad-banner .bg-white {
    background-color: #fff !important;
}

.ad-banner .ad-box {
    height: 96px;
}
/* ===========================
   FEATURED PROPERTIES (isolado)
   =========================== */

#featured-properties {
    background-color: #f8f9fa;
}

/* IMÓVEL PRINCIPAL */
#featured-properties .fp-main-card {
    height: 400px;
}

#featured-properties .fp-main-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

#featured-properties .fp-main-card:hover .fp-main-img {
    transform: scale(1.05);
}

/* CARDS LISTA */
#featured-properties .fp-card img {
    height: 200px;
    object-fit: cover;
}

#featured-properties .fp-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

#featured-properties .fp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,0.15) !important;
}
.fp-card h5 {
    min-height: 40px;              /* altura suficiente para 2 linhas */
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;         /* limite a 2 linhas */
    -webkit-box-orient: vertical;
}
/* ===========================
   ANNOUNCE CTA (Ajustado)
   =========================== */

/* Reduz todo o bloco */
#announce-cta .announce-box {
  background: linear-gradient(135deg, rgba(0,123,255,0.06), rgba(255,193,7,0.06));
  padding: 2rem !important;
}

/* Texto da esquerda menor */
#announce-cta h2 {
  font-size: 1.9rem !important;
}

#announce-cta h5 {
  font-size: 0.8rem !important;
}

#announce-cta p {
  font-size: 0.95rem;
}

/* Botão reduzido */
#announce-cta .announce-btn {
  height: 48px;
  padding: 0 32px;
  font-size: 1rem;
}

/* Cards menores */
#announce-cta .announce-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}

#announce-cta .announce-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1.1rem rgba(0,0,0,.12);
}

/* Ícone menor */
#announce-cta .benefit-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(0,123,255,0.10);
  border-radius: 50%;
}

#announce-cta .benefit-icon i {
  font-size: 1.25rem !important;
}

/* Garantir 3 cards sem quebrar */
#announce-cta .col-md-6 .row > .col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

/* ===========================
   PROPERTIES FOR SALE + RENT
   =========================== */

/* Card wrapper */
/* CARD PADRÃO (catalogo + sugestões do detalhes) */
.property-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 16px;
  box-shadow: 0 .15rem .45rem rgba(0,0,0,.08);
  transition: .2s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .45rem .9rem rgba(0,0,0,.12);
}

.property-img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .property-card {
    flex-direction: column;
  }
  .property-img {
    width: 100%;
    height: 180px;
  }
}

.property-price {
  color: #0d6efd;
  font-size: 1.15rem;
  font-weight: 700;
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-details {
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
}

/* ===========================
   MAP SECTION (REAL MAP)
   =========================== */

#map-section .map-wrapper {
  height: 500px; /* Altura do mapa, ajuste conforme necessário */
  width: 100%;
  position: relative; /* FUNDAMENTAL para que o overlay seja posicionado corretamente */
  border-radius: 8px; /* Mantém o arredondamento */
  overflow: hidden; /* Garante que nada transborde */
  box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1); /* Sombra que você já tinha */
  transition: .25s ease;
}
@media (max-width: 768px) {
  #map-section .map-wrapper {
    height: 250px; 
  }
}
#map-section .map-wrapper:hover { /* Sombra no hover que você já tinha */
  box-shadow: 0 .75rem 1.25rem rgba(0,0,0,0.15);
}

#real-map {
  width: 100%;
  height: 100%; /* Ocupa toda a altura do map-wrapper */
  z-index: 0; /* Garante que o mapa esteja na camada de baixo */
}

/* Gradiente no rodapé */
#map-section .map-overlay {
  position: absolute;
  inset: 0; /* Equivalente a top:0; right:0; bottom:0; left:0; */
  background: linear-gradient(
    to top,
    rgba(248, 249, 250, 0.85), /* Seu gradiente */
    rgba(248, 249, 250, 0)
  );
  /* REMOVA A PROPRIEDADE `pointer-events: none;` AQUI! */
  /* Ela será aplicada apenas quando o overlay estiver oculto pela classe .hidden */
  z-index: 10; /* Garante que o overlay esteja acima do mapa quando visível */
  
  /* Propriedades para centralizar o botão */
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Alinha o botão na parte inferior */
  padding-bottom: 20px; /* Espaçamento para o botão */
  
  transition: opacity 0.3s ease; /* Animação suave para quando for ocultado */
}

/* Esta classe será adicionada via JavaScript quando o botão for clicado */
#map-section .map-overlay.hidden {
  opacity: 0;
  pointer-events: none; /* AQUI sim, você aplica o `pointer-events: none;` */
}

/* O botão dentro do overlay deve sempre ser clicável */
#map-section .map-overlay button {
  pointer-events: all; /* Garante que o botão seja clicável, mesmo que o pai tenha pointer-events: none (o que não será o caso inicialmente) */
}

/* Correção para ícones padrão do Leaflet (já estava no seu CSS, manter) */
.leaflet-default-icon-path {
    background-image: url('https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png');
}
.leaflet-default-icon-path.leaflet-marker-icon {
    background-image: url('https://unpkg.com/leaflet@1.9.4/dist/images/marker-icon.png');
}
.leaflet-default-icon-path.leaflet-marker-shadow {
    background-image: url('https://unpkg.com/leaflet@1.9.4/dist/images/marker-shadow.png');
}

/* Sombra */
#map-section .map-wrapper {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,0.1);
  transition: .25s ease;
}

#map-section .map-wrapper:hover {
  box-shadow: 0 .75rem 1.25rem rgba(0,0,0,0.15);
}

/* ===========================
   BROKER SECTION (isolado)
   =========================== */

#broker-section {
  background:#f0f2f5;
}


/* Cards */
#broker-section .broker-card {
  background: #fff;
  border-radius: 16px;
  transition: .25s ease;
}

#broker-section .broker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 1.25rem rgba(0,0,0,0.12) !important;
}

/* Ícones circulares */
#broker-section .broker-icon {
  width: 35px;
  height: 35px;
  background: rgba(0,123,255,0.10);
}

/* ===========================
   BLOG SECTION (isolado)
   =========================== */

#blog-section {
  background-color: #f8f9fa;
}

/* CARD */
#blog-section .blog-card {
  background: #fff;
  transition: .25s ease;
}

#blog-section .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .6rem 1rem rgba(0,0,0,0.12) !important;
}

/* IMAGE */
#blog-section .blog-img-wrapper {
  height: 220px;
  overflow: hidden;
}

#blog-section .blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

#blog-section .blog-card:hover .blog-img {
  transform: scale(1.06);
}

/* CATEGORY BADGE */
#blog-section .blog-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .35rem .75rem;
  background: #007bff;
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
}

/* TITLE */
#blog-section .blog-title {
  transition: .25s ease;
}

#blog-section .blog-card:hover .blog-title {
  color: #007bff;
}

/* READ MORE BUTTON */
#blog-section .blog-readmore {
  border: none;
  background: transparent;
  color: #007bff;
  font-weight: 600;
  font-size: .9rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  transition: .25s ease;
}

#blog-section .blog-readmore:hover {
  gap: .4rem;
}

#blog-section .blog-readmore i {
  transition: transform .25s ease;
}

#blog-section .blog-readmore:hover i {
  transform: translateX(4px);
}
/* ===========================
   FOOTER (Ajustado)
   =========================== */

#main-footer {
  background: #f3f4f6 !important; /* bg bem suave, cinza claro */
}

/* Logo */
#main-footer .footer-logo {
  width: 110px;
  height: auto;
  border-radius: 8px;
}

/* Títulos das colunas */
#main-footer .footer-title {
  font-size: 0.8rem!important;
  font-weight: 200;
  color: #332b2f; /* contraste mais forte */
}

@media (max-width: 768px) {
  #main-footer .footer-logo {
    width: 250px;
    height: auto;
  }

  #main-footer .footer-title {
    font-size: 0.9rem!important;
  }
}


/* Texto geral */
#main-footer .text-footer {
  font-size: .9rem;
  color: #4a4f55; /* cinza escuro para contraste */
}

/* Links */
#main-footer .footer-links a {
  color: #4a4f55;
  font-size: .9rem;
  text-decoration: none;
  transition: .2s ease;
}

#main-footer .footer-links a:hover {
  color: #007bff;
}

/* Social icons */
#main-footer .footer-icon {
  font-size: 1.3rem;
  color: #4a4f55;
  transition: .2s ease;
}

#main-footer .footer-icon:hover {
  color: #007bff;
}

/* Bottom text */
#main-footer .border-top {
  border-color: #d7d8da !important;
}

/* ============================================
   CARD X — DESKTOP
   ============================================ */

.cardX {
    background:#fff;
    border-radius:12px;
    display:flex;
    gap:16px;
    padding:14px;
    border:1px solid rgba(0,0,0,0.05);
    box-shadow:0 .15rem .45rem rgba(0,0,0,0.08);
    height: 225px!important; /* ajuste ideal depende do seu layout */
}

/* thumbnail fixa no desktop */
.cardX-desktop .cardX-thumb {
    width:130px !important;
    height:150px !important;
    border-radius:12px;
    overflow:hidden;
    flex-shrink:0;
}

.cardX-desktop .cardX-thumb img {
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
    display:block !important;
}

/* ============================================
   CARD X — MOBILE (<768px)
   ============================================ */
@media (max-width: 767.98px) {
  .cardX-mobile {
      flex-direction:column !important;
      padding:12px !important;
      min-height: 440px!important; /* ajuste ideal depende do seu layout */

  }

  /* thumbnail 16:9 perfeita */
  .cardX-mobile .cardX-thumb {
      width:100% !important;
      height:100% !important;
      aspect-ratio:16/9 !important;
      border-radius:12px;
      overflow:hidden;
  }

  .cardX-mobile .cardX-thumb img {
      width:100% !important;
      height:100% !important;
      object-fit:cover !important;
      object-position:center !important;
      display:block !important;
  }

  .cardX-location {
    font-size: .9rem!important;
  }
  .cardX-price {
      font-size: 1.52rem!important;
      margin-bottom: 0!important;
  }
  .price-prom{ 
      font-size: .8rem;
  }

  .cardX-features span {
      font-size: .6rem;
  }.cardX-features i {
      font-size: .8rem;
  }
}

/* ==========================================================
   TEXTOS (compartilhado desktop/mobile)
   ========================================================== */

.cardX-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.25;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2; 
      line-clamp: 2;
      overflow: hidden;
      min-height: 40px; /* mantém espaço fixo */
}

.cardX-location {
    font-size: .6rem;
    color: #6c757d;
    margin-bottom: 6px;
}
.cardX-location i {
    color: #0d6efd;
    margin-right: 4px;
}

.cardX-price {
    font-size: 1rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 8px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2; 
      line-clamp: 2;
      overflow: hidden;
      min-height: 40px; /* mantém espaço fixo */
}
.price-prom{ 
    font-size: .8rem;
    color: #adadad;
    text-decoration: line-through;
}

.cardX-features span {
    font-size: .6rem;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}.cardX-features i {
    font-size: .8rem;
}

/* ============================================
   CARD Y — DESKTOP
   ============================================ */

.cardY {
    background:#fff;
    border-radius:12px;
    display:flex;
    gap:16px;
    padding:14px;
    border:1px solid rgba(0,0,0,0.05);
    box-shadow:0 .15rem .45rem rgba(0,0,0,0.08);
}
@media (min-width: 768px) {
  .cardY-desktop {
    min-height: 450px!important; /* ajuste ideal depende do seu layout */
  }
}

/* thumbnail fixa no desktop */
.cardY-desktop .cardY-thumb {
    width: 100%;
    height: 180px; /* ajuste se quiser */
    border-radius:12px;
    overflow:hidden;
    flex-shrink:0;
}

.cardY-desktop .cardY-thumb img {
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
    display:block !important;
}
.cardY-info {
  min-height: 170px!important; /* ajuste ideal depende do seu layout */
}

/* badges fixas */
.cardY-badge-top {
    position:absolute;
    top:6px;
    left:6px;
    font-size:0.65rem;
    padding:3px 6px;
}
.cardY-badge-bottom {
    position:absolute;
    bottom:6px;
    left:6px;
    font-size:0.65rem;
    padding:3px 6px;
}

/* ==========================================================
   TEXTOS (compartilhado desktop/mobile)
   ========================================================== */

.cardY-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.25;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2; 
      line-clamp: 2;
      overflow: hidden;
      min-height: 40px; /* mantém espaço fixo */
}

.cardY-location {
    font-size: .7rem;
    color: #6c757d;
    margin-bottom: 6px;
}
.cardY-location i {
    color: #0d6efd;
    margin-right: 4px;
}

.cardY-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 8px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2; 
      line-clamp: 2;
      overflow: hidden;
      min-height: 40px; /* mantém espaço fixo */
}

.cardY-features span {
    font-size: .9rem;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-col {
  margin-left: 2rem!important;
}
@media (max-width: 768px)  {
  .footer-col { 
    margin-left: 0!important;
  }
}

