/* ==========================================================================
   Erica Ades / Stetson Bentley — Listing Page Stylesheet
   Reusable across property pages. Black ground, ivory type, art-deco gold.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500;600&display=swap');

:root{
  --black:        #090908;
  --black-soft:   #121210;
  --panel:        #16150f;
  --ivory:        #efe9db;
  --ivory-dim:    #a8a397;
  --gold:         #c9a35b;
  --gold-light:   #ecd8a3;
  --gold-dim:     #8a713f;
  --hairline:     rgba(201,163,91,0.28);
  --hairline-soft:rgba(239,233,219,0.10);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ background: var(--black); scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img{ max-width: 100%; display: block; }

a{ color: var(--gold-light); text-decoration: none; }
a:focus-visible, button:focus-visible{
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--ivory);
}

.eyebrow{
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule{
  border: none;
  height: 1px;
  background: var(--hairline);
  margin: 0;
}

/* ---------- signature ornament: sunburst divider ---------- */
.sunburst{
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.sunburst svg{ display:block; }

/* ---------- top bar ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9,9,8,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.topbar .brand-mark img{ height: 70px; width: auto; }
.topbar-links{
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.topbar-links a:hover{ color: var(--gold-light); }
.topbar .cta-pill{
  border: 1px solid var(--gold-dim);
  padding: 9px 20px;
  border-radius: 2px;
  color: var(--gold-light) !important;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.topbar .cta-pill:hover{ border-color: var(--gold); background: rgba(201,163,91,0.08); }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}
.hero-veil{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,9,8,0.15) 0%, rgba(9,9,8,0.12) 32%, rgba(9,9,8,0.72) 78%, rgba(9,9,8,0.95) 100%);
}
.hero-content{
  position: relative;
  width: 100%;
  padding-top: 56px;
  padding-bottom: 52px;
}
.hero-status{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.hero-status::before{
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.hero h1{
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  letter-spacing: 0.01em;
  max-width: 16ch;
}
.hero .addr-line{
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--ivory-dim);
  letter-spacing: 0.02em;
}
.hero-bottom-row{
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 28px;
  justify-content: space-between;
}
.hero-price{
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-light);
  font-weight: 500;
}
.hero-stats{
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  flex-wrap: wrap;
}
.hero-stats .stat{ text-align: left; }
.hero-stats .stat strong{
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ivory);
  font-weight: 500;
}
.hero-stats .stat span{
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ---------- section scaffolding ---------- */
section{ position: relative; }
.section-pad{ padding-top: clamp(56px, 9vw, 108px); padding-bottom: clamp(56px, 9vw, 108px); }
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head .eyebrow{ display: block; margin-bottom: 10px; }
.section-count{
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--ivory-dim);
  text-transform: uppercase;
}

/* ---------- description ---------- */
.description{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.description p{
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  color: var(--ivory);
  font-weight: 400;
  margin: 0 0 1.1em 0;
}
.description p:last-child{ margin-bottom: 0; }
.tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.tag{
  border: 1px solid var(--hairline);
  padding: 7px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  border-radius: 2px;
}

/* ---------- gallery ---------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 260px);
  grid-auto-flow: dense;
  gap: 6px;
}
.gallery figure{
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  position: relative;
  cursor: zoom-in;
}
.gallery img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.gallery figure:hover img{ transform: scale(1.045); filter: saturate(1.05); }
.gallery .g-wide{ grid-column: span 2; }
.gallery .g-tall{ grid-row: span 2; }
.gallery figure::after{
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(239,233,219,0.06);
  pointer-events: none;
}
.gallery figure .g-cell{ aspect-ratio: 4 / 3; }
.gallery .g-tall .g-cell{ aspect-ratio: 4 / 6.15; height: 100%; }

@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .description{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .gallery{ grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .gallery .g-wide{ grid-column: span 2; }
  .gallery .g-tall .g-cell{ aspect-ratio: 4/3; }
}

.gallery-more{
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.btn-outline{
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  background: transparent;
  padding: 13px 34px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-outline:hover{ border-color: var(--gold); background: rgba(201,163,91,0.08); }
.gallery-hidden{ display: none; }

/* ---------- facts / features ---------- */
.facts{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.fact{
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 26px 22px;
}
.fact .n{
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-light);
  display:block;
  margin-bottom: 6px;
}
.fact .l{
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
@media (max-width: 760px){
  .facts{ grid-template-columns: repeat(2, 1fr); }
}

.feature-groups{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 64px);
}
.feature-groups h3{
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.feature-groups ul{
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.92rem;
  color: var(--ivory-dim);
}
.feature-groups li{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--hairline-soft);
}
.feature-groups li span:last-child{ color: var(--ivory); text-align: right; }
@media (max-width: 760px){
  .feature-groups{ grid-template-columns: 1fr; }
}

/* ---------- agent / brokerage ---------- */
.agent-panel{
  background: var(--panel);
  border: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 300px 1fr;
}
.agent-photo{
  position: relative;
  min-height: 340px;
  background: #000;
}
.agent-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.agent-info{
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.agent-info .brand-lockup{ margin-bottom: 18px; }
.agent-info .brand-lockup img{ height: 170px; width: auto; }
.agent-info h3{ font-size: 1.9rem; margin-bottom: 4px; }
.agent-info .role{
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.agent-contact{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-size: 0.9rem;
  color: var(--ivory-dim);
  margin-bottom: 24px;
}
.agent-contact a{ color: var(--ivory); }
.agent-contact a:hover{ color: var(--gold-light); }
.agent-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.btn-solid{
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
  padding: 13px 30px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-solid:hover{ background: var(--gold-light); border-color: var(--gold-light); }

@media (max-width: 760px){
  .agent-panel{ grid-template-columns: 1fr; }
  .agent-photo{ min-height: 300px; }
}

/* ---------- footer ---------- */
footer{
  border-top: 1px solid var(--hairline-soft);
  padding-top: clamp(40px, 6vw, 60px);
  padding-bottom: clamp(30px, 4vw, 44px);
}
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.footer-top img{ height: 70px; width: auto; }
.footer-cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  font-size: 0.86rem;
  color: var(--ivory-dim);
}
.footer-cols h4{
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: var(--sans);
  font-weight: 500;
}
.footer-cols a{ color: var(--ivory-dim); }
.footer-cols a:hover{ color: var(--gold-light); }
.footer-bottom{
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--ivory-dim);
  letter-spacing: 0.03em;
}
@media (max-width: 760px){
  .footer-cols{ grid-template-columns: 1fr 1fr; }
}

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(6,6,5,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.is-open{ display: flex; }
.lightbox img{
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--hairline);
}
.lightbox-close, .lightbox-nav{
  position: absolute;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--hairline);
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .2s ease, color .2s ease;
}
.lightbox-close{ top: 22px; right: 22px; width: 40px; height: 40px; font-size: 1rem; }
.lightbox-nav{ top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1.1rem; }
.lightbox-nav.prev{ left: 18px; }
.lightbox-nav.next{ right: 18px; }
.lightbox-close:hover, .lightbox-nav:hover{ border-color: var(--gold); color: var(--gold-light); }
.lightbox-count{
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--ivory-dim);
  text-transform: uppercase;
}