/* ========================================
   Jenny McMullin — Interior Page Styles
   (loaded alongside styles.css)
   ======================================== */

/* ---------- Page banner ---------- */
.page-banner {
  background: var(--teal-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 56px 0 52px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb span { opacity: .5; }
.page-banner__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}
.page-banner__title em { font-style: italic; color: var(--teal); }
.page-banner__sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft);
  margin: 16px 0 0;
  max-width: 60ch;
}

/* ========================================
   PROPERTY DETAIL
   ======================================== */
.prop {
  padding: 56px 0 100px;
}
.prop__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.prop__address {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--ink);
}
.prop__locale { color: var(--ink-mute); font-size: 15px; letter-spacing: .04em; margin: 0; }
.prop__price-wrap { text-align: right; }
.prop__price {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -.01em;
}
.prop__mls { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 6px; }

.prop__keyfacts {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  background: #fff;
}
.prop__keyfact {
  flex: 1 1 0;
  min-width: 130px;
  padding: 20px 24px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prop__keyfact:last-child { border-right: none; }
.prop__keyfact-val {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.prop__keyfact-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background-image: repeating-linear-gradient(135deg,
    var(--bg-warm) 0px, var(--bg-warm) 14px,
    #ede9e0 14px, #ede9e0 16px);
  cursor: pointer;
}
.gallery__item--hero {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-mute);
  text-align: center;
  padding: 8px;
}
.gallery__ph span {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 10px;
}
.gallery__more {
  position: absolute;
  inset: 0;
  background: rgba(0, 60, 70, .72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .02em;
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 8px; }
  .gallery__item--hero { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
}

/* Property body layout */
.prop__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}
.prop__section { margin-bottom: 44px; }
.prop__section h3 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.prop__desc { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  background: #fff;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spec dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.spec dd { margin: 0; font-size: 15px; color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }

/* Feature list (chips inside a spec section) */
.feature-list { display: grid; gap: 10px; margin: 0; }
.feature-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.feature-row:last-child { border-bottom: none; }
.feature-row dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; padding-top: 2px; }
.feature-row dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.5; }
@media (max-width: 520px) { .feature-row { grid-template-columns: 1fr; gap: 4px; } }

/* Room dimensions table */
.room-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.room-table tr.room-group td {
  background: var(--teal-soft);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  padding: 10px 18px;
}
.room-table td { padding: 12px 18px; border-top: 1px solid var(--line-soft); font-size: 15px; color: var(--ink); }
.room-table tr:first-child td { border-top: none; }
.room-table td.room-name { font-weight: 500; }
.room-table td.room-dim { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Gallery — hidden overflow tiles (revealed in lightbox) */
.gallery__item--hidden { display: none; }

/* Sticky contact card */
.prop__aside { position: sticky; top: 120px; }
.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 14px 40px -24px rgba(0,40,50,.22);
}
.lead-card__agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.lead-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-warm);
}
.lead-card__name { font-weight: 700; font-size: 15px; color: var(--ink); }
.lead-card__role { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.lead-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--ink);
}
.lead-card .field { margin-bottom: 14px; }
.lead-card .field input,
.lead-card .field textarea { font-size: 14px; padding: 11px 13px; }
.lead-card__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  justify-content: center;
}
.lead-card__phone a { color: var(--teal); font-weight: 600; }

@media (max-width: 920px) {
  .prop__layout { grid-template-columns: 1fr; gap: 40px; }
  .prop__aside { position: static; }
}

/* ========================================
   FEATURED LISTINGS PAGE
   ======================================== */
.listings-page { padding: 64px 0 100px; }
.listings-page .listings__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .listings-page .listings__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listings-page .listings__grid { grid-template-columns: 1fr; } }

/* Sold section */
.sold {
  background: #0b2a31;
  color: rgba(255,255,255,.8);
  padding: 88px 0;
}
.sold__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.sold__head .eyebrow { color: #6fd0c8; }
.sold__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px;
  color: #fff;
}
.sold__head h2 em { font-style: italic; color: #6fd0c8; }
.sold__head p { color: rgba(255,255,255,.65); font-size: 16px; margin: 0; }
.sold__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sold__item {
  background: #0b2a31;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background .25s var(--ease);
}
.sold__item:hover { background: #103840; }
.sold__addr { font-size: 14.5px; font-weight: 600; color: #fff; }
.sold__city { font-size: 12.5px; color: rgba(255,255,255,.55); }
.sold__tag {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6fd0c8;
  border: 1px solid rgba(111,208,200,.4);
  border-radius: 2px;
  padding: 3px 7px;
}
@media (max-width: 900px) { .sold__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .sold__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .sold__grid { grid-template-columns: 1fr; } }

/* ========================================
   CONTENT PAGES (Buyers / Sellers / Banking)
   ======================================== */
.content { padding: 80px 0 100px; }
.content__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  margin-bottom: 100px;
}
.content__grid:last-child { margin-bottom: 0; }
.content__grid--reverse .content__media { order: 2; }
.content__media {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image: repeating-linear-gradient(135deg,
    var(--bg-warm) 0px, var(--bg-warm) 14px,
    #ede9e0 14px, #ede9e0 16px);
  position: relative;
}
.content__media img { width: 100%; height: 100%; object-fit: cover; }
.content__media .gallery__ph { font-size: 12px; }
.content__body p { color: var(--ink-soft); margin: 0 0 18px; max-width: 56ch; }

@media (max-width: 900px) {
  .content__grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; align-items: start; }
  .content__media { order: 0; }
  .content__grid--reverse .content__media { order: 0; }
  .content__body { order: 1; }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0,40,50,.2); }
.step__num {
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  color: var(--teal);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.step h4 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* Section intro */
.section-intro { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-intro .h2 { margin-bottom: 18px; }
.section-intro p { color: var(--ink-soft); font-size: 17px; margin: 0; }

.band {
  background: var(--teal-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 90px 0;
}

/* Resource cards (banking) */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.resource {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.resource:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0,40,50,.2); }
.resource__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.resource h4 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.resource p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 18px; flex: 1; }
@media (max-width: 880px) { .resource-grid { grid-template-columns: 1fr; } }

/* Calculator */
.calc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 14px 40px -24px rgba(0,40,50,.2);
}
.calc__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.calc__result {
  text-align: center;
  padding: 28px;
  background: var(--teal-soft);
  border-radius: var(--radius);
}
.calc__result-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.calc__result-val {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.1;
}
@media (max-width: 600px) { .calc__row { grid-template-columns: 1fr; } .calc { padding: 28px; } }

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-page { padding: 72px 0 100px; }
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-card-list { display: flex; flex-direction: column; gap: 4px; margin-top: 36px; }
.info-block {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-block:last-child { border-bottom: none; }
.info-block__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.info-block__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: 3px; }
.info-block__val { font-size: 16px; color: var(--ink); font-weight: 500; }
.info-block__val a { color: var(--ink); }
.info-block__val a:hover { color: var(--teal); }

.map-embed {
  margin-top: 0;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-warm);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 880px) {
  .contact-hero { grid-template-columns: 1fr; }
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 26, 30, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__prev { left: 28px; }
.lightbox__next { right: 28px; }
.lightbox__count {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  letter-spacing: .1em;
}
@media (max-width: 600px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 24px; }
  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }
}
