/* ==========================================================================
   RESET & CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   1. CABEÇALHO (HEADER & NAVBAR) - FLEXBOX
   ========================================================================== */
.topbar {
  background-color: #1a252f;
  color: #ecf0f1;
  padding: 8px 0;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-info, .topbar-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-info a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bdc3c7;
  transition: color 0.2s;
}

.topbar-info a:hover, .topbar-social a:hover {
  color: #27ae60;
}

.topbar-social a {
  align-items: center;
  display: inline-flex;
  font-size: 1.55rem;
  height: 26px;
  justify-content: center;
  line-height: 1;
  width: 26px;
}

.topbar-social a[aria-label="Facebook oficial"] {
  color: #1877f2;
}

.topbar-social a[aria-label="Instagram oficial"] {
  color: #e4405f;
}

.topbar-social a[aria-label="Facebook oficial"]:hover,
.topbar-social a[aria-label="Instagram oficial"]:hover {
  filter: brightness(0.85);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  display: block;
  width: 220px;
  height: 118px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: #2c3e50;
  padding: 22px 18px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: #27ae60;
}

/* Dropdown Menus */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  padding: 8px 0;
}

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

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: #4a5568;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background-color: #f1f5f9;
  color: #27ae60;
}

/* ==========================================================================
   2. HERO & FORMULÁRIO DE BUSCA - FLEXBOX & GRID
   ========================================================================== */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), 
              url('https://cdn2.uso.com.br/sites/logos/31625_fundosite.jpg') center/cover no-repeat;
  padding: 80px 0 100px 0;
  color: #ffffff;
  text-align: center;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 35px;
}

.search-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  color: #333;
  max-width: 1100px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.search-tab {
  padding: 8px 20px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  background-color: #f1f5f9;
  color: #64748b;
  transition: all 0.2s;
}

.search-tab.active, .search-tab:hover {
  background-color: #27ae60;
  color: #ffffff;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #27ae60;
  background-color: #ffffff;
}

.btn-search {
  grid-column: 1 / -1;
  background-color: #27ae60;
  color: #ffffff;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.btn-search:hover {
  background-color: #219653;
}

/* ==========================================================================
   3. VITRINE DE IMÓVEIS & EMPREENDIMENTOS - CSS GRID
   ========================================================================== */
.section-padding {
  padding: 60px 0;
}

.section-title {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 700;
}

.section-subtitle {
  color: #64748b;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 25px;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #27ae60;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.card-location {
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 15px;
}

.card-features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: auto;
  font-size: 0.82rem;
  color: #475569;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-details {
  display: block;
  text-align: center;
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-details:hover {
  background-color: #27ae60;
  color: #ffffff;
}

/* ==========================================================================
   4. SERVIÇOS
   ========================================================================== */
.bg-light {
  background-color: #f1f5f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.service-icon {
  font-size: 2.5rem;
  color: #27ae60;
  margin-bottom: 12px;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ==========================================================================
   5. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 20px 0;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

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

.footer-col a:hover {
  color: #27ae60;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   NOVO: BOTÃO WHATSAPP E MENU MOBILE (Fora do media query)
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #2c3e50;
  cursor: pointer;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 90px;
  bottom: 25px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 996;
}

.back-to-top.visible {
  display: flex;
}

.support-trigger {
  position: fixed;
  right: 25px;
  bottom: 100px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #1d8f4f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(39, 174, 96, 0.35);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 995;
}

.support-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.support-modal.open {
  display: flex;
}

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.support-modal-panel {
  position: relative;
  width: min(92vw, 480px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  padding: 28px 24px 20px;
  z-index: 1;
}

.support-modal-panel h3 {
  margin-bottom: 18px;
  font-size: 1.8rem;
  color: #1e293b;
}

.support-modal-panel label {
  display: block;
  margin-bottom: 16px;
  color: #475569;
  font-weight: 600;
}

.support-modal-panel input,
.support-modal-panel textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  font: inherit;
  background: #fff;
}

.support-modal-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.support-modal-close {
  position: absolute;
  right: 16px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
}

.support-submit {
  width: 100%;
  margin-top: 8px;
  border: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-copy p {
  margin-bottom: 16px;
  color: #475569;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #27ae60;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.about-card {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.about-card h3,
.hours-list h4 {
  margin-bottom: 12px;
  color: #1e293b;
}

.cta-location {
  margin-top: 14px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 14px 16px;
  color: #1e293b;
  font-weight: 600;
}

.hours-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  padding: 4px 0;
  color: #475569;
}

.footer-social-list li a {
  color: #e2e8f0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   6. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .topbar-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

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

  .search-box {
    padding: 16px;
  }

  /* Faz o botão do menu aparecer */
  .mobile-menu-btn {
    display: block;
  }

  /* Ajusta o menu para telas pequenas */
  .nav-menu {
    display: none; /* Escondido por padrão */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
  }

  /* Classe que será ativada pelo JavaScript para mostrar o menu */
  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
  }

  /* Dropdown no mobile */
  .dropdown {
    position: static;
    box-shadow: none;
    background-color: #f8fafc;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
  }

  .nav-item:hover .dropdown {
    display: block;
  }
}

/* ==========================================================================
   PÁGINA INTERNA DO IMÓVEL (imovel.html)
   ========================================================================== */
.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.property-title {
  font-size: 2rem;
  color: #1e293b;
  margin: 8px 0;
}

.price-period {
  font-size: 1rem;
  color: #64748b;
  font-weight: 400;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 40px;
}

.gallery-main img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border 0.2s;
}

.thumb:hover, .thumb.active {
  opacity: 1;
  border: 3px solid #27ae60;
}

/* Layout do Conteúdo e Sidebar */
.property-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.property-details h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin: 30px 0 15px 0;
}

.features-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
}

.feature-card i {
  font-size: 1.5rem;
  color: #27ae60;
  display: block;
  margin-bottom: 5px;
}

.costs-list {
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #27ae60;
}

.costs-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.description-text {
  color: #475569;
  line-height: 1.8;
}

/* Sidebar de Contato */
.contact-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 100px;
}

.contact-card h3 {
  margin-bottom: 10px;
}

.btn-whatsapp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  margin-top: 15px;
  transition: background-color 0.2s;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
}

.divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.sidebar-form h4 {
  margin-bottom: 12px;
}

.sidebar-form .form-control {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .property-content-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: #64748b;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #27ae60;
}

.breadcrumb i {
  font-size: 1rem;
}

.breadcrumb-separator {
  color: #cbd5e1;
  pointer-events: none;
}

.breadcrumb-current {
  color: #1e293b;
  font-weight: 600;
}

/* ==========================================================================
   LIGHTBOX / GALERIA MODAL
   ========================================================================== */
.lightbox {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  inset: 0;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

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

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-content img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox:not([open]) {
  display: none;
}

/* ==========================================================================
   GALERIA - THUMBNAILS RESPONSIVAS
   ========================================================================== */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.thumb:hover, .thumb.active {
  opacity: 1;
  border-color: #27ae60;
  transform: scale(1.02);
}

.thumb:focus-visible {
  outline: 3px solid #27ae60;
  outline-offset: 2px;
}

.gallery-main img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-main img:hover {
  transform: scale(1.01);
}

.gallery-photo-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-top: 10px;
}

/* ==========================================================================
   DESCRIÇÃO EXPANSÍVEL
   ========================================================================== */
.description-text {
  color: #475569;
  line-height: 1.8;
}

.description-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  background: none;
  border: none;
  color: #27ae60;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  transition: color 0.2s;
}

.btn-read-more:hover {
  color: #219653;
}

/* ==========================================================================
   PÁGINA DE CONTATO (contato.html)
   ========================================================================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.contact-info-card, .contact-form-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info-card h3, .contact-form-card h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 15px;
}

.contact-list {
  margin-top: 25px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #475569;
}

.contact-list i {
  font-size: 1.5rem;
  color: #27ae60;
  margin-top: 3px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 850px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PÁGINA CADASTRE SEU IMÓVEL (cadastrar-imovel.html)
   ========================================================================== */
.text-center {
  text-align: center;
}

.form-container-card {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.property-submit-form h3 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 15px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-grid-2 .full-width {
  grid-column: 1 / -1;
}

.form-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 25px 0;
}

.btn-large {
  font-size: 1.1rem;
  padding: 16px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .form-container-card {
    padding: 20px;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FORMULÁRIO DE BUSCA (CSS GRID + FLEXBOX)
   ========================================================================== */

/* Abas (Comprar, Alugar, Permuta) usando Flexbox */
.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-tab {
  padding: 8px 18px;
  background-color: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.search-tab:hover {
  background-color: #dbe4ee;
}

.search-tab.active {
  background-color: #27ae60;
  color: #fff;
}

.search-tab:focus-visible {
  outline: 3px solid #1a7a3f;
  outline-offset: 2px;
}

/* Form organizado com CSS GRID */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  align-items: flex-end; /* Mantém o botão alinhado com a base dos inputs */
}

/* Cada grupo de campo usando Flexbox */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-box .form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #ffffff;
}

/* Botão centralizado com Flexbox */
.btn-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background-color: #27ae60;
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-search:hover {
  background-color: #219150;
}

/* Responsividade para telas de celular */
@media (max-width: 600px) {
  .search-grid {
    grid-template-columns: 1fr; /* Transforma em 1 coluna em telas pequenas */
  }
}

/* ==========================================================================
   GRADE DE IMÓVEIS (CSS GRID + FLEXBOX)
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #27ae60;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #475569;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-details {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.btn-details:hover {
  background-color: #27ae60;
  color: #ffffff;
}

/* ==========================================================================
   SERVIÇOS ESPECIALIZADOS (CSS GRID + FLEXBOX)
   ========================================================================== */

.bg-light {
  background-color: #f8fafc;
}

.section-padding {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #ffffff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.5rem;
  color: #27ae60;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.service-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   CARROSSEL DE LOCAÇÃO (Spotlight - Card central + laterais + profundidade)
   ========================================================================== */
.spotlight-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 40px;
  overflow: hidden;
}

.spotlight-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.spotlight-card {
  flex: 0 0 auto;
  width: 280px;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Card central em destaque */
.spotlight-card.spotlight-current {
  width: 380px;
  z-index: 10;
  transform: scale(1.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card à direita (próximo) */
.spotlight-card.spotlight-right {
  width: 260px;
  opacity: 0.7;
  z-index: 5;
  transform: scale(0.9) translateX(20px);
}

/* Card à esquerda (anterior) */
.spotlight-card.spotlight-left {
  width: 260px;
  opacity: 0.7;
  z-index: 5;
  transform: scale(0.9) translateX(-20px);
}

/* Cards escondidos (além dos laterais) */
.spotlight-card.spotlight-hidden {
  display: none;
}

.carousel-control {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #2c3e50;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 20;
}

.carousel-control:hover {
  background: #27ae60;
  color: #ffffff;
  transform: scale(1.1);
}

.carousel-control:focus-visible {
  outline: 3px solid #27ae60;
  outline-offset: 2px;
}

.carousel-status {
  text-align: center;
  color: #64748b;
  padding: 40px;
}

/* ==========================================================================
   CARROSSEL DE VENDAS (Visual diferente - cards lado a lado, scroll horizontal)
   ========================================================================== */
.sales-carousel {
  position: relative;
}

.sales-viewport {
  overflow: hidden;
  padding: 10px 0 20px;
}

.sales-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  /* CSS custom properties para controle via JS */
  --sales-index: 0;
  --sales-visible: 3;
}

.sales-card {
  flex: 0 0 calc((100% - (var(--sales-visible) - 1) * 24px) / var(--sales-visible));
  min-width: 280px;
  max-width: 340px;
}

.sales-carousel-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.sales-control {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #2c3e50;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sales-control:hover {
  background: #27ae60;
  border-color: #27ae60;
  color: #ffffff;
}

.sales-control:focus-visible {
  outline: 3px solid #27ae60;
  outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVIDADE DOS CARROSSEIS
   ========================================================================== */
@media (max-width: 1024px) {
  .spotlight-card.spotlight-current {
    width: 340px;
  }
  .spotlight-card.spotlight-right,
  .spotlight-card.spotlight-left {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .spotlight-carousel {
    padding: 20px 20px;
    gap: 12px;
  }

  .spotlight-track {
    gap: 16px;
  }

  .spotlight-card.spotlight-current {
    width: 300px;
    transform: scale(1.1);
  }

  .spotlight-card.spotlight-right,
  .spotlight-card.spotlight-left {
    width: 220px;
    opacity: 0.6;
    transform: scale(0.85);
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .sales-carousel-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .spotlight-card.spotlight-current {
    width: 280px;
    transform: scale(1);
  }

  .spotlight-card.spotlight-right,
  .spotlight-card.spotlight-left {
    display: none;
  }

  .spotlight-track {
    justify-content: center;
  }
}

.favorite-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid #d5dce5;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 7px;
  margin: 10px 0;
  padding: 8px 11px;
}

.favorite-toggle:hover,
.favorite-toggle.is-favorite {
  border-color: #c2415a;
  color: #c2415a;
}

.map-preview-panel,
.property-map-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 18px 0;
  padding: 16px;
}

.map-preview-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.map-preview-heading h3,
.property-map-section h3 {
  color: #1e293b;
  margin: 0 0 5px;
}

.map-preview-heading p {
  color: #64748b;
  margin: 0;
}

.map-status {
  color: #64748b;
  margin: 12px 0;
}

.map-status.is-loading { color: #a16207; }
.map-status.is-success { color: #15803d; }
.map-status.is-error { color: #b91c1c; }

.map-container {
  background: #e2e8f0;
  border-radius: 6px;
  height: 280px;
  overflow: hidden;
  width: 100%;
}

.map-container-admin:empty::before {
  color: #64748b;
  content: 'A prévia aparecerá aqui após a verificação.';
  display: grid;
  height: 100%;
  place-items: center;
  text-align: center;
}

.map-open-link {
  display: inline-block;
  margin-top: 10px;
}

.agents-carousel {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 720px;
}

.agents-track { min-height: 220px; }

.agent-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  gap: 22px;
  min-height: 220px;
  padding: 22px;
}

.agent-card img {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  width: 150px;
}

.agent-card h3 { margin: 0 0 8px; }
.agent-card p { color: #64748b; margin: 6px 0; }

.account-page { min-height: 70vh; }
.account-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 720px;
  padding: 28px;
}
.account-grid { display: grid; gap: 24px; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); }
.account-grid .account-panel { max-width: none; margin: 0; }
.account-header { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 24px; }
.account-form { display: grid; gap: 10px; }
.account-form input { border: 1px solid #cbd5e1; border-radius: 5px; font: inherit; padding: 11px 12px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-secondary { background: #fff; border: 1px solid #94a3b8; border-radius: 5px; color: #334155; cursor: pointer; font: inherit; padding: 10px 14px; }
.account-status { color: #8b2941; margin: 0 auto 16px; max-width: 720px; min-height: 1.3em; }
.favorites-panel .cards-grid { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-header { align-items: stretch; flex-direction: column; gap: 16px; }
  .agent-card { align-items: flex-start; flex-direction: column; }
  .agent-card img { width: 110px; }
  .map-preview-heading { align-items: stretch; flex-direction: column; }
  .map-preview-heading .btn-acao { align-self: flex-start; }
  .map-container { height: 250px; }
}

/* ==========================================================================
   BOTÃO LIMPAR FILTROS (persistente no formulário, não só no estado vazio)
   ========================================================================== */
.btn-limpar-filtros-form {
  grid-column: 1 / -1;
  background-color: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-limpar-filtros-form:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

/* Admin moderno */
.admin-layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:calc(100vh - 20px);gap:0;background:#f4f6f8}
.admin-sidebar{position:sticky;top:0;height:100vh;padding:24px 16px;background:#0f172a;color:#fff;display:flex;flex-direction:column;gap:8px;align-self:start}
.admin-nav-btn{border:0;background:transparent;color:#cbd5e1;text-align:left;padding:13px 14px;border-radius:10px;cursor:pointer;font:600 .92rem inherit;display:flex;align-items:center;gap:10px;transition:.2s}
.admin-nav-btn:hover,.admin-nav-btn.active{background:#1e293b;color:#fff}
.admin-content{min-width:0}.admin-content>.container{max-width:none;margin:0;padding:28px}
.admin-page{display:none}.admin-page.admin-page-active{display:block}
.admin-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.admin-home-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px;box-shadow:0 3px 12px rgba(15,23,42,.05)}
.cadastro-wizard{display:flex;justify-content:space-between;gap:6px;margin:0 0 20px;padding:0;counter-reset:step}.cadastro-wizard-step{flex:1;padding:9px 6px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;color:#64748b;text-align:center;font-size:.76rem;font-weight:700}.cadastro-wizard-step.active{background:#0f172a;color:#fff;border-color:#0f172a}.cadastro-etapa{display:none;border:0;padding:0;margin:0}.cadastro-etapa.etapa-ativa{display:block}.cadastro-etapa-titulo{margin:0 0 14px;font-size:1.05rem;color:#0f172a}.cadastro-wizard-acoes{display:flex;justify-content:space-between;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid #e2e8f0}.codigo-ajuda{display:block;color:#64748b;margin-top:5px}.captacao-bloco{margin-top:18px;border:1px solid #dbe4ee;border-radius:12px;padding:16px}.captacao-bloco legend{font-weight:800;color:#0f172a}.captacao-bloco small{display:block;color:#64748b;margin-top:4px}
.broker-online-widget{position:fixed;right:22px;bottom:22px;z-index:1200}.broker-online-toggle{border:0;border-radius:999px;padding:13px 18px;background:#0f172a;color:#fff;box-shadow:0 8px 25px rgba(15,23,42,.25);cursor:pointer;font-weight:700}.broker-online-panel{width:min(360px,calc(100vw - 30px));margin-top:10px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px;box-shadow:0 16px 40px rgba(15,23,42,.2)}.broker-online-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.broker-online-head button{border:0;background:none;font-size:1.3rem;cursor:pointer}.broker-online-step{display:grid;gap:9px}.broker-online-step button{border:1px solid #dbe4ee;background:#f8fafc;border-radius:9px;padding:10px;cursor:pointer;text-align:left;font-weight:600}.broker-online-step label{display:grid;gap:5px;font-size:.82rem;font-weight:700;color:#334155}.broker-online-step input,.broker-online-step select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.online-voltar{background:#fff!important}
@media(max-width:850px){.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:sticky;top:0;height:auto;z-index:20;flex-direction:row;overflow:auto}.admin-nav-btn{white-space:nowrap}.admin-content>.container{padding:16px}.admin-home-grid{grid-template-columns:1fr}.cadastro-wizard{overflow:auto}.cadastro-wizard-step{min-width:90px}.broker-online-widget{right:12px;bottom:12px}}


/* ==========================================================
   SETAS DA GALERIA PRINCIPAL DO IMÓVEL
   ========================================================== */

.gallery-main {
  position: relative;
}

.property-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.property-gallery-nav:hover {
  background: #27ae60;
  color: #ffffff;
}

.property-gallery-prev {
  left: 16px;
}

.property-gallery-next {
  right: 16px;
}


/* ==========================================================
   GARANTIR QUE AS SETAS DOS CARROSSÉIS DA HOME APAREÇAM
   ========================================================== */

.spotlight-carousel {
  position: relative;
}

.spotlight-carousel .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.spotlight-carousel .carousel-prev {
  left: 8px;
}

.spotlight-carousel .carousel-next {
  right: 8px;
}

.spotlight-carousel .carousel-control:hover {
  transform: translateY(-50%) scale(1.1);
}


/* Carrossel de vendas */

.sales-carousel {
  position: relative;
}

.sales-carousel .sales-carousel-actions {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* Carrossel de corretores */

.agents-carousel {
  position: relative;
}

.agents-carousel .carousel-control {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* Mobile */

@media (max-width: 600px) {
  .property-gallery-nav {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .property-gallery-prev {
    left: 8px;
  }

  .property-gallery-next {
    right: 8px;
  }

  .spotlight-carousel {
    padding-left: 52px;
    padding-right: 52px;
  }

  .spotlight-carousel .carousel-prev {
    left: 4px;
  }

  .spotlight-carousel .carousel-next {
    right: 4px;
  }
}


/* ==========================================================================
   RESET & CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   1. CABEÇALHO (HEADER & NAVBAR) - FLEXBOX
   ========================================================================== */
.topbar {
  background-color: #1a252f;
  color: #ecf0f1;
  padding: 8px 0;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-info, .topbar-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-info a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bdc3c7;
  transition: color 0.2s;
}

.topbar-info a:hover, .topbar-social a:hover {
  color: #27ae60;
}

.topbar-social a {
  align-items: center;
  display: inline-flex;
  font-size: 1.55rem;
  height: 26px;
  justify-content: center;
  line-height: 1;
  width: 26px;
}

.topbar-social a[aria-label="Facebook oficial"] {
  color: #1877f2;
}

.topbar-social a[aria-label="Instagram oficial"] {
  color: #e4405f;
}

.topbar-social a[aria-label="Facebook oficial"]:hover,
.topbar-social a[aria-label="Instagram oficial"]:hover {
  filter: brightness(0.85);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  display: block;
  width: 220px;
  height: 118px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: #2c3e50;
  padding: 22px 18px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: #27ae60;
}

/* Dropdown Menus */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  padding: 8px 0;
}

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

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: #4a5568;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background-color: #f1f5f9;
  color: #27ae60;
}

/* ==========================================================================
   2. HERO & FORMULÁRIO DE BUSCA - FLEXBOX & GRID
   ========================================================================== */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), 
              url('https://cdn2.uso.com.br/sites/logos/31625_fundosite.jpg') center/cover no-repeat;
  padding: 80px 0 100px 0;
  color: #ffffff;
  text-align: center;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 35px;
}

.search-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  color: #333;
  max-width: 1100px;
  margin: 0 auto;
}

.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.search-tab {
  padding: 8px 20px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  background-color: #f1f5f9;
  color: #64748b;
  transition: all 0.2s;
}

.search-tab.active, .search-tab:hover {
  background-color: #27ae60;
  color: #ffffff;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #27ae60;
  background-color: #ffffff;
}

.btn-search {
  grid-column: 1 / -1;
  background-color: #27ae60;
  color: #ffffff;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.btn-search:hover {
  background-color: #219653;
}

/* ==========================================================================
   3. VITRINE DE IMÓVEIS & EMPREENDIMENTOS - CSS GRID
   ========================================================================== */
.section-padding {
  padding: 60px 0;
}

.section-title {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 700;
}

.section-subtitle {
  color: #64748b;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 25px;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #27ae60;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.card-location {
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 15px;
}

.card-features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: auto;
  font-size: 0.82rem;
  color: #475569;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-details {
  display: block;
  text-align: center;
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-details:hover {
  background-color: #27ae60;
  color: #ffffff;
}

/* ==========================================================================
   4. SERVIÇOS
   ========================================================================== */
.bg-light {
  background-color: #f1f5f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.service-icon {
  font-size: 2.5rem;
  color: #27ae60;
  margin-bottom: 12px;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ==========================================================================
   5. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 20px 0;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

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

.footer-col a:hover {
  color: #27ae60;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================================================
   NOVO: BOTÃO WHATSAPP E MENU MOBILE (Fora do media query)
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #2c3e50;
  cursor: pointer;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.back-to-top {
  position: fixed;
  right: 90px;
  bottom: 25px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 996;
}

.back-to-top.visible {
  display: flex;
}

.support-trigger {
  position: fixed;
  right: 25px;
  bottom: 100px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #1d8f4f);
  color: #fff;
  box-shadow: 0 10px 22px rgba(39, 174, 96, 0.35);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 995;
}

.support-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.support-modal.open {
  display: flex;
}

.support-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.support-modal-panel {
  position: relative;
  width: min(92vw, 480px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
  padding: 28px 24px 20px;
  z-index: 1;
}

.support-modal-panel h3 {
  margin-bottom: 18px;
  font-size: 1.8rem;
  color: #1e293b;
}

.support-modal-panel label {
  display: block;
  margin-bottom: 16px;
  color: #475569;
  font-weight: 600;
}

.support-modal-panel input,
.support-modal-panel textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  font: inherit;
  background: #fff;
}

.support-modal-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.support-modal-close {
  position: absolute;
  right: 16px;
  top: 10px;
  border: none;
  background: transparent;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
}

.support-submit {
  width: 100%;
  margin-top: 8px;
  border: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-copy p {
  margin-bottom: 16px;
  color: #475569;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #27ae60;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.about-card {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.about-card h3,
.hours-list h4 {
  margin-bottom: 12px;
  color: #1e293b;
}

.cta-location {
  margin-top: 14px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 14px 16px;
  color: #1e293b;
  font-weight: 600;
}

.hours-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  padding: 4px 0;
  color: #475569;
}

.footer-social-list li a {
  color: #e2e8f0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   6. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .topbar-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

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

  .search-box {
    padding: 16px;
  }

  /* Faz o botão do menu aparecer */
  .mobile-menu-btn {
    display: block;
  }

  /* Ajusta o menu para telas pequenas */
  .nav-menu {
    display: none; /* Escondido por padrão */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
  }

  /* Classe que será ativada pelo JavaScript para mostrar o menu */
  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
  }

  /* Dropdown no mobile */
  .dropdown {
    position: static;
    box-shadow: none;
    background-color: #f8fafc;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
  }

  .nav-item:hover .dropdown {
    display: block;
  }
}

/* ==========================================================================
   PÁGINA INTERNA DO IMÓVEL (imovel.html)
   ========================================================================== */
.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.property-title {
  font-size: 2rem;
  color: #1e293b;
  margin: 8px 0;
}

.price-period {
  font-size: 1rem;
  color: #64748b;
  font-weight: 400;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 40px;
}

.gallery-main img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border 0.2s;
}

.thumb:hover, .thumb.active {
  opacity: 1;
  border: 3px solid #27ae60;
}

/* Layout do Conteúdo e Sidebar */
.property-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.property-details h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin: 30px 0 15px 0;
}

.features-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
}

.feature-card i {
  font-size: 1.5rem;
  color: #27ae60;
  display: block;
  margin-bottom: 5px;
}

.costs-list {
  background-color: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #27ae60;
}

.costs-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.description-text {
  color: #475569;
  line-height: 1.8;
}

/* Sidebar de Contato */
.contact-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 100px;
}

.contact-card h3 {
  margin-bottom: 10px;
}

.btn-whatsapp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  margin-top: 15px;
  transition: background-color 0.2s;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
}

.divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.sidebar-form h4 {
  margin-bottom: 12px;
}

.sidebar-form .form-control {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .property-content-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: #64748b;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #27ae60;
}

.breadcrumb i {
  font-size: 1rem;
}

.breadcrumb-separator {
  color: #cbd5e1;
  pointer-events: none;
}

.breadcrumb-current {
  color: #1e293b;
  font-weight: 600;
}

/* ==========================================================================
   LIGHTBOX / GALERIA MODAL
   ========================================================================== */
.lightbox {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  inset: 0;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

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

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-content img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox:not([open]) {
  display: none;
}

/* ==========================================================================
   GALERIA - THUMBNAILS RESPONSIVAS
   ========================================================================== */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.thumb:hover, .thumb.active {
  opacity: 1;
  border-color: #27ae60;
  transform: scale(1.02);
}

.thumb:focus-visible {
  outline: 3px solid #27ae60;
  outline-offset: 2px;
}

.gallery-main img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-main img:hover {
  transform: scale(1.01);
}

.gallery-photo-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-top: 10px;
}

/* ==========================================================================
   DESCRIÇÃO EXPANSÍVEL
   ========================================================================== */
.description-text {
  color: #475569;
  line-height: 1.8;
}

.description-text.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  background: none;
  border: none;
  color: #27ae60;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  transition: color 0.2s;
}

.btn-read-more:hover {
  color: #219653;
}

/* ==========================================================================
   PÁGINA DE CONTATO (contato.html)
   ========================================================================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.contact-info-card, .contact-form-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info-card h3, .contact-form-card h3 {
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 15px;
}

.contact-list {
  margin-top: 25px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #475569;
}

.contact-list i {
  font-size: 1.5rem;
  color: #27ae60;
  margin-top: 3px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 850px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PÁGINA CADASTRE SEU IMÓVEL (cadastrar-imovel.html)
   ========================================================================== */
.text-center {
  text-align: center;
}

.form-container-card {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.property-submit-form h3 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 15px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-grid-2 .full-width {
  grid-column: 1 / -1;
}

.form-divider {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 25px 0;
}

.btn-large {
  font-size: 1.1rem;
  padding: 16px;
  margin-top: 20px;
}

@media (max-width: 600px) {
  .form-container-card {
    padding: 20px;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FORMULÁRIO DE BUSCA (CSS GRID + FLEXBOX)
   ========================================================================== */

/* Abas (Comprar, Alugar, Permuta) usando Flexbox */
.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-tab {
  padding: 8px 18px;
  background-color: #f1f5f9;
  color: #475569;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.search-tab:hover {
  background-color: #dbe4ee;
}

.search-tab.active {
  background-color: #27ae60;
  color: #fff;
}

.search-tab:focus-visible {
  outline: 3px solid #1a7a3f;
  outline-offset: 2px;
}

/* Form organizado com CSS GRID */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  align-items: flex-end; /* Mantém o botão alinhado com a base dos inputs */
}

/* Cada grupo de campo usando Flexbox */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-box .form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #ffffff;
}

/* Botão centralizado com Flexbox */
.btn-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background-color: #27ae60;
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-search:hover {
  background-color: #219150;
}

/* Responsividade para telas de celular */
@media (max-width: 600px) {
  .search-grid {
    grid-template-columns: 1fr; /* Transforma em 1 coluna em telas pequenas */
  }
}

/* ==========================================================================
   GRADE DE IMÓVEIS (CSS GRID + FLEXBOX)
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #27ae60;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #64748b;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #475569;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-details {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background-color: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-top: auto;
}

.btn-details:hover {
  background-color: #27ae60;
  color: #ffffff;
}

/* ==========================================================================
   SERVIÇOS ESPECIALIZADOS (CSS GRID + FLEXBOX)
   ========================================================================== */

.bg-light {
  background-color: #f8fafc;
}

.section-padding {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #ffffff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.5rem;
  color: #27ae60;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.service-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   CARROSSEL DE LOCAÇÃO (Spotlight - Card central + laterais + profundidade)
   ========================================================================== */
.spotlight-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 40px;
  overflow: hidden;
}

.spotlight-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.spotlight-card {
  flex: 0 0 auto;
  width: 280px;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Card central em destaque */
.spotlight-card.spotlight-current {
  width: 380px;
  z-index: 10;
  transform: scale(1.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card à direita (próximo) */
.spotlight-card.spotlight-right {
  width: 260px;
  opacity: 0.7;
  z-index: 5;
  transform: scale(0.9) translateX(20px);
}

/* Card à esquerda (anterior) */
.spotlight-card.spotlight-left {
  width: 260px;
  opacity: 0.7;
  z-index: 5;
  transform: scale(0.9) translateX(-20px);
}

/* Cards escondidos (além dos laterais) */
.spotlight-card.spotlight-hidden {
  display: none;
}

.carousel-control {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #2c3e50;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 20;
}

.carousel-control:hover {
  background: #27ae60;
  color: #ffffff;
  transform: scale(1.1);
}

.carousel-control:focus-visible {
  outline: 3px solid #27ae60;
  outline-offset: 2px;
}

.carousel-status {
  text-align: center;
  color: #64748b;
  padding: 40px;
}

/* ==========================================================================
   CARROSSEL DE VENDAS (Visual diferente - cards lado a lado, scroll horizontal)
   ========================================================================== */
.sales-carousel {
  position: relative;
}

.sales-viewport {
  overflow: hidden;
  padding: 10px 0 20px;
}

.sales-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  /* CSS custom properties para controle via JS */
  --sales-index: 0;
  --sales-visible: 3;
}

.sales-card {
  flex: 0 0 calc((100% - (var(--sales-visible) - 1) * 24px) / var(--sales-visible));
  min-width: 280px;
  max-width: 340px;
}

.sales-carousel-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.sales-control {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #2c3e50;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.sales-control:hover {
  background: #27ae60;
  border-color: #27ae60;
  color: #ffffff;
}

.sales-control:focus-visible {
  outline: 3px solid #27ae60;
  outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVIDADE DOS CARROSSEIS
   ========================================================================== */
@media (max-width: 1024px) {
  .spotlight-card.spotlight-current {
    width: 340px;
  }
  .spotlight-card.spotlight-right,
  .spotlight-card.spotlight-left {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .spotlight-carousel {
    padding: 20px 20px;
    gap: 12px;
  }

  .spotlight-track {
    gap: 16px;
  }

  .spotlight-card.spotlight-current {
    width: 300px;
    transform: scale(1.1);
  }

  .spotlight-card.spotlight-right,
  .spotlight-card.spotlight-left {
    width: 220px;
    opacity: 0.6;
    transform: scale(0.85);
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .sales-carousel-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .spotlight-card.spotlight-current {
    width: 280px;
    transform: scale(1);
  }

  .spotlight-card.spotlight-right,
  .spotlight-card.spotlight-left {
    display: none;
  }

  .spotlight-track {
    justify-content: center;
  }
}

.favorite-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid #d5dce5;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 7px;
  margin: 10px 0;
  padding: 8px 11px;
}

.favorite-toggle:hover,
.favorite-toggle.is-favorite {
  border-color: #c2415a;
  color: #c2415a;
}

.map-preview-panel,
.property-map-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 18px 0;
  padding: 16px;
}

.map-preview-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.map-preview-heading h3,
.property-map-section h3 {
  color: #1e293b;
  margin: 0 0 5px;
}

.map-preview-heading p {
  color: #64748b;
  margin: 0;
}

.map-status {
  color: #64748b;
  margin: 12px 0;
}

.map-status.is-loading { color: #a16207; }
.map-status.is-success { color: #15803d; }
.map-status.is-error { color: #b91c1c; }

.map-container {
  background: #e2e8f0;
  border-radius: 6px;
  height: 280px;
  overflow: hidden;
  width: 100%;
}

.map-container-admin:empty::before {
  color: #64748b;
  content: 'A prévia aparecerá aqui após a verificação.';
  display: grid;
  height: 100%;
  place-items: center;
  text-align: center;
}

.map-open-link {
  display: inline-block;
  margin-top: 10px;
}

.agents-carousel {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 720px;
}

.agents-track { min-height: 220px; }

.agent-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  gap: 22px;
  min-height: 220px;
  padding: 22px;
}

.agent-card img {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  width: 150px;
}

.agent-card h3 { margin: 0 0 8px; }
.agent-card p { color: #64748b; margin: 6px 0; }

.account-page { min-height: 70vh; }
.account-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 720px;
  padding: 28px;
}
.account-grid { display: grid; gap: 24px; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); }
.account-grid .account-panel { max-width: none; margin: 0; }
.account-header { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 24px; }
.account-form { display: grid; gap: 10px; }
.account-form input { border: 1px solid #cbd5e1; border-radius: 5px; font: inherit; padding: 11px 12px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-secondary { background: #fff; border: 1px solid #94a3b8; border-radius: 5px; color: #334155; cursor: pointer; font: inherit; padding: 10px 14px; }
.account-status { color: #8b2941; margin: 0 auto 16px; max-width: 720px; min-height: 1.3em; }
.favorites-panel .cards-grid { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-header { align-items: stretch; flex-direction: column; gap: 16px; }
  .agent-card { align-items: flex-start; flex-direction: column; }
  .agent-card img { width: 110px; }
  .map-preview-heading { align-items: stretch; flex-direction: column; }
  .map-preview-heading .btn-acao { align-self: flex-start; }
  .map-container { height: 250px; }
}

/* ==========================================================================
   BOTÃO LIMPAR FILTROS (persistente no formulário, não só no estado vazio)
   ========================================================================== */
.btn-limpar-filtros-form {
  grid-column: 1 / -1;
  background-color: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-limpar-filtros-form:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

/* Admin moderno */
.admin-layout{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:calc(100vh - 20px);gap:0;background:#f4f6f8}
.admin-sidebar{position:sticky;top:0;height:100vh;padding:24px 16px;background:#0f172a;color:#fff;display:flex;flex-direction:column;gap:8px;align-self:start}
.admin-nav-btn{border:0;background:transparent;color:#cbd5e1;text-align:left;padding:13px 14px;border-radius:10px;cursor:pointer;font:600 .92rem inherit;display:flex;align-items:center;gap:10px;transition:.2s}
.admin-nav-btn:hover,.admin-nav-btn.active{background:#1e293b;color:#fff}
.admin-content{min-width:0}.admin-content>.container{max-width:none;margin:0;padding:28px}
.admin-page{display:none}.admin-page.admin-page-active{display:block}
.admin-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.admin-home-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px;box-shadow:0 3px 12px rgba(15,23,42,.05)}
.cadastro-wizard{display:flex;justify-content:space-between;gap:6px;margin:0 0 20px;padding:0;counter-reset:step}.cadastro-wizard-step{flex:1;padding:9px 6px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;color:#64748b;text-align:center;font-size:.76rem;font-weight:700}.cadastro-wizard-step.active{background:#0f172a;color:#fff;border-color:#0f172a}.cadastro-etapa{display:none;border:0;padding:0;margin:0}.cadastro-etapa.etapa-ativa{display:block}.cadastro-etapa-titulo{margin:0 0 14px;font-size:1.05rem;color:#0f172a}.cadastro-wizard-acoes{display:flex;justify-content:space-between;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid #e2e8f0}.codigo-ajuda{display:block;color:#64748b;margin-top:5px}.captacao-bloco{margin-top:18px;border:1px solid #dbe4ee;border-radius:12px;padding:16px}.captacao-bloco legend{font-weight:800;color:#0f172a}.captacao-bloco small{display:block;color:#64748b;margin-top:4px}
.broker-online-widget{position:fixed;right:22px;bottom:22px;z-index:1200}.broker-online-toggle{border:0;border-radius:999px;padding:13px 18px;background:#0f172a;color:#fff;box-shadow:0 8px 25px rgba(15,23,42,.25);cursor:pointer;font-weight:700}.broker-online-panel{width:min(360px,calc(100vw - 30px));margin-top:10px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px;box-shadow:0 16px 40px rgba(15,23,42,.2)}.broker-online-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.broker-online-head button{border:0;background:none;font-size:1.3rem;cursor:pointer}.broker-online-step{display:grid;gap:9px}.broker-online-step button{border:1px solid #dbe4ee;background:#f8fafc;border-radius:9px;padding:10px;cursor:pointer;text-align:left;font-weight:600}.broker-online-step label{display:grid;gap:5px;font-size:.82rem;font-weight:700;color:#334155}.broker-online-step input,.broker-online-step select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.online-voltar{background:#fff!important}
@media(max-width:850px){.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:sticky;top:0;height:auto;z-index:20;flex-direction:row;overflow:auto}.admin-nav-btn{white-space:nowrap}.admin-content>.container{padding:16px}.admin-home-grid{grid-template-columns:1fr}.cadastro-wizard{overflow:auto}.cadastro-wizard-step{min-width:90px}.broker-online-widget{right:12px;bottom:12px}}



/* ============================================================
   GALERIA DE FOTOS NOS CARDS DO INDEX
   ============================================================ */

.card-gallery-wrapper {
  position: relative;
}

.card-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 1rem;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
}

.card-gallery-wrapper:hover .card-gallery-arrow,
.card-gallery-arrow:focus-visible {
  opacity: 1;
}

.card-gallery-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(15, 23, 42, .9);
}

.card-gallery-prev {
  left: 10px;
}

.card-gallery-next {
  right: 10px;
}

.card-gallery-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.card-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 5;
}

.card-gallery-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.card-gallery-dots span.active {
  background: #fff;
  transform: scale(1.25);
}

@media (max-width: 700px) {

  .card-gallery-arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
  }

}

/* =========================================================
   GALERIA DO IMÓVEL — FOTO COMPLETA
   ========================================================= */

.gallery-main {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 12px;
}

.gallery-main img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain !important;
  object-position: center;
  display: block;
  border-radius: 12px;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

/* Setas da foto principal */
.gallery-main-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 1.35rem;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.gallery-main-nav:hover {
  background: rgba(15, 23, 42, 0.92);
  transform: translateY(-50%) scale(1.06);
}

.gallery-main-prev {
  left: 14px;
}

.gallery-main-next {
  right: 14px;
}

/* Contador sobre a foto */
.gallery-main-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

/* Mantém thumbnails embaixo */
.gallery-thumbs {
  margin-top: 12px;
}

/* Em telas pequenas */
@media (max-width: 700px) {

  .gallery-main {
    min-height: 280px;
  }

  .gallery-main img {
    max-height: 55vh;
  }

  .gallery-main-nav {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .gallery-main-prev {
    left: 8px;
  }

  .gallery-main-next {
    right: 8px;
  }

  .gallery-main-counter {
    top: 9px;
    right: 9px;
    font-size: 0.7rem;
  }
}
/* Ajuste final: atalhos flutuantes nunca ficam sobrepostos. */
.floating-actions{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1300;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
.floating-actions .whatsapp-float,
.floating-actions .back-to-top,
.floating-actions .support-trigger{
  position:static;
  width:auto;
  min-width:52px;
  height:48px;
  padding:0 14px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-sizing:border-box;
  text-decoration:none;
}
.floating-actions .whatsapp-float{background:#25d366;color:#fff;font-size:1.25rem;box-shadow:0 8px 22px rgba(15,23,42,.2);}
.floating-actions .support-trigger{background:linear-gradient(135deg,#27ae60,#1d8f4f);color:#fff;border:0;font-size:1rem;box-shadow:0 8px 22px rgba(39,174,96,.28);}
.floating-actions .back-to-top{background:#1e293b;color:#fff;border:0;font-size:1rem;box-shadow:0 8px 18px rgba(15,23,42,.2);}
.floating-actions .back-to-top:not(.visible){display:none;}
.floating-actions .back-to-top.visible{display:flex;}
.floating-actions .whatsapp-float:hover,.floating-actions .support-trigger:hover,.floating-actions .back-to-top:hover{transform:translateY(-2px);}
.floating-actions span{font-size:.72rem;font-weight:800;letter-spacing:.04em;white-space:nowrap;}
.broker-online-widget{right:18px;bottom:200px;z-index:1250;}
.broker-online-widget .broker-online-toggle{white-space:nowrap;}
@media(max-width:600px){
  .floating-actions{right:10px;bottom:10px;gap:7px;}
  .floating-actions .whatsapp-float,.floating-actions .back-to-top,.floating-actions .support-trigger{height:44px;padding:0 11px;}
  .floating-actions span{font-size:.65rem;}
  .broker-online-widget{right:10px;bottom:165px;}
}


/* REALIZE FINAL CACHE-BUST 20260925-ia-final: atalhos flutuantes isolados */
.floating-actions {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 1300 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
}
.floating-actions > * {
  position: static !important;
  float: none !important;
  margin: 0 !important;
}
.floating-actions .whatsapp-float,
.floating-actions .support-trigger,
.floating-actions .back-to-top {
  position: static !important;
  width: auto !important;
  min-width: 52px !important;
  height: 48px !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 999px !important;
}
.broker-online-widget {
  position: fixed !important;
  right: 18px !important;
  bottom: 190px !important;
  z-index: 1250 !important;
}
@media (max-width: 600px) {
  .floating-actions { right: 10px !important; bottom: 10px !important; gap: 7px !important; }
  .floating-actions .whatsapp-float,
  .floating-actions .support-trigger,
  .floating-actions .back-to-top { height: 44px !important; padding: 0 11px !important; }
  .broker-online-widget { right: 10px !important; bottom: 165px !important; }
}
.ia-ajuda { display:block; margin-top:6px; color:#64748b; font-size:.78rem; line-height:1.35; }

/* ==========================================================================
   BOTÃO COMPARTILHAR (página do imóvel)
   ========================================================================== */
.property-header { flex-wrap: nowrap; }
.property-header > div:first-child { flex: 1; min-width: 0; }
.share-wrap { position: relative; flex-shrink: 0; margin-top: 8px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.share-btn i { font-size: 1.25rem; }
.share-btn:hover { background: #f1f5f9; border-color: #94a3b8; color: #0f172a; }
.share-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.45); outline-offset: 2px; }
.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}
.share-menu[hidden] { display: none; }
.share-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.share-item i { font-size: 1.25rem; color: #475569; }
.share-item:hover, .share-item:focus-visible { background: #f1f5f9; outline: none; }
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 10000;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 700px) {
  .share-btn { width: 44px; padding: 0; justify-content: center; }
  .share-btn span { display: none; }
}
