/* Prix design system (RD-1 WP2, owner 2026-11-12) — Prix Icons, listing tags (style B), seller shields V / B / P,
   listing card B, the header 3-D heart. A static file on purpose: no Vite / Tailwind build is needed for these pieces
   (docs/architecture/design-system.md). Linked once per layout, cache-busted by filemtime, like css/landing-ds.css.
   Ported verbatim from the approved mockup (mockups/zero-point: prix-icons/dist/prix-icons.css,
   listing-page-redesign/tags_module.py CSS, card_module.py CSS, build-redesign.py .lp-h3d, explore-page-redesign
   compact card), then the app additions at the end. No backdrop-filter anywhere (round 13d: speed). */

/* ---- Prix Icons ---- */
/* Prix Icons — duotone (owner 2026-11-12). Glyph layers are styled through inherited custom properties, because
   document CSS with ancestor selectors does not reach the clones inside <use>. */
.pi-ln{fill:none;stroke:var(--pi-line,currentColor);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pi-ln *{fill:none}
.pi-fl{fill:var(--pi-fill,currentColor);stroke:none;opacity:var(--pi-fo,.28)}
.pi{width:24px;height:24px;display:block;overflow:visible}
.pi-tile{width:48px;height:48px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;flex:none;
  color:var(--pi-c);background:color-mix(in srgb,var(--pi-c) 14%,transparent);border:1px solid color-mix(in srgb,var(--pi-c) 28%,transparent)}
.pi-tile .pi{width:26px;height:26px}
.pi-tile--sm{width:36px;height:36px;border-radius:11px}
.pi-tile--sm .pi{width:20px;height:20px}
/* Glossy 3-D tile (owner 2026-11-12) for the listing facts and the stats: the tile carries its own gradient, so it
   reads the same on dark and light; the glyph is white with a white duotone. */
.pi3{position:relative;width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;
  color:#fff;--pi-line:#fff;--pi-fill:#fff;--pi-fo:.32;background:linear-gradient(150deg,var(--pi-a),var(--pi-b));
  box-shadow:0 8px 16px -8px var(--pi-b),inset 0 1px 0 rgba(255,255,255,.42),inset 0 -2px 0 rgba(0,0,0,.14)}
.pi3::before{content:"";position:absolute;left:0;right:0;top:0;height:52%;background:linear-gradient(to bottom,rgba(255,255,255,.34),rgba(255,255,255,0))}
.pi3 .pi{position:relative;width:22px;height:22px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.28))}
.pi3--lg{width:48px;height:48px;border-radius:14px}
/* Glow finish (owner 2026-11-12, the stats): a big glyph in the tone with a soft halo of the same colour, no tile. */
.pi-glow{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;
  color:var(--pi-c);--pi-line:var(--pi-c);--pi-fill:var(--pi-c);--pi-fo:.3}
.pi-glow .pi{width:32px;height:32px;filter:drop-shadow(0 4px 10px color-mix(in srgb,var(--pi-c) 60%,transparent))}
html:not(.dark) .pi-glow .pi,.pi-light .pi-glow .pi{filter:drop-shadow(0 3px 8px color-mix(in srgb,var(--pi-c) 38%,transparent))}
.pi3--lg .pi{width:26px;height:26px}
.pi-t-sky{--pi-c:#38bdf8}
html:not(.dark) .pi-t-sky,.pi-light .pi-t-sky{--pi-c:#0284c7}
.pi3-t-sky{--pi-a:#38bdf8;--pi-b:#0284c7}
.pi-t-slate{--pi-c:#a3b3c9}
html:not(.dark) .pi-t-slate,.pi-light .pi-t-slate{--pi-c:#475569}
.pi3-t-slate{--pi-a:#a3b3c9;--pi-b:#475569}
.pi-t-orange{--pi-c:#fb923c}
html:not(.dark) .pi-t-orange,.pi-light .pi-t-orange{--pi-c:#ea580c}
.pi3-t-orange{--pi-a:#fb923c;--pi-b:#ea580c}
.pi-t-yellow{--pi-c:#facc15}
html:not(.dark) .pi-t-yellow,.pi-light .pi-t-yellow{--pi-c:#a16207}
.pi3-t-yellow{--pi-a:#facc15;--pi-b:#a16207}
.pi-t-cyan{--pi-c:#22d3ee}
html:not(.dark) .pi-t-cyan,.pi-light .pi-t-cyan{--pi-c:#0891b2}
.pi3-t-cyan{--pi-a:#22d3ee;--pi-b:#0891b2}
.pi-t-emerald{--pi-c:#34d399}
html:not(.dark) .pi-t-emerald,.pi-light .pi-t-emerald{--pi-c:#059669}
.pi3-t-emerald{--pi-a:#34d399;--pi-b:#059669}
.pi-t-amber{--pi-c:#fbbf24}
html:not(.dark) .pi-t-amber,.pi-light .pi-t-amber{--pi-c:#b45309}
.pi3-t-amber{--pi-a:#fbbf24;--pi-b:#b45309}
.pi-t-pink{--pi-c:#f472b6}
html:not(.dark) .pi-t-pink,.pi-light .pi-t-pink{--pi-c:#db2777}
.pi3-t-pink{--pi-a:#f472b6;--pi-b:#db2777}
.pi-t-blue{--pi-c:#60a5fa}
html:not(.dark) .pi-t-blue,.pi-light .pi-t-blue{--pi-c:#2563eb}
.pi3-t-blue{--pi-a:#60a5fa;--pi-b:#2563eb}
.pi-t-violet{--pi-c:#a78bfa}
html:not(.dark) .pi-t-violet,.pi-light .pi-t-violet{--pi-c:#7c3aed}
.pi3-t-violet{--pi-a:#a78bfa;--pi-b:#7c3aed}
.pi-t-rose{--pi-c:#fb7185}
html:not(.dark) .pi-t-rose,.pi-light .pi-t-rose{--pi-c:#e11d48}
.pi3-t-rose{--pi-a:#fb7185;--pi-b:#e11d48}
.pi-t-coral{--pi-c:#ff7a70}
html:not(.dark) .pi-t-coral,.pi-light .pi-t-coral{--pi-c:#e0483d}
.pi3-t-coral{--pi-a:#ff7a70;--pi-b:#e0483d}
.pi-t-teal{--pi-c:#2dd4bf}
html:not(.dark) .pi-t-teal,.pi-light .pi-t-teal{--pi-c:#0d9488}
.pi3-t-teal{--pi-a:#2dd4bf;--pi-b:#0d9488}

/* ---- Listing tags, style B ---- */
/* Tags, style B "Sólido" (owner 2026-11-12): a colour pill with gloss, white line icon (Prix Icons, no fill) and text.
   Seller tags: a white pill so the solid shield (V / B / P) keeps its own colour. */
.lp-tags{display:flex;flex-wrap:wrap;gap:.5rem}
.lp-tags--photo{flex-direction:column;align-items:flex-start;gap:.4rem}
.lp-tg{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 9px;border-radius:999px;font-size:12.5px;font-weight:700;
  white-space:nowrap;text-decoration:none;color:#fff;--pi-line:#fff;--pi-fo:0;background:linear-gradient(150deg,var(--pi-a),var(--pi-b));
  box-shadow:0 6px 14px -8px var(--pi-b),inset 0 1px 0 rgba(255,255,255,.35);text-shadow:0 1px 1px rgba(0,0,0,.18)}
.lp-tg .pi{width:16px;height:16px}
a.lp-tg:hover{filter:brightness(1.06)}
a.lp-tg:focus-visible{outline:2px solid #0d9488;outline-offset:2px}
.lp-tg--seller{padding-left:7px;background:#fff;color:#0f172a;text-shadow:none;box-shadow:0 6px 14px -8px rgba(0,0,0,.45),inset 0 0 0 1px #e2e8f0}
.lp-tg__sh{width:18px;height:18px;flex:none;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}

/* ---- Listing card B ---- */
.cb{--cb-panel:#fff;--cb-line:#e2e8f0;--cb-text:#0f172a;--cb-muted:#64748b}
html.dark .cb{--cb-panel:#111d33;--cb-line:#1e3050;--cb-text:#e8edf5;--cb-muted:#8899b4}
html .pi-light .cb{--cb-panel:#fff;--cb-line:#e2e8f0;--cb-text:#0f172a;--cb-muted:#64748b}
.cb{display:flex;flex-direction:column;height:100%;background:var(--cb-panel);border:1px solid var(--cb-line);border-radius:22px;overflow:hidden;
  text-decoration:none;color:var(--cb-text);box-shadow:0 18px 40px -26px rgba(2,8,23,.55);transition:box-shadow .2s,transform .2s}
a.cb:hover{transform:translateY(-2px);box-shadow:0 24px 46px -24px rgba(2,8,23,.6)}
a.cb:focus-visible{outline:2px solid #0d9488;outline-offset:3px}
.cb-photo{position:relative;aspect-ratio:4/4.3;background:#1e3050;overflow:hidden}
.cb-photo img{display:block;width:100%;height:100%;object-fit:cover}
.cb-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(5,12,28,.94) 0%,rgba(5,12,28,.6) 30%,rgba(5,12,28,0) 58%);pointer-events:none}
.cb-over{position:absolute;left:14px;right:48px;bottom:12px;display:flex;flex-direction:column;gap:5px;z-index:2;min-width:0}
.cb-price{display:flex;align-items:center;gap:8px}
/* Prix colours on the photo (owner): coral price, teal title — as on the listing page */
.cb-price>span:first-child{font-size:23px;font-weight:800;line-height:1.1;color:#ff7a70;text-shadow:0 2px 10px rgba(0,0,0,.45)}
.cb-price small{font-size:12px;font-weight:600;color:#ffb4ad}
.cb h3{margin:0;font-size:15.5px;font-weight:700;line-height:1.3;color:#5eead4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  text-shadow:0 1px 8px rgba(0,0,0,.5)}
.cb .cx-addr{color:rgba(255,255,255,.85)} .cb .cx-pin{background:rgba(94,234,212,.2)} .cb .cx-pin svg{fill:#5eead4}
.cb-strip{padding:11px 14px 13px;display:flex;flex-direction:column;gap:7px;margin-top:auto}
.cb-kind{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--cb-muted)}
.cb-facts{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,.95fr) minmax(0,1.35fr) minmax(0,1fr);gap:8px}
.cb-f{display:flex;flex-direction:column;gap:2px;min-width:0;--pi-line:var(--pi-c);--pi-fill:var(--pi-c);--pi-fo:.25}
.cb-f>span{display:flex;align-items:center;gap:5px} .cb-f small{font-size:10.5px;color:var(--cb-muted);white-space:nowrap}
.cb-f .pi{width:17px;height:17px;flex:none} .cb-f b{color:var(--cb-text);font-size:14px}
/* BR-8b: the optional lister line (prop `lister`, the brokerage page v2): avatar or initials, name · role, link on tap */
.cb-lister{display:flex;align-items:center;gap:8px;min-height:32px;margin-top:3px;padding-top:9px;border-top:1px solid var(--cb-line);font-size:12.5px;color:var(--cb-muted);min-width:0}
.cb-lister>img,.cb-lister>i{width:24px;height:24px;border-radius:50%;flex:none;object-fit:cover}
.cb-lister>i{display:grid;place-items:center;font-size:9.5px;font-weight:800;line-height:1;font-style:normal;color:#fff;background:linear-gradient(140deg,#5cc4cf,#1e7a84 45%,#0d2b67)}
.cb-lister>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .cb-lister b{color:var(--cb-text);font-weight:700}
.cb-lister[role=link]{cursor:pointer} .cb-lister[role=link]::after{content:"";width:7px;height:7px;flex:none;margin-left:auto;border:solid var(--cb-muted);border-width:2px 2px 0 0;transform:rotate(45deg)}
.cb-lister[role=link]:hover b{text-decoration:underline;text-underline-offset:2px} .cb-lister:focus-visible{outline:2px solid #0d9488;outline-offset:2px;border-radius:6px}
/* shared overlay pieces (also used by the A / C options) — solid backgrounds, no backdrop blur */
.cx-tags{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;z-index:2}
.lp-tg--sm{height:24px;font-size:11px;padding:0 9px 0 7px;gap:4px}.lp-tg--sm .pi{width:13px;height:13px}
.cx-actions{position:absolute;top:10px;right:10px;display:flex;gap:7px;z-index:3}
.cx-actions button{width:34px;height:34px;border-radius:999px;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.cx-heart{background:linear-gradient(150deg,#fb7185,#e11d48);box-shadow:0 8px 16px -8px rgba(225,29,72,.9),inset 0 1px 0 rgba(255,255,255,.35)}
.cx-heart svg{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:round}
.cx-heart.is-on svg{fill:#fff}
.cx-eye{background:rgba(255,255,255,.92);box-shadow:0 6px 14px -8px rgba(0,0,0,.6);--pi-line:#0d9488;--pi-fill:#0d9488;--pi-fo:0}
html.dark .cx-eye{background:rgba(17,29,51,.9);--pi-line:#2dd4bf}
html .pi-light .cx-eye{background:rgba(255,255,255,.92);--pi-line:#0d9488}
.cx-eye.is-on{background:linear-gradient(150deg,#2dd4bf,#0d9488)!important;--pi-line:#fff!important;--pi-fill:#fff;--pi-fo:.35}
.cx-eye .pi{width:18px;height:18px}
.cx-shield{position:absolute;right:10px;bottom:9px;display:flex;z-index:2}
.cx-shield svg{width:28px;height:28px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
.cx-addr{display:flex;align-items:center;gap:7px;margin:0;font-size:12.5px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-pin{flex:none;width:20px;height:20px;border-radius:999px;display:flex;align-items:center;justify-content:center}
.cx-pin svg{width:11px;height:11px}
/* explore (round 16): compact card B for the map strip and lists */
.cb--compact .cb-photo{aspect-ratio:16/10}
.cb--compact .cb-price>span:first-child{font-size:19px}
.cb--compact h3{font-size:14px}
.cb--compact .cb-strip{padding:9px 12px 11px;gap:5px}
.cb-facts--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cb--active{outline:2px solid #14b8a6;outline-offset:2px;transform:scale(1.02)}

/* ---- Header heart (round 4) ---- */
.lp-h3d{width:22px;height:22px;flex:none;overflow:visible;transition:transform .18s cubic-bezier(.3,1.6,.5,1);
  filter:drop-shadow(0 1.5px 1px rgba(179,18,59,.55)) drop-shadow(0 3px 5px rgba(0,0,0,.28))}
a:hover > .lp-h3d,a:focus-visible > .lp-h3d{transform:translateY(-1px) scale(1.12)}
@media (prefers-reduced-motion:reduce){.lp-h3d{transition:none}}

/* ---- App additions (RD-1 WP2; not in the mockup) ---------------------------------------------------------------- */
/* <x-prix-icon>: sizes for the line finish; a tone on a bare icon colours its line and its soft fill */
.pi--sm{width:16px;height:16px}
.pi--lg{width:32px;height:32px}
/* <x-prix-icon finish="tile" size="xs">: the listing editor's checkbox rows (amenities, services, places), 2026-11-12 */
.pi-tile--xs{width:28px;height:28px;border-radius:9px}
.pi-tile--xs .pi{width:17px;height:17px}
.pi--tone{--pi-line:var(--pi-c);--pi-fill:var(--pi-c)}
/* <x-seller-shield :pill>: the inline wrappers */
/* the header heart at modal size (layouts/app favourites limit modal) */
.lp-h3d--lg{width:32px;height:32px}
/* card: title / price never wrap under the actions; prices and titles stay readable on the shade in both themes */
.cb-price small{margin-left:2px}
.cb .cx-addr{min-width:0}
/* card: no photo — the listing type's icon on the panel colour */
.cb-noimg{position:absolute;left:50%;top:38%;width:56px;height:56px;margin:-28px 0 0 -28px;color:#5c6f8a;--pi-fo:.18}
/* card: sold / rented / expired — greyscale card + a tilted stamp (the old card's overlay), no heart / eye */
.cb--off{filter:grayscale(1);opacity:.75}
.cb-stamp{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:3;pointer-events:none}
.cb-stamp>span{padding:8px 16px;border-radius:8px;background:var(--st,#475569);color:#fff;font-size:14px;font-weight:900;
  letter-spacing:.1em;transform:rotate(-12deg);opacity:.9;box-shadow:0 10px 15px -3px rgba(0,0,0,.3)}
@media (prefers-reduced-motion:reduce){a.cb,.cb--active{transition:none;transform:none!important}}

/* ---- Site pages (RD-1 WP3a) ---------------------------------------------------------------------------------------- */
/* card: the local price small under the US$ price (CARD-1, as on the listing page); kept blank when there is none, so
   the prices of a row line up */
.cb-local{margin-top:-3px;font-size:11.5px;font-weight:600;line-height:1.25;color:rgba(255,255,255,.8);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.cb-local[aria-hidden]{visibility:hidden}
.cb--compact .cb-local{font-size:11px}
/* pro profile: the card takes the preset's colours (config/profile-themes.php → --p-* on body.pp), whatever the
   visitor's site theme (app.js may set html.dark on any layout). Light presets carry .pi-light on <body> (the light
   tones); the dark presets (navy, oro) get the light-on-dark tones here. */
html body.pp .cb{--cb-panel:var(--p-card);--cb-line:var(--p-line);--cb-text:var(--p-ink);--cb-muted:var(--p-sub)}
.pp[data-dark="1"] .cb{box-shadow:0 18px 40px -24px rgba(0,0,0,.7)}
.pp[data-dark="1"] .cx-eye{background:rgba(17,29,51,.9);--pi-line:#2dd4bf}
.pp[data-dark="1"] .pi-t-sky{--pi-c:#38bdf8}.pp[data-dark="1"] .pi-t-slate{--pi-c:#a3b3c9}.pp[data-dark="1"] .pi-t-orange{--pi-c:#fb923c}
.pp[data-dark="1"] .pi-t-yellow{--pi-c:#facc15}.pp[data-dark="1"] .pi-t-cyan{--pi-c:#22d3ee}.pp[data-dark="1"] .pi-t-emerald{--pi-c:#34d399}
.pp[data-dark="1"] .pi-t-amber{--pi-c:#fbbf24}.pp[data-dark="1"] .pi-t-pink{--pi-c:#f472b6}.pp[data-dark="1"] .pi-t-blue{--pi-c:#60a5fa}
.pp[data-dark="1"] .pi-t-violet{--pi-c:#a78bfa}.pp[data-dark="1"] .pi-t-rose{--pi-c:#fb7185}.pp[data-dark="1"] .pi-t-coral{--pi-c:#ff7a70}
.pp[data-dark="1"] .pi-t-teal{--pi-c:#2dd4bf}
/* Guardados (pages/saved): card B + the comparison data under it in one shell; the buyer-interest bar is unchanged */
.sv-item{--cb-panel:#fff;--cb-line:#e2e8f0;--cb-text:#0f172a;--cb-muted:#64748b;position:relative;display:flex;flex-direction:column;height:100%;
  background:var(--cb-panel);border:1px solid var(--cb-line);border-radius:22px;overflow:hidden;box-shadow:0 18px 40px -26px rgba(2,8,23,.55)}
html.dark .sv-item{--cb-panel:#111d33;--cb-line:#1e3050;--cb-text:#e8edf5;--cb-muted:#8899b4}
.sv-item>.cb{height:auto;flex:none;border:0;border-radius:0;box-shadow:none}
.sv-item>a.cb:hover{transform:none;box-shadow:none}
.sv-item.is-picked{outline:2px solid #14b8a6;outline-offset:2px}
.sv-cmp .cx-tags{top:46px}
.sv-extra{margin-top:auto;padding:0 14px 13px}
.sv-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;padding:11px 0 12px;margin-bottom:10px;border-top:1px solid var(--cb-line);
  border-bottom:1px solid var(--cb-line);font-size:12px;line-height:1.3;color:var(--cb-muted)}
.sv-stat{display:flex;align-items:center;gap:6px;min-width:0;--pi-line:var(--pi-c);--pi-fill:var(--pi-c);--pi-fo:.25}
.sv-stat .pi,.sv-trend{width:16px;height:16px;flex:none}
.sv-trend{color:var(--pi-c)}
.sv-stat b{color:var(--cb-text)}
.sv-stat b.sv-c{color:var(--pi-c)}
