/* Sub-pages: listings index, listing detail, company drafts. Loads after home.css. */

body.sub main { padding-top: 84px; }
.section--tight { padding-top: 28px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--stone); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* draft marker */
.draft-pill { position: fixed; left: 14px; bottom: 14px; z-index: 95; padding: 8px 13px; border-radius: 999px; background: #1f1b17; color: #fbe7b0; font: 700 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(0,0,0,.2); pointer-events: none; }

/* company page prose */
.pg-prose.lst-block > * + * { margin-top: 14px; }
.pg-prose.lst-block > h2 + * { margin-top: 0; }
.pg-prose p, .pg-list { color: var(--ink-2); max-width: 66ch; }
.pg-prose.lst-block > h3 { font-size: 21px; margin-top: 26px; }
.pg-prose.lst-block > h3 + * { margin-top: 8px; }
.pg-prose strong { color: var(--ink); font-weight: 600; }
.pg-prose a:not(.btn):not(.link-arrow) { color: var(--accent-ink); text-underline-offset: 3px; }
.pg-prose.lst-block > .hero-actions { margin-top: 26px; }
.pg-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pg-list li::marker { color: var(--accent); }
.pg-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.pg-steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.pg-steps li:first-child { border-top: 0; padding-top: 4px; }
.pg-steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font: 600 15px/1.5 var(--font-body); color: var(--accent-ink); }
.pg-steps b { font-weight: 600; color: var(--ink); }
.pg-steps span { color: var(--ink-2); max-width: 60ch; }
.pg-notice { padding: 20px 22px; border-radius: 16px; background: var(--accent-soft); border: 1px solid #ebcabd; color: var(--ink); }
.pg-notice strong { display: block; font-weight: 600; font-size: 17px; }
.pg-notice p { margin-top: 6px; color: var(--ink-2); max-width: 66ch; }
.pg-notice a { color: var(--accent-ink); }
.pg-updated { font-size: 14px; color: var(--stone); }
select.op-input { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236f6559' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 17px center; background-size: 12px 8px; }
select.op-input:invalid { color: var(--stone); }
select.op-input option { color: var(--ink); }

/* page hero (listings index + drafts) */
.pg-hero { position: relative; margin: 10px; border-radius: 28px; overflow: hidden; isolation: isolate; background: var(--tile); padding: 84px 0 56px; }
.pg-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .22; filter: saturate(.9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 45%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 45%, #000 100%); }
body.sub .pg-hero { margin-top: -74px; padding-top: 150px; }
.pg-hero h1 { font-size: clamp(42px, 5.4vw, 76px); letter-spacing: -.035em; margin-top: 10px; max-width: 14ch; }
.pg-hero .lede { margin-top: 16px; }
.pg-narrow { max-width: 860px; }

/* listings index filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tile); border: 1px solid var(--border); }
.seg button, .chips button { border: 0; background: none; font: 500 14px var(--font-body); color: var(--ink-2); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--fg); color: #fffcf8; }
.seg button, .chips button { min-height: 44px; }
.seg button:focus-visible, .chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--border); background: var(--tile); }
.chips button:hover { border-color: var(--stone-2); color: var(--ink); }
.chips button.on, .chips button.on:hover { background: var(--fg); border-color: var(--fg); color: #fffcf8; }
.filters-note { font: 500 12px var(--font-mono); color: var(--stone); margin-left: auto; }
.filters-empty { margin: 0 0 18px; color: var(--ink-2); max-width: 66ch; }
.filters-empty a { color: var(--accent-ink); }
.feat-grid > [hidden] { display: none; }
.feat-grid.slot-beside > .slot:last-child { grid-column: auto; min-height: 360px; padding: 40px; }
.feat-title { text-decoration: none; }
.feat-title:hover { color: var(--accent); }
a.feat-media { display: grid; text-decoration: none; }
.slot { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px; border: 2px dashed var(--border); background: transparent; box-shadow: none; text-decoration: none; min-height: 360px; }
.slot h2, .slot h3 { font-size: 32px; max-width: 14ch; }
.slot p { color: var(--ink-2); max-width: 40ch; }
.slot:hover { border-color: var(--accent); background: var(--tile); }
.feat-grid > .slot:nth-child(odd):last-child { grid-column: 1 / -1; min-height: 0; padding: 32px 40px; }

/* listing detail */
.lst-head { padding-top: 10px; }
.lst-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.lst-title h1 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -.03em; max-width: 20ch; margin-top: 14px; }
.lst-loc { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.feat-badge--inline { position: static; display: inline-block; }
.lst-price { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.lst-price span { font: 600 14px var(--font-body); color: var(--stone); letter-spacing: 0; }
.lst-gallery { padding-top: 22px; }
.gal { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; }
.gal-cell { padding: 0; border: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.gal-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal-cell:hover img { transform: scale(1.04); }
.gal-main { grid-row: span 2; border-radius: 20px; }
.gal-all { position: absolute; right: 14px; bottom: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.lst-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap); align-items: start; }
.lst-main { display: grid; gap: var(--gap); }
.lst-block { padding: 30px; }
.lst-block h2 { font-size: 30px; margin-bottom: 12px; }
.lst-block .feat-specs { border-top: 0; margin: 0; padding: 0; gap: 12px 30px; }
.lst-block .feat-specs b { font-size: 30px; }
.lst-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.lst-feats li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); }
.lst-block .lede + p { margin-top: 16px; }
.lst-facts { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); margin: 0; }
.lst-facts dt, .lst-facts dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--border); }
.lst-facts dt:first-of-type, .lst-facts dt:first-of-type + dd { border-top: 0; padding-top: 2px; }
.lst-facts dt { font-weight: 600; font-size: 14.5px; color: var(--ink); padding-right: 16px; }
.lst-facts dd { font-size: 15px; color: var(--ink-2); }
.lst-feats li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c24e32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.lst-hood { padding: 34px; min-height: 220px; display: flex; flex-direction: column; gap: 10px; justify-content: end; text-decoration: none; }
.lst-hood h2 { font-size: 32px; }
.lst-hood p { color: var(--ink-2); max-width: 44ch; }
.lst-hood .tile-bg { opacity: .3; height: 100%; -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.4) 55%, transparent 100%); mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.4) 55%, transparent 100%); }
.lst-side { position: sticky; top: 92px; }
.lst-inquire { padding: 26px; }
.lst-price--side { font-size: 36px; }
.lst-side-sub { margin: 10px 0 18px; color: var(--ink-2); font-size: 14.5px; }
.lst-side-fine { margin-top: 14px; font-size: 12.5px; color: var(--stone); }
.lst-side-fine a { color: var(--ink-2); }
.lst-inquire .side-h { font-size: 26px; margin-bottom: 16px; }
.op-area { min-height: 90px; padding-top: 12px; resize: vertical; font-family: var(--font-body); }
.btn-block { width: 100%; justify-content: center; }
.lst-inquire .op-form { gap: 14px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(18,14,11,.94); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: min(92vw, 1400px); max-height: 84vh; border-radius: 12px; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fffcf8; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.8); font: 600 13px var(--font-mono); letter-spacing: .08em; }

@media (max-width: 1080px) {
  .lst-grid { grid-template-columns: 1fr; }
  .lst-side { position: static; }
}
@media (max-width: 760px) {
  .gal { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 130px 130px; }
  .gal-main { grid-column: span 2; grid-row: auto; }
  .gal-cell:nth-child(n+4) { display: none; }
  .lst-feats { grid-template-columns: 1fr; }
  .lst-facts { grid-template-columns: 1fr; }
  .lst-facts dt { padding-bottom: 2px; }
  .lst-facts dd { border-top: 0; padding-top: 0; }
  .lst-block, .lst-hood, .lst-inquire { padding: 22px; }
  .filters-note { margin-left: 0; width: 100%; }
  .feat-grid.slot-beside > .slot:last-child { min-height: 0; padding: 32px; }
  .pg-hero { margin: 8px; border-radius: 22px; }
  body.sub .pg-hero { padding-top: 120px; }
  .draft-pill { bottom: 10px; left: 10px; }
}

