/* ===== Base ===== */
html, body {
  margin: 0; padding: 0; overflow-x: clip; max-width: 100%;
  background: #fbfbfa; color: #182430;
  font-family: 'Archivo', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: #1c4570; text-decoration: none; }
a:hover { color: #2c6e54; }
::selection { background: #d8e4dd; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font-family: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }

.sold-banner {
  background: #2c6e54; color: #f4f7f5; text-align: center; padding: 12px;
  font-weight: 700; letter-spacing: 0.08em; font-size: 14px;
}

/* ===== Top bar ===== */
.topbar { border-bottom: 1px solid #e6e8e9; background: #ffffff; }
.topbar__row {
  padding-top: clamp(10px, 2vw, 14px); padding-bottom: clamp(10px, 2vw, 14px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
}
.topbar__label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: #5c6a76; }
.topbar__price { display: flex; align-items: baseline; gap: 10px; }
.topbar__price-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: #5c6a76; }
.topbar__price-value { font-size: clamp(18px, 3vw, 22px); font-weight: 800; color: #1c3d5f; }
.pill--firm { font-size: 12px; font-weight: 600; color: #2c6e54; border: 1px solid #bcd3c8; border-radius: 999px; padding: 2px 10px; }

/* ===== Hero ===== */
.hero { padding-top: clamp(18px, 4vw, 44px); padding-bottom: 8px; }
.hero__status { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(12px, 2vw, 18px); }
.status-pill[hidden] { display: none; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  padding: 10px 22px; font-size: 16px; font-weight: 800; letter-spacing: 0.12em; color: #ffffff;
}
.status-pill--available { background: #2c6e54; }
.status-pill--pending { background: #b3862d; }
.status-pill--sold { background: #5c6a76; }
.status-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: #a8e6c8; }
.status-pill--pending .status-pill__dot { background: #f2dfae; }
.hero__title { margin: 0; font-size: clamp(27px, 5.5vw, 52px); line-height: 1.06; text-wrap: balance; font-weight: 800; letter-spacing: -0.02em; color: #14202c; }
.hero__title .accent { color: #1c4570; }
.hero__lede { margin: 14px 0 0; max-width: 720px; font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(16px, 2.4vw, 20px); line-height: 1.5; text-wrap: pretty; color: #3c4a56; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { font-size: 13px; font-weight: 600; color: #1c3d5f; background: #eef2f6; border-radius: 999px; padding: 7px 14px; }
.chip--finance { color: #2c6e54; background: #eaf3ee; border: 0; cursor: pointer; }
.chip--finance:hover { background: #ddeee4; }

/* ===== Gallery ===== */
.gallery { padding-top: clamp(14px, 3vw, 28px); padding-bottom: 0; }
.gal-hero {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr;
  gap: 12px; height: min(48vw, 560px);
}
.gh-main, .gh-side, .gs-item { position: relative; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: #e6e8e9; }
.gh-main { grid-row: span 2; }
.gal-sub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.gs-item { aspect-ratio: 4 / 3; }
.gallery__hint { margin: 10px 2px 0; font-size: 13px; color: #7a8792; }

/* ===== Story + price card ===== */
.story-grid {
  padding-top: clamp(36px, 6vw, 56px); padding-bottom: clamp(36px, 6vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 48px); align-items: start;
}
.section-title { margin: 0 0 18px; font-size: clamp(23px, 3.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; color: #14202c; }
.section-title--light { color: #ffffff; margin-bottom: 0; }
.section-sub { margin: 0 0 24px; font-size: 16px; color: #5c6a76; max-width: 680px; }
.story-copy { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.65; color: #2e3c48; display: grid; gap: 16px; }
.story-copy p { margin: 0; }

.maint-box { margin-top: 28px; border: 1px solid #dfe5e2; background: #f2f6f3; border-radius: 14px; padding: 20px 22px; }
.maint-box__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #2c6e54; margin-bottom: 12px; }
.maint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 15px; line-height: 1.45; color: #2e3c48; }
.maint-item { display: flex; gap: 8px; }
.check { color: #2c6e54; font-weight: 700; }

.price-card {
  position: sticky; top: 24px; border: 1px solid #dfe3e6; border-radius: 16px; background: #ffffff;
  box-shadow: 0 8px 28px rgba(20, 40, 60, 0.07); padding: 20px 22px;
}
.price-card__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #5c6a76; }
.price-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 6px; }
.finance-pill {
  font-size: 12px; font-weight: 700; color: #2c6e54; background: #eaf3ee;
  border: 1px solid #bcd3c8; border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.finance-pill:hover { background: #ddeee4; }
.price-card__amount { font-size: clamp(36px, 6vw, 44px); font-weight: 800; letter-spacing: -0.02em; color: #1c3d5f; }
.price-card__firm { font-size: 14px; font-weight: 600; color: #7a8792; }
.price-card__sub { font-size: 14px; color: #5c6a76; margin-top: 4px; }
.price-card__actions { display: grid; gap: 10px; margin-top: 16px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; border: none; }
.btn--primary { background: #1c3d5f; color: #ffffff; padding: 14px; }
.btn--primary:hover { background: #16324e; color: #ffffff; }
.btn--call { background: #2c6e54; color: #ffffff; padding: 14px; }
.btn--call:hover { background: #245c46; color: #ffffff; }
.btn__icon { width: 17px; height: 17px; flex-shrink: 0; }
.btn--ghost { background: #ffffff; border: 1px solid #d5dade; padding: 13px 20px; font-weight: 600; color: #3c4a56; }
.btn--footer { background: #ffffff; color: #1c3d5f; border-radius: 10px; padding: 14px 24px; font-weight: 700; font-size: 15px; }
.btn--footer:hover { background: #e8edf1; color: #16324e; }
.btn--footer-call { background: #2c6e54; color: #ffffff; }
.btn--footer-call:hover { background: #245c46; color: #ffffff; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.carfax-box { border: 1.5px dashed #bcd3c8; border-radius: 10px; padding: 12px 14px; background: #f6faf7; }
.carfax-box__title { font-weight: 700; font-size: 15px; color: #2c6e54; }
.carfax-box__sub { font-size: 13px; color: #4c5a64; margin-top: 2px; }

.price-card__steps { border-top: 1px solid #eceff0; margin-top: 16px; padding-top: 12px; }
.price-card__steps-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #5c6a76; margin-bottom: 10px; }
.steps { display: grid; gap: 8px; font-size: 13.5px; line-height: 1.45; color: #3c4a56; }
.step { display: flex; gap: 8px; }
.step__num { color: #1c4570; font-weight: 800; }
.price-card__contact { border-top: 1px solid #eceff0; margin-top: 12px; padding-top: 12px; font-size: 14px; color: #3c4a56; }

/* ===== Feature finder ===== */
.finder { background: #14202c; color: #e8edf1; }
.finder .wrap { padding-top: clamp(40px, 6vw, 60px); padding-bottom: clamp(44px, 6vw, 68px); }
.finder__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; }
.finder__input {
  margin-top: 22px; width: 100%; background: #1e2d3b; border: 1px solid #33475a; border-radius: 12px;
  color: #f2f5f7; font-family: 'Archivo', sans-serif; font-size: 16px; padding: 15px 18px; outline: none;
}
.finder__input:focus { border: 1px solid #6d90ad; }
.finder__note { margin-top: 10px; font-size: 13px; color: #8fa0ae; }
.finder__pkg-label { color: #9fd3ba; font-weight: 700; }
.finder__empty { margin-top: 36px; font-size: 17px; color: #8fa0ae; }
.finder__categories { display: grid; gap: 36px; margin-top: 36px; }
.finder-cat__head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid #2a3c4d; padding-bottom: 10px; }
.finder-cat__name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.12em; color: #9fb4c6; }
.finder-cat__count { font-size: 13px; color: #5f7488; }
.finder-cat__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px 28px; margin-top: 14px; }
.finder-item { display: flex; align-items: baseline; gap: 8px; font-size: 15.5px; line-height: 1.45; color: #dfe7ec; padding: 4px 0; }
.finder-item__bullet { color: #4c637a; }
.finder-item__pkg { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: #9fd3ba; border: 1px solid #3d5c4e; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

/* ===== Walkaround ===== */
.walkaround { padding-top: clamp(40px, 6vw, 60px); padding-bottom: 8px; }
.walk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.walk-item { aspect-ratio: 4 / 3; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: #e6e8e9; }

/* ===== Known issues ===== */
.issues-section { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.issues-card { border: 1px solid #e2e0d8; background: #fdfcf8; border-radius: 18px; padding: clamp(20px, 4.5vw, 36px) clamp(18px, 5vw, 40px); }
.issues-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 40px); align-items: start; }
.issues-list { display: grid; gap: 16px; }
.issue { display: flex; gap: 12px; }
.issue__dot { width: 7px; height: 7px; border-radius: 50%; background: #c8a24a; margin-top: 8px; flex-shrink: 0; }
.issue__title { font-weight: 700; font-size: 15.5px; color: #2e3c48; }
.issue__desc { font-size: 14.5px; line-height: 1.5; color: #5c6a76; margin-top: 2px; }
.issues-photos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ip-item { aspect-ratio: 4 / 3; cursor: zoom-in; border-radius: 10px; overflow: hidden; background: #e6e8e9; }

/* ===== Lightbox ===== */
.lightbox[hidden], .modal[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; background: rgba(12, 18, 24, 0.88); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 32px); cursor: zoom-out;
}
.lightbox__image {
  width: 94%; height: 84vh; background-size: contain; background-position: center; background-repeat: no-repeat;
  transform-origin: 50% 50%; transition: transform 0.25s ease; cursor: zoom-in;
}
.lightbox__image.is-zoomed { cursor: zoom-out; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; background: rgba(255, 255, 255, 0.12); border: 0; color: #ffffff;
  font-size: 22px; line-height: 1; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-family: 'Archivo', sans-serif;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12); border: 0;
  color: #ffffff; font-size: 30px; line-height: 1; border-radius: 50%; width: 54px; height: 54px; cursor: pointer;
  font-family: 'Archivo', sans-serif;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); color: #ffffff; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__caption-bar {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center;
  gap: 14px; background: rgba(18, 26, 34, 0.85); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  padding: 11px 22px; cursor: default; max-width: 84%;
}
.lightbox__caption { font-size: 15px; font-weight: 600; color: #f2f5f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__counter { font-size: 13px; color: #93a5b3; white-space: nowrap; }

/* ===== Report modal ===== */
.modal {
  position: fixed; inset: 0; background: rgba(16, 26, 36, 0.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal__panel {
  background: #ffffff; border-radius: 18px; max-width: 600px; width: 100%; max-height: 85vh; overflow: auto;
  padding: clamp(20px, 5vw, 34px); box-shadow: 0 24px 64px rgba(10, 20, 30, 0.35);
}
.modal__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #2c6e54; }
.modal__title { margin: 8px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: #14202c; }
.modal__lede { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #5c6a76; }
.modal__list { display: grid; gap: 14px; }
.modal__item { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; color: #2e3c48; }
.modal__item .dot { width: 7px; height: 7px; border-radius: 50%; background: #c8a24a; margin-top: 8px; flex-shrink: 0; }
.modal__actions { display: flex; gap: 12px; margin-top: 26px; }
.modal__actions .btn { flex: 1; }

/* ===== Footer ===== */
.footer { background: #1c3d5f; color: #e8edf1; }
.footer__row {
  padding-top: clamp(36px, 6vw, 52px); padding-bottom: clamp(36px, 6vw, 52px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.footer__title { font-size: clamp(22px, 3.5vw, 26px); font-weight: 800; color: #ffffff; }
.footer__sub { font-size: 15px; color: #a9bccd; margin-top: 6px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .price-card { position: static; }
  .walk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .gal-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; max-width: 100%; }
  .gal-hero > div { min-width: 0; }
  .gh-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gh-side { aspect-ratio: 4 / 3; }
  .issues-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .walk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maint-grid { grid-template-columns: 1fr; }
  .gal-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
  .gal-sub > div { min-width: 0; }
  .gs-last { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .modal__actions { flex-direction: column; }
  .status-pill { font-size: 13px; padding: 7px 16px; }
  .hero-chips { gap: 8px; margin-top: 14px; }
  .hero-chips .chip { font-size: 12px; padding: 5px 11px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox__caption-bar {
    left: 12px; right: 12px; bottom: 16px; transform: none; max-width: none;
    border-radius: 14px; padding: 10px 14px; align-items: baseline;
  }
  .lightbox__caption { white-space: normal; overflow: visible; text-overflow: clip; flex: 1; font-size: 14px; line-height: 1.4; }
}
