/* Brikka — units table extras: photo/video/plan viewers and the
   "Estoy interesado" pop-up. Load after restyle.css. */

.units__table { min-width: 920px; }
.units__table th, .units__table td { padding-left: 0.75rem; padding-right: 0.75rem; }
.units__table .units__interest-btn { background: var(--ink); color: var(--bone); }
.units__table .units__interest-btn:hover { background: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Compact info strip: less padding, columns grouped to the left */
.info-strip { padding: 2rem 0; }
@media (min-width: 961px) {
  .info-strip__grid--5 {
    grid-template-columns: repeat(5, max-content);
    justify-content: start;
    column-gap: clamp(2.5rem, 4.5vw, 4.5rem);
  }
  .info-strip__grid--6 { grid-template-columns: repeat(6, max-content); column-gap: clamp(2rem, 3.5vw, 3.5rem); }
}

/* Tighter spacing around the units table */
.info-strip { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.units-section { padding-bottom: clamp(1.5rem, 3vw, 2rem); }
.images-section { padding-top: clamp(1.5rem, 3vw, 2rem); }
.units-section .placeholder-head { margin-bottom: 1.5rem; }

/* Media viewer (fotos / vídeos / planos) reuses the .plans look.
   Slim bars and almost no padding, so the photo takes nearly the whole screen. */
.media-viewer .plans__bar,
.media-viewer .plans__foot { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.media-viewer .plans__sheet { padding: 0.25rem; }
.media-viewer .plans__sheet img { max-width: 100%; max-height: calc(100dvh - 7.25rem); width: auto; height: auto; }
.media-viewer .plans__sheet video { display: block; max-width: 100%; max-height: calc(100dvh - 7.25rem); background: #000; }
@media (max-width: 720px) {
  .media-viewer .plans__sheet img { width: auto; max-width: 100%; max-height: calc(100dvh - 9rem); }
}

/* "Estoy interesado" pop-up */
.interest { margin: auto; width: min(520px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); border: 0; padding: 0; background: var(--bone); color: var(--ink); font-family: var(--font); overflow: auto; }
.interest::backdrop { background: rgba(10,10,10,0.6); }
.interest__inner { padding: 2rem; }
.interest__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.interest__title { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.interest__sub { color: var(--ink-soft); font-size: 0.9375rem; margin: 0 0 1.5rem; }
.interest__close { flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 9999px; background: var(--stone-soft); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.interest__close:hover { background: var(--stone); }
.interest__form { display: grid; gap: 0.9rem; }
.interest__field { display: grid; gap: 0.35rem; font-size: 0.875rem; }
.interest__field input, .interest__field select, .interest__field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid rgba(10,10,10,0.15); border-radius: 0; padding: 0.7rem 0.8rem; width: 100%; box-sizing: border-box; }
.interest__field textarea { min-height: 6rem; resize: vertical; }
.interest__field input:focus, .interest__field select:focus, .interest__field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.interest__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.interest__check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9375rem; }
.interest__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.interest__submit, .interest__wa { font: inherit; font-size: 0.9375rem; border: 0; border-radius: 9999px; padding: 0.75rem 1.25rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.interest__submit { background: var(--ink); color: var(--bone); }
.interest__submit:hover { background: var(--ink-soft); }
.interest__wa { background: var(--stone-soft); color: var(--ink); }
.interest__wa:hover { background: var(--stone); }
@media (max-width: 520px) { .interest__inner { padding: 1.5rem; } .interest__row { grid-template-columns: 1fr; } }
.interest__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.interest__submit:disabled { opacity: 0.6; cursor: wait; }
