/* ==========================================================================
   QEI Redesign 2026 — scoped to .r2026 surfaces
   ========================================================================== */

:root {
  --r2026-primary: #143d66;
  --r2026-primary-hover: #1b4e82;
  --r2026-primary-dark: #0e2f4f;
  --r2026-accent: #10b981;
  --r2026-accent-dark: #0ea271;
  --r2026-text: #0f172a;
  --r2026-text-home-title: white;
  --r2026-text-muted: #64748b;
  --r2026-text-soft: #94a3b8;
  --r2026-bg: #ffffff;
  --r2026-bg-soft: #f8fafc;
  --r2026-bg-muted: #f1f5f9;
  --r2026-border: #e5e7eb;
  --r2026-border-strong: #cbd5e1;
  --r2026-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --r2026-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --r2026-shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.15);
  --r2026-radius-sm: 8px;
  --r2026-radius: 12px;
  --r2026-radius-lg: 16px;
}

body.r2026 {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  color: var(--r2026-text);
  background: var(--r2026-bg);
  margin: 0;
  padding: 0;
}

body.r2026 a {
  text-decoration: none;
  color: inherit;
}
body.r2026 h1,
body.r2026 h2,
body.r2026 h3,
body.r2026 h4 {
  margin: 0;
  font-weight: 700;
  color: var(--r2026-text);
}

/* ---------- Top contact bar ---------- */
.r2026-topbar {
  background: var(--r2026-primary-dark);
  color: #dbe7f3;
  font-size: 13px;
  padding: 8px 0;
}
.r2026-topbar .r2026-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.r2026-topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.r2026-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe7f3;
}
.r2026-topbar-item i {
  color: #8fb3d9;
}
.r2026-topbar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.r2026-topbar-social a {
  color: #dbe7f3;
  transition: color 0.15s ease;
}
.r2026-topbar-social a:hover {
  color: #fff;
}

/* ---------- Navbar ---------- */
.r2026-nav {
  background: #fff;
  border-bottom: 1px solid var(--r2026-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.r2026-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.r2026-nav-brand img {
  height: 52px;
  width: auto;
  display: block;
}
.r2026-nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.r2026-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.r2026-nav-links a {
  color: var(--r2026-text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.r2026-nav-links a:hover,
.r2026-nav-links a.active {
  color: var(--r2026-primary);
  border-bottom-color: var(--r2026-primary);
}
.r2026-btn-cta {
  background: var(--r2026-primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--r2026-radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  border: none;
  display: inline-block;
}
.r2026-btn-cta:hover {
  background: var(--r2026-primary-hover);
  color: #fff !important;
  transform: translateY(-1px);
}
.r2026-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--r2026-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 18px;
  color: var(--r2026-text);
  cursor: pointer;
}

/* ---------- Container ---------- */
.r2026-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.r2026-container h1 {
  color: var(--r2026-text-home-title) !important;
}

/* ---------- Hero (home) ---------- */
.r2026-hero {
  position: relative;
  min-height: 640px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.r2026-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Camada superior: tonalizacao da marca, cor (getCorMenu) e intensidade
     (getOpacidadeCabecalho) definidas por corretora via --r2026-hero-overlay
     em home.php. Camada inferior: scrim escuro fixo que garante legibilidade
     do texto branco independentemente da opacidade escolhida pela corretora.
     Sem a variavel (fallback), mantem o visual padrao baseado no primary. */
  background:
    var(
      --r2026-hero-overlay,
      linear-gradient(
        135deg,
        color-mix(in srgb, var(--r2026-primary) 75%, transparent),
        color-mix(in srgb, var(--r2026-primary-dark) 65%, transparent)
      )
    ),
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.42));
}
.r2026-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  width: 100%;
  padding: 64px 24px;
}
.r2026-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.r2026-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 40px;
  font-weight: 400;
}

/* ---------- Search card (home) ---------- */
.r2026-search-card {
  background: #fff;
  border-radius: var(--r2026-radius-lg);
  padding: 24px;
  max-width: 980px;
  margin: 0 auto;
  box-shadow: var(--r2026-shadow-lg);
}
.r2026-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.r2026-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r2026-radius-sm);
  border: 1px solid var(--r2026-border);
  background: #fff;
  color: var(--r2026-text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.r2026-tab.active {
  background: var(--r2026-primary);
  color: #fff;
  border-color: var(--r2026-primary);
}
.r2026-tab:hover:not(.active) {
  background: var(--r2026-bg-soft);
}
.r2026-search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.r2026-field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--r2026-bg-soft);
  border: 1px solid var(--r2026-border);
  border-radius: var(--r2026-radius-sm);
  padding: 0 14px;
  min-height: 52px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.r2026-field:focus-within {
  border-color: var(--r2026-primary);
  background: #fff;
}
.r2026-field i {
  color: var(--r2026-text-muted);
  margin-right: 10px;
  font-size: 15px;
}
.r2026-field select,
.r2026-field input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--r2026-text);
  outline: none;
  min-width: 0;
  height: 50px;
  font-family: inherit;
}
.r2026-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3e%3cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 22px;
}
.r2026-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--r2026-primary);
  color: #fff;
  border: none;
  border-radius: var(--r2026-radius-sm);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  min-height: 52px;
  text-decoration: none;
}
.r2026-btn:hover {
  background: var(--r2026-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}
.r2026-btn-outline {
  background: #fff;
  color: var(--r2026-primary);
  border: 1px solid var(--r2026-primary);
}
.r2026-btn-outline:hover {
  background: var(--r2026-primary);
  color: #fff;
}
.r2026-btn-block {
  width: 100%;
}

/* ---------- Featured section ---------- */
.r2026-section {
  padding: 80px 0;
  background: var(--r2026-bg-soft);
}
.r2026-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.r2026-section-title-wrap {
  max-width: 640px;
  position: relative;
  padding-left: 16px;
}
.r2026-section-title-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 8px;
  width: 3px;
  background: var(--r2026-primary);
  border-radius: 2px;
}
.r2026-section-kicker {
  color: var(--r2026-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.r2026-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--r2026-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.r2026-section-desc {
  color: var(--r2026-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Property cards ---------- */
.r2026-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.r2026-card {
  background: #fff;
  border-radius: var(--r2026-radius-lg);
  overflow: hidden;
  box-shadow: var(--r2026-shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--r2026-border);
}
.r2026-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--r2026-shadow-md);
}
.r2026-card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--r2026-bg-muted);
}
.r2026-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.r2026-card:hover .r2026-card-media img {
  transform: scale(1.05);
}
.r2026-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--r2026-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--r2026-radius-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 1;
}
.r2026-badge.aluguel {
  background: var(--r2026-accent);
}
.r2026-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.r2026-card-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--r2026-text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.r2026-card-location i {
  color: var(--r2026-primary);
}
.r2026-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--r2026-text);
  margin-bottom: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.r2026-card-attrs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--r2026-border);
  margin-bottom: 14px;
  color: var(--r2026-text-muted);
  font-size: 13px;
}
.r2026-card-attr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.r2026-card-attr i {
  color: var(--r2026-text-muted);
}
.r2026-card-price {
  color: var(--r2026-primary);
  font-size: 22px;
  font-weight: 800;
  margin-top: auto;
}
.r2026-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--r2026-text-muted);
  background: #fff;
  border-radius: var(--r2026-radius-lg);
  grid-column: 1 / -1;
}
.r2026-empty img {
  width: 300px;
  opacity: 0.7;
  margin-bottom: 16px;
}

/* ---------- Listings page hero ---------- */
.r2026-listings-hero {
  background: var(--r2026-primary);
  padding: 60px 0 80px;
  color: #fff;
  text-align: center;
}
.r2026-listings-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.r2026-listings-hero-search {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r2026-radius-sm);
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-height: 54px;
  backdrop-filter: blur(8px);
}
.r2026-listings-hero-search i {
  color: rgba(255, 255, 255, 0.75);
  margin-right: 10px;
}
.r2026-listings-hero-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 15px;
  min-height: 54px;
}
.r2026-listings-hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Listings layout ---------- */
.r2026-listings {
  padding: 40px 0 80px;
  background: var(--r2026-bg-soft);
  margin-top: -40px;
}
.r2026-listings-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: flex-start;
}
.r2026-filter-card {
  background: #fff;
  border-radius: var(--r2026-radius-lg);
  padding: 24px;
  box-shadow: var(--r2026-shadow-sm);
  border: 1px solid var(--r2026-border);
  position: sticky;
  top: 96px;
}
.r2026-filter-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.r2026-filter-group {
  margin-bottom: 20px;
}
.r2026-filter-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--r2026-text);
  margin-bottom: 10px;
}
.r2026-filter-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.r2026-filter-tabs .r2026-tab {
  padding: 10px 12px;
  font-size: 13px;
  justify-content: center;
}
.r2026-filter-field {
  width: 100%;
  padding: 10px 14px;
  background: var(--r2026-bg-soft);
  border: 1px solid var(--r2026-border);
  border-radius: var(--r2026-radius-sm);
  font-size: 14px;
  color: var(--r2026-text);
  outline: none;
  font-family: inherit;
  min-height: 44px;
}
.r2026-filter-field:focus {
  border-color: var(--r2026-primary);
  background: #fff;
}
select.r2026-filter-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3e%3cpath d='M1 1L5 5L9 1' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.r2026-price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.r2026-price-range input {
  width: 100%;
  min-height: 44px;
}
.r2026-price-range span {
  color: var(--r2026-text-muted);
  font-size: 13px;
}
.r2026-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.r2026-filter-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--r2026-border);
  color: var(--r2026-primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.r2026-filter-more i {
  transition: transform 0.2s ease;
  font-size: 12px;
}
.r2026-filter-more.open i {
  transform: rotate(180deg);
}
.r2026-filter-advanced {
  display: none;
  padding-top: 4px;
}
.r2026-filter-advanced.open {
  display: block;
}
.r2026-results-count {
  font-size: 14px;
  color: var(--r2026-text-muted);
  margin-bottom: 20px;
}
.r2026-results-count strong {
  color: var(--r2026-text);
}

/* ---------- About page ---------- */
.r2026-about-hero {
  background: var(--r2026-primary);
  color: #fff;
  padding: 80px 0 120px;
  text-align: center;
}
.r2026-about-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.r2026-about-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}
.r2026-stats {
  margin-top: -72px;
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}
.r2026-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.r2026-stats-grid .r2026-stat-card {
  flex: 0 1 260px;
  max-width: 320px;
}
.r2026-stat-card {
  background: #fff;
  border-radius: var(--r2026-radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--r2026-shadow-md);
  border: 1px solid var(--r2026-border);
}
.r2026-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r2026-radius-sm);
  background: color-mix(in srgb, var(--r2026-primary) 8%, transparent);
  color: var(--r2026-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.r2026-stat-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--r2026-text);
  line-height: 1;
  margin-bottom: 6px;
}
.r2026-stat-label {
  color: var(--r2026-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.r2026-about-split {
  padding: 40px 0 80px;
  background: #fff;
}
.r2026-about-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.r2026-about-image {
  border-radius: var(--r2026-radius-lg);
  overflow: hidden;
  box-shadow: var(--r2026-shadow-md);
  aspect-ratio: 4/3;
}
.r2026-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.r2026-about-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.r2026-about-feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.r2026-about-feature-head h3 {
  font-size: 20px;
  font-weight: 700;
}
.r2026-about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r2026-radius-sm);
  background: color-mix(in srgb, var(--r2026-primary) 8%, transparent);
  color: var(--r2026-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.r2026-about-feature p {
  color: var(--r2026-text-muted);
  line-height: 1.7;
  font-size: 15px;
}
.r2026-about-feature-text {
  color: var(--r2026-text-muted);
  line-height: 1.7;
  font-size: 15px;
}
.r2026-about-feature-text p {
  margin-bottom: 12px;
}
.r2026-about-feature-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r2026-radius-sm);
}

.r2026-team {
  padding: 80px 0;
  background: var(--r2026-bg-soft);
}
.r2026-team-head {
  text-align: center;
  margin-bottom: 48px;
}
.r2026-team-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--r2026-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.r2026-team-head p {
  color: var(--r2026-text-muted);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}
.r2026-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.r2026-team-card {
  flex: 0 1 340px;
  max-width: 340px;
  background: #fff;
  border-radius: var(--r2026-radius-lg);
  overflow: hidden;
  box-shadow: var(--r2026-shadow-sm);
  border: 1px solid var(--r2026-border);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.r2026-team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--r2026-shadow-md);
}
.r2026-team-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--r2026-bg-muted);
}
.r2026-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.r2026-team-body {
  padding: 24px;
  text-align: center;
}
.r2026-team-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--r2026-text);
  margin-bottom: 6px;
}
.r2026-team-role {
  color: var(--r2026-primary);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .r2026-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .r2026-about-split-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .r2026-team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
@media (max-width: 560px) {
  .r2026-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact page ---------- */
.r2026-contact {
  padding: 40px 0 80px;
  background: var(--r2026-bg-soft);
  margin-top: -40px;
}
.r2026-contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.r2026-card-block {
  background: #fff;
  border-radius: var(--r2026-radius-lg);
  padding: 32px;
  box-shadow: var(--r2026-shadow-sm);
  border: 1px solid var(--r2026-border);
}
.r2026-card-block h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.r2026-card-block .r2026-card-block-desc {
  color: var(--r2026-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.r2026-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.r2026-form-group {
  margin-bottom: 18px;
}
.r2026-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--r2026-text);
  margin-bottom: 6px;
}
.r2026-form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--r2026-bg-soft);
  border: 1px solid var(--r2026-border);
  border-radius: var(--r2026-radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--r2026-text);
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  min-height: 44px;
}
.r2026-form-control:focus {
  border-color: var(--r2026-primary);
  background: #fff;
}
textarea.r2026-form-control {
  min-height: 140px;
  resize: vertical;
}
.r2026-contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.r2026-broker-id {
  background: #fff;
  border: 1px solid var(--r2026-border);
  border-radius: var(--r2026-radius);
  box-shadow: var(--r2026-shadow-sm);
  padding: 24px;
  text-align: center;
}
.r2026-broker-id img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--r2026-primary) 30%, #fff),
    var(--r2026-shadow-md);
  background: var(--r2026-bg-muted);
}
.r2026-broker-id .r2026-broker-name {
  font-weight: 700;
  font-size: 19px;
  color: var(--r2026-text);
  letter-spacing: -0.01em;
}
.r2026-broker-id .r2026-broker-creci {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--r2026-primary) 10%, transparent);
  color: var(--r2026-primary);
  font-size: 13px;
  font-weight: 600;
}
.r2026-contact-note {
  background: #fff;
  border: 1px solid var(--r2026-border);
  border-radius: var(--r2026-radius);
  box-shadow: var(--r2026-shadow-sm);
  color: var(--r2026-text-muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 20px 22px;
}
.r2026-contact-note p {
  margin: 0 0 8px;
}
.r2026-contact-note p:last-child {
  margin-bottom: 0;
}
.r2026-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.r2026-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--r2026-border);
  border-radius: var(--r2026-radius);
  padding: 20px;
  box-shadow: var(--r2026-shadow-sm);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.r2026-info-card:hover {
  border-color: var(--r2026-border-strong);
}
.r2026-info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--r2026-radius-sm);
  background: color-mix(in srgb, var(--r2026-primary) 8%, transparent);
  color: var(--r2026-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.r2026-info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.r2026-info-text .r2026-info-label {
  font-size: 15px;
  color: var(--r2026-text);
  font-weight: 700;
}
.r2026-info-text .r2026-info-value,
.r2026-info-text .r2026-info-value a {
  font-size: 14px;
  color: var(--r2026-text-muted);
  font-weight: 400;
  word-break: break-word;
  line-height: 1.5;
}
.r2026-info-text .r2026-info-value a:hover {
  color: var(--r2026-primary);
}
.r2026-info-card.whatsapp {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.r2026-info-card.whatsapp .r2026-info-icon {
  background: var(--r2026-accent);
  color: #fff;
  font-size: 22px;
}
.r2026-info-card.whatsapp .r2026-info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--r2026-accent-dark);
  font-weight: 600;
  font-size: 14px;
}
.r2026-info-card.whatsapp .r2026-info-link:hover {
  color: #065f46;
}

.r2026-map {
  margin-top: 32px;
  border-radius: var(--r2026-radius-lg);
  overflow: hidden;
  box-shadow: var(--r2026-shadow-sm);
  border: 1px solid var(--r2026-border);
  background: var(--r2026-bg-muted);
}
.r2026-map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

@media (max-width: 960px) {
  .r2026-contact-layout {
    grid-template-columns: 1fr;
  }
  .r2026-map iframe {
    height: 320px;
  }
}
@media (max-width: 560px) {
  .r2026-form-row {
    grid-template-columns: 1fr;
  }
  .r2026-card-block {
    padding: 24px;
  }
}

/* ---------- Pagination ---------- */
.r2026-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.r2026-pagination a,
.r2026-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r2026-radius-sm);
  border: 1px solid var(--r2026-border);
  background: #fff;
  color: var(--r2026-text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.r2026-pagination a:hover {
  border-color: var(--r2026-primary);
  color: var(--r2026-primary);
}
.r2026-pagination .active {
  background: var(--r2026-primary);
  color: #fff;
  border-color: var(--r2026-primary);
}
.r2026-pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.r2026-footer {
  background: var(--r2026-primary-dark);
  color: #cbd5e1;
  padding: 40px 0 24px;
  font-size: 14px;
}
.r2026-footer-contact {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.r2026-footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.r2026-footer-contact-item i {
  color: var(--r2026-accent);
  font-size: 15px;
}
.r2026-footer-contact-item:hover {
  color: var(--r2026-accent);
}
.r2026-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.r2026-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.r2026-footer a {
  color: #fff;
}
.r2026-footer a:hover {
  color: var(--r2026-accent);
}
.r2026-footer-bottom {
  text-align: center;
  padding-top: 20px;
  color: #94a3b8;
  font-size: 13px;
}

/* ---------- FAB ---------- */
.r2026-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.r2026-fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--r2026-shadow-md);
  color: #fff;
  font-size: 26px;
  transition: transform 0.15s ease;
}
.r2026-fab-btn:hover {
  transform: scale(1.05);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .r2026-listings-layout {
    grid-template-columns: 1fr;
  }
  .r2026-filter-card {
    position: static;
  }
  .r2026-search-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .r2026-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .r2026-nav-inner {
    flex-wrap: wrap;
  }
  .r2026-nav-right {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    display: none;
    padding: 8px 0 4px;
    border-top: 1px solid var(--r2026-border);
    margin-top: 12px;
  }
  .r2026-nav-right.open {
    display: block;
  }
  .r2026-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .r2026-nav-links li {
    width: 100%;
  }
  .r2026-nav-links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--r2026-border);
    border-bottom-color: var(--r2026-border);
  }
  .r2026-nav-links a:hover,
  .r2026-nav-links a.active {
    border-bottom-color: var(--r2026-border);
    background: var(--r2026-bg-soft);
    padding-left: 12px;
  }
  .r2026-nav-links li:last-child a {
    border-bottom: none;
  }
  .r2026-topbar-left .r2026-topbar-item:first-child {
    display: none;
  }
  .r2026-hero {
    min-height: 520px;
  }
  .r2026-section {
    padding: 56px 0;
  }
  .r2026-topbar .r2026-container {
    justify-content: center;
  }
  .r2026-footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .r2026-footer-contact {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
}

/* ---------- Page-level overrides (neutralize legacy styles on redesigned pages) ---------- */
body.r2026 .fab-home-container {
  display: none !important;
}

/* Hide the old fixed bootstrap navbar when r2026 active */
body.r2026 > nav.navbar.fixed-top {
  display: none !important;
}

/* ==========================================================================
   Property detail (imovel.php) — r2026
   ========================================================================== */
.r2026-imv-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px 96px;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.r2026-imv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Mesma logica do hero da home: camada superior com a cor/intensidade
     definidas pela corretora (--r2026-hero-overlay) e scrim escuro fixo
     para legibilidade. Sem a variavel, mantem o visual padrao do primary. */
  background:
    var(
      --r2026-hero-overlay,
      linear-gradient(
        135deg,
        color-mix(in srgb, var(--r2026-primary) 78%, transparent),
        color-mix(in srgb, var(--r2026-primary-dark) 70%, transparent)
      )
    ),
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.42));
}
.r2026-imv-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.r2026-imv-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.r2026-imv-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  margin: 12px 0 0;
}
.r2026-imv-hero p i {
  margin-right: 6px;
}

.r2026-imv-wrap {
  max-width: 1180px;
  margin: -56px auto 0;
  padding: 0 20px 64px;
  position: relative;
  z-index: 2;
}
.r2026-imv-breadcrumb {
  background: #fff;
  border: 1px solid var(--r2026-border);
  border-radius: var(--r2026-radius-sm);
  box-shadow: var(--r2026-shadow-sm);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--r2026-text-muted);
  margin-bottom: 18px;
}
.r2026-imv-breadcrumb a {
  color: var(--r2026-primary);
  text-decoration: none;
  font-weight: 600;
}
.r2026-imv-breadcrumb a:hover {
  text-decoration: underline;
}
.r2026-imv-breadcrumb span {
  margin: 0 8px;
  color: var(--r2026-text-soft);
}

.r2026-imv-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: start;
}
/* Grid items default to min-width:auto; a large gallery image would otherwise
   blow the track out to its intrinsic pixel width and push the sidebar
   off-screen. min-width:0 lets the columns honor the fr tracks. */
.r2026-imv-layout > * {
  min-width: 0;
}
.r2026-imv-card {
  background: #fff;
  border: 1px solid var(--r2026-border);
  border-radius: var(--r2026-radius-lg);
  box-shadow: var(--r2026-shadow-md);
  margin-bottom: 24px;
  overflow: hidden;
}
.r2026-imv-card-pad {
  padding: 28px;
}

/* Gallery */
.r2026-imv-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #0f172a;
  overflow: hidden;
}
.r2026-imv-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  display: block;
}
.r2026-imv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3;
}
.r2026-imv-nav:hover {
  background: rgba(0, 0, 0, 0.72);
}
.r2026-imv-prev {
  left: 14px;
}
.r2026-imv-next {
  right: 14px;
}
.r2026-imv-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 14px;
  z-index: 3;
}
.r2026-imv-expand {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3;
}
.r2026-imv-expand:hover {
  background: rgba(0, 0, 0, 0.72);
}
.r2026-imv-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--r2026-bg-muted);
  overflow-x: auto;
  scroll-behavior: smooth;
}
.r2026-imv-thumbs::-webkit-scrollbar {
  height: 6px;
}
.r2026-imv-thumbs::-webkit-scrollbar-thumb {
  background: var(--r2026-border-strong);
  border-radius: 3px;
}
.r2026-imv-thumb {
  flex: 0 0 104px;
  height: 72px;
  object-fit: cover;
  cursor: pointer;
  border-radius: var(--r2026-radius-sm);
  border: 2px solid transparent;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}
.r2026-imv-thumb:hover {
  opacity: 0.82;
}
.r2026-imv-thumb.active {
  border-color: var(--r2026-primary);
}

/* Sidebar info */
.r2026-imv-sidebar {
  position: sticky;
  top: 90px;
}
.r2026-imv-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--r2026-primary);
  margin-bottom: 12px;
}
.r2026-imv-badge.aluguel {
  background: var(--r2026-accent);
}
.r2026-imv-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--r2026-text);
  margin: 0 0 6px;
}
.r2026-imv-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--r2026-accent-dark);
  margin: 0;
  line-height: 1.2;
}
.r2026-imv-address {
  color: var(--r2026-text-muted);
  font-size: 15px;
  margin: 12px 0 0;
  line-height: 1.5;
}
.r2026-imv-address i {
  margin-right: 6px;
  color: var(--r2026-primary);
}
.r2026-imv-code {
  font-size: 13px;
  color: var(--r2026-text-soft);
  margin-top: 10px;
}
.r2026-imv-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--r2026-text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
}
.r2026-imv-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--r2026-primary);
  border-radius: 2px;
}
.r2026-imv-attrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin-top: 4px;
}
.r2026-imv-attr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--r2026-border);
  font-size: 14px;
}
.r2026-imv-attr i,
.r2026-imv-attr .r2026-imv-attr-ico {
  color: var(--r2026-primary);
}
.r2026-imv-attr-val {
  color: var(--r2026-text);
  font-weight: 600;
}
.r2026-imv-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.r2026-imv-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--r2026-radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.r2026-imv-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--r2026-shadow-md);
  text-decoration: none;
}
.r2026-imv-cta-whatsapp {
  background: #25d366;
  color: #fff;
}
.r2026-imv-cta-whatsapp:hover {
  color: #fff;
}
.r2026-imv-cta-primary {
  background: var(--r2026-primary);
  color: #fff;
}
.r2026-imv-cta-primary:hover {
  background: var(--r2026-primary-hover);
  color: #fff;
}

/* Broker card */
.r2026-imv-broker {
  text-align: center;
}
.r2026-imv-broker img.r2026-imv-broker-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 14px;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--r2026-primary) 30%, #fff),
    var(--r2026-shadow-md);
  background: var(--r2026-bg-muted);
}
.r2026-imv-broker-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--r2026-text);
}
.r2026-imv-broker-creci {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--r2026-primary) 10%, transparent);
  color: var(--r2026-primary);
  font-size: 13px;
  font-weight: 600;
}
.r2026-imv-broker-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--r2026-border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.r2026-imv-broker-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--r2026-text-muted);
  line-height: 1.5;
}
.r2026-imv-broker-list li i {
  width: 20px;
  text-align: center;
  margin-top: 3px;
  color: var(--r2026-primary);
  flex-shrink: 0;
}
.r2026-imv-broker-list a {
  color: var(--r2026-text-muted);
  text-decoration: none;
  word-break: break-word;
}
.r2026-imv-broker-list a:hover {
  color: var(--r2026-primary);
}
.r2026-imv-broker-logo {
  max-width: 80%;
  height: auto;
  margin: 20px auto 0;
  display: block;
}

.r2026-imv-video {
  margin-bottom: 16px;
}
.r2026-imv-video:last-child {
  margin-bottom: 0;
}
.r2026-imv-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r2026-radius);
}
.r2026-imv-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.r2026-imv-desc {
  color: var(--r2026-text-muted);
  line-height: 1.8;
  font-size: 15px;
}
.r2026-imv-desc p {
  margin: 0 0 8px;
}

.r2026-imv-notfound {
  text-align: center;
  padding: 60px 24px;
}
.r2026-imv-notfound img {
  max-width: 320px;
  width: 70%;
  height: auto;
  margin: 24px auto 0;
}

/* Lightbox */
.r2026-imv-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.r2026-imv-lightbox.active {
  display: flex;
}
.r2026-imv-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r2026-radius-sm);
}
.r2026-imv-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  background: none;
  border: 0;
  z-index: 10000;
}
.r2026-imv-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.r2026-imv-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}
.r2026-imv-lightbox-prev {
  left: 22px;
}
.r2026-imv-lightbox-next {
  right: 22px;
}
.r2026-imv-lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

@media (max-width: 960px) {
  .r2026-imv-layout {
    grid-template-columns: 1fr;
  }
  .r2026-imv-sidebar {
    position: static;
  }
  .r2026-imv-wrap {
    margin-top: -40px;
  }
}
@media (max-width: 560px) {
  .r2026-imv-attrs {
    grid-template-columns: 1fr;
  }
  .r2026-imv-stage {
    aspect-ratio: 4/3;
  }
  .r2026-imv-price {
    font-size: 24px;
  }
  .r2026-imv-thumb {
    flex-basis: 84px;
    height: 58px;
  }
}
