/* The 3D tour dialog (public/js/property-extras.js): a modal <dialog> holding the Matterport iframe, built on a click.
   Centred by the global :where(dialog:modal) rule in layout.css. */
.tour-dialog { width: min(92vw, 1400px); height: 86vh; max-width: 92vw; max-height: 86vh; padding: 0; border: 0; border-radius: var(--radius-md); background: #000; color: #fff; overflow: hidden; }
.tour-dialog::backdrop { background: rgba(8, 10, 12, 0.88); }
.tour-dialog iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.tour-close { position: absolute; z-index: 2; top: 0.5rem; right: 0.5rem; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; }
.tour-close:hover { background: rgba(0, 0, 0, 0.85); }
.tour-close:focus-visible, .tour-newtab:focus-visible { outline: 3px solid var(--brand-cta); outline-offset: 2px; }
.tour-newtab { position: absolute; z-index: 2; left: 0.5rem; bottom: 0.5rem; padding: 0.3rem 0.65rem; border-radius: var(--radius-sm, 4px); background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.8125rem; text-decoration: underline; }
.tour-newtab:hover { background: rgba(0, 0, 0, 0.85); }
html.tour-open { overflow: hidden; }
@media (max-width: 600px) {
  .tour-dialog { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
}

/* The 3D model dialog (public/js/property-extras.js, public/js/model-viewer.mjs): the same modal, a light stage. */
.model-dialog { background: #EEF2F3; color: var(--color-text, #2b2b2b); }
.model-stage { position: absolute; inset: 0; }
.model-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.model-stage canvas:active { cursor: grabbing; }
.model-badge { position: absolute; z-index: 2; top: 0.75rem; left: 0.75rem; margin: 0; padding: 0.3rem 0.7rem; border-radius: var(--radius-sm, 4px);
  background: rgba(255, 255, 255, 0.85); font-size: 0.8125rem; letter-spacing: 0.04em; }
.model-tools { position: absolute; z-index: 2; left: 0.75rem; bottom: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.model-toggle { padding: 0.45rem 0.85rem; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  color: inherit; font: inherit; font-size: 0.875rem; cursor: pointer; }
.model-toggle[aria-pressed="true"] { background: var(--brand-primary, #2b2b2b); border-color: var(--brand-primary, #2b2b2b); color: #fff; }
.model-toggle:focus-visible { outline: 3px solid var(--brand-cta); outline-offset: 2px; }
.model-toggle[hidden], .model-variants[hidden] { display: none; }
/* «Detallado» | «Ligero» (2026-11-21): a two-option switch, one pill split in two. */
.model-variants { display: inline-flex; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.92); overflow: hidden; }
.model-variant { padding: 0.45rem 0.85rem; border: 0; background: transparent; color: inherit; font: inherit; font-size: 0.875rem; cursor: pointer; }
.model-variant + .model-variant { border-left: 1px solid rgba(0, 0, 0, 0.18); }
.model-variant[aria-pressed="true"] { background: var(--brand-primary, #2b2b2b); color: #fff; }
.model-variant:focus-visible { outline: 3px solid var(--brand-cta); outline-offset: -3px; }
.model-help { position: absolute; z-index: 2; right: 0.75rem; bottom: 0.75rem; max-width: 22rem; margin: 0; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm, 4px); background: rgba(255, 255, 255, 0.8); font-size: 0.75rem; text-align: right; }
.model-status { position: absolute; z-index: 1; top: 50%; left: 0; right: 0; margin: 0; text-align: center; font-size: 0.9375rem; pointer-events: none; }
.model-dialog .tour-close { background: rgba(0, 0, 0, 0.55); }
@media (max-width: 600px) {
  .model-help { display: none; }
}

/* «Experimental» tag on the «Modelo 3D» button (Carlos, 2026-11-21). */
.model-exp { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.68em; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5; opacity: 0.85; vertical-align: 0.12em; }
