/* Marketplace (mk-*) and property detail (pd-*) pages. Loads after site.css. Tokens only; both themes. */

:root { --head-h: 73px; --pd-nav-h: 58px; }

/* =========================================================
   Marketplace
   ========================================================= */
.mk-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.mk-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.mk-hero-copy .lead { max-width: 600px; margin-top: 20px; }
.mk-hero-copy h1 { margin-top: 18px; }
.mk-hero-side { padding: 22px 24px; display: grid; gap: 14px; }
.mk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.mk-stats .kpi .v { font-size: clamp(24px, 2.4vw, 32px); }

.mk-filterbar { position: sticky; top: var(--head-h); z-index: 40; padding-block: 10px; }
.mk-filters { display: grid; gap: 12px; padding: 12px; border-radius: 20px; }
.mk-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.mk-chips::-webkit-scrollbar { display: none; }
.mk-chips .chip { flex: none; }
.mk-chip-n { font: 600 11.5px/1 var(--mono); opacity: .62; }
.chip[aria-pressed="true"] .mk-chip-n { opacity: .8; }
.mk-controls { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 8px; }
.mk-search { position: relative; }
.mk-search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mk-search .input { padding-left: 38px; }
.mk-search .input::-webkit-search-cancel-button { cursor: pointer; }
.mk-results { padding-top: 24px; }
.mk-results-head { margin-bottom: 20px; min-height: 30px; }
.mk-grid.mk-fade > * { animation: mkIn .45s ease both; }
.mk-grid.mk-fade > :nth-child(2) { animation-delay: .04s; }
.mk-grid.mk-fade > :nth-child(3) { animation-delay: .08s; }
.mk-grid.mk-fade > :nth-child(n+4) { animation-delay: .12s; }
@keyframes mkIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mk-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 56px 24px; }
.mk-empty p { max-width: 420px; }

.mk-where-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 32px; }
.mk-where { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mk-state {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mk-state:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.mk-state.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mk-state-ab { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.mk-state.on .mk-state-ab { background: var(--accent); color: #fff; }
.mk-state-tx { display: grid; gap: 3px; min-width: 0; }
.mk-state-tx b { font-size: 15.5px; }
.mk-state-tx small, .mk-state-n small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-state-n { display: grid; justify-items: end; gap: 3px; }
.mk-state-n b { font-size: 22px; line-height: 1; }

.mk-who .mk-ex { display: grid; gap: 12px; align-content: start; padding: 24px; }
.mk-ex h3 { font-size: 19px; }
.mk-ex-who { font-weight: 600; color: var(--ink2); font-size: 15px; }
.mk-ex-dl { margin: 0; display: grid; gap: 8px; font-size: 13.5px; }
.mk-ex-dl dt { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.mk-ex-dl dd { margin: 0; color: var(--muted); line-height: 1.45; }
.mk-ex .btn-link { justify-self: start; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.mk-ex .btn-link svg { width: 16px; height: 16px; }
.mk-foot-note { margin-top: 28px; }
.mk-foot-note .btn-link { font-weight: 600; }

@media (max-width: 1000px) {
  .mk-hero-in { grid-template-columns: 1fr; }
  .mk-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-search { grid-column: 1 / -1; }
  .mk-where-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mk-filterbar { position: static; }
  .mk-stats { gap: 14px; }
  .mk-where { grid-template-columns: 1fr; }
}

/* =========================================================
   Property detail
   ========================================================= */
.pd-skip { position: absolute; left: 12px; top: -60px; z-index: 400; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }
.pd-skip:focus { top: 12px; color: var(--bg); }
.pd-noscroll, .pd-noscroll body { overflow: hidden; }
.pd-unv { display: inline-block; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); padding: 3px 6px; border-radius: 6px; background: var(--warn-bg); vertical-align: middle; }

/* ---------- Hero ---------- */
.pd-hero { min-height: min(90vh, 880px); background: #1a1b1e; }
.pd-hero-loading { min-height: 70vh; }
.pd-hero > img { animation: pdKen 18s ease-out both; }
@keyframes pdKen { from { transform: scale(1.06); } to { transform: scale(1); } }
.pd-hero::after { background: linear-gradient(180deg, rgba(10,10,12,.58) 0%, rgba(10,10,12,.08) 30%, rgba(10,10,12,.18) 55%, rgba(10,10,12,.78) 100%); }
.pd-hero-in { width: 100%; padding-top: calc(var(--head-h) + 28px); padding-bottom: clamp(24px, 4vw, 48px); display: grid; gap: 20px; align-self: stretch; grid-template-rows: auto 1fr; }
.pd-crumbs { display: flex; gap: 8px; align-items: center; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); min-width: 0; }
.pd-crumbs a { color: #fff; }
.pd-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pd-crumbs span[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; align-self: end; }
.pd-hero-panel { width: min(680px, 100%); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; border-radius: var(--r-xl); }
.pd-hero-panel h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; }
.pd-hero-panel h1 em { color: #fff; }
.pd-badges { gap: 6px; }
.pd-hero .badge { background: rgba(255,255,255,.92); color: #111214; }
.pd-hero .badge.ok::before { background: #128A66; }
.pd-hero .badge.warn::before { background: #B7791F; }
.pd-hero .badge.info::before { background: #2F6BD8; }
.pd-hero .badge.accent { background: var(--accent); color: #fff; }
.pd-hero .badge.pd-sample { background: rgba(17,18,20,.72); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.pd-addr { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.86); font-size: 15px; }
.pd-addr svg { width: 17px; height: 17px; flex: none; }
.pd-hero-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.18); }
.pd-hero-nums > div { display: grid; gap: 4px; padding: 14px 14px 2px 0; min-width: 0; }
.pd-hero-nums > div + div { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.14); }
.pd-hero-nums span { font-size: 12px; color: rgba(255,255,255,.72); line-height: 1.25; }
.pd-hero-nums b { font-size: clamp(17px, 1.8vw, 23px); font-weight: 600; color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pd-hero-photos { flex: none; }

/* ---------- Notices + gallery ---------- */
.pd-top { display: grid; gap: 18px; padding-top: 24px; }
.pd-note { font-size: 14.5px; }
.pd-pipe {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: var(--r-l);
  background: var(--warn-bg); border: 1px solid rgba(183, 121, 31, .35); color: var(--ink2);
}
.pd-pipe .ico-tile { background: var(--warn); color: #fff; }
.pd-pipe .eyebrow { color: var(--warn); }
.pd-pipe h3 { font-size: 20px; }
.pd-gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(150px, 17vw, 260px));
  gap: 8px; border-radius: var(--r-l); overflow: hidden;
}
.pd-tile { position: relative; padding: 0; margin: 0; border: 0; border-radius: 0; background: var(--bg-2); overflow: hidden; cursor: zoom-in; min-width: 0; }
.pd-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.pd-tile:hover img { transform: scale(1.04); }
.pd-tile:focus-visible { outline: 3px solid #fff; outline-offset: -3px; border-radius: 0; box-shadow: inset 0 0 0 5px var(--navy); }
.pd-tile.big { grid-row: 1 / span 2; }
.pd-gallery.count-4 .pd-tile:nth-child(4) { grid-column: 2 / span 2; }
.pd-gallery.count-3 .pd-tile:not(.big) { grid-column: 2 / span 2; }
.pd-gallery.count-2 { grid-template-columns: 2fr 1fr; }
.pd-gallery.count-2 .pd-tile:not(.big) { grid-row: 1 / span 2; }
.pd-gallery.count-1 { grid-template-columns: 1fr; }
.pd-vs { position: absolute; left: 12px; bottom: 12px; background: rgba(17,18,20,.72); color: #fff; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.pd-more {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px;
  background: rgba(255,255,255,.92); color: #111214; font: 650 13.5px/1 var(--sans); box-shadow: var(--shadow);
}
.pd-more svg { width: 16px; height: 16px; }
.pd-more.m { display: none; }
.pd-photonote { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pd-photonote svg { width: 18px; height: 18px; margin-top: 1px; }

/* ---------- Section nav ---------- */
.pd-body { position: relative; margin-top: clamp(28px, 4vw, 48px); }
.pd-navwrap {
  position: sticky; top: var(--head-h); z-index: 45; padding-block: 8px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}
.pd-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pd-nav::-webkit-scrollbar { display: none; }
.pd-nav a { flex: none; height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; font: 600 14px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.pd-nav a:hover { color: var(--ink); background: var(--bg-2); }
.pd-nav a[aria-current="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-s); }

/* ---------- Two-column body ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); padding-top: 8px; padding-bottom: clamp(56px, 8vw, 96px); align-items: start; }
.pd-main { min-width: 0; }
.pd-sec { padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + var(--pd-nav-h) + 12px); display: grid; gap: 22px; }
.pd-sec:last-child { border-bottom: 0; }
.pd-sec-head { display: grid; gap: 12px; }
.pd-sec-head h2 { font-size: clamp(26px, 3vw, 40px); }
.pd-sec-head p { max-width: 680px; }
.pd-sub { font-size: 18px; margin-bottom: 4px; }
.pd-summary { max-width: 760px; }
.pd-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }

.pd-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.pd-specs > *, .pd-terms-grid > *, .pd-cterms > *, .pd-calc > * { box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.pd-spec { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px; background: var(--surface); }
.pd-spec-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); }
.pd-spec-ic svg { width: 20px; height: 20px; }
.pd-spec b { display: block; font-size: 18px; letter-spacing: -.02em; }
.pd-spec span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pd-strategy { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.pd-strategy h3 { font-size: 19px; }

/* Units */
.pd-units-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pd-uchips { gap: 6px; }
.pd-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); flex-wrap: wrap; }
.pd-legend .lg { width: 12px; height: 12px; border-radius: 4px; margin-left: 8px; }
.pd-legend .lg:first-child { margin-left: 0; }
.lg.av { background: var(--ok); } .lg.re { background: var(--warn); } .lg.so { background: var(--faint); }
.pd-unitwrap { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: var(--r-l); background: var(--bg-2); }
.pd-ugroup { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; }
.pd-ugroup-k { font: 600 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pd-unitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pd-unit {
  position: relative; display: grid; gap: 3px; align-content: center; min-height: 62px; padding: 10px 12px 10px 14px; text-align: left; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s ease;
}
.pd-unit::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--faint); }
.pd-unit b { font: 600 14px/1.15 var(--mono); overflow-wrap: anywhere; }
.pd-unit span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pd-unit.st-available { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.pd-unit.st-available::before { background: var(--ok); }
.pd-unit.st-reserved { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); }
.pd-unit.st-reserved::before { background: var(--warn); }
.pd-unit.st-sold { background: var(--surface); }
.pd-unit.st-sold b { color: var(--muted); }
.pd-unit:hover { transform: translateY(-2px); box-shadow: var(--shadow-s); }
.pd-unit[aria-expanded="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.pd-unit.is-dim { opacity: .28; }
.pd-pop { position: absolute; z-index: 6; width: min(300px, calc(100% - 0px)); padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow-l); animation: mkIn .2s ease; }
.pd-pop[hidden] { display: none; }
.pd-pop .badge { justify-self: start; }
.pd-pop-x { width: 32px; height: 32px; }
.pd-pop-dl { font-size: 13.5px; gap: 8px 16px; }

/* Stages */
.pd-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.pd-stage { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 22px; }
.pd-stage:last-child { padding-bottom: 0; }
.pd-stage::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.pd-stage:last-child::before { display: none; }
.pd-stage-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--mono); background: var(--surface); border: 2px solid var(--line); color: var(--muted); position: relative; z-index: 1; }
.pd-stage-dot svg { width: 18px; height: 18px; }
.pd-stage.st-closed .pd-stage-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.pd-stage.st-live .pd-stage-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
.pd-stage-body { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.pd-stage.st-live .pd-stage-body { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.pd-stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pd-stage-grid > div { display: grid; gap: 3px; align-content: start; }
.pd-stage-grid span { font-size: 12px; color: var(--muted); }
.pd-stage-grid b { font-size: 17px; letter-spacing: -.02em; }
.pd-stage-grid small { font-size: 12px; color: var(--muted); }

/* Financials */
.pd-terms-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.pd-terms-grid > div { padding: 16px 18px; background: var(--surface); display: grid; gap: 4px; align-content: start; min-width: 0; }
.pd-terms-grid dt { font-size: 12.5px; color: var(--muted); }
.pd-terms-grid dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pd-capstack { display: grid; gap: 10px; padding: 20px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); }
.pd-capbar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.pd-capbar .a { display: flex; align-items: center; padding-left: 12px; background: linear-gradient(90deg, var(--accent-d), var(--accent)); color: #fff; min-width: 46px; }
.pd-capbar .a i { font-style: normal; font-size: 13px; font-weight: 600; }
.pd-capbar .b { flex: 1; background: repeating-linear-gradient(135deg, var(--bg-2) 0 10px, color-mix(in srgb, var(--line) 70%, transparent) 10px 20px); }
.pd-caplegend { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); }
.pd-caplegend span { display: inline-flex; align-items: center; gap: 8px; }
.pd-caplegend i { width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.pd-caplegend i.b { background: var(--line); }
.pd-debt { display: grid; gap: 14px; }
.pd-debt-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-debt-kpis .kpi { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pd-debt-kpis .kpi .v { font-size: clamp(22px, 2.2vw, 28px); }
.pd-debt-kpis .kpi .v small { font-size: .55em; color: var(--muted); }
.pd-kpi-tx { font-family: var(--sans) !important; font-size: 17px !important; font-weight: 700; line-height: 1.25 !important; letter-spacing: -.01em !important; }
.pd-uw, .pd-empty { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border-radius: var(--r-l); border: 1px dashed var(--line); background: var(--surface); }
.pd-uw p, .pd-empty p { margin-top: 4px; }
.table tfoot td { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--bg); }
.table td .badge { text-transform: capitalize; }

/* Token */
.pd-token { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pd-token-card { padding: 22px; border-radius: var(--r-l); background: #0f1012; color: #F2F2F0; border: 1px solid #24272C; box-shadow: var(--shadow); display: grid; gap: 18px; position: relative; overflow: hidden; isolation: isolate; }
.pd-token-card::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -40%; width: 80%; height: 120%; background: radial-gradient(closest-side, rgba(224, 50, 74, .28), transparent 70%); }
.pd-token-card .dl dt { color: #A2A8B1; }
.pd-token-card .dl dd { color: #fff; overflow-wrap: anywhere; }
.pd-token-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-token-sym { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.pd-token-card .badge.info { background: rgba(111, 160, 255, .16); color: #9DBDFF; }
.pd-spv { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.pd-ints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pd-int { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }

/* Documents */
.pd-docs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--surface); }
.pd-doc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.pd-doc:last-child { border-bottom: 0; }
.pd-doc-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink); }
.pd-doc-ic svg { width: 20px; height: 20px; }
.pd-doc-tx { display: grid; gap: 3px; min-width: 0; }
.pd-doc-tx b { font-size: 15px; }
.pd-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 10px; background: var(--bg-2); white-space: nowrap; }
.pd-lock svg { width: 15px; height: 15px; }

/* Location */
.pd-loc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--surface); }
.pd-loc-art { position: relative; min-height: 260px; color: var(--ink); background: radial-gradient(120% 90% at 50% 45%, var(--surface), var(--bg-2)); }
.pd-loc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-loc-cap { position: absolute; left: 14px; bottom: 14px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); }
.pd-loc-info { padding: 22px; display: grid; gap: 14px; align-content: center; border-left: 1px solid var(--line); }

/* Risks + FAQ */
.pd-risks { margin: 0; padding: 0; list-style: none; counter-reset: rk; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pd-risks li { counter-increment: rk; display: grid; gap: 6px; padding: 18px 20px 18px 56px; position: relative; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.pd-risks li::before { content: counter(rk, decimal-leading-zero); position: absolute; left: 18px; top: 18px; font: 600 13px/1.4 var(--mono); color: var(--accent); }
.pd-risks p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.pd-faq { border-top: 1px solid var(--line); }
.pd-faq details { border-bottom: 1px solid var(--line); }
.pd-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 650; font-size: 16.5px; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .25s ease; color: var(--muted); }
.pd-faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.pd-faq details p { padding: 0 2px 20px; color: var(--ink2); max-width: 720px; }

/* ---------- Invest card ---------- */
.pd-aside { position: relative; align-self: stretch; }
.pd-card {
  position: sticky; top: calc(var(--head-h) + var(--pd-nav-h) + 20px); margin-top: clamp(40px, 5vw, 64px);
  display: grid; gap: 16px; padding: 24px; border-radius: var(--r-l);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line); box-shadow: var(--shadow-l);
}
.pd-grab { display: none; }
.pd-sheet-x { display: none; }
.pd-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pd-price b { font-size: 36px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.pd-price > .xs { flex-basis: 100%; }
.pd-sample-s { margin-left: auto; align-self: center; }
.pd-raise { display: grid; gap: 8px; }
.pd-cterms { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.pd-cterms > div { background: var(--surface); padding: 10px 12px; display: grid; gap: 3px; min-width: 0; }
.pd-cterms dt { font-size: 11.5px; color: var(--muted); }
.pd-cterms dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pd-card .badge.warn + .icon-btn, .pd-card .row.between { min-height: 30px; }
.pd-amt-field { display: grid; gap: 8px; }
.pd-amt { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 8px; }
.pd-amt .icon-btn { width: 46px; height: 46px; }
.pd-amt-in { position: relative; }
.pd-amt-in span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 600 16px/1 var(--mono); color: var(--muted); pointer-events: none; }
.pd-amt-in .input { padding-left: 30px; font-size: 17px; font-weight: 600; text-align: left; }
.pd-amt-msg { min-height: 17px; color: var(--muted); }
.pd-amt-msg.is-warn { color: var(--bad); font-weight: 600; }
.pd-calc { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.pd-calc > div { background: var(--surface); padding: 12px 14px; display: grid; gap: 3px; }
.pd-calc > .wide { grid-column: 1 / -1; }
.pd-calc span { font-size: 12px; color: var(--muted); }
.pd-calc b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.pd-calc em { font-style: normal; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pd-elig { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--ink2); line-height: 1.45; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.pd-elig svg { width: 20px; height: 20px; color: var(--accent); }
.pd-ask { display: inline-flex; align-items: center; gap: 8px; justify-self: center; color: var(--muted); font-weight: 600; }
.pd-ask svg { width: 16px; height: 16px; }
.pd-card .btn[disabled] { opacity: .6; }
.pd-err { color: var(--bad); font-weight: 600; min-height: 16px; }
.pd-mbar, .pd-sheet-back { display: none; }

/* ---------- Similar ---------- */
.pd-similar-head { margin-bottom: 28px; align-items: end; }

/* ---------- 404 ---------- */
.pd-404 { padding-top: clamp(72px, 10vw, 140px); }

/* ---------- Lightbox ---------- */
.pd-lb {
  position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8, 8, 10, .96); color: #fff;
  opacity: 0; transition: opacity .22s ease; touch-action: pan-y;
}
.pd-lb.open { opacity: 1; }
.pd-lb[hidden] { display: none; }
.pd-lb-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; }
.pd-lb-count { font-size: 13px; color: rgba(255,255,255,.75); min-width: 56px; }
.pd-lb-title { text-align: center; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-lb-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; transition: background .2s; }
.pd-lb-btn:hover { background: rgba(255,255,255,.2); }
.pd-lb-btn svg { width: 20px; height: 20px; }
.pd-lb-btn:focus-visible { outline-color: #fff; }
.pd-lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 76px; }
.pd-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.pd-lb-nav.prev { left: 16px; } .pd-lb-nav.prev svg { transform: rotate(180deg); }
.pd-lb-nav.next { right: 16px; }
.pd-lb.single .pd-lb-nav, .pd-lb.single .pd-lb-thumbs { display: none; }
.pd-lb-fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.pd-lb-img { max-width: 100%; max-height: calc(100dvh - 220px); width: auto; height: auto; object-fit: contain; border-radius: 10px; animation: lbIn .35s ease; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.pd-lb-fig figcaption { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; font-size: 14.5px; color: rgba(255,255,255,.86); }
.pd-lb-fig .pd-vs { position: static; background: rgba(255,255,255,.14); }
.pd-lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 18px; scrollbar-width: thin; }
.pd-lb-thumbs button:first-child { margin-left: auto; }
.pd-lb-thumbs button:last-child { margin-right: auto; }
.pd-lb-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #222; opacity: .5; transition: opacity .2s, border-color .2s; }
.pd-lb-thumbs button:hover { opacity: .85; }
.pd-lb-thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.pd-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Dark theme touches ---------- */
[data-theme="dark"] .pd-navwrap { background: color-mix(in srgb, var(--bg) 84%, transparent); }
[data-theme="dark"] .pd-card { background: var(--glass-strong); border-color: var(--line); }
[data-theme="dark"] .pd-pipe { border-color: rgba(227, 166, 74, .35); }
[data-theme="dark"] .pd-token-card { background: #0A0B0D; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .pd-terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-token { grid-template-columns: 1fr; }
  .pd-loc { grid-template-columns: 1fr; }
  .pd-loc-info { border-left: 0; border-top: 1px solid var(--line); }
  body.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-mbar .toast-wrap { bottom: calc(90px + env(safe-area-inset-bottom)); }
  /* Invest card becomes a bottom sheet */
  .pd-aside {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s;
  }
  .pd-aside.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
  .pd-card { position: static; margin: 0; border-radius: 24px 24px 0 0; border-bottom: 0; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); }
  .pd-grab { display: block; justify-self: center; width: 44px; height: 5px; border-radius: 99px; background: var(--line); }
  .pd-sheet-x { display: grid; width: 36px; height: 36px; }
  .pd-mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(17,18,20,.18);
  }
  .pd-mbar-tx { display: grid; gap: 2px; min-width: 0; }
  .pd-mbar-tx span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-mbar-tx b { font-size: 17px; font-weight: 600; white-space: nowrap; }
  .pd-mbar .btn { flex: none; }
  .pd-sheet-back { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(13,14,16,.45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .pd-sheet-open .pd-sheet-back { opacity: 1; visibility: visible; transition: opacity .25s; }
  .pd-sec:first-child { padding-top: 32px; }
}
@media (max-width: 760px) {
  .pd-hero { min-height: min(86vh, 720px); }
  .pd-hero-in { padding-top: calc(var(--head-h) + 16px); gap: 14px; }
  .pd-hero-row { flex-direction: column; align-items: stretch; }
  .pd-hero-photos { display: none; }
  .pd-hero-panel { padding: 18px; border-radius: var(--r-l); }
  .pd-hero-panel h1 { font-size: clamp(30px, 9vw, 40px); }
  .pd-addr { font-size: 14px; align-items: flex-start; }
  .pd-hero-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-hero-nums > div { padding: 12px 10px 4px 0; }
  .pd-hero-nums > div + div { padding-left: 0; border-left: 0; }
  .pd-hero-nums > div:nth-child(2n) { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
  .pd-hero-nums > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .pd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 120px; border-radius: var(--r); gap: 6px; }
  .pd-gallery .pd-tile.big { grid-row: auto; grid-column: 1 / -1; }
  .pd-gallery .pd-tile.m-hide { display: none; }
  .pd-gallery.count-2 .pd-tile:not(.big), .pd-gallery.count-3 .pd-tile:not(.big), .pd-gallery.count-4 .pd-tile:nth-child(4) { grid-column: auto; grid-row: auto; }
  .pd-gallery.count-2 { grid-template-rows: 230px 160px; }
  .pd-gallery.count-2 .pd-tile:not(.big) { grid-column: 1 / -1; }
  .pd-gallery.count-1 { grid-template-rows: 260px; }
  .pd-more.d { display: none; }
  .pd-more.m { display: inline-flex; right: 8px; bottom: 8px; height: 32px; padding: 0 10px; font-size: 12.5px; }
  .pd-pipe { grid-template-columns: 1fr; padding: 20px; }
  .pd-highlights { grid-template-columns: 1fr; }
  .pd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-spec { padding: 14px; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .pd-spec-ic { width: 34px; height: 34px; }
  .pd-spec b { font-size: 16px; }
  .pd-ugroup { grid-template-columns: 1fr; gap: 6px; }
  .pd-unitgrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .pd-unitwrap { padding: 12px; }
  .pd-stage { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .pd-stage::before { left: 15px; top: 32px; }
  .pd-stage-dot { width: 32px; height: 32px; font-size: 13px; }
  .pd-stage-body { padding: 14px; }
  .pd-debt-kpis { grid-template-columns: 1fr; }
  .pd-ints { grid-template-columns: 1fr; }
  .pd-doc { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .pd-doc-ic { width: 40px; height: 40px; }
  .pd-doc-act { grid-column: 2; }
  .pd-risks { grid-template-columns: 1fr; }
  .pd-lb-stage { padding: 0 8px; }
  .pd-lb-nav { top: auto; bottom: 8px; transform: none; width: 42px; height: 42px; }
  .pd-lb-img { max-height: calc(100dvh - 250px); border-radius: 6px; }
  .pd-lb-fig { padding-bottom: 56px; }
  .pd-similar-head .btn { width: 100%; }
}
@media (max-width: 420px) {
  .pd-terms-grid { grid-template-columns: 1fr 1fr; }
  .pd-terms-grid > div { padding: 12px 14px; }
  .pd-terms-grid dd { font-size: 14.5px; }
  .pd-cterms { grid-template-columns: 1fr 1fr 1fr; }
  .pd-mbar .btn { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-hero > img, .pd-lb-img, .mk-grid.mk-fade > * { animation: none; }
  .pd-aside, .pd-sheet-back, .pd-tile img { transition: none; }
}

/* ---------- Card badges over photos (marketplace + similar offerings): solid chips for AA contrast ---------- */
.prop-media .badges .badge { background: rgba(255,255,255,.94); color: #111214; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.prop-media .badges .badge.ok::before { background: #128A66; }
.prop-media .badges .badge.warn::before { background: #B7791F; }
.prop-media .badges .badge.info::before { background: #2F6BD8; }
.prop-media .badges .badge.accent { background: var(--accent); color: #fff; }
.pd-amt-msg:empty { display: none; }

/* Hero figures: wrap only at spaces, never mid-word. */
.pd-hero-nums b { overflow-wrap: normal; word-break: normal; white-space: nowrap; font-size: clamp(16px, 1.6vw, 22px); }
@media (max-width: 640px) { .pd-hero-nums b { white-space: normal; } }

/* Ways to invest: fractional entry up to the whole asset */
.pd-tiers { display: grid; gap: 14px; margin-top: 28px; }
.pd-tiers h3 { font-size: 20px; }
.pd-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pd-tier { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pd-tier b { font-size: 22px; letter-spacing: -.02em; }
.pd-tier.whole { background: var(--accent-soft); border-color: transparent; }
.pd-funding { display: grid; gap: 12px; margin-top: 24px; }
.pd-funding h3 { font-size: 20px; }

/* ---------- Rental income (Distributions section) ---------- */
.pd-rent { display: grid; gap: 14px; margin-bottom: 24px; padding: 22px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--bg-2); }
.pd-rent-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.pd-rent-head h3 { font-size: 20px; }
.pd-rent-kpis .kpi .k { line-height: 1.35; }
.pd-rent-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: end; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.pd-rent-in { display: grid; gap: 8px; min-width: 0; }
.pd-rent-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-rent-row .input { width: 120px; flex: none; }
.pd-rent-out { display: grid; gap: 2px; text-align: right; }
.pd-rent-out b { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; color: var(--ink); }
.pd-rent-none { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.pd-rent-none svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 560px) {
  .pd-rent { padding: 16px; }
  .pd-rent-calc { grid-template-columns: 1fr; }
  .pd-rent-out { text-align: left; }
}

/* ---------- Holder votes ---------- */
.pd-votes { display: grid; gap: 14px; }
.pd-vote { display: grid; gap: 12px; padding: 20px 22px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); }
.pd-vote.is-open { box-shadow: inset 3px 0 0 var(--accent); }
.pd-vote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 14px; flex-wrap: wrap; }
.pd-vote-head h4 { font-size: 17px; flex: 1 1 240px; }
.pd-vts { display: grid; gap: 10px; }
.pd-vt { display: grid; gap: 6px; }
.pd-vt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pd-vt-top > span:first-child { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pd-vturn { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.pd-vturn-bar { position: relative; height: 6px; border-radius: 999px; background: var(--bg-2); }
.pd-vturn-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--info); }
.pd-vturn-bar .q { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.pd-votes-cta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- List a property link ---------- */
.pd-listlink { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 16px 20px; border-radius: var(--r); border: 1px dashed var(--line); background: var(--surface); }
.pd-listlink > svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.pd-listlink .btn-link { display: inline-flex; align-items: center; gap: 6px; }
.pd-listlink .btn-link svg { width: 16px; height: 16px; }
