/* 18/33 Henderson Rd — listing page. Palette and layout follow resouces/design.png. */

:root {
  --navy: #1f3c88;
  --navy-dark: #182f6b;
  --navy-text: #1b2f6e;
  --ink: #1f2937;
  --muted: #5b6577;
  --line: #d9e1ee;
  --band-blue: #eff4fb;
  --band-light: #f7f9fd;
  --card-tint: #e1e9f6;
  --white: #fff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(24, 47, 107, .06), 0 6px 20px rgba(24, 47, 107, .06);
  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
}
body.lb-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, p, dl, dd, dt, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid #c9d6ea; margin: 0; }

.container { max-width: 1536px; margin: 0 auto; padding: 0 40px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 26px; height: 26px; stroke-width: 1.5; color: var(--navy); }
.icon-file { width: 24px; height: 24px; stroke-width: 1.5; color: #d9342b; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .65em 1.3em;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--navy);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-outline { background: var(--white); color: var(--navy); }
.btn-outline:hover { background: var(--band-blue); }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-sm { padding: .35em .9em; font-size: .8rem; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Header */
.site-header { background: var(--white); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.logo img { width: 300px; height: auto; }
.header-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* Bands */
.band-blue { background: var(--band-blue); }
.band-light { background: var(--band-light); }

/* Hero */
.hero { padding: 14px 0 16px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.gallery { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #cfd8e6; min-height: 240px; }
.gallery-main-btn { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-main-btn img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em .9em; border: 0; border-radius: 999px;
  background: rgba(17, 24, 39, .72); color: #fff; font-weight: 600; font-size: .9rem;
  cursor: pointer; backdrop-filter: blur(4px);
}
.gallery-count:hover { background: rgba(17, 24, 39, .88); }
.gallery-thumbs { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: #cfd8e6; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 7 / 4; transition: transform .2s; }
.thumb:hover img { transform: scale(1.04); }
.thumb.is-active { border-color: var(--navy); }

/* Summary column */
.summary h1 { font-size: clamp(1.3rem, 1.6vw, 1.5rem); line-height: 1.25; font-weight: 800; color: var(--navy-text); margin: 4px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 26px; color: var(--ink); font-size: 1rem; }
.chips li { display: inline-flex; align-items: center; gap: .5em; }
.chips .icon { width: 1.5em; height: 1.5em; color: var(--navy); stroke-width: 1.5; }
.blurb { margin: 12px 0 14px; font-size: 1rem; color: #2b3445; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.sale-card { background: var(--card-tint); border-color: #d3deef; padding: 16px 20px; display: grid; gap: 10px; }
.card-title { font-size: 1.25rem; font-weight: 800; color: var(--navy-text); }
.sale-terms { display: flex; justify-content: space-between; gap: 16px; }
.sale-terms dt { font-weight: 700; font-size: 1.05rem; }
.sale-terms dd { color: var(--muted); }
.sale-terms .right { text-align: right; }
.agent { display: flex; align-items: center; gap: 16px; }
.agent-photo { width: 66px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.agent-details { display: grid; gap: 4px; min-width: 0; }
.agent-name { font-weight: 800; font-size: 1.1rem; }
.agent-details a { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.agent-details a:hover { color: var(--navy); text-decoration: underline; }
.agent-details .icon { color: var(--navy); }

/* Details */
.details { padding: 18px 0 28px; }
@media (min-width: 1300px) { .details .container { padding: 0 64px; } }
.details-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.section-title { font-size: 1.2rem; font-weight: 800; color: var(--navy-text); margin: 0 0 10px 4px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow); overflow: hidden; }
.info-item { display: flex; gap: 14px; padding: 15px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-item:nth-child(3n) { border-right: 0; }
.info-item:nth-last-child(-n + 3) { border-bottom: 0; }
.info-item dt { font-weight: 700; color: var(--navy-text); margin-bottom: 2px; }
.info-item dd { color: #2b3445; }

.doc-list { box-shadow: var(--shadow); padding: 2px 14px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 4px 4px; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; }
.doc-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.doc-name { font-weight: 700; font-size: .92rem; }
.doc-desc { font-size: .75rem; color: var(--muted); }
.link-all { display: inline-flex; align-items: center; gap: .5em; margin: 10px 0 0 8px; font-size: .95rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.link-all:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--navy); color: #e5ebf7; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.footer-inner .sep { margin: 0 14px; opacity: .6; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  background: rgba(10, 14, 26, .94);
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lb-figure { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 100px); width: auto; border-radius: var(--radius-sm); }
.lb-figure figcaption { color: #cbd5e1; font-size: .95rem; text-align: center; }
.lb-close, .lb-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .24); }
.lb-close { position: absolute; top: 20px; right: 20px; }
.lb-nav .icon { width: 28px; height: 28px; stroke-width: 2; }
.lb-nav { margin: 0 8px; }

/* Responsive */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .hero-grid, .details-grid { grid-template-columns: 1fr; }
  .logo img { width: 240px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .header-inner { flex-direction: column; align-items: stretch; }
  .header-actions { justify-content: stretch; }
  .header-actions .btn { flex: 1; justify-content: center; padding-inline: .8em; }
  .logo img { width: 200px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-main { min-height: 0; aspect-ratio: 16 / 10; }
  .gallery-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .thumb img { aspect-ratio: 3 / 2; }
  .agent-details a { font-size: .95rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-item { gap: 12px; padding: 16px 14px; }
  .icon-lg { width: 26px; height: 26px; }
  .info-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .info-item:nth-child(2n) { border-right: 0; }
  .info-item:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .info-item:nth-last-child(-n + 1) { border-bottom: 0; }
  .doc { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
  .doc .btn { grid-column: 2; justify-self: start; }
  .footer-inner { justify-content: center; text-align: center; }
  .lightbox { grid-template-columns: 1fr; padding: 60px 12px 12px; }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-item, .info-item:nth-child(3n), .info-item:nth-last-child(-n + 3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .info-item:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumb img { transition: none; }
}
@media print {
  .site-header .header-actions, .gallery-count, .lightbox { display: none !important; }
}
