/* =========================================================
   DETAIL PAGE — 412 Avenue Lansdowne
   Layered on top of styles.css; matches parent visual system
   ========================================================= */

:root {
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ----- Nav: detail variant always has light scheme by default ----- */
.nav--detail .nav__brand,
.nav--detail .nav__links a,
.nav--detail .lang__btn,
.nav--detail .lang__sep { color: var(--ink); }
.nav--detail .btn--ghost-brass { color: var(--ink); }
.nav--detail {
  background: rgba(243, 239, 231, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

/* ----- Breadcrumb ----- */
.crumb {
  border-top: 1px solid var(--rule);
  background: rgba(243, 239, 231, 0.92);
}
.crumb__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.crumb__inner a { color: var(--mute); transition: color .25s; }
.crumb__inner a:hover { color: var(--ink); }
.crumb__back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink) !important;
  font-weight: 500;
}
.crumb__back svg { width: 14px; height: 14px; }
.crumb__back:hover svg { transform: translateX(-2px); transition: transform .3s var(--ease); }
.crumb__sep { color: var(--mute-2); }
.crumb__cur { color: var(--brass-deep); }

/* push body content under the fixed nav+crumb on detail */
body.detail { padding-top: 0; }

/* ============== HERO ============== */
.phero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  isolation: isolate;
  margin-top: 96px; /* allow for fixed nav + crumb */
}
.phero__media { position: absolute; inset: 0; z-index: -1; }
.phero__img {
  position: absolute; inset: -4%;
  width: 108%; height: 108%;
  border: none;
  background: radial-gradient(60% 90% at 35% 40%, #3a3128 0%, #1a140e 70%, #0c0a08 100%);
  animation: kenburns 22s ease-in-out infinite alternate;
}
.phero__img::before { color: rgba(201,181,138,.35); letter-spacing: .3em; font-size: 11px; }
.phero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,14,.45) 0%, rgba(15,15,14,.05) 30%, rgba(15,15,14,.05) 55%, rgba(15,15,14,.78) 100%),
    linear-gradient(90deg, rgba(15,15,14,.4) 0%, rgba(15,15,14,0) 55%);
}
.phero__content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 8vh, 96px);
}
.phero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 22px;
  font-weight: 500;
}
.phero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.phero__title em { font-weight: 300; color: var(--brass-soft); }
.phero__sub {
  font-size: clamp(14px, 1.2vw, 17px);
  color: rgba(243,239,231,.78);
  margin: 0;
  font-weight: 300;
  letter-spacing: .04em;
}

.phero__price {
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: var(--pad);
  z-index: 2;
  text-align: right;
  color: var(--ivory);
}
.phero__price-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--brass);
}

/* ============== SPECS STRIP ============== */
.pspecs {
  border-bottom: 1px solid var(--rule);
  padding: clamp(40px, 5vw, 72px) 0;
}
.pspecs__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.pspec {
  padding: 0 clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--rule);
}
.pspec:first-child { border-left: 0; padding-left: 0; }
.pspec__num {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pspec__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 14px;
  font-weight: 500;
}

/* ============== INTRO + 3 IMAGES ============== */
.pintro {
  padding: clamp(80px, 11vw, 160px) 0 clamp(48px, 7vw, 96px);
}
.pintro__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.pintro__copy { padding-top: 24px; position: sticky; top: 130px; }
.pintro__lede {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 40px;
  color: var(--ink);
  text-wrap: pretty;
}
.pintro__lede em { color: var(--brass-deep); font-weight: 300; }
.pintro__keys {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--rule);
}
.pintro__keys li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.pintro__keys-l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.pintro__keys-v { color: var(--ink-soft); text-align: right; }
.pintro__stack {
  display: flex; flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}
.pintro__img { border: none; background: linear-gradient(180deg, rgba(167,139,95,.10), rgba(167,139,95,.18)); }
.pintro__img::before { color: var(--brass-deep); opacity: .55; }

/* ============== FULL DESCRIPTION ============== */
.pdesc {
  padding: clamp(40px, 6vw, 96px) 0 clamp(80px, 10vw, 140px);
}
.pdesc__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.pdesc__p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-soft);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.pdesc__pull {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  font-weight: 400;
  font-style: italic;
  color: var(--brass-deep);
  text-align: center;
  margin: 56px 0;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  letter-spacing: -0.005em;
}

/* ============== GALLERY ============== */
.pgallery { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); }
.pgallery__head { margin-bottom: clamp(40px, 5vw, 64px); }

.pgallery__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
  grid-auto-flow: dense;
}
.pgal {
  display: block;
  overflow: hidden;
  background: var(--ivory-deep);
}
.pgal__img {
  border: none;
  background: linear-gradient(180deg, rgba(167,139,95,.10), rgba(167,139,95,.18));
  transition: transform 1.2s var(--ease);
  height: 100%;
}
.pgal:hover .pgal__img { transform: scale(1.02); }

.pgal--a { grid-column: span 4; }
.pgal--b { grid-column: span 2; }
.pgal--c { grid-column: span 2; }
.pgal--d { grid-column: span 4; }
.pgal--e { grid-column: span 3; }
.pgal--f { grid-column: span 3; }
.pgal--g { grid-column: span 4; }
.pgal--h { grid-column: span 2; }

/* ============== FLOOR PLAN ============== */
.pplan {
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--rule);
}
.pplan .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.pplan__frame {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.pplan__img {
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(45deg, rgba(167,139,95,.04) 0 12px, transparent 12px 24px),
    var(--ivory-deep);
}
.pplan__img::before { color: rgba(15,15,14,.45); letter-spacing: .26em; font-size: 11px; }
.pplan__cap {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 24px var(--pad) 0;
}

/* ============== NEIGHBORHOOD ============== */
.phood {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule);
}
.phood__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.phood__copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 58ch;
}
.phood__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.phood__title em { font-weight: 300; color: var(--brass-deep); }

.phood__card {
  background: var(--ivory-deep);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--rule);
  position: sticky;
  top: 130px;
}
.phood__card-h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 24px;
  font-weight: 500;
}
.phood__list {
  list-style: none; padding: 0; margin: 0;
}
.phood__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
}
.phood__list li:last-child { border-bottom: 1px solid var(--rule); }
.phood__list li span:last-child {
  font-family: var(--mono);
  color: var(--mute);
  font-size: 11px;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ============== DETAILS TABLE ============== */
.ptable {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule);
}
.ptable .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.ptable__wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.ptable__list {
  margin: 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 5vw, 80px);
}
.ptable__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.ptable__row dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.ptable__row dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

/* ============== AGENT CARD ============== */
.pagent {
  background: var(--forest);
  color: var(--ivory);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.pagent::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(167,139,95,.18) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(167,139,95,.12) 0%, transparent 60%);
  pointer-events: none;
}
.pagent__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.pagent__img {
  border: 1px solid rgba(243,239,231,.14);
  background: linear-gradient(180deg, rgba(167,139,95,.20), rgba(167,139,95,.06));
}
.pagent__img::before { color: var(--brass-soft); }
.pagent__eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 24px;
  font-weight: 500;
}
.pagent__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ivory);
}
.pagent__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(243,239,231,.6);
  margin: 0 0 36px;
  font-weight: 500;
}
.pagent__note {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 36px;
  padding: 24px 0;
  border-top: 1px solid rgba(243,239,231,.14);
  border-bottom: 1px solid rgba(243,239,231,.14);
  color: rgba(243,239,231,.92);
  max-width: 38ch;
}
.pagent__note em { color: var(--brass-soft); font-style: italic; }

.pagent__ctas {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.pagent__pdf {
  display: inline-block;
  padding: 2px 6px;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: .14em;
}

.pagent__creds {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; flex-wrap: wrap;
}
.pagent__creds li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(243,239,231,.55);
  font-weight: 500;
}

/* ============== SIMILAR PROPERTIES ============== */
.psim {
  padding: clamp(80px, 10vw, 140px) 0;
}
.psim .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.psim__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.psimcard { display: block; }
.psimcard__img {
  border: none;
  background: linear-gradient(180deg, rgba(167,139,95,.10), rgba(167,139,95,.18));
  transition: transform 1s var(--ease);
}
.psimcard:hover .psimcard__img { transform: scale(1.02); }
.psimcard__meta { padding: 18px 4px 0; }
.psimcard__row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  margin-bottom: 8px;
}
.psimcard__addr {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.psimcard__hood {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 500;
}
.psimcard__price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}
.psimcard__specs {
  display: flex; gap: 14px;
  font-size: 11px;
  color: var(--mute);
}
.psimcard__specs span { position: relative; padding-right: 14px; }
.psimcard__specs span:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--mute-2); transform: translateY(-50%);
}

/* ============== STICKY VISIT PILL ============== */
.pstick {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: var(--ivory);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(15,15,14,.22);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pstick.is-shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pstick__price {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: none;
}
.pstick__sep {
  width: 1px; height: 20px;
  background: rgba(243,239,231,.25);
}
.pstick__cta { color: var(--brass-soft); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .pintro__grid { grid-template-columns: 1fr; }
  .pintro__copy { position: static; }
  .pintro__stack { flex-direction: row; flex-wrap: wrap; }
  .pintro__stack > * { flex: 1 1 220px; }
  .phood__grid { grid-template-columns: 1fr; }
  .phood__card { position: static; }
  .ptable__list { grid-template-columns: 1fr; }
  .pagent__inner { grid-template-columns: 1fr; }
  .pagent__media { max-width: 420px; }
}

@media (max-width: 820px) {
  .phero { height: 64vh; min-height: 460px; margin-top: 110px; }
  .phero__price { top: 16px; right: var(--pad); }
  .phero__price-num { font-size: 28px; padding-bottom: 8px; }
  .pspecs__inner { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .pspec:nth-child(4) { border-left: 0; padding-left: 0; }
  .pgallery__grid { grid-template-columns: repeat(2, 1fr); }
  .pgal--a, .pgal--b, .pgal--c, .pgal--d, .pgal--e, .pgal--f, .pgal--g, .pgal--h {
    grid-column: span 1;
  }
  .pgal--a { grid-column: span 2; }
  .pgal--g { grid-column: span 2; }
  .psim__grid { grid-template-columns: 1fr; }
  .crumb__inner { font-size: 10px; gap: 8px; flex-wrap: wrap; }
  .pagent__ctas .btn { width: 100%; }
  .pstick { right: 12px; bottom: 12px; padding: 10px 16px; font-size: 11px; gap: 10px; }
  .pstick__price { font-size: 14px; }
  .ptable__row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 520px) {
  .pspecs__inner { grid-template-columns: repeat(2, 1fr); }
  .pspec:nth-child(3) { border-left: 0; padding-left: 0; }
}
