/* North Star Pro Realty: single-property listing pages
   Shared by every listing on homes.northstarprorealty.com */

:root {
  --ink: #121216;
  --ink-2: #2a2a31;
  --muted: #676772;
  --soft: #9a9aa3;
  --line: #e7e5e0;
  --paper: #f8f7f4;
  --white: #ffffff;
  --blue: #2926b4;
  --blue-deep: #0a0585;
  --blue-soft: #eeedfb;
  --gold: #e2bd45;
  --sold: #b3261e;
  --pending: #c77700;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(18, 18, 22, 0.07);
  --shadow-lg: 0 24px 60px rgba(18, 18, 22, 0.16);
  --max: 1180px;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --serif: "Lusitana", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 14px;
}
.eyebrow::before { content: "✦"; color: var(--gold); margin-right: 10px; letter-spacing: 0; }
h2.section-title {
  font-weight: 300; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 0 0 28px;
}
.serif { font-family: var(--serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(12, 12, 16, 0.86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand-logo img { height: 46px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .04em; font-size: .95rem; opacity: .92; }
.header-phone:hover { opacity: 1; }
.header-actions .btn { padding: 11px 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #111; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(5,5,12,.88) 0%, rgba(5,5,12,.45) 38%, rgba(0,0,0,0) 65%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: 132px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.28);
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 4px rgba(57,217,138,.25); }
.status-pill.pending .dot { background: #ffb020; box-shadow: 0 0 0 4px rgba(255,176,32,.25); }
.status-pill.sold .dot, .status-pill.off_market .dot { background: #ff5a4e; box-shadow: 0 0 0 4px rgba(255,90,78,.25); }
.status-pill.coming_soon .dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(226,189,69,.25); }
.hero h1 {
  margin: 18px 0 6px; font-weight: 300; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.02;
}
.hero .city-line { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); opacity: .9; margin: 0; }
.hero .price { margin-top: 18px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: .01em; }
.hero .price small { font-size: .45em; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-left: 10px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-dots { position: absolute; right: 24px; bottom: 140px; z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); }
.hero-dots button.active { background: #fff; width: 26px; border-radius: 6px; transition: width .3s; }

/* ---------- Stat bar ---------- */
.statbar-wrap { position: relative; z-index: 5; margin-top: -78px; }
.statbar {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 24px 12px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-size: 1.65rem; font-weight: 700; line-height: 1.1; }
.stat .label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 700; }

/* ---------- Banners ---------- */
.notice {
  margin: 28px 0 0; padding: 16px 22px; border-radius: var(--radius-sm);
  background: var(--blue-soft); color: var(--blue-deep); display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.notice strong { letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.notice.sold { background: #fdecea; color: var(--sold); }
.notice.pending { background: #fff4e0; color: #8a5200; }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
section[id] { scroll-margin-top: 70px; }
section.block.alt { background: var(--paper); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Overview */
.overview-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: start; }
.headline { font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.35; margin: 0 0 26px; color: var(--ink); }
.description p { font-family: var(--serif); color: var(--ink-2); font-size: 1.08rem; line-height: 1.8; margin: 0 0 18px; }
.description.collapsed { max-height: 330px; overflow: hidden; position: relative; }
.description.collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.read-more { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-top: 6px; }
.glance { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; box-shadow: var(--shadow); }
.glance .g-price { font-size: 2rem; font-weight: 700; }
.glance .g-sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.glance dl { margin: 0 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .95rem; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; text-align: right; font-weight: 700; }
.glance .btn { width: 100%; }
.glance .btn + .btn { margin-top: 10px; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hl { background: #fff; border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.hl:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hl .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.hl .icon svg { width: 24px; height: 24px; }
.hl h3 { margin: 0 0 8px; font-size: 1.06rem; letter-spacing: .02em; }
.hl p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* Gallery */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.gallery-head h2 { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 10px; }
.gallery .tile { position: relative; overflow: hidden; border-radius: 10px; background: #ddd; border: 0; padding: 0; }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery .tile:hover img { transform: scale(1.05); }
.gallery .tile.big { grid-column: span 2; grid-row: span 2; }
.gallery .tile.wide { grid-column: span 2; }
.gallery .tile.hidden { display: none; }
.gallery .tile .cap {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; letter-spacing: .08em; opacity: 0; transition: opacity .25s;
}
.gallery .tile:hover .cap { opacity: 1; }
.gallery-more { text-align: center; margin-top: 28px; }

/* Floor plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; transition: box-shadow .3s; }
.plan:hover { box-shadow: var(--shadow); }
.plan img { aspect-ratio: 4/3; object-fit: contain; width: 100%; background: #fff; }
.plan span { display: block; margin-top: 10px; font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Media */
.media-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.media-frame iframe, .media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-grid { display: grid; gap: 28px; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.fact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.fact-card h3 { margin: 0 0 14px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.fact-card dl { margin: 0; }
.fact-card .row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.fact-card .row:first-of-type { border-top: 0; }
.fact-card dt { color: var(--muted); }
.fact-card dd { margin: 0; }

/* Rooms */
.rooms { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rooms table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.rooms th, .rooms td { padding: 13px 24px; text-align: left; border-top: 1px solid var(--line); }
.rooms thead th { border-top: 0; background: var(--paper); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rooms td:last-child, .rooms th:last-child { text-align: right; }

/* Payment calculator */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d8d6d0; border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.calc-result { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 34px; }
.calc-result .total { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.calc-result .total small { font-size: .9rem; font-weight: 400; opacity: .7; }
.calc-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 22px 0 18px; background: #333; }
.calc-bar span { display: block; height: 100%; transition: width .4s; }
.calc-legend { display: grid; gap: 8px; font-size: .95rem; }
.calc-legend div { display: flex; justify-content: space-between; gap: 12px; }
.calc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; }
.calc-note { font-size: .78rem; color: var(--soft); margin-top: 16px; }

/* Location */
.location { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: #e8e8e8; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.loc-card h3 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.loc-card .district { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.school { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.school span:last-child { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.loc-card .btn { margin-top: 22px; width: 100%; }
.school-note { font-size: .78rem; color: var(--soft); margin-top: 10px; }

/* Open houses */
.oh-list { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.oh { background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; border: 1px solid var(--line); min-width: 200px; }
.oh b { display: block; }

/* Contact */
.contact { background: var(--ink); color: #fff; }
.contact .section-title { color: #fff; }
.contact .eyebrow { color: #a9a7ff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.agent-card { display: flex; gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.agent-card:first-of-type { border-top: 0; padding-top: 0; }
.agent-card img, .agent-card .initials { width: 104px; height: 128px; border-radius: 12px; object-fit: cover; flex: none; background: #2a2a33; }
.agent-card .initials { display: grid; place-items: center; font-size: 2rem; font-weight: 300; letter-spacing: .08em; }
.agent-card h3 { margin: 0; font-size: 1.3rem; font-weight: 400; letter-spacing: .03em; }
.agent-card .role { color: #b9b9c4; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 2px 0 12px; }
.agent-card a { display: block; color: #fff; text-decoration: none; font-size: .98rem; opacity: .9; }
.agent-card a:hover { opacity: 1; text-decoration: underline; }
.contact-intro { font-family: var(--serif); color: #cfcfd8; font-size: 1.08rem; margin: -8px 0 30px; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; margin-top: 8px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; font-size: .95rem; display: none; }
.form-status.ok { display: block; color: #1d7a46; }
.form-status.err { display: block; color: var(--sold); }
.consent { font-size: .76rem; color: var(--soft); margin-top: 12px; }

/* Footer */
.site-footer { background: #0b0b0e; color: #a3a3ad; padding: 54px 0 120px; font-size: .88rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-grid img.logo { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer a { color: #d7d7df; }
.footer-legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: .78rem; line-height: 1.6; }
.footer-legal img { height: 34px; width: auto; filter: invert(1); opacity: .7; }
.footer-legal p { margin: 0; max-width: 820px; }

/* Mobile action bar */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 18px;
  background: rgba(14,14,18,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 8px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.08); }
.action-bar a.primary { background: var(--blue); }
.action-bar svg { width: 17px; height: 17px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,9,.96); display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: .9rem; letter-spacing: .08em; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px 20px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-stage.plan img { background: #fff; }
.lb-btn { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-btn svg { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .overview-grid, .calc, .location, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .glance { position: static; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .statbar { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-phone, .header-actions .btn { display: none; }
  .brand-logo img { height: 38px; }
  .hero { min-height: 78vh; min-height: 78svh; }
  .hero-content { padding-bottom: 116px; }
  .hero-cta { display: none; }
  .hero-dots { bottom: 112px; right: 16px; }
  .statbar-wrap { margin-top: -64px; }
  .stat { padding: 18px 6px; }
  .stat .num { font-size: 1.3rem; }
  .stat .label { font-size: .62rem; letter-spacing: .12em; }
  section.block { padding: 64px 0; }
  .highlights, .facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 6px; }
  .gallery .tile.wide { grid-column: span 2; }
  .fact-card { padding: 22px; }
  .fact-card .row { grid-template-columns: 1fr; gap: 2px; }
  .rooms th, .rooms td { padding: 11px 14px; }
  .calc-inputs, .form-grid { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .agent-card img, .agent-card .initials { width: 86px; height: 106px; }
  .action-bar { display: grid; }
  .lb-stage { padding: 0 8px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .map, .map iframe { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide.active img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .site-header, .action-bar, .hero-dots, .form, .gallery-more, .lightbox { display: none !important; }
  .hero { min-height: 0; height: 420px; }
  .reveal { opacity: 1; transform: none; }
  .gallery .tile.hidden { display: none; }
}
