/* Estrutura e comportamento dos blocos dinâmicos.
   Cores/tema vêm das variáveis --sb-re-* definidas no styles.css de cada modelo. */

/* Filtros laterais — evita overflow em grid (min-width:auto nos selects) */
[data-sb-widget='re-filters'],
[data-sb-re-widget='sidebar-filters'] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

[data-sb-widget='re-filters'] label,
[data-sb-re-widget='sidebar-filters'] label {
  min-width: 0;
}

[data-sb-widget='re-filters'] input,
[data-sb-widget='re-filters'] select,
[data-sb-re-widget='sidebar-filters'] input,
[data-sb-re-widget='sidebar-filters'] select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

[data-sb-widget='re-list'],
[data-sb-re-widget='listing-page'] {
  display: block;
}

[data-sb-widget='re-list'] > [data-sb-items],
[data-sb-re-widget='listing-page'] > [data-sb-items] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

[data-sb-widget='re-list'] > [data-sb-items][data-sb-re-loading='1'],
[data-sb-re-widget='listing-page'] > [data-sb-items][data-sb-re-loading='1'] {
  display: block;
}

.sb-re-card-link {
  color: inherit;
  text-decoration: none;
}

.sb-re-card {
  display: grid;
  gap: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sb-re-line, #dbe4ef);
  border-radius: var(--sb-re-radius, 2px);
  background: var(--sb-re-surface, #fff);
  transition: transform 240ms ease, box-shadow 240ms ease;
  height: 100%;
}

.sb-re-card-link:hover .sb-re-card {
  transform: translateY(-2px);
  box-shadow: var(--sb-re-card-shadow, 0 12px 24px rgb(60 72 88 / 15%));
}

.sb-re-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  border-radius: var(--sb-re-radius-pill, 100px);
  background: var(--sb-re-accent, #103866);
  color: var(--sb-re-accent-text, #fff);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
}

.sb-re-card__media img,
.sb-re-card__img {
  display: block;
  width: 100%;
  height: 146px;
  object-fit: cover;
}

.sb-re-card__body {
  padding: 9px;
  display: grid;
  gap: 6px;
}

.sb-re-card__title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--sb-re-ink, #3c4858);
}

.sb-re-card__loc,
.sb-re-card__meta {
  margin: 0;
  color: var(--sb-re-muted, #5f7088);
  font-size: 12px;
}

.sb-re-card__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.sb-re-card__price {
  color: var(--sb-re-gold, #9e7d2d);
  font-size: 13px;
  font-weight: 600;
}

.sb-re-card__price--rent span,
.sb-re-card__price--seasonal span {
  font-size: 10px;
  font-weight: 500;
}

[data-sb-widget='re-list'] > [data-sb-items] .sb-re-empty,
[data-sb-widget='re-list'] > [data-sb-items] .sb-re-loading,
[data-sb-widget='re-list'] > [data-sb-items] .sb-re-error,
[data-sb-re-widget='listing-page'] .sb-re-empty,
[data-sb-re-widget='listing-page'] .sb-re-loading,
[data-sb-re-widget='listing-page'] .sb-re-error {
  grid-column: 1 / -1;
}

[data-sb-widget='blog-list'] > [data-sb-items],
[data-sb-blog-widget='listing'] > [data-sb-items] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

[data-sb-widget='blog-list'] > [data-sb-items] .sb-re-empty,
[data-sb-widget='blog-list'] > [data-sb-items] .sb-re-loading,
[data-sb-widget='blog-list'] > [data-sb-items] .sb-re-error,
[data-sb-blog-widget='listing'] > [data-sb-items] .sb-re-empty,
[data-sb-blog-widget='listing'] > [data-sb-items] .sb-re-loading,
[data-sb-blog-widget='listing'] > [data-sb-items] .sb-re-error {
  grid-column: 1 / -1;
}

.sb-re-empty,
.sb-re-loading {
  padding: 1.75rem;
  margin: 0;
  border: 1px dashed var(--sb-re-line, #dbe4ef);
  border-radius: var(--sb-re-radius, 2px);
  text-align: center;
  color: var(--sb-re-muted, #5f7088);
  background: var(--sb-re-surface-muted, #f8fbff);
}

.sb-re-error {
  padding: 1.25rem;
  border-radius: var(--sb-re-radius, 2px);
  background: var(--sb-re-error-bg, #fff4f4);
  color: var(--sb-re-error-text, #6b2121);
}

.sb-re-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  padding-block: 8px;
}

/* Fallback para layouts sidebar + listagem quando a paginação fica irmã direta do grid. */
.layout-imoveis > [data-sb-widget='re-pagination'],
.layout-imoveis > [data-sb-re-widget='listing-pagination'] {
  grid-column: 2;
}

/* Só no layout legado (filtros + split como 2º filho). Barra no topo + toolbar usa outra estrutura. */
.layout-imoveis--mapa > .layout-imoveis__split:nth-child(2) {
  grid-column: 2;
}

[data-sb-map-panel] {
  position: relative;
  min-height: 240px;
}

[data-sb-map-panel].sb-re-map-panel--ready {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.sb-re-map-panel__canvas {
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  height: 100%;
}

.sb-re-map-panel__canvas.leaflet-container {
  font-family: inherit;
  z-index: 1;
}

.sb-re-map-marker.leaflet-div-icon {
  display: block !important;
  background: transparent !important;
  border: none !important;
}

.sb-re-map-marker__svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 3px 5px rgba(16, 56, 102, 0.35));
}

.sb-re-map-marker__shape {
  fill: var(--sb-re-map-marker-top, var(--sb-re-accent, #4a7fc4));
}

.sb-re-map-marker__svg .sb-re-map-marker__hole {
  fill: var(--sb-re-surface, #fff);
  stroke: none;
}

.sb-re-map-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: var(--sb-re-radius, 8px);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(16, 56, 102, 0.18);
}

.sb-re-map-popup .leaflet-popup-content {
  margin: 0;
  width: auto !important;
  min-width: 260px;
  max-width: 360px;
}

.sb-re-map-popup .leaflet-popup-tip {
  background: var(--sb-re-surface, #fff);
}

.sb-re-map-popup__inner {
  display: block;
}

.sb-re-map-popup .sb-re-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sb-re-card--map-popup {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.sb-re-card--map-popup .sb-re-card__media {
  min-height: 0;
}

.sb-re-card--map-popup .sb-re-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.sb-re-card--map-popup .sb-re-card__body {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  align-content: center;
}

.sb-re-card--map-popup .sb-re-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.sb-re-card--map-popup .sb-re-card__loc,
.sb-re-card--map-popup .sb-re-card__meta {
  margin: 0;
  font-size: 13px;
  color: var(--sb-re-muted, #5f7088);
}

.sb-re-card--map-popup .sb-re-card__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
}

.sb-re-card--map-popup .sb-re-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-re-accent, #103866);
}

.sb-re-card--map-popup .sb-re-card__corretor,
.sb-re-card--map-popup .sb-re-card__cta {
  display: none !important;
}

.sb-re-map-panel__embed {
  flex: 1 1 auto;
  min-height: 280px;
}

.sb-re-map-panel__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.sb-re-map-panel__pins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--sb-re-line, #dbe4ef);
  background: var(--sb-re-surface, #fff);
}

.sb-re-map-panel__pin {
  font-size: 13px;
  color: var(--sb-re-accent, #103866);
  text-decoration: none;
}

.sb-re-map-panel__pin:hover {
  text-decoration: underline;
}

.sb-re-map-panel__empty,
.sb-re-map-panel__placeholder {
  margin: auto;
  padding: 24px;
  text-align: center;
  color: var(--sb-re-muted, #5f7088);
  font-size: 14px;
}

.sb-re-pagination--single .sb-re-pagination__meta {
  font-size: 15px;
  color: var(--sb-re-muted, #5f7088);
}

.sb-re-pagination__btn {
  font-family: var(--sb-re-font, Montserrat, system-ui, sans-serif);
  min-height: 40px;
  padding-inline: 16px;
  border-radius: var(--sb-re-radius, 2px);
  border: 1px solid var(--sb-re-line, #dbe4ef);
  background: var(--sb-re-surface, #fff);
  color: var(--sb-re-ink, #3c4858);
  font-weight: 600;
  cursor: pointer;
}

.sb-re-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sb-re-pagination__meta {
  font-size: 14px;
  color: var(--sb-re-ink, #3c4858);
}

/* Destaque único: modelos Luxo/Pilar usam .grade-destaques (grid 4 colunas) + inline
   grid-template-columns: 1fr. No GrapesJS o style inline pode sumir do canvas; o card
   fica só na 1ª coluna. Esta regra fixa 1 coluna no wrapper (editor = publicado). */
[data-sb-widget='re-featured'].home-featured-single,
[data-sb-re-widget='featured-card'].home-featured-single {
  grid-template-columns: 1fr;
}

/* Destaque em layout largo (ex.: home-featured-single): não centralizar nem limitar largura — espelha o GrapesJS. */
.sb-re-featured-ready:not(.home-featured-single) .sb-re-card {
  max-width: 440px;
  margin-inline: auto;
}

.sb-re-featured-ready:not(.home-featured-single) .sb-re-card__media img {
  height: 220px;
}

.sb-blog-categories {
  margin-top: 14px;
}

.sb-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-blog-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--sb-re-line, #dbe4ef);
  background: var(--sb-re-surface, #fff);
  color: var(--sb-re-ink, #3c4858);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sb-blog-cat.is-active {
  border-color: var(--sb-re-accent, #103866);
  background: var(--sb-re-accent, #103866);
  color: var(--sb-re-accent-text, #fff);
}

.sb-blog-pagination {
  margin-top: 18px;
}

.sb-re-page-nav {
  margin-bottom: 1.25rem;
}

.sb-re-page-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sb-re-font, Montserrat, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--sb-re-accent, #103866);
  text-decoration: none;
}

.sb-re-page-nav__link:hover {
  text-decoration: underline;
}

.sb-re-detail--premium {
  color: var(--sb-re-ink, #1a2533);
  margin-bottom: 2rem;
}

.sb-re-detail__intro {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--sb-re-line);
}

.sb-re-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.sb-re-detail__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sb-re-accent, #103866);
  color: var(--sb-re-accent-text, #fff);
}

.sb-re-detail__spark {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--sb-re-gold-soft, #fff6e0), var(--sb-re-gold-mid, #ffe4a8));
  color: var(--sb-re-gold-deep, #7a5f1c);
  border: 1px solid color-mix(in srgb, var(--sb-re-gold, #9e7d2d) 45%, transparent);
}

.sb-re-detail__flag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sb-re-detail__flag--exclusive {
  background: color-mix(in srgb, var(--sb-re-accent, #103866) 12%, #fff);
  color: var(--sb-re-accent, #103866);
  border: 1px solid color-mix(in srgb, var(--sb-re-accent, #103866) 28%, transparent);
}

.sb-re-detail__flag--trade {
  background: #eef8f1;
  color: #1b6b42;
  border: 1px solid color-mix(in srgb, #1b6b42 24%, transparent);
}

.sb-re-detail__h1 {
  margin: 0;
  font-family: var(--sb-re-font, Montserrat, system-ui, sans-serif);
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sb-re-detail__addrline {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.98rem;
  color: var(--sb-re-muted);
  line-height: 1.5;
}

.sb-re-detail__pin {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--sb-re-accent));
  box-shadow: 0 0 0 3px var(--sb-re-accent-soft);
}

.sb-re-detail__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.sb-re-detail__col--media {
  min-width: 0;
}

.sb-re-gallery--premium {
  margin-bottom: 1.75rem;
}

.sb-re-gallery__stage-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.sb-re-gallery__stage-wrap .sb-re-gallery__stage {
  margin: 0;
}

.sb-re-gallery__stage-nav {
  z-index: 2;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sb-re-surface, #fff) 92%, transparent);
  color: var(--sb-re-accent, #103866);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--sb-re-accent, #103866) 18%, transparent);
}

.sb-re-gallery__stage-nav:hover {
  background: var(--sb-re-surface, #fff);
}

.sb-re-gallery__thumbs-bar {
  margin-top: 12px;
  padding: 10px 12px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--sb-re-surface-muted, #f7fafd) 0%, var(--sb-re-surface, #fff) 100%);
  border: 1px solid var(--sb-re-line, #dbe4ef);
}

.sb-re-gallery__thumbs-bar .sb-re-gallery__track {
  margin-top: 0;
  padding: 2px 0 6px;
}

.sb-re-gallery__counter {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--sb-re-muted-light, #738297);
}

.sb-re-gallery__stage {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sb-re-surface-muted, #f0f4fa) 0%, var(--sb-re-surface, #fff) 50%);
  box-shadow:
    0 4px 6px color-mix(in srgb, var(--sb-re-accent, #103866) 6%, transparent),
    0 22px 48px color-mix(in srgb, var(--sb-re-accent, #103866) 10%, transparent);
  aspect-ratio: 4 / 3;
  max-height: min(72vh, 640px);
}

.sb-re-gallery__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-re-gallery__stage--empty {
  display: grid;
  place-items: center;
  color: var(--sb-re-muted);
  font-size: 14px;
  font-weight: 500;
}

.sb-re-gallery__track {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sb-re-gallery__track::-webkit-scrollbar {
  height: 6px;
}

.sb-re-gallery__track::-webkit-scrollbar-thumb {
  background: var(--sb-re-line);
  border-radius: 99px;
}

.sb-re-gallery__thumb {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0;
  margin: 0;
  border: 3px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  background: var(--sb-re-surface, #fff);
  box-shadow: 0 2px 8px rgb(0 0 0 / 7%);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sb-re-gallery__thumb.is-active {
  border-color: var(--sb-re-accent);
  box-shadow: 0 0 0 1px var(--sb-re-accent);
}

.sb-re-gallery__thumb img {
  display: block;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
}

.sb-re-gallery__thumb:focus-visible {
  outline: 3px solid var(--sb-re-focus, #ffd166);
  outline-offset: 2px;
}

.sb-re-block {
  margin-bottom: 2rem;
}

.sb-re-block__h {
  margin: 0 0 1rem;
  font-family: var(--sb-re-font, Montserrat, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sb-re-accent, #103866);
  letter-spacing: -0.01em;
}

.sb-re-chip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.sb-re-chip {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--sb-re-line, #dbe4ef);
  background: linear-gradient(180deg, var(--sb-re-surface, #fff), var(--sb-re-surface-muted, #fafcfe));
}

.sb-re-chip__k {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sb-re-muted-light, #738297);
}

.sb-re-chip__v {
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-re-ink, #1a2533);
}

.sb-re-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--sb-re-muted, #45566b);
}

.sb-re-detail__col--offer {
  position: sticky;
  top: 1rem;
}

.sb-re-offer {
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--sb-re-line, #dbe4ef);
  background: linear-gradient(165deg, var(--sb-re-surface, #fff) 0%, var(--sb-re-surface-muted, #f5f9fd) 100%);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--sb-re-accent, #103866) 9%, transparent);
}

.sb-re-offer--highlight {
  border-color: color-mix(in srgb, var(--sb-re-gold, #9e7d2d) 55%, transparent);
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--sb-re-accent, #103866) 9%, transparent),
    0 0 0 1px color-mix(in srgb, var(--sb-re-gold, #9e7d2d) 25%, transparent);
}

.sb-re-offer__kicker {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sb-re-muted-light, #738297);
}

.sb-re-offer__empty {
  margin: 0 0 0.75rem;
  font-size: 14px;
  color: var(--sb-re-muted);
}

.sb-re-offer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--sb-re-line, #dbe4ef) 85%, transparent);
}

.sb-re-offer__row:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.sb-re-offer__lbl {
  font-size: 13px;
  color: var(--sb-re-muted);
  font-weight: 500;
}

.sb-re-offer__amt {
  font-family: var(--sb-re-font, Montserrat, system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sb-re-gold, #9e7d2d);
}

.sb-re-offer__amt--rent,
.sb-re-offer__amt--seasonal {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.sb-re-offer__amt small {
  font-size: 0.5em;
  font-weight: 600;
  margin-left: 3px;
  color: var(--sb-re-muted);
}

.sb-re-offer__ref {
  margin: 0.75rem 0 0;
  font-size: 13px;
  color: var(--sb-re-muted);
}

.sb-re-offer__ref strong {
  color: var(--sb-re-ink);
  font-weight: 700;
}

.sb-re-mensais {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sb-re-surface, #fff) 85%, transparent);
  border: 1px solid var(--sb-re-line, #dbe4ef);
}

.sb-re-mensais__tit {
  margin: 0 0 0.5rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--sb-re-accent, #103866);
}

.sb-re-mensais__linha {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 0.28rem 0;
  color: var(--sb-re-muted);
}

.sb-re-mensais__linha strong {
  color: var(--sb-re-ink);
  font-weight: 600;
}

.sb-re-minirow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 1rem;
}

.sb-re-mini {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--sb-re-accent-soft, #e7f0f9);
  border: 1px solid color-mix(in srgb, var(--sb-re-accent, #103866) 10%, transparent);
}

.sb-re-mini__n {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sb-re-accent, #103866);
  line-height: 1.1;
}

.sb-re-mini__t {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sb-re-muted, #5f7088);
  margin-top: 4px;
}

.sb-re-cta {
  display: grid;
  gap: 10px;
  margin-top: 1.35rem;
}

.sb-re-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-family: var(--sb-re-font, Montserrat, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.sb-re-btn--primary {
  background: linear-gradient(180deg, var(--sb-re-accent-deep, #144980) 0%, var(--sb-re-accent, #103866) 100%);
  color: var(--sb-re-accent-text, #fff);
  border: 1px solid rgb(0 0 0 / 8%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--sb-re-accent, #103866) 28%, transparent);
}

.sb-re-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--sb-re-accent, #103866) 35%, transparent);
}

.sb-re-btn--secondary {
  background: var(--sb-re-surface, #fff);
  color: var(--sb-re-accent, #103866);
  border: 1px solid var(--sb-re-accent, #103866);
}

.sb-re-btn--secondary:hover {
  background: var(--sb-re-accent-soft, #e7f0f9);
}

.sb-re-trust {
  margin: 1rem 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--sb-re-muted-light, #8a96a8);
}

.sb-re-gallery__stage--zoomable {
  cursor: zoom-in;
}

.sb-re-gallery__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--sb-re-muted-light, #738297);
}

.sb-re-feat-groups {
  display: grid;
  gap: 1.25rem;
}

.sb-re-feat-group__h {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sb-re-accent, #103866);
}

.sb-re-feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.sb-re-feat__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--sb-re-line, #dbe4ef);
  border-radius: 8px;
  background: var(--sb-re-surface, #fff);
  font-size: 13px;
}

.sb-re-feat__name {
  color: var(--sb-re-muted, #45566b);
}

.sb-re-feat__val {
  font-weight: 700;
  color: var(--sb-re-ink, #1a2533);
}

.sb-re-feat__check {
  color: var(--sb-re-success, #1a7f4b);
  font-weight: 700;
}

.sb-re-videos {
  display: grid;
  gap: 1rem;
}

.sb-re-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
}

.sb-re-video__cap {
  margin: 0.35rem 0 0;
  font-size: 13px;
  color: var(--sb-re-muted-light, #738297);
}

.sb-re-video--link a {
  display: inline-flex;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--sb-re-accent-soft, #e7f0f9);
  color: var(--sb-re-accent, #103866);
  font-weight: 600;
  text-decoration: none;
}

.sb-re-map {
  display: grid;
  gap: 10px;
}

.sb-re-map iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 12px;
}

.sb-re-map__addr {
  margin: 0 0 0.35rem;
  color: var(--sb-re-muted, #5f7088);
  font-size: 14px;
}

.sb-re-map__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-re-accent, #103866);
}

body.sb-re-lightbox-open {
  overflow: hidden;
}

.sb-re-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgb(8 14 24 / 92%);
}

.sb-re-lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  max-height: calc(100vh - 32px);
}

.sb-re-lightbox__figure img {
  max-width: min(1200px, 100%);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 8px;
}

.sb-re-lightbox__figure figcaption {
  color: #e8eef5;
  font-size: 13px;
}

.sb-re-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sb-re-lightbox__nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .sb-re-detail__shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-re-detail__col--offer {
    position: static;
    order: -1;
  }

  .sb-re-gallery__stage {
    max-height: none;
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 900px) {
  [data-sb-widget='re-list'] > [data-sb-items],
  [data-sb-re-widget='listing-page'] > [data-sb-items],
  [data-sb-widget='blog-list'] > [data-sb-items],
  [data-sb-blog-widget='listing'] > [data-sb-items] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-carousel-sale,
  .home-carousel-rent {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  [data-sb-widget='re-list'] > [data-sb-items],
  [data-sb-re-widget='listing-page'] > [data-sb-items],
  [data-sb-widget='blog-list'] > [data-sb-items],
  [data-sb-blog-widget='listing'] > [data-sb-items] {
    grid-template-columns: 1fr;
  }
}

/* Compartilhamento (data-sb-share) */
.sb-share {
  display: grid;
  gap: 8px;
}

.sb-share__label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sb-re-muted, #5f7088);
}

.sb-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sb-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 30px;
  padding: 0;
  border: 1px solid var(--sb-re-line, #dbe4ef);
  border-radius: 50%;
  background: var(--sb-re-surface, #fff);
  color: var(--sb-re-ink, #3c4858);
  font: inherit;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.sb-share__icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.sb-share__btn svg path[fill='currentColor'] {
  fill: currentColor;
}

.sb-share__btn--copy svg path {
  fill: none;
  stroke: currentColor;
}

.sb-share__btn:hover {
  border-color: var(--sb-re-accent, #103866);
  color: var(--sb-re-accent, #103866);
}

.sb-share__btn:focus-visible {
  outline: 2px solid var(--sb-re-accent, #103866);
  outline-offset: 2px;
}

.sb-share__btn--done {
  border-color: var(--sb-re-success, #1b7f4e);
  color: var(--sb-re-success, #1b7f4e);
}

.sb-share--detail .sb-share__btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
}

.sb-re-offer__share {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sb-re-line, #dbe4ef);
}
