/* public_booking/css/medios.css — Fotos und Videos der Karten, die Galerie
 * und die Hinweise der Mietobjekte (Entscheid GF 08.11.2026, sql/436/437;
 * gezeichnet von js/medios_tarjeta.js und js/alojamiento.js).
 *
 * Eigene Datei neben booking.css, weil es ein eigener Baustein ist. Sie
 * benutzt nur die Marken-Variablen aus booking.css (:root) — dort stehen auch
 * die Dunkelmodus-Werte, deshalb braucht diese Datei keinen eigenen Block.
 * Kein style-Attribut irgendwo: die Origin hat eine CSP ohne 'unsafe-inline'.
 */

/* ── Bildkopf der Karte ──────────────────────────────────────────────── */
.t-img { position: relative; }
/* Ein echtes Foto füllt den Kopf (die Zeichnungen bleiben «contain»). Der
   Kopf hat dasselbe Format wie die Zeichnungen (800 × 560): sonst stünden
   eine Karte mit Foto und eine ohne nebeneinander verschieden hoch. Das Bild
   liegt absolut darin, damit sein eigenes Format (16:9) den Kopf nicht
   mitbestimmt. */
.t-img-foto { background: var(--foto-fondo); aspect-ratio: 10 / 7; overflow: hidden; }
.t-img-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-medios-b {
    position: absolute; right: var(--e-2); bottom: var(--e-2);
    min-height: 36px; padding: 0 var(--e-3);
    border: 0; border-radius: var(--r-voll);
    background: var(--velo); color: var(--sobre-foto);
    font: inherit; font-size: var(--t-s); font-weight: 600; cursor: pointer;
}
.t-medios-b:hover { text-decoration: underline; }
.t-medios-b:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
/* Die Plakette «Foto de ejemplo» auf Fotos einer Kategorie — dieselbe wie in
   der Galerie (galeria.css, .gal-marca): auch auf einem weitergeschickten
   Bildschirmfoto bleibt lesbar, dass es nicht der gebuchte Platz ist
   (Auftrag GF 04.12.2026, BL §35). */
.t-img-marca, .mg-marca {
    position: absolute; top: var(--e-2); left: var(--e-2);
    background: var(--velo); color: var(--sobre-foto);
    font-size: var(--t-xs); font-weight: 700;
    padding: var(--e-1) var(--e-3); border-radius: var(--r-voll);
    pointer-events: none;
}
.mg-marca { top: var(--e-3); left: var(--e-3); }

/* ── Mietobjekt ──────────────────────────────────────────────────────── */
.t-pill-aloj { background: var(--salvia-suave); color: var(--salvia-osc); border-color: var(--salvia-suave); }
.t-aloj { margin: 0; font-size: var(--t-s); color: var(--suave); }
.aloj-notas { margin: var(--e-2) 0 var(--e-4); padding-left: 1.2em; font-size: var(--t-s); }
.aloj-notas li { margin: 0 0 var(--e-1); }
.t-det .aloj-notas { margin-bottom: 0; }
/* Ab 30 Nächten nur auf Anfrage (Entscheid GF 18.11.2026, F10). */
.t-larga { margin-top: var(--e-3); }
.t-larga p { margin: 0; font-size: var(--t-s); }
.t-larga .cierre-b { margin-top: var(--e-3); }

/* ── Galerie ─────────────────────────────────────────────────────────── */
.mg-dlg {
    width: min(960px, calc(100% - 2 * var(--e-4)));
    max-height: calc(100% - 2 * var(--e-4));
    padding: var(--e-4); border: 0; border-radius: var(--r-m);
    background: var(--panel); color: var(--texto); box-shadow: var(--e2);
    overflow: auto;
}
.mg-dlg::backdrop { background: var(--velo); }
.mg-cab { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); margin-bottom: var(--e-3); }
.mg-cab h2 { margin: 0; font-size: var(--t-l); overflow-wrap: anywhere; }
.mg-x { min-width: 44px; min-height: 44px; justify-content: center; font-size: var(--t-l); text-decoration: none; }
.mg-marco {
    position: relative;
    margin: 0; border-radius: var(--r-s); overflow: hidden;
    background: var(--foto-fondo);
    display: flex; align-items: center; justify-content: center;
}
.mg-medio { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.mg-pie {
    display: flex; justify-content: space-between; gap: var(--e-3); flex-wrap: wrap;
    margin: var(--e-2) 0 0; font-size: var(--t-s); color: var(--suave);
}
.mg-cuenta { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mg-nav { display: flex; justify-content: space-between; gap: var(--e-3); margin-top: var(--e-3); }
.mg-nav .btn-txt { min-height: 44px; }
