/* Modernização visual para site de imobiliária (camada de override) */
/* Mantém Bootstrap e main.css, mas atualiza tipografia, cores e cartões. */

:root {
  --brand-primary: #0f4c81; /* azul imobiliária */
  --brand-secondary: #2eb872; /* verde destaque */
  --brand-dark: #1f2937;
  --brand-light: #f7f9fc;
  --text-body: #2b2b2b;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 6px 16px rgba(17, 24, 39, 0.12);
}

html, body {
  color: var(--text-body);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Top info bar */
#topinfo {
  background: var(--brand-dark);
  color: #e5e7eb;
  font-size: 13px;
  line-height: 40px;
  padding: 0 16px;
}
#topinfo span { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header / Navbar */
#top_wrap { background: #fff; border-bottom: 1px solid var(--border-soft); }
#logo { min-height: 96px; background: none !important; display: flex; align-items: center; }

/* Navbar refinado mantendo Bootstrap collapse */
#navmenu.navbar { margin-bottom: 0; border: none; box-shadow: none; }
.navbar-default { background-color: #ffffff; border: none; }
.navbar-default .navbar-brand, .navbar-default .navbar-nav>li>a {
  color: var(--brand-dark);
  font-weight: 600;
}
.navbar-default .navbar-nav>li>a:hover { color: var(--brand-primary); }
.navbar-toggle { border: none; }
.navbar-toggle .icon-bar { background-color: var(--brand-dark); }

/* Busca por referência no header */
#busca-ref .form-control { border-radius: 8px; border: 1px solid var(--border-soft); }
#busca-ref .btn { border-radius: 8px; background: var(--brand-primary); color: #fff; border: none; }
#busca-ref .btn:hover { background: #0a355d; }

/* Cards de imóveis */
.item-box {
  border: 1px solid var(--border-soft) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 14px 14px 18px;
}
.item-box:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(17,24,39,.14); }
.item-box h1 { font-size: 18px; color: var(--brand-dark); }
.item-box h4 { color: var(--text-muted); }
.item-box img { border-radius: 10px !important; transition: transform .3s ease; }
.item-box:hover img { transform: scale(1.02); }

/* Faixa de destaque (ribbon) como badge moderno */
.item-box .ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  width: auto !important;
  background: var(--brand-secondary) !important;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px !important;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

/* Etiqueta de código */
.label-danger { background-color: var(--brand-primary) !important; }

/* Detalhes de imóvel */
.box-detail { background: #fff; border: 1px solid var(--border-soft); border-radius: 12px; box-shadow: var(--shadow-soft); padding: 18px; }
#subtitulo16 span { font-weight: 700; color: var(--brand-dark); }
.itens li { margin-bottom: 6px; color: var(--text-muted); }

/* Listagem moderna */
.listing-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.listing-item { display: block; }
.listing-image { width: 100%; height: 240px; object-fit: cover; }

/* Efeito de entrada sutil */
.card-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.card-reveal.is-visible { opacity: 1; transform: none; }

/* Ações do card */
.item-actions { margin-top: 12px; }
.btn-primary { background-color: var(--brand-primary) !important; border-color: var(--brand-primary) !important; }
.btn-primary:hover { background-color: #0a355d !important; }

/* Footer moderno */
#footer { background: var(--brand-dark) !important; color: #cbd5e1; border-top: none; }
#footer h3 { color: #e5e7eb !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
#footer ul a, #footer ul p { color: #cbd5e1 !important; }
#footer ul a:hover { color: #ffffff !important; }

/* Botões de ação */
.btn-info { background-color: var(--brand-primary) !important; border-color: var(--brand-primary) !important; }
.btn-info:hover { background-color: #0a355d !important; }

/* Tipografia refinada */
body, p { font-size: 15px; }
.font-20 { font-size: 18px; }

/* Utilitários */
.no-mar-pad { margin: 0 !important; padding: 0 !important; }
.w-all { width: 100%; }

/* Responsividade */
@media (max-width: 991px) {
  #topinfo { font-size: 12px; line-height: 34px; }
  .item-box { min-height: unset; }
}
@media (max-width: 767px) {
  #logo { min-height: 64px; }
  #busca-ref { display: none !important; }
  .item-box { padding: 12px; }
}

/* ===== Footer moderno ===== */
#footer { position: relative; padding: 32px 0 24px; }
#footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--neon-1), var(--neon-2));
  opacity: .25;
}
#footer .footer-cta { padding: 16px 0 24px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 24px; }
#footer .footer-cta h4 { color: #e5e7eb; margin: 0 0 12px; font-weight: 700; }
#footer .footer-cta .form-inline { display: flex; gap: 12px; flex-wrap: wrap; }
#footer .footer-cta input[type="email"] { flex: 1 1 260px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e5e7eb; border-radius: 10px; padding: 10px 12px; }
#footer .footer-cta input::placeholder { color: #94a3b8; }
#footer .footer-cta .btn { border-radius: 10px; }

#footer .footer-social { display: flex; gap: 12px; align-items: center; padding-top: 8px; }
#footer .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; }
#footer .footer-social a:hover { background: rgba(255,255,255,.16); }

#footer .footer-columns .col { margin-bottom: 16px; }
#footer ul { list-style: none; padding: 0; margin: 8px 0 0; }
#footer ul li { margin-bottom: 8px; }
#footer small { color: #94a3b8; }

#footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 24px; padding-top: 16px; font-size: 13px; color: #93a4b0; }

/* ===== Futuristic attention-retention enhancements ===== */
:root {
  --neon-1: #00e0ff;
  --neon-2: #ff3cac;
  --neon-soft: rgba(0, 224, 255, 0.30);
}

/* Neon pulse em ribbons (destaques) */
.item-box .ribbon {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 10px 24px var(--neon-soft);
  background-image: linear-gradient(90deg, var(--brand-secondary), var(--neon-2)) !important;
  animation: ribbonPulse 2.6s ease-in-out infinite;
}
@keyframes ribbonPulse {
  0%, 100% { filter: saturate(1); transform: translateY(0); }
  50% { filter: saturate(1.25); transform: translateY(-1px); }
}

/* Tilt suave nos cards */
.listing-item.tilted { transition: transform .08s ease; will-change: transform; }

/* Shimmer de carregamento nas imagens */
.is-loading { position: relative; overflow: hidden; border-radius: 12px; }
.is-loading::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.15), rgba(255,255,255,0));
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Barra de interesse/hotness decorativa */
.progress-hotness { width: 100%; height: 6px; border-radius: 10px; background: rgba(0,0,0,0.06); overflow: hidden; margin: 10px 0 0; }
.progress-hotness .bar {
  height: 100%; width: 60%;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  box-shadow: 0 0 12px var(--neon-soft);
  animation: barFlow 3s ease-in-out infinite alternate;
}
@keyframes barFlow { 0% { width: 40%; } 100% { width: 80%; } }

/* Botão de favorito (like) */
.btn-like { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #ff4d7d; }
.btn-like::before { content: "❤"; display: inline-block; margin-right: 6px; }
.btn-like[aria-pressed="true"] { background: rgba(255, 77, 125, 0.12); border-color: rgba(255, 77, 125, 0.45); box-shadow: 0 0 12px rgba(255, 77, 125, 0.35); }

/* Intensificar reveal */
.card-reveal.is-visible { opacity: 1; transform: none; transition: transform .45s ease, opacity .45s ease; }

/* ===== Carousel de imóveis (home) ===== */
.listing-carousel { position: relative; }
.listing-carousel .listing-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.listing-carousel .listing-item { scroll-snap-align: start; }
.listing-carousel .listing-list::-webkit-scrollbar { height: 8px; }
.listing-carousel .listing-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 8px; }

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10,12,16,0.45);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), 0 0 12px var(--neon-soft);
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-nav:hover { background: rgba(10,12,16,0.65); }
.carousel-nav:active { transform: translateY(-50%) scale(0.98); }

.listing-carousel::before,
.listing-carousel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 4;
}
.listing-carousel::before { left: 0; background: linear-gradient(to right, rgba(255,255,255,0.06), rgba(255,255,255,0)); }
.listing-carousel::after { right: 0; background: linear-gradient(to left, rgba(255,255,255,0.06), rgba(255,255,255,0)); }