/* Imóveis · mesma linguagem de Indicadores e Receita (tokens e .ind-* em indicadores.css, botões .rec-btn em
   receita.css). Aqui: lista com busca, ficha, noites e barras do ano. */
.imv-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.imv-grid[hidden] { display: none; }
.imv-list { padding: 14px; position: sticky; top: 16px; }
.imv-search { position: relative; display: block; }
.imv-search input { width: 100%; height: 40px; border: 1px solid var(--ind-line); border-radius: 10px; background: var(--ind-card); color: var(--ind-ink); padding: 0 12px 0 36px; font: inherit; font-size: 14px; box-sizing: border-box; }
.imv-search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; fill: none; stroke: var(--ind-mut); stroke-width: 1.8; stroke-linecap: round; }
.imv-sort { margin: 10px 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ind-mut); }
.imv-ord button { min-height: 28px; padding: 0 9px; font-size: 12.5px; }
.imv-items { max-height: calc(100vh - 260px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; display: grid; gap: 2px; scrollbar-width: thin; }
.imv-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; color: var(--ind-ink); }
.imv-it:hover { background: var(--ind-soft); }
.imv-it[aria-current="true"] { background: var(--ind-ink); color: var(--ind-card); }
.imv-it strong { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imv-it small { font-size: 12px; color: var(--ind-mut); }
.imv-it[aria-current="true"] small { color: inherit; opacity: .72; }
.imv-ix { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 12px; font-weight: 650; white-space: nowrap; }
.imv-it:not([aria-current="true"]) .imv-ix.is-up { color: var(--ind-up); }
.imv-empty { padding: 20px 6px; color: var(--ind-mut); font-size: 13.5px; }

.imv-sheet { display: grid; gap: 16px; min-width: 0; }
.imv-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.imv-top h2 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.imv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.imv-chip { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ind-line); color: var(--ind-ink-2); }
.imv-chip.is-ink { background: var(--ind-ink); color: var(--ind-card); box-shadow: none; }
.imv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.imv-acts .rec-btn[hidden] { display: none; }
.imv-verdict { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.015em; line-height: 1.35; color: var(--ind-ink-2); margin: 14px 0 6px; max-width: 62ch; }
.imv-kpis { margin-bottom: 0; }
.imv-kfoot { display: grid; gap: 2px; margin-top: 6px; font-size: 12.5px; color: var(--ind-mut); }
.imv-kfoot > span { display: flex; gap: 2px 6px; align-items: center; flex-wrap: wrap; }
.imv-kfoot > span:empty { display: none; }
#imv-detail { display: grid; gap: 16px; }
#imv-detail.is-loading .imv-chart, #imv-detail.is-loading .imv-rev { opacity: .6; }
.imv-row2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.imv-chart svg, .imv-rev svg { display: block; width: 100%; overflow: visible; }
.imv-chart text, .imv-rev text { font: 400 10.5px var(--ind-mono); fill: var(--ind-mut); }
.imv-chart .imv-area { fill: var(--ind-own); opacity: .12; }
.imv-rev .imv-bar { fill: var(--ind-own); opacity: .9; }
.imv-rev .imv-bar.is-fut { opacity: .38; }
.imv-gap { margin-top: 22px; }
.imv-nights { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; margin-top: 6px; }
.imv-nights i { height: 30px; border-radius: 4px; background: var(--ind-soft); box-shadow: inset 0 0 0 1px var(--ind-line-2); }
.imv-nights i.is-sold { background: var(--ind-mkt); box-shadow: none; }
.imv-nights i.is-off { background: repeating-linear-gradient(45deg, var(--ind-soft) 0 3px, transparent 3px 6px); }
.imv-nights i.is-wk { box-shadow: inset 0 -2px 0 var(--ind-line); }
.imv-nights-ax { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; margin-top: 4px; font: 400 10.5px var(--ind-mono); color: var(--ind-mut); }
.imv-nights-ax span { white-space: nowrap; }
.imv-big { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.imv-rev { margin: 10px 0 6px; }
.imv-rates { display: grid; gap: 10px; margin-top: 4px; }
.imv-rate { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ind-soft); }
.imv-rate small { grid-column: 1 / -1; }
.imv-res { table-layout: fixed; }
.imv-res th, .imv-res td { padding: 8px 6px; }
.imv-res th:first-child, .imv-res td:first-child { width: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imv-res th:nth-child(2), .imv-res td:nth-child(2) { width: 24%; }
.imv-res th:nth-child(3), .imv-res td:nth-child(3) { width: 14%; }
.imv-res th:last-child, .imv-res td:last-child { width: 28%; }
.imv-rate strong { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.imv-tr { height: 6px; border-radius: 3px; background: var(--ind-card); overflow: hidden; }
.imv-tr span { display: block; height: 100%; background: var(--ind-mkt); border-radius: 3px; }
.imv-rate small { font-size: 12px; color: var(--ind-mut); white-space: nowrap; }
.imv-mono { font: 400 12px var(--ind-mono); }

@media (max-width: 1180px) { .imv-row2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .imv-grid { grid-template-columns: 1fr; }
  .imv-list { position: static; }
  .imv-items { max-height: 240px; }
  .imv-nights { gap: 2px; }
  .imv-nights i { height: 22px; border-radius: 3px; }
}
