:root {
  --bg-page: #F6F3EB;
  --bg-card: #FFFFFF;
  --bg-tint: #EEE8DB;
  --text-primary: #1C1E1B;
  --text-secondary: #484D49;
  --text-muted: #6B726C;
  --rule-bold: #2E2B25;
  --rule-subtle: #D5CEBD;
  --rule-light: #E8E3D5;
  --accent-rust: #832C1E;
  --accent-rust-tint: #F4ECE9;
  --accent-gold: #966E2E;
  
  --font-serif: "EB Garamond", Georgia, serif;
  --font-display: "Cinzel", Georgia, serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Monograph Masthead with Extra Top Breathing Room */
.property-masthead {
  border-bottom: 2px solid var(--rule-bold);
  padding-top: 2.4rem;
  padding-bottom: 1.8rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.property-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-pill {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-rust);
  background: var(--accent-rust-tint);
  border: 1px solid var(--accent-rust);
  padding: 0.2rem 0.6rem;
}

.property-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.property-tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 80ch;
}

/* Two-Column Dossier Layout */
.property-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: start;
}

/* Left: Narrative & Monograph Body */
.property-narrative {
  min-width: 0;
}

/* Archival Plate Frame - Full Bleed Media */
.archival-plate {
  background: var(--bg-card);
  border: 1px solid var(--rule-bold);
  box-shadow: 5px 5px 0 rgba(46, 43, 37, 0.08);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.plate-media {
  background: #1C1E1B;
  border-bottom: 1px solid var(--rule-bold);
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.archival-plate-trigger {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.plate-img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
  border: none;
  box-shadow: none;
  transition: transform 0.25s ease;
}

.archival-plate-trigger:hover .plate-img {
  transform: scale(1.015);
}

.plate-caption {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1rem;
}

.plate-source {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.plate-label {
  padding: 0.9rem 1.4rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--bg-card);
  line-height: 1.45;
}

/* Typography & Prose */
.monograph-body h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 2rem 0 0.8rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 0.4rem;
}

.monograph-body p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.lead-paragraph {
  font-size: 1.22rem !important;
  line-height: 1.65 !important;
  color: var(--text-primary) !important;
}

.drop-cap {
  font-family: var(--font-heading);
  float: left;
  font-size: 4rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 0;
  color: var(--accent-rust);
  font-weight: 700;
}

blockquote {
  border-left: 3px solid var(--accent-gold);
  padding: 0.8rem 1.4rem;
  margin: 1.8rem 0;
  background: #FCFAF6;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* Right Sidebar */
.property-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--rule-bold);
  box-shadow: 4px 4px 0 rgba(46, 43, 37, 0.06);
}

.sidebar-box-header {
  background: var(--rule-bold);
  color: #FFF;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  padding: 0.6rem 1rem;
  text-transform: uppercase;
}

/* Cadastre Specification List */
.dossier-list {
  padding: 1.2rem 1.4rem;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.8rem 1rem;
  font-size: 0.95rem;
}

.dossier-list dt {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  align-self: center;
}

.dossier-list dd {
  color: var(--text-primary);
  font-weight: 500;
}

.text-rust {
  color: var(--accent-rust) !important;
  font-weight: 600 !important;
}

/* Chronological Timeline */
.phase-list {
  padding: 1.2rem 1.4rem;
}

.phase-item {
  border-left: 2px solid var(--rule-subtle);
  padding-left: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.phase-item:last-child {
  margin-bottom: 0;
}

.phase-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-rust);
}

.phase-year {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-rust);
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.phase-item strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
  display: block;
}

.phase-item p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* ==========================================================================
   ARCHIVAL GALLERY & LIGHTBOX MODAL
   ========================================================================== */
.monograph-gallery-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--rule-bold);
}

.gallery-masthead {
  margin-bottom: 1.6rem;
}

.gallery-masthead h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0.3rem 0;
  color: var(--text-primary);
}

.gallery-masthead p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
}

.monograph-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.gallery-plate-item {
  background: var(--bg-card);
  border: 1px solid var(--rule-subtle);
  padding: 0.5rem;
  box-shadow: 2px 2px 0 rgba(46, 43, 37, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gallery-plate-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-rust);
  box-shadow: 4px 4px 0 rgba(46, 43, 37, 0.1);
}

.gallery-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-tint);
  overflow: hidden;
  border: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.08) contrast(1.02);
  transition: transform 0.2s ease;
}

.gallery-plate-item:hover .gallery-thumb-wrap img {
  transform: scale(1.03);
}

.gallery-plate-item figcaption {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-top: 0.5rem;
  line-height: 1.3;
}

/* Archival Lightbox */
.archival-lightbox {
  border: 2px solid var(--rule-bold);
  background: var(--bg-page);
  box-shadow: 0 10px 35px rgba(0,0,0,0.4);
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  outline: none;
}

.archival-lightbox::backdrop {
  background: rgba(28, 30, 27, 0.75);
  backdrop-filter: blur(2px);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  transition: color 0.15s;
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--accent-rust);
}

.lightbox-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.lightbox-counter {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.lightbox-stage-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
}

.lightbox-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--rule-bold);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(46, 43, 37, 0.15);
  transition: all 0.15s ease;
  flex-shrink: 0;
  user-select: none;
}

.lightbox-nav-btn:hover {
  background: var(--accent-rust);
  color: #FFF;
  border-color: var(--accent-rust);
}

.lightbox-stage {
  max-width: 74vw;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 1px solid var(--rule-bold);
  overflow: hidden;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  padding-top: 1rem;
  text-align: center;
  max-width: 75ch;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
  .property-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .lightbox-stage-row {
    flex-direction: column;
  }
  .lightbox-nav-btn {
    width: 100%;
    height: 36px;
  }
}