/* ==========================================================================
   TEMA: Elegance
   Arquivo: themes/site_theme_elegance.css
   Tokens: --st-* injetados pelo ThemeResolver via theme_css_tag
   Classes: pub-elegance-*
   Personalidade: Sofisticado, clean, tipografia serif, espaçamento generoso
   ========================================================================== */

/* ==========================================================================
   0. VARIÁVEIS ESPECÍFICAS DO TEMA ELEGANCE
   ========================================================================== */

.theme-elegance {
  --eleg-nav-bg: rgba(255, 255, 255, 0.92);
  --eleg-nav-border: rgba(0, 0, 0, 0.06);
  --eleg-footer-bg: #1a2332;
  --eleg-footer-text: rgba(255, 255, 255, 0.75);
  --eleg-footer-heading: #ffffff;
  --eleg-footer-border: rgba(255, 255, 255, 0.1);
  --eleg-card-radius: 16px;
  --eleg-input-radius: 12px;
  --eleg-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --eleg-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --eleg-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Identidade visual dark do tema */
  --eleg-dark-bg: #1a2332;
  --eleg-dark-bg-mid: #2d3e50;
  --eleg-accent-light: #c8a96e;
}

/* ==========================================================================
   1. TIPOGRAFIA E BASE
   ========================================================================== */

.theme-elegance {
  font-family: var(--st-font-body);
  color: var(--st-text);
  background: var(--st-surface);
  line-height: 1.65;
}

.theme-elegance h1,
.theme-elegance h2,
.theme-elegance h3,
.theme-elegance h4 {
  font-family: var(--st-font-heading);
  line-height: 1.25;
  color: var(--st-text);
  letter-spacing: -0.02em;
}

.theme-elegance a {
  color: var(--st-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.theme-elegance a:hover {
  color: var(--st-secondary);
}

/* ==========================================================================
   2. CONTAINER
   ========================================================================== */

.pub-elegance-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .pub-elegance-container {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   3. HEADER — Sticky glassmorphism
   ========================================================================== */

.pub-elegance-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--eleg-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--eleg-nav-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.pub-elegance-header--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.pub-elegance-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  gap: 2rem;
}

/* Brand */
.pub-elegance-header__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.pub-elegance-header__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.pub-elegance-header__brand-name {
  font-family: var(--st-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--st-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Nav desktop */
.pub-elegance-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.pub-elegance-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--st-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.pub-elegance-header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--st-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.pub-elegance-header__nav a:hover {
  color: var(--st-primary);
}

.pub-elegance-header__nav a:hover::after {
  transform: scaleX(1);
}

/* Actions */
.pub-elegance-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pub-elegance-header__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--st-primary);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--st-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--eleg-transition);
}

.pub-elegance-header__contact-btn:hover {
  background: var(--st-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.pub-elegance-header__wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  background: var(--st-primary);
  border: 1.5px solid var(--st-primary);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--eleg-transition);
}

.pub-elegance-header__wa-btn:hover {
  background: var(--st-primary-dark, #1f4d38);
  border-color: var(--st-primary-dark, #1f4d38);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--st-primary-rgb, 45, 106, 79), 0.3);
}

/* Hamburger mobile */
.pub-elegance-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}

.pub-elegance-header__hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.pub-elegance-header__hamburger span {
  display: block;
  height: 2px;
  background: var(--st-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ==========================================================================
   4. MOBILE NAV DRAWER
   ========================================================================== */

.pub-elegance-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: #ffffff;
  z-index: 200;
  padding: 5rem 2rem 2rem;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-elegance-nav-drawer.is-open {
  transform: translateX(0);
}

.pub-elegance-nav-drawer__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--st-text);
  transition: background 0.2s;
}

.pub-elegance-nav-drawer__close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.pub-elegance-nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pub-elegance-nav-drawer__links a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--st-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.2s, padding-left 0.2s;
}

.pub-elegance-nav-drawer__links a:hover {
  color: var(--st-primary);
  padding-left: 0.5rem;
}

.pub-elegance-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pub-elegance-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   5. FOOTER — Dark 4 colunas
   ========================================================================== */

.pub-elegance-footer {
  background: var(--eleg-footer-bg);
  color: var(--eleg-footer-text);
  padding: 4rem 0 0;
  margin-top: 5rem;
}

.pub-elegance-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.pub-elegance-footer__col-heading {
  font-family: var(--st-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--eleg-footer-heading);
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}

.pub-elegance-footer__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--eleg-footer-text);
  margin: 0 0 0.5rem;
}

.pub-elegance-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pub-elegance-footer__links a {
  font-size: 0.875rem;
  color: var(--eleg-footer-text);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.pub-elegance-footer__links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.pub-elegance-footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pub-elegance-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--eleg-footer-border);
  border-radius: 50%;
  color: var(--eleg-footer-text);
  text-decoration: none;
  transition: var(--eleg-transition);
}

.pub-elegance-footer__social:hover {
  background: var(--st-primary);
  border-color: var(--st-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.pub-elegance-footer__creci {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--st-primary);
  background: rgba(var(--st-primary-rgb, 45, 106, 79), 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.pub-elegance-footer__bottom {
  margin-top: 3rem;
  border-top: 1px solid var(--eleg-footer-border);
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-elegance-footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.pub-elegance-footer__powered {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.pub-elegance-footer__powered a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.pub-elegance-footer__powered a:hover {
  color: #ffffff;
}

/* ==========================================================================
   6. RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 1023px) {
  .pub-elegance-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  .pub-elegance-header__nav {
    display: none;
  }

  .pub-elegance-header__contact-btn {
    display: none;
  }

  .pub-elegance-header__hamburger {
    display: flex;
  }

  .pub-elegance-header__inner {
    padding: 0 1rem;
    height: 60px;
  }

  .pub-elegance-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.25rem;
  }

  .pub-elegance-footer {
    padding: 3rem 0 0;
  }

  .pub-elegance-footer__bottom {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .pub-elegance-header__wa-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   HOMEPAGE — HERO
   ========================================================================== */

.eleg-hero {
  position: relative;
  background: linear-gradient(135deg, var(--eleg-dark-bg) 0%, var(--eleg-dark-bg-mid) 40%, var(--eleg-dark-bg) 100%);
  padding: 80px 1.5rem 110px;
  overflow: hidden;
}

.eleg-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.eleg-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(200, 169, 110, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.eleg-hero--with-image .eleg-hero__overlay {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(45, 62, 80, 0.75) 40%, rgba(26, 35, 50, 0.85) 100%);
}

.eleg-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eleg-hero__title {
  font-family: var(--st-font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.eleg-hero__title-accent {
  color: var(--eleg-accent-light);
}

.eleg-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Search box glassmorphism */
.eleg-hero__search {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Toggle comprar / alugar */
.eleg-hero__toggle {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 0.25rem;
  width: fit-content;
  margin: 0 auto;
}

.eleg-hero__toggle-btn {
  padding: 0.4rem 1.25rem;
  border-radius: 99px;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--eleg-transition);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--st-font-body);
}

.eleg-hero__toggle-btn.active {
  background: #ffffff;
  color: var(--eleg-dark-bg);
}

.eleg-hero__toggle-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Linha de inputs */
.eleg-hero__inputs {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.eleg-hero__input-wrap {
  flex: 1;
  min-width: 130px;
  position: relative;
}

.eleg-hero__input-wrap--search {
  flex: 2;
  min-width: 200px;
}

.eleg-hero__input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.eleg-hero__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--eleg-input-radius);
  padding: 0.65rem 0.875rem 0.65rem 2.375rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: var(--st-font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.eleg-hero__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.eleg-hero__input:focus {
  outline: none;
  border-color: rgba(200, 169, 110, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.eleg-hero__select {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--eleg-input-radius);
  padding: 0.65rem 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-family: var(--st-font-body);
  cursor: pointer;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.eleg-hero__select option {
  background: var(--eleg-dark-bg);
  color: #ffffff;
}

.eleg-hero__select:focus {
  outline: none;
  border-color: rgba(200, 169, 110, 0.6);
}

.eleg-hero__search-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--st-primary, #b07d3a);
  color: #ffffff;
  border: none;
  border-radius: var(--eleg-input-radius);
  padding: 0.65rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--st-font-body);
  cursor: pointer;
  transition: var(--eleg-transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.eleg-hero__search-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   HOMEPAGE — EXPERIENCES STRIP
   ========================================================================== */

.eleg-experiences {
  position: relative;
  z-index: 10;
  margin-top: -44px;
  padding: 0 1.5rem;
}

.eleg-experiences__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.eleg-experiences__inner::-webkit-scrollbar {
  display: none;
}

.eleg-experience-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  min-width: 110px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: var(--eleg-transition);
  cursor: pointer;
  flex-shrink: 0;
}

.eleg-experience-card:hover {
  border-color: var(--st-primary, #b07d3a);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.eleg-experience-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-primary, #b07d3a);
}

.eleg-experience-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--st-text);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

/* ==========================================================================
   HOMEPAGE — SECTION TITLE
   ========================================================================== */

.eleg-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.eleg-section-title__heading {
  font-family: var(--st-font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--st-text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.eleg-section-title__sub {
  font-size: 1rem;
  color: var(--st-text-muted, rgba(0, 0, 0, 0.55));
  line-height: 1.5;
}

/* ==========================================================================
   HOMEPAGE — NEIGHBORHOODS GRID
   ========================================================================== */

.eleg-neighborhoods {
  padding: 4rem 1.5rem;
  background: var(--st-surface-alt, #f7f6f3);
}

.eleg-neighborhoods__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.eleg-neighborhood-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 140px;
  background-color: var(--nb-color, #7A6652);
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.eleg-neighborhood-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.eleg-neighborhood-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.5));
}

.eleg-neighborhood-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
}

.eleg-neighborhood-card__name {
  display: block;
  font-family: var(--st-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.eleg-neighborhood-card__count {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   HOMEPAGE — STATS BAR
   ========================================================================== */

.eleg-stats-bar {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--eleg-dark-bg), var(--eleg-dark-bg-mid));
}

.eleg-stats-bar__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.eleg-stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.eleg-stat-item__value {
  display: block;
  font-family: var(--st-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--eleg-accent-light);
  line-height: 1;
  letter-spacing: -0.02em;
}

.eleg-stat-item__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.4;
}

/* ==========================================================================
   HOMEPAGE — RESPONSIVIDADE MOBILE
   ========================================================================== */

@media (max-width: 767px) {
  .eleg-hero {
    padding: 56px 1rem 90px;
  }

  .eleg-hero__title {
    font-size: 2rem;
  }

  .eleg-hero__subtitle {
    font-size: 1rem;
  }

  .eleg-hero__search {
    padding: 1rem;
    border-radius: 16px;
  }

  .eleg-hero__inputs {
    flex-direction: column;
  }

  .eleg-hero__input-wrap,
  .eleg-hero__input-wrap--search {
    width: 100%;
    min-width: unset;
    flex: unset;
  }

  .eleg-hero__search-btn {
    width: 100%;
    justify-content: center;
  }

  .eleg-experiences {
    margin-top: -36px;
    padding: 0 1rem;
  }

  .eleg-neighborhoods__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eleg-neighborhoods {
    padding: 2.5rem 1rem;
  }

  .eleg-stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .eleg-section-title__heading {
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .eleg-hero__title {
    font-size: 2.5rem;
  }

  .eleg-neighborhoods__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   FEATURED SECTIONS — Imóveis em destaque + Lançamentos
   ========================================================================== */

.eleg-featured-section {
  padding: 4rem 0;
}

.eleg-featured-section--alt {
  background: var(--st-surface-alt, #f8f7f4);
}

/* Section title row */
.eleg-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.eleg-section-title__heading {
  font-family: var(--st-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--st-text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.eleg-section-title__sub {
  font-size: 0.9rem;
  color: var(--st-text-muted, #6b7280);
  margin: 0;
}

.eleg-section-title__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--st-primary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap 0.2s ease;
}

.eleg-section-title__link:hover {
  gap: 0.625rem;
  color: var(--st-primary);
}

/* 3-column grid */
.eleg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ==========================================================================
   PROPERTY CARD
   ========================================================================== */

.eleg-property-card {
  position: relative;
  background: var(--st-surface, #ffffff);
  border: 1px solid var(--st-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--eleg-card-radius, 16px);
  box-shadow: var(--eleg-shadow, 0 2px 20px rgba(0, 0, 0, 0.06));
  overflow: hidden;
  cursor: pointer;
  transition: var(--eleg-transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.eleg-property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eleg-shadow-hover, 0 12px 40px rgba(0, 0, 0, 0.12));
}

/* Gallery */
.eleg-property-card__gallery {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--st-border, #e5e7eb);
}

.eleg-property-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.eleg-property-card:hover .eleg-property-card__img {
  transform: scale(1.04);
}

.eleg-property-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-text-muted, #9ca3af);
  background: var(--st-border, #f3f4f6);
}

.eleg-property-card__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

/* Favorite button */
.eleg-property-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: var(--st-text-muted, #9ca3af);
  transition: color 0.2s ease, transform 0.15s ease;
}

.eleg-property-card__fav:hover {
  transform: scale(1.1);
  color: #e74c3c;
}

.eleg-fav-icon--filled {
  display: none;
}

.eleg-property-card__fav--active {
  color: #e74c3c;
}

.eleg-property-card__fav--active .eleg-fav-icon--outline {
  display: none;
}

.eleg-property-card__fav--active .eleg-fav-icon--filled {
  display: block;
}

/* Info */
.eleg-property-card__info {
  padding: 16px 20px 20px;
}

.eleg-property-card__price {
  font-family: var(--st-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--st-primary);
  line-height: 1.2;
}

.eleg-property-card__price-period {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--st-text-muted, #6b7280);
}

.eleg-property-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--st-text);
  margin-top: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eleg-property-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--st-text-muted, #6b7280);
  margin-top: 4px;
}

/* Specs row */
.eleg-property-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--st-border, rgba(0, 0, 0, 0.08));
}

.eleg-spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--st-text-muted, #6b7280);
}

.eleg-spec strong {
  color: var(--st-text);
  font-weight: 600;
}

/* Full-card link */
.eleg-property-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* ==========================================================================
   LAUNCH CARD
   ========================================================================== */

.eleg-launch-card {
  position: relative;
  background: var(--st-surface, #ffffff);
  border: 1px solid var(--st-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--eleg-card-radius, 16px);
  box-shadow: var(--eleg-shadow, 0 2px 20px rgba(0, 0, 0, 0.06));
  overflow: hidden;
  cursor: pointer;
  transition: var(--eleg-transition, all 0.3s cubic-bezier(0.4, 0, 0.2, 1));
}

.eleg-launch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--eleg-shadow-hover, 0 12px 40px rgba(0, 0, 0, 0.12));
}

/* Gallery */
.eleg-launch-card__gallery {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.eleg-launch-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.eleg-launch-card:hover .eleg-launch-card__img {
  transform: scale(1.04);
}

.eleg-launch-card__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.eleg-launch-card__gradient-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--eleg-dark-bg-mid, #2d3e50) 0%, var(--eleg-dark-bg, #1a2332) 100%);
}

.eleg-launch-card__perspective-text {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  pointer-events: none;
}

/* Badges */
.eleg-launch-card__status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--st-primary);
  color: #ffffff;
}

.eleg-launch-card__builder-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: var(--st-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Info */
.eleg-launch-card__info {
  padding: 16px 20px 20px;
}

.eleg-launch-card__name {
  font-family: var(--st-font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--st-text);
  line-height: 1.3;
}

.eleg-launch-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--st-text-muted, #6b7280);
  margin-top: 4px;
}

.eleg-launch-card__description {
  font-size: 0.8125rem;
  color: var(--st-text-muted, #6b7280);
  margin-top: 8px;
  line-height: 1.5;
}

.eleg-launch-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--st-primary);
  transition: gap 0.2s ease;
}

.eleg-launch-card:hover .eleg-launch-card__cta {
  gap: 10px;
}

.eleg-launch-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* ==========================================================================
   RESPONSIVE — Cards + grids
   ========================================================================== */

@media (max-width: 767px) {
  .eleg-featured-section {
    padding: 2.5rem 0;
  }

  .eleg-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .eleg-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .eleg-section-title__heading {
    font-size: 1.375rem;
  }

  .eleg-property-card__fav {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .eleg-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   11. LISTAGEM DE IMÓVEIS — _listing_content.html.erb
   ========================================================================== */

/* Acessibilidade: visually hidden */
.eleg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Breadcrumb compartilhado (listagem + detalhe) */
.eleg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--st-text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.eleg-breadcrumb a {
  color: var(--st-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.eleg-breadcrumb a:hover {
  color: var(--st-primary);
}

.eleg-breadcrumb__current {
  color: var(--st-text);
  font-weight: 500;
}

/* Layout principal: sidebar + conteúdo */
.eleg-listing-page {
  padding: 2rem 0;
}

.eleg-listing-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}

/* ─── SIDEBAR DE FILTROS ─── */
.eleg-filters-sidebar {
  flex: 0 0 260px;
  position: sticky;
  top: 90px;
}

.eleg-filters-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--eleg-shadow, 0 2px 20px rgba(0, 0, 0, 0.06));
}

.eleg-filters-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--st-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--st-text);
  margin-bottom: 1.25rem;
}

.eleg-filter-group {
  margin-bottom: 1.125rem;
}

.eleg-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--st-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.eleg-filter-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--st-border);
  border-radius: var(--eleg-input-radius, 12px);
  background: var(--st-surface);
  color: var(--st-text);
  font-family: var(--st-font-body);
  font-size: 0.875rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eleg-filter-select:focus {
  outline: none;
  border-color: var(--st-primary);
  box-shadow: 0 0 0 3px rgba(var(--st-primary-rgb, 45, 106, 79), 0.15);
}

.eleg-filter-select--sort {
  width: auto;
  min-width: 160px;
}

.eleg-filter-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eleg-filter-pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.375rem 0.75rem;
  border: 1.5px solid var(--st-border);
  border-radius: 8px;
  background: transparent;
  color: var(--st-text-muted);
  font-family: var(--st-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  overflow: visible;
}

.eleg-filter-pill:hover {
  border-color: var(--st-primary);
  color: var(--st-primary);
}

.eleg-filter-pill--active {
  background: var(--st-primary);
  border-color: var(--st-primary);
  color: #ffffff;
}

.eleg-filter-range-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eleg-filter-range-sep {
  color: var(--st-text-muted);
  flex-shrink: 0;
}

.eleg-filter-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--st-border);
  border-radius: var(--eleg-input-radius, 12px);
  background: var(--st-surface);
  color: var(--st-text);
  font-family: var(--st-font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.eleg-filter-input--full {
  width: 100%;
  flex: none;
}

.eleg-filter-input:focus {
  outline: none;
  border-color: var(--st-primary);
  box-shadow: 0 0 0 3px rgba(var(--st-primary-rgb, 45, 106, 79), 0.15);
}

.eleg-filter-submit {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--st-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--st-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-decoration: none;
}

.eleg-filter-submit:hover {
  background: var(--st-primary-dark, #1f4d38);
  box-shadow: 0 4px 16px rgba(var(--st-primary-rgb, 45, 106, 79), 0.3);
}

.eleg-filter-submit--outline {
  background: transparent;
  color: var(--st-primary);
  border: 1.5px solid var(--st-primary);
}

.eleg-filter-submit--outline:hover {
  background: var(--st-primary-light, #edf4f0);
  box-shadow: none;
}

.eleg-filter-clear {
  display: block;
  text-align: center;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--st-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.eleg-filter-clear:hover {
  color: var(--st-primary);
}

/* ─── ÁREA DE RESULTADOS ─── */
.eleg-listing-main {
  flex: 1;
  min-width: 0;
}

.eleg-listing-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.eleg-listing-toolbar__left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eleg-listing-toolbar__right {
  flex-shrink: 0;
}

.eleg-listing-heading {
  font-family: var(--st-font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--st-text);
  letter-spacing: -0.025em;
  margin: 0;
}

.eleg-listing-count {
  font-size: 0.8125rem;
  color: var(--st-text-muted);
}

/* Grid de imóveis — 2 colunas */
.eleg-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Estado vazio */
.eleg-listing-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--st-text-muted);
}

.eleg-listing-empty__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--st-text);
  margin: 0;
}

.eleg-listing-empty__hint {
  font-size: 0.875rem;
  color: var(--st-text-muted);
  margin: 0;
}

/* Paginação */
.eleg-listing-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Botão mobile de filtros */
.eleg-mobile-filters-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--st-surface);
  border: 1.5px solid var(--st-border);
  border-radius: 10px;
  color: var(--st-text);
  font-family: var(--st-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1rem;
  position: relative;
}

.eleg-mobile-filters-btn__dot {
  width: 8px;
  height: 8px;
  background: var(--st-primary);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
}

/* ==========================================================================
   12. DETALHE DE IMÓVEL — _show_content.html.erb
   ========================================================================== */

.eleg-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Layout 2 colunas: main + sidebar */
.eleg-detail-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.eleg-detail-main {
  flex: 1;
  min-width: 0;
}

.eleg-detail-sidebar {
  flex: 0 0 340px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── GALERIA ─── */
.eleg-gallery {
  margin-bottom: 1.75rem;
}

.eleg-gallery__main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
  background: var(--st-border);
}

.eleg-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eleg-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--st-text-muted);
}

.eleg-gallery__loading {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.875rem;
}

/* Botões de navegação */
.eleg-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
  color: var(--st-text);
}

.eleg-gallery__nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.eleg-gallery__nav--prev { left: 1rem; }
.eleg-gallery__nav--next { right: 1rem; }

/* Contador */
.eleg-gallery__counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

/* Thumbnails */
.eleg-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.eleg-gallery__thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.65;
}

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

.eleg-gallery__thumb.is-active,
.eleg-gallery__thumb:hover {
  border-color: var(--st-primary);
  opacity: 1;
}

/* ─── CABEÇALHO DO IMÓVEL ─── */
.eleg-detail-header {
  margin-bottom: 1.5rem;
}

.eleg-detail-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(var(--st-primary-rgb, 45, 106, 79), 0.12);
  color: var(--st-primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.03em;
  margin-bottom: 0.625rem;
}

.eleg-detail-title {
  font-family: var(--st-font-heading);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--st-text);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.eleg-detail-address {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9rem;
  color: var(--st-text-muted);
  margin: 0 0 0.75rem;
}

.eleg-detail-price {
  font-family: var(--st-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--st-primary);
  letter-spacing: -0.02em;
}

.eleg-detail-price__period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--st-text-muted);
  margin-left: 0.25rem;
}

/* ─── SPECS GRID ─── */
.eleg-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--eleg-shadow, 0 2px 20px rgba(0, 0, 0, 0.06));
}

.eleg-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
}

.eleg-spec-item__icon {
  color: var(--st-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.125rem;
}

.eleg-spec-item__value {
  font-family: var(--st-font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--st-text);
}

.eleg-spec-item__label {
  font-size: 0.75rem;
  color: var(--st-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── SEÇÕES (descrição, features, mapa) ─── */
.eleg-detail-section {
  margin-top: 2rem;
}

.eleg-section-heading {
  font-family: var(--st-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--st-text);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid rgba(var(--st-primary-rgb, 45, 106, 79), 0.15);
}

.eleg-detail-description {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--st-text);
  opacity: 0.85;
}

.eleg-detail-description p {
  margin: 0 0 0.875rem;
}

/* Features */
.eleg-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.eleg-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  background: rgba(var(--st-primary-rgb, 45, 106, 79), 0.08);
  color: var(--st-primary);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Mapa */
.eleg-map-wrap {
  position: relative;
}

.eleg-map-canvas {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  background: var(--st-border);
  overflow: hidden;
}

.eleg-map-status {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 0.8125rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── FORMULÁRIO DE CONTATO ─── */
.eleg-contact-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--eleg-shadow, 0 2px 20px rgba(0, 0, 0, 0.06));
}

.eleg-contact-card__header {
  margin-bottom: 1.25rem;
}

.eleg-contact-card__title {
  font-family: var(--st-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--st-text);
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

.eleg-contact-card__subtitle {
  font-size: 0.8125rem;
  color: var(--st-text-muted);
  margin: 0;
}

.eleg-contact-form__group {
  margin-bottom: 0.875rem;
}

.eleg-contact-form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--st-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.eleg-contact-form__error {
  padding: 0.5rem 0.75rem;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
}

.eleg-contact-input,
.eleg-contact-textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--st-border);
  border-radius: var(--eleg-input-radius, 12px);
  background: var(--st-surface);
  color: var(--st-text);
  font-family: var(--st-font-body);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.eleg-contact-input:focus,
.eleg-contact-textarea:focus {
  outline: none;
  border-color: var(--st-primary);
  box-shadow: 0 0 0 3px rgba(var(--st-primary-rgb, 45, 106, 79), 0.15);
}

.eleg-contact-textarea {
  resize: vertical;
  min-height: 80px;
}

.eleg-contact-submit {
  display: block;
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--st-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--st-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.eleg-contact-submit:hover {
  background: var(--st-primary-dark, #1f4d38);
  box-shadow: 0 4px 16px rgba(var(--st-primary-rgb, 45, 106, 79), 0.3);
}

.eleg-contact-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.875rem 0;
  color: var(--st-text-muted);
  font-size: 0.8125rem;
}

.eleg-contact-divider::before,
.eleg-contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--st-border);
}

.eleg-contact-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #25d366;
  color: #ffffff;
  border-radius: 10px;
  font-family: var(--st-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s, box-shadow 0.2s;
}

.eleg-contact-whatsapp:hover {
  filter: brightness(0.95);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

/* ─── CARD DO CORRETOR ─── */
.eleg-broker-card {
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  box-shadow: var(--eleg-shadow, 0 2px 20px rgba(0, 0, 0, 0.06));
}

.eleg-broker-card__photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--st-border);
}

.eleg-broker-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(var(--st-primary-rgb, 45, 106, 79), 0.12);
  color: var(--st-primary);
  font-family: var(--st-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eleg-broker-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eleg-broker-card__name {
  font-family: var(--st-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--st-text);
}

.eleg-broker-card__creci,
.eleg-broker-card__status,
.eleg-broker-card__city {
  font-size: 0.8125rem;
  color: var(--st-text-muted);
}

.eleg-broker-card__status {
  color: var(--st-primary);
  font-weight: 500;
}

.eleg-broker-card__actions {
  display: flex;
  gap: 0.5rem;
}

.eleg-broker-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5625rem 0.875rem;
  border-radius: 10px;
  font-family: var(--st-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.eleg-broker-btn--outline {
  border: 1.5px solid var(--st-border);
  color: var(--st-text);
  background: transparent;
}

.eleg-broker-btn--outline:hover {
  border-color: var(--st-primary);
  color: var(--st-primary);
}

.eleg-broker-btn--primary {
  background: var(--st-primary);
  color: #ffffff;
  border: none;
}

.eleg-broker-btn--primary:hover {
  background: var(--st-primary-dark, #1f4d38);
  color: #ffffff;
}

/* ==========================================================================
   13. LISTAGEM DE LANÇAMENTOS — _developments_listing.html.erb
   ========================================================================== */

.eleg-devs-page {
  padding: 2rem 0;
}

.eleg-devs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.eleg-devs-title {
  font-family: var(--st-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--st-text);
  letter-spacing: -0.025em;
  margin: 0 0 0.375rem;
}

.eleg-devs-subtitle {
  font-size: 0.9375rem;
  color: var(--st-text-muted);
  margin: 0;
}

/* Busca de lançamentos */
.eleg-devs-search {
  flex-shrink: 0;
}

.eleg-devs-search__form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--st-border);
  border-radius: 12px;
  background: var(--st-surface);
  overflow: hidden;
  width: 300px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eleg-devs-search__form:focus-within {
  border-color: var(--st-primary);
  box-shadow: 0 0 0 3px rgba(var(--st-primary-rgb, 45, 106, 79), 0.15);
}

.eleg-devs-search__input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: none;
  background: transparent;
  color: var(--st-text);
  font-family: var(--st-font-body);
  font-size: 0.875rem;
  outline: none;
}

.eleg-devs-search__input::placeholder {
  color: var(--st-text-muted);
}

.eleg-devs-search__btn {
  padding: 0 0.75rem;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--st-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.eleg-devs-search__btn:hover {
  color: var(--st-primary);
}

.eleg-devs-search__clear {
  padding: 0 0.75rem;
  color: var(--st-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s;
}

.eleg-devs-search__clear:hover {
  color: var(--st-primary);
}

.eleg-devs-toolbar {
  margin-bottom: 1.5rem;
}

.eleg-devs-grid {
  /* herda .eleg-grid-3 (3 colunas) */
}

/* ==========================================================================
   14. SOBRE O CORRETOR
   ========================================================================== */

.eleg-about-section {
  padding: 5rem 0;
  background: var(--st-surface-alt, #fff);
}

.eleg-about-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.eleg-about-photo-col {
  flex: 0 0 260px;
}

.eleg-about-photo {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.eleg-about-avatar {
  width: 260px;
  height: 260px;
  border-radius: 16px;
  background: var(--st-primary, #2d6a4f);
  color: #fff;
  font-family: var(--st-font-heading, serif);
  font-size: 4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
}

.eleg-about-content {
  flex: 1;
}

.eleg-about-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--st-secondary, #c9a96e);
  margin-bottom: 0.75rem;
}

.eleg-about-name {
  font-family: var(--st-font-heading, serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--st-text, #1a1a1a);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.eleg-about-meta {
  font-size: 0.875rem;
  color: var(--st-text-muted, #888);
  margin: 0 0 1.25rem;
}

.eleg-about-bio {
  font-size: 1rem;
  color: var(--st-text, #1a1a1a);
  line-height: 1.7;
  margin: 0 0 1.75rem;
  max-width: 520px;
}

.eleg-about-metrics {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.eleg-about-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.eleg-about-metric__val {
  font-family: var(--st-font-heading, serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--st-secondary, #c9a96e);
  line-height: 1;
}

.eleg-about-metric__label {
  font-size: 0.8rem;
  color: var(--st-text-muted, #888);
}

.eleg-about-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--st-primary, #2d6a4f);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.eleg-about-cta:hover {
  background: var(--st-primary-dark, #1a4a35);
  transform: translateY(-1px);
}

/* ==========================================================================
   15. DEPOIMENTOS
   ========================================================================== */

.eleg-testi-section {
  padding: 5rem 0;
  background: var(--st-surface, #f5f3f0);
}

.eleg-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.eleg-testi-card {
  background: var(--st-surface-alt, #fff);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eleg-testi-stars {
  color: var(--st-secondary, #c9a96e);
  font-size: 1rem;
  letter-spacing: 2px;
}

.eleg-testi-quote {
  font-size: 0.9rem;
  color: var(--st-text, #1a1a1a);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  font-style: italic;
}

.eleg-testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.eleg-testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--st-primary, #2d6a4f);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.eleg-testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eleg-testi-author__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.eleg-testi-author__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--st-text, #1a1a1a);
}

.eleg-testi-author__date {
  font-size: 0.75rem;
  color: var(--st-text-muted, #888);
}

/* ==========================================================================
   16. RESPONSIVE — Listagem + Detalhe + Lançamentos
   ========================================================================== */

/* Tablet (768–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .eleg-about-layout {
    gap: 2.5rem;
  }

  .eleg-about-photo-col {
    flex: 0 0 200px;
  }

  .eleg-about-photo,
  .eleg-about-avatar {
    width: 200px;
    height: 240px;
  }

  .eleg-testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eleg-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eleg-filters-sidebar {
    flex: 0 0 220px;
  }

  .eleg-detail-layout {
    gap: 1.25rem;
  }

  .eleg-detail-sidebar {
    flex: 0 0 290px;
  }

  .eleg-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .eleg-devs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .eleg-devs-search__form {
    width: 100%;
  }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
  .eleg-about-section,
  .eleg-testi-section {
    padding: 3rem 0;
  }

  .eleg-about-layout {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .eleg-about-photo-col {
    flex: none;
  }

  .eleg-about-photo,
  .eleg-about-avatar {
    width: 180px;
    height: 200px;
  }

  .eleg-about-metrics {
    justify-content: center;
    gap: 1.5rem;
  }

  .eleg-about-bio {
    max-width: 100%;
  }

  .eleg-testi-grid {
    grid-template-columns: 1fr;
  }

  /* Filtros: drawer oculto */
  .eleg-mobile-filters-btn {
    display: inline-flex;
  }

  .eleg-listing-layout {
    flex-direction: column;
  }

  .eleg-filters-sidebar {
    position: fixed;
    inset: 0;
    z-index: 200;
    flex: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.3s;
    overflow: hidden;
  }

  .eleg-filters-sidebar.is-open {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: all;
  }

  .eleg-filters-card {
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .eleg-filters-sidebar.is-open .eleg-filters-card {
    transform: translateY(0);
  }

  /* Grid: 1 coluna */
  .eleg-listing-grid {
    grid-template-columns: 1fr;
  }

  /* Detalhe: padding lateral reduzido */
  .eleg-detail-page {
    padding: 1.5rem 1rem;
  }

  /* Detalhe: layout empilhado */
  .eleg-detail-layout {
    flex-direction: column;
  }

  .eleg-detail-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }

  .eleg-gallery__main {
    height: 260px;
    border-radius: 16px;
  }

  .eleg-gallery__thumb {
    width: 60px;
    height: 50px;
  }

  .eleg-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
  }

  .eleg-detail-title {
    font-size: 1.5rem;
  }

  .eleg-detail-price {
    font-size: 1.625rem;
  }

  /* Lançamentos: 1 coluna */
  .eleg-devs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .eleg-devs-search {
    width: 100%;
  }

  .eleg-devs-search__form {
    width: 100%;
  }

  .eleg-devs-title {
    font-size: 1.5rem;
  }
}
