:root {
  --bg-outer: #e9ecef;
  --bg-page: #f8f9f8;
  --bg-card: #ffffff;
  --bg-subtle: #f0f4f3;
  --text-primary: #142221;
  --text-secondary: #435553;
  --text-muted: #647775;
  --accent-primary: #0f4c45;
  --accent-primary-hover: #0a3833;
  --accent-secondary: #15655b;
  --accent-soft: #e4f0ee;
  --border-color: #dde5e3;
  --whatsapp-green: #126b40;
  --whatsapp-green-hover: #0d5432;
  --shadow-sm: 0 2px 8px rgba(15, 42, 40, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 42, 40, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --max-mobile-width: 480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg-outer);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-outer);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Centraliza a experiência de celular em telas maiores */
.mobile-shell {
  width: 100%;
  max-width: var(--max-mobile-width);
  margin: 0 auto;
  background-color: var(--bg-page);
  min-height: 100vh;
  /* Espaço inferior garante que a barra fixa nunca cubra o conteúdo final */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow-x: hidden;
}

/* Barra superior discreta */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 30;
}

.top-bar__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.top-bar__location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-share-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: background-color 0.15s ease;
}

.btn-share-top:hover,
.btn-share-top:focus-visible {
  background-color: var(--accent-soft);
}

.btn-share-top svg {
  width: 15px;
  height: 15px;
}

/* Abertura (Hero) */
.hero {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #dfe5e4;
  overflow: hidden;
  cursor: pointer;
}

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

.hero__badge-photos {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(20, 34, 33, 0.82);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.hero__badge-photos svg {
  width: 15px;
  height: 15px;
}

.hero__content {
  padding: 20px 16px 22px;
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.hero__title {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.hero__price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.hero__price {
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--accent-primary);
}

.hero__summary {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.96875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.btn--primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--accent-primary-hover);
}

.btn--secondary {
  background-color: var(--bg-subtle);
  color: var(--accent-primary);
  border: 1px solid #bfd2cf;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background-color: var(--accent-soft);
}

.permuta-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background-color: var(--accent-soft);
  border-left: 4px solid var(--accent-primary);
  border-radius: 6px var(--radius-sm) var(--radius-sm) 6px;
  font-size: 0.90625rem;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 500;
}

.permuta-highlight svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Seções padrão */
.section {
  padding: 24px 16px;
  background-color: var(--bg-card);
  margin-top: 10px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section__header {
  margin-bottom: 16px;
}

.section__title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
}

.section__subtitle {
  font-size: 0.90625rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Grade de Características Principais */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.spec-card--full {
  grid-column: 1 / -1;
}

.spec-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: var(--accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-card__icon svg {
  width: 18px;
  height: 18px;
}

.spec-card__text {
  min-width: 0;
}

.spec-card__value {
  font-size: 0.96875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.spec-card__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.3;
}

/* Galeria de Fotos */
.gallery-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-page);
  color: var(--text-secondary);
  font-size: 0.84375rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
  transition: all 0.15s ease;
}

.filter-chip.is-active {
  background-color: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.carousel-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #142221;
  border: 1px solid var(--border-color);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  position: relative;
}

.carousel-slide__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #1c2c2b;
  cursor: pointer;
}

.carousel-slide__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #101b1a;
}

.carousel-slide__caption {
  padding: 12px 14px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.carousel-slide__cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 2px;
}

.carousel-slide__desc {
  font-size: 0.90625rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.carousel-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.carousel-counter {
  background-color: rgba(20, 34, 33, 0.82);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.carousel-zoom-btn {
  pointer-events: auto;
  background-color: rgba(20, 34, 33, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  min-height: 36px;
}

.carousel-zoom-btn svg {
  width: 15px;
  height: 15px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.carousel-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.carousel-nav__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.carousel-nav__btn svg {
  width: 18px;
  height: 18px;
}

.carousel-nav__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* Miniaturas rápidas abaixo do carrossel */
.thumbs-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.thumbs-strip::-webkit-scrollbar {
  display: none;
}

.thumb-btn {
  flex: 0 0 68px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background-color: #dfe5e4;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.thumb-btn.is-active {
  border-color: var(--accent-primary);
  opacity: 1;
}

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

/* Seção de Vídeo */
.video-container {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #101b1a;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 9 / 16;
}

.video-poster-Facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  z-index: 2;
}

.video-poster-Facade__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster-Facade__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(16, 27, 26, 0.2) 0%,
      rgba(16, 27, 26, 0.45) 55%,
      rgba(16, 27, 26, 0.82) 100%);
}

.video-play-circle {
  position: relative;
  z-index: 3;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.video-play-circle svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.video-poster-Facade__label {
  position: relative;
  z-index: 3;
  margin-top: 12px;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  background-color: rgba(20, 34, 33, 0.78);
  padding: 6px 14px;
  border-radius: 999px;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background-color: #000000;
}

/* Descrição */
.description-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.description-content p:first-child {
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 1.0625rem;
}

.description-content p:last-child {
  margin-bottom: 0;
}

/* Comodidades e Diferenciais */
.features-group {
  margin-bottom: 20px;
}

.features-group:last-child {
  margin-bottom: 0;
}

.features-group__title {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.features-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.96875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.features-list__item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Localização e Proximidades */
.location-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background-color: var(--accent-soft);
  border: 1px solid #c5dad7;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.location-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-banner__icon svg {
  width: 20px;
  height: 20px;
}

.location-banner__label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.location-banner__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.proximities-subtitle {
  font-size: 0.90625rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.proximities-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proximities-tag {
  padding: 8px 12px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Preço e Condições */
.conditions-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
}

.conditions-card__row {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.conditions-card__row:last-child,
.conditions-card__row:nth-last-child(2):has(+ .conditions-card__row[hidden]) {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.conditions-card__label {
  font-size: 0.84375rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.conditions-card__price {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.conditions-card__text {
  font-size: 0.96875rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Convite Final de Contato */
.final-cta {
  text-align: center;
  padding: 28px 16px;
  background-color: var(--bg-card);
  margin-top: 10px;
  border-top: 1px solid var(--border-color);
}

.final-cta__title {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.final-cta__desc {
  font-size: 0.96875rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.final-cta__phone {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 16px;
  text-decoration: none;
}

.final-cta__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn--whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background-color: var(--whatsapp-green-hover);
}

/* Barra Fixa Inferior */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-mobile-width);
  background-color: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border-color);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(15, 42, 40, 0.08);
  backdrop-filter: blur(8px);
}

.bottom-bar__inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 10px;
}

.bottom-bar__btn {
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 12px;
}

.bottom-bar__btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* Lightbox (Visualização Ampliada de Fotos) */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 18, 17, 0.96);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 5;
}

.lightbox__counter {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
}

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

.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.lightbox__btn svg {
  width: 18px;
  height: 18px;
}

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  margin: 10px 0;
  position: relative;
  touch-action: pan-x pan-y pinch-zoom;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.lightbox__img.is-zoomed {
  max-width: none;
  max-height: none;
  width: 185%;
  cursor: grab;
}

.lightbox__footer {
  z-index: 5;
}

.lightbox__caption {
  color: #e6efee;
  font-size: 0.90625rem;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.4;
}

.lightbox__nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.lightbox__nav-btn {
  flex: 1;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.90625rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.lightbox__nav-btn svg {
  width: 18px;
  height: 18px;
}

/* Toast de confirmação de cópia de link */
.toast {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background-color: #142221;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}