/* ============================================================
   CAPITULO.CSS — Estilos da página de detalhe de propriedade
   ============================================================ */

/* ── Property Header ─────────────────────────────────────── */
.prop-header {
  padding-top: calc(var(--navbar-h) + var(--space-xl));
  padding-bottom: var(--space-lg);
  border-bottom: var(--border-thin);
}

.prop-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.prop-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.prop-header__breadcrumb a:hover { color: var(--color-text); }

.prop-header__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.prop-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.prop-badge {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-accent);
  padding: 4px 10px;
}

.prop-type {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.prop-ref {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  opacity: 0.6;
}

.prop-header__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: var(--fw-light);
  line-height: 1.05;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.prop-header__title em { font-style: italic; }

.prop-header__location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.prop-header__price-block {
  text-align: right;
  flex-shrink: 0;
}

.prop-price-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.prop-price {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: var(--fw-light);
  color: var(--color-accent-warm);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ── Gallery ─────────────────────────────────────────────── */
.prop-gallery {
  background-color: var(--color-text);
}

.prop-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 560px;
  max-width: 1320px;
  margin: 0 auto;
}

.prop-gallery__main {
  position: relative;
  overflow: hidden;
}

.prop-gallery__secondary {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  border-left: 0.5px solid rgba(255,255,255,0.08);
}

.prop-gallery__placeholder {
  position: relative;
  overflow: hidden;
  transition: opacity var(--duration-mid) var(--ease-silk);
  cursor: pointer;
}

.prop-gallery__placeholder + .prop-gallery__placeholder {
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.prop-gallery__placeholder:hover { opacity: 0.88; }

/* Gradientes da galeria */
.prop-gallery__placeholder--main {
  background: linear-gradient(160deg, #3a3d38 0%, #565a52 35%, #4a4f46 65%, #6b6558 100%);
}
.prop-gallery__placeholder--b {
  background: linear-gradient(135deg, #2e3028 0%, #4a4e42 100%);
}
.prop-gallery__placeholder--c {
  background: linear-gradient(135deg, #2a3828 0%, #445644 100%);
}
.prop-gallery__placeholder--d {
  background: linear-gradient(135deg, #342c20 0%, #504234 100%);
}
.prop-gallery__placeholder--e {
  background: linear-gradient(135deg, #282630 0%, #3e3c4c 100%);
}

.prop-gallery__label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prop-gallery__roman {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.1);
  line-height: 1;
}

.prop-gallery__type {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.prop-gallery__more {
  all: unset;
  cursor: pointer;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast) var(--ease-silk);
}

.prop-gallery__more:hover { color: rgba(255,255,255,0.9); }

/* Thumbnail activo */
.prop-gallery__secondary .prop-gallery__placeholder.is-active-thumb {
  outline: 1px solid rgba(255,255,255,0.35);
  outline-offset: -1px;
}

/* Animação de troca na imagem principal */
.prop-gallery__main.gallery-swap {
  animation: gallerySwap 400ms var(--ease-out) both;
}

@keyframes gallerySwap {
  from { opacity: 0.3; transform: scale(1.015); }
  to   { opacity: 1;   transform: scale(1); }
}

/* ── Stats rápidos ───────────────────────────────────────── */
.prop-stats {
  border-bottom: var(--border-thin);
  background-color: var(--color-bg);
}

.prop-stats__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.prop-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  flex-direction: column;
}

.prop-stat__value {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: var(--fw-light);
  color: var(--color-text);
  line-height: 1;
}

.prop-stat__unit {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
}

.prop-stat__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.prop-stat-sep {
  width: 0.5px;
  height: 48px;
  background-color: var(--color-border-light);
  flex-shrink: 0;
}

/* ── Body layout ─────────────────────────────────────────── */
.prop-body__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  align-items: start;
}

.prop-block {
  margin-bottom: var(--space-lg);
}

.prop-block:last-child { margin-bottom: 0; }

/* ── Nota do Curador ─────────────────────────────────────── */
.prop-curator-note {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--fw-light);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  border-left: 1px solid var(--color-accent);
  padding-left: var(--space-md);
  margin: 0;
}

.prop-curator-note cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-style: normal;
}

/* ── Descrição ───────────────────────────────────────────── */
.prop-description p {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.9;
}

.prop-description p + p { margin-top: var(--space-sm); }

/* ── Features ────────────────────────────────────────────── */
.prop-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-lg);
}

.prop-feature-group__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.prop-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prop-feature-list li {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
  color: var(--color-text);
  padding-left: 16px;
  position: relative;
}

.prop-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 0.5px;
  background-color: var(--color-accent);
}

/* ── Timeline ────────────────────────────────────────────── */
.prop-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.prop-timeline__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 var(--space-md);
  padding: var(--space-sm) 0;
  border-top: var(--border-thin);
  align-items: start;
}

.prop-timeline__item:last-child { border-bottom: var(--border-thin); }

.prop-timeline__year {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--fw-light);
  color: var(--color-accent-warm);
  padding-top: 3px;
}

.prop-timeline__title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.prop-timeline__desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.prop-body__sidebar {
  position: sticky;
  top: calc(var(--navbar-h) + var(--space-md));
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.prop-sidebar-card {
  border: var(--border-light);
  padding: var(--space-md);
  background-color: var(--color-bg);
}

.prop-sidebar-card--curator {
  background-color: var(--color-bg-dark);
}

.prop-sidebar-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: var(--border-thin);
}

/* Ficha técnica */
.prop-specs { display: flex; flex-direction: column; gap: 0; }

.prop-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 9px 0;
  border-bottom: var(--border-light);
}

.prop-spec-row:last-child { border-bottom: none; }

.prop-spec-row dt {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.prop-spec-row dd {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  text-align: right;
}

.prop-spec-row--price dt,
.prop-spec-row--price dd {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--fw-regular);
  color: var(--color-accent-warm);
}

/* Curador */
.prop-curator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.prop-curator__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.prop-curator__name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.prop-curator__role {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.prop-curator__contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.prop-curator__contacts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
}

.prop-curator__contacts a { transition: color var(--duration-fast) var(--ease-silk); }
.prop-curator__contacts a:hover { color: var(--color-text); }

/* Mapa */
.prop-map {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.prop-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(1) contrast(0.88) brightness(0.96);
}

.prop-map__address {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

/* Disclaimer */
.prop-disclaimer {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: 1.7;
  border-left: 2px solid var(--color-border-light);
  padding-left: var(--space-sm);
  opacity: 0.7;
}

/* ── Contacto ────────────────────────────────────────────── */
.prop-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.prop-contact-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.prop-contact-note svg { flex-shrink: 0; color: var(--color-accent); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .prop-gallery__grid {
    grid-template-columns: 1fr 260px;
    height: 460px;
  }

  .prop-body__grid {
    grid-template-columns: 1fr 300px;
    gap: var(--space-lg);
  }
}

@media (max-width: 900px) {
  .prop-header__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .prop-header__price-block { text-align: left; }

  .prop-gallery__grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .prop-gallery__secondary {
    grid-template-rows: none;
    grid-template-columns: repeat(4, 1fr);
    border-left: none;
    border-top: 0.5px solid rgba(255,255,255,0.08);
    height: 120px;
  }

  .prop-gallery__placeholder + .prop-gallery__placeholder {
    border-top: none;
    border-left: 0.5px solid rgba(255,255,255,0.08);
  }

  .prop-gallery__main { height: 360px; }

  .prop-body__grid {
    grid-template-columns: 1fr;
  }

  .prop-body__sidebar {
    position: static;
    order: -1;
  }

  .prop-stats__inner {
    gap: var(--space-lg);
  }

  .prop-stat-sep { display: none; }

  .prop-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .prop-header {
    padding-top: calc(var(--navbar-h) + var(--space-lg));
  }
  .prop-header__inner,
  .prop-stats__inner {
    padding: 0 var(--space-md);
  }
  .prop-stats__inner { padding: var(--space-md); }

  .prop-features-grid {
    grid-template-columns: 1fr;
  }
}
