/* ── TILMON — AVAILABLE UNITS + BLOG ── */

/* ── UNITS ── */
.units-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.units-head .section-title { margin-bottom: 0; }
.units-count { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.units-list { display: grid; gap: 40px; }

.unit {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 30px rgba(26,26,26,0.05);
}
.bg-off .unit { margin-top: 8px; }
.unit-media { position: relative; background: #1d1416; display: flex; flex-direction: column; }
.unit-cover {
  position: relative; flex: 1; min-height: 420px; border: 0; padding: 0; cursor: pointer;
  background: #1d1416; overflow: hidden; display: block; width: 100%;
}
.unit-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.unit-cover.portrait img { object-fit: contain; }
.unit-cover.portrait::before {
  content: ""; position: absolute; inset: -30px; background: var(--poster, none) center/cover; filter: blur(22px) brightness(.55);
}
.unit-cover:hover img { transform: scale(1.03); }
.unit-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: rgba(123,29,46,0.92); color: #fff;
  display: grid; place-items: center; font-size: 26px; padding-left: 5px;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.18); transition: transform var(--transition);
}
.unit-cover:hover .unit-play { transform: translate(-50%, -50%) scale(1.08); }
.unit-media-cap {
  position: absolute; left: 16px; bottom: 16px; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 7px 12px; border-radius: 4px;
}
.leased-ribbon {
  position: absolute; top: 26px; left: -46px; transform: rotate(-45deg);
  background: var(--burgundy); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; padding: 9px 60px; box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.unit.is-leased .unit-cover img { filter: saturate(.85); }
.unit-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 3px; background: #1d1416; }
.unit-thumb { border: 0; padding: 0; aspect-ratio: 4/3; cursor: pointer; overflow: hidden; background: #2a1d20; color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; }
.unit-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity var(--transition); }
.unit-thumb:hover img { opacity: 1; }
.unit-thumb.more { background: var(--burgundy); }

.unit-body { padding: 40px 40px 36px; display: flex; flex-direction: column; }
.unit-tags { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.status { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.st-available { background: #E7F3EA; color: #1F6B35; }
.st-leased { background: var(--burgundy); color: #fff; }
.st-coming { background: #FBF3DD; color: #8A6A12; }
.unit-area { font-size: 12px; color: var(--text-light); }
.unit h3 { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.unit-loc { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; }
.unit-price { font-size: 32px; font-weight: 700; color: var(--burgundy); margin-bottom: 18px; }
.unit-price span { font-size: 14px; font-weight: 500; color: var(--text-light); margin-left: 4px; }
.unit-specs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 20px; }
.unit-specs div { flex: 1; text-align: center; padding: 12px 8px; }
.unit-specs div + div { border-left: 1px solid var(--border); }
.unit-specs strong { display: block; font-size: 20px; color: var(--text); }
.unit-specs span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-light); }
.unit-summary { font-size: 14.5px; line-height: 1.75; color: var(--text-mid); margin-bottom: 18px; }
.unit-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 18px; }
.unit-features li { font-size: 13.5px; color: var(--text-mid); padding-left: 22px; position: relative; }
.unit-features li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.unit-note { font-size: 13px; background: var(--off-white); border-left: 3px solid var(--gold); padding: 10px 14px; color: var(--text-mid); margin-bottom: 18px; }
.unit-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 6px; }
.unit-actions button { font-family: inherit; cursor: pointer; }
.btn-text { background: none; border: 0; color: var(--burgundy); font-weight: 600; font-size: 14px; padding: 10px 4px; }
.btn-text:hover { text-decoration: underline; }

.coming-soon {
  margin-top: 40px; display: flex; align-items: center; gap: 24px; padding: 28px 32px;
  border: 2px dashed var(--gold); border-radius: 12px; background: #FFFCF4;
}
.coming-icon { font-size: 34px; }
.coming-soon h3 { font-size: 18px; margin-bottom: 4px; }
.coming-soon p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.coming-soon .btn-burgundy { margin-left: auto; white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 44px 0 36px; }
.step { background: var(--off-white); border-radius: 10px; padding: 28px 24px; }
.step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--burgundy); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; line-height: 1.65; color: var(--text-mid); }
.fair-housing { font-size: 12.5px; color: var(--text-light); text-align: center; max-width: 720px; margin: 0 auto; line-height: 1.7; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(12,6,8,0.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-stage { max-width: min(1200px, 92vw); max-height: 84vh; display: flex; }
.lb-stage img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 4px; }
.lb-stage iframe { width: min(420px, 90vw); aspect-ratio: 9/16; max-height: 86vh; border: 0; border-radius: 10px; background: #000; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: 0; cursor: pointer; font-size: 30px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--burgundy); }
.lightbox.is-video .lb-prev, .lightbox.is-video .lb-next { display: none; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.7); font-size: 13px; }

/* ── BLOG ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); transition: box-shadow var(--transition), transform var(--transition); }
.post-card:hover { box-shadow: 0 10px 36px rgba(123,29,46,0.1); transform: translateY(-4px); }
.post-card-img { aspect-ratio: 16/10; background: #ddd center/cover no-repeat; }
.post-card-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post-card h3 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.post-card p { font-size: 14px; line-height: 1.7; color: var(--text-mid); margin-bottom: 18px; }
.post-meta { margin-top: auto; font-size: 12px; color: var(--text-light); }

.post-hero { height: 340px; }
.post-hero h1 { max-width: 760px; }
.page-hero-eyebrow a { color: inherit; text-decoration: none; }
.post-body { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.85; color: var(--text-mid); }
.post-body .lead { font-size: 19px; color: var(--text); line-height: 1.75; }
.post-body h2 { font-size: 26px; color: var(--text); line-height: 1.3; margin: 44px 0 14px; }
.post-body h3 { font-size: 19px; color: var(--text); margin: 30px 0 10px; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { margin: 0 0 22px 22px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--burgundy); }
.post-body .callout { background: var(--off-white); border-left: 4px solid var(--gold); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 26px 0; font-size: 15.5px; }
.post-body .callout p:last-child { margin-bottom: 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 10px 0 26px; font-size: 15px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.post-body th { color: var(--text); background: var(--off-white); }
.post-body .disclaimer { font-size: 13px; color: var(--text-light); font-style: italic; }
.post-cta { margin: 48px 0 0; padding: 32px; background: var(--burgundy); border-radius: 12px; color: rgba(255,255,255,0.85); }
.post-cta h3 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.post-cta p { font-size: 15px; margin-bottom: 20px; }
.post-cta .btn-burgundy { background: var(--gold); color: var(--text); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.post-nav a { display: block; border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.post-nav a:last-child { text-align: right; }
.post-nav span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); font-weight: 600; margin-bottom: 4px; }
.post-nav a:hover { border-color: var(--burgundy); }

/* home teaser */
.home-units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.home-unit { position: relative; display: block; border-radius: 12px; overflow: hidden; min-height: 300px; text-decoration: none; color: #fff; }
.home-unit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.home-unit:hover img { transform: scale(1.04); }
.home-unit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(40,10,16,0.9) 0%, rgba(40,10,16,0.15) 60%); }
.home-unit-info { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; }
.home-unit-info .status { display: inline-block; margin-bottom: 10px; }
.home-unit-info h3 { font-size: 21px; margin-bottom: 4px; }
.home-unit-info p { font-size: 14px; opacity: .85; }

@media (max-width: 960px) {
  .unit { grid-template-columns: 1fr; }
  .unit-cover { min-height: 300px; }
  .unit-cover.portrait { min-height: 460px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .home-units { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .units-head { flex-direction: column; align-items: flex-start; }
  .unit-body { padding: 28px 22px; }
  .unit-features { grid-template-columns: 1fr; }
  .unit-actions > * { flex: 1 1 100%; text-align: center; }
  .coming-soon { flex-direction: column; text-align: center; }
  .coming-soon .btn-burgundy { margin: 0; }
  .steps, .post-grid, .home-units, .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
  .post-hero { height: auto; padding: 48px 0; }
  .post-body { font-size: 16px; }
  .post-hero h1 { font-size: 28px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
