/* Fareejo's website: the villa community page (/villas/<id>/, scripts/site/pages/villa.mjs), served as
   /site/site-villa.css after /site/site.css. The frame, tiles, sections and aside are site.css's; these are the area
   and building pages' own pieces the villa page shares (site-area.css's tables and rows, site.css's Share), the same
   rules scoped to #pg-villa. Never position, top, columns, section spacing or the aside (FRAME.md). */
#pg-villa .ar-none{font:var(--t-small);color:var(--ink-3);white-space:nowrap}
#pg-villa .ar-sep{color:var(--hm-line-2)}
#pg-villa .ar-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#pg-villa .ar-size{display:inline-flex;align-items:center;gap:var(--s-2);font:var(--t-help);font-weight:var(--fw-semi);color:var(--strong)}
/* Row headings sit flush with the column, as every other first cell (the kit's tables, Kamil's comment 4) */
#pg-villa .pp-table th[scope="row"]{font:var(--t-help);font-weight:var(--fw-semi);color:var(--strong);text-align:left;padding:var(--s-2) var(--s-3) var(--s-2) 0;border-top:1px solid var(--line);white-space:nowrap;vertical-align:top;background:transparent;border-bottom:0;position:static}
#pg-villa .pp-table td small{display:block;font:var(--t-small);color:var(--ink-3)}
#pg-villa .pp-table td small .num{color:var(--strong)}
#pg-villa .pp-table td small:has(+ *),#pg-villa .pp-table td .pp-tag + small{margin-top:var(--s-1)}

/* Rows (homes by size without the script) */
#pg-villa .ar-rows{list-style:none;margin:0;padding:0;display:grid}
#pg-villa .ar-rows li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--s-3);padding-block:var(--s-3);border-top:1px solid var(--line);font:var(--t-body);color:var(--ink-2)}
#pg-villa .ar-rows li:first-child{border-top:0}
#pg-villa .ar-rows small{font:var(--t-small);color:var(--ink-3)}
#pg-villa .ar-row__v{display:grid;justify-items:end;text-align:right}
#pg-villa .ar-row__v .num{font:var(--t-sub);color:var(--strong)}

/* A table of sizes stacks into one card a row on a narrow page (site-area.css ar-stack) */
@container pg (max-width:700px){
  #pg-villa .ar-stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #pg-villa .pp-tbl__scroll:has(> .ar-stack){border:0;border-radius:0;overflow:visible}
  #pg-villa .ar-stack,#pg-villa .ar-stack tbody{display:block}
  #pg-villa .ar-stack tr{display:flex;flex-wrap:wrap;gap:var(--s-2) var(--s-3);padding:var(--s-3) 0;border-top:1px solid var(--line)}
  #pg-villa .ar-stack tbody tr:first-child{border-top:0;padding-top:0}
  #pg-villa .ar-stack tr.pp-fold,#pg-villa .ar-stack tr.pp-out{display:none}
  #pg-villa .pp-tbl.is-all .ar-stack tr.pp-fold:not(.pp-out){display:flex}
  #pg-villa .ar-stack th[scope="row"]{flex:1 0 100%;padding:0;border:0;background:transparent}
  #pg-villa .ar-stack td{flex:1 1 calc(100% / var(--n,3) - var(--s-3));padding:0;border:0;text-align:left!important;white-space:normal;min-width:0}
  #pg-villa .ar-stack td::before{content:attr(data-l);display:block;font:var(--t-label);color:var(--ink-3);margin-bottom:var(--space-2)}
  #pg-villa .ar-stack td:empty{display:none}
  #pg-villa .ar-stack td.vl-wide{flex-basis:100%}
}

/* Share, as on the building page (site.css #pg-tower .tw-share) */
#pg-villa .tw-acts{display:flex;flex-wrap:wrap;gap:var(--s-2)}
#pg-villa .tw-share{position:relative}
#pg-villa .tw-share__pop{position:absolute;z-index:6;top:calc(100% + var(--s-1));left:0;display:grid;gap:var(--s-1);padding:var(--s-2);background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 10px 30px rgba(11,23,38,.12);min-width:160px;animation:ppIn var(--dur-quick) var(--ease-enter)}
#pg-villa .tw-share__pop .pp-btn{justify-content:flex-start;border:0}
#pg-villa .pf-faq .pp-est{margin-inline:var(--s-1);vertical-align:1px}
/* Villa green (Kamil's pick B of docs/design/site-menu-villas.html, 5 Nov 2026; no coloured edge): the kind chip in the
   header and the by-size prices in the villa colour, as the price tiles (site.css [data-hue="villa"]) */
.pg .pf-chips .vl-kind{height:30px;padding:0 var(--s-3);border-radius:var(--r-btn-sm);background:var(--good-tint);color:var(--good-text);font-weight:var(--fw-semi)}
.pg .pf-chips .vl-kind .ic{color:var(--good-text)}
/* Prices in ink: green means a rise only (Kamil's comment 6, 11 Nov 2026) */
.pg .vl-g{color:var(--strong)}

/* A link card's lone "Not enough sales" / "Area" sits flush with the name (site audit P-08) */
#pg-villa .pf-link__f.is-none small{margin-left:0}

/* Place SEO build (18 Nov 2026): "Part of <master community>" under the name, and the large map of "Where is …?" */
#pg-villa .vl-part{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-2);font:var(--t-help);color:var(--ink-2)}
#pg-villa .vl-part .ic{color:var(--ink-3)}
#pg-villa .vl-part a,#pg-villa .pf-sec__lead a,#pg-villa .pp-table th[scope="row"] a{color:var(--strong);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
#pg-villa .vl-part a:hover,#pg-villa .pf-sec__lead a:hover,#pg-villa .pp-table th[scope="row"] a:hover{text-decoration-color:currentColor}
#pg-villa .vl-where{display:grid;gap:var(--s-2);margin:0}
#pg-villa .vl-where .pf-map{aspect-ratio:var(--pf-map-ratio);min-height:0}
