/*
 * New builds: catalog card and filter extras (/novobudovy/), complex page (/zhk/{slug}/). Mobile first; builds on
 * catalog.css. Brand (TQ): yellow only on clickable elements, cypress only decorative (progress, chart line).
 */

/* Filter: selects and pill checkboxes */
/* Pill checkboxes and wide filter groups — catalog.css (shared with the property catalog). */

/* Catalog card */
.ev-ccard__uah { margin: 4px 0 0; font-size: 13px; color: var(--ev-ink-3); }
.ev-ccard__dev { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ev-ink-2); }
.ev-ccard__rooms { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ev-ccard__rooms li {
  padding: 4px 10px; border-radius: var(--ev-radius-pill); background: var(--ev-bg);
  font-size: 12px; color: var(--ev-ink-2);
}
.ev-ccard__rooms strong { font-weight: 700; color: var(--ev-ink); }
.ev-ccard__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }

/* Complex page head */
.ev-complex__dev { margin: 6px 0 0; font-weight: 600; color: var(--ev-ink-2); }
.ev-complex__nums { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
.ev-complex__nums div { display: flex; flex-direction: column; }
.ev-complex__nums dt { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ev-ink-3); }
.ev-complex__nums dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.ev-complex__muted { font-weight: 500; color: var(--ev-ink-3); }
.ev-complex__rooms th[scope="col"] { width: auto; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; }
.ev-complex__rooms tbody th { width: auto; color: var(--ev-ink); font-weight: 700; }
.ev-complex__rooms th, .ev-complex__rooms td { padding: 10px 12px; vertical-align: top; }
.ev-complex__rooms td .ev-complex__muted { display: block; font-size: 13px; }
.ev-complex__rooms .ev-complex__sep { display: none; }
.ev-complex .ev-specs td.ev-num { white-space: nowrap; }
.ev-complex__filter { margin: 20px 0 0; }
.ev-complex__filter .ev-chip { cursor: pointer; font-family: inherit; }
.ev-complex__card { padding: 20px 24px; background: var(--ev-surface); border-radius: var(--ev-radius-md); }
.ev-complex__card > :last-child { margin-bottom: 0; }
.ev-complex__conditions { margin: 0 0 12px; padding-left: 20px; }
.ev-complex__conditions li + li { margin-top: 6px; }

/* Layout cards */
.ev-layouts { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .ev-layouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-layout {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ev-surface); border-radius: var(--ev-radius-lg); box-shadow: var(--ev-shadow-sm);
}
.ev-layout[hidden] { display: none; }
.ev-layout__plan { display: block; aspect-ratio: 4 / 3; padding: 12px; background: var(--ev-surface); border-bottom: 1px solid var(--ev-line); }
.ev-layout__plan img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ev-layout__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px 18px 18px; }
.ev-layout__title { margin: 0; font-size: 17px; font-weight: 700; }
.ev-layout__facts, .ev-layout__meta, .ev-layout__units { margin: 0; font-size: 13px; color: var(--ev-ink-2); }
.ev-layout__meta, .ev-layout__units { color: var(--ev-ink-3); }
.ev-layout__price { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.ev-layout__matrix summary, .ev-queue__reports summary, .ev-chart__table summary {
  cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.ev-layout__matrix .ev-specs { margin-top: 10px; font-size: 13px; }
.ev-layout__matrix .ev-specs th, .ev-layout__matrix .ev-specs td { padding: 8px 10px; width: auto; }
.ev-layout__want { align-self: flex-start; margin-top: auto; }
.ev-layout__body > .ev-layout__want { margin-top: 10px; }

/* Queues and construction progress */
.ev-queues { display: grid; gap: 16px; }
.ev-queue { padding: 18px; background: var(--ev-surface); border-radius: var(--ev-radius-lg); }
.ev-queue__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ev-queue__title { margin: 0; font-size: 18px; font-weight: 700; }
.ev-queue__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 12px 0 0; }
.ev-queue__facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ev-ink-3); }
.ev-queue__facts dd { margin: 2px 0 0; font-weight: 600; }
.ev-queue--sold { opacity: 0.7; }
.ev-progress { height: 8px; margin-top: 14px; overflow: hidden; border-radius: var(--ev-radius-pill); background: var(--ev-cypress-wash); }
.ev-progress__bar { display: block; height: 100%; border-radius: inherit; background: var(--ev-cypress); }
.ev-progress__label { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--ev-ink-2); }
.ev-queue__reports { margin-top: 14px; }
.ev-reports { margin: 12px 0 0; padding: 0; list-style: none; }
.ev-report { padding: 12px 0; border-top: 1px solid var(--ev-line); }
.ev-report__head, .ev-report__note { margin: 0; font-size: 14px; }
.ev-report__note { margin-top: 4px; color: var(--ev-ink-2); }
.ev-report__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ev-report__photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--ev-radius-sm); background: var(--ev-cypress-wash); }
.ev-report__photos img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Price chart (inline SVG, no library) */
.ev-chart { margin: 0 0 20px; padding: 18px; background: var(--ev-surface); border-radius: var(--ev-radius-lg); }
.ev-chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 14px; color: var(--ev-ink-2); }
.ev-chart__head strong { color: var(--ev-ink); }
.ev-chart__plot { position: relative; margin-top: 14px; padding: 18px 0; color: var(--ev-cypress); }
.ev-chart__plot svg { display: block; width: 100%; height: 160px; border-bottom: 1px solid var(--ev-line); }
.ev-chart__y { position: absolute; left: 0; font-size: 12px; font-weight: 600; color: var(--ev-ink-3); }
.ev-chart__y--max { top: 0; }
.ev-chart__y--min { bottom: 0; }
.ev-chart__x { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 12px; color: var(--ev-ink-3); }
.ev-chart__table { margin-top: 12px; }
.ev-chart__table .ev-specs { margin-top: 10px; font-size: 13px; }

@media print {
  .ev-complex__filter, .ev-layout__want, .ev-report__photos { display: none !important; }
  .ev-layout, .ev-queue, .ev-chart { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
