/* ======================================================
   ELLIMAN · FICHA — CSS COMPLETO v3.0
   Contiene TODO lo necesario para la ficha.
   El plugin ya no carga ficha.css ni ficha.js.
====================================================== */

/* ── Variables de layout unificado ─────────────────────
   Estos valores deben coincidir con:
   - alv-topbar-inner (max-width: 1400px, padding: 0 32px)
   - alv-wrap (max-width: 1400px, padding: 0 32px)
   - alv-header (padding: 0 32px)
   Si se cambian aquí, cambiar también en alvora-shell.css
   y layout.css.
──────────────────────────────────────────────────────── */
:root {
    --alv-layout-max:  1400px;
    --alv-layout-pad:  32px;
}

body.page-ficha {
    padding-top: 0 !important;
    overflow-x: hidden;
}

/* =========================
   ADMIN BAR — WordPress
   Cuando el usuario está logueado, WP añade 32px (desktop)
   o 46px (móvil) de admin bar. Ajustamos topbar y header.
========================= */
body.admin-bar.page-ficha .alv-topbar {
    top: 32px;
}
body.admin-bar.page-ficha .alv-header {
    top: 32px;
}
body.admin-bar.page-ficha .alv-ficha-tabs-wrap {
    top: calc(32px + 73px);
}
/* Admin bar en móvil ocupa 46px */
@media (max-width: 782px) {
    body.admin-bar.page-ficha .alv-topbar {
        top: 46px;
    }
    body.admin-bar.page-ficha .alv-header {
        top: 46px;
    }
    /* Tabs sticky también se ajustan */
    body.admin-bar .alv-ficha-tabs-wrap {
        top: calc(46px + 73px);
    }
}

/* =========================
   TOPBAR / HEADER
========================= */
body.page-ficha .alv-topbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; background: transparent;
    transition: background-color .25s ease, color .25s ease;
}
body.page-ficha .alv-header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 900; background: transparent;
    /* Padding lateral unificado */
    padding-left: var(--alv-layout-pad);
    padding-right: var(--alv-layout-pad);
    transition: background-color .25s ease, color .25s ease;
}
body.page-ficha.is-ficha-scrolled .alv-topbar { background: #172534; color: #fff; }
body.page-ficha.is-ficha-scrolled .alv-header { background: #fff; color: #172534; }

body.page-ficha .alv-logo {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}
body.page-ficha .alv-logo img { height: 72px; width: auto; }

body.page-ficha:not(.is-ficha-scrolled) .alv-header nav,
body.page-ficha:not(.is-ficha-scrolled) .alv-header .alv-nav-left,
body.page-ficha:not(.is-ficha-scrolled) .alv-header .alv-nav-right {
    opacity: 0; pointer-events: none;
}
body.page-ficha:not(.is-ficha-scrolled) .alv-logo img {
    filter: brightness(0) invert(1);
}
/* Ocultar el logo duplicado del shortcode — el del header es el bueno */
.alv-hero-logo {
    display: none !important;
}

/* =========================
   HERO FULLSCREEN
========================= */
.alv-ficha-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #111;
}

@media (max-width: 768px) {
    /* Hero altura basada en proporción 4:3 del ancho de pantalla */
    .alv-ficha-hero {
        height: calc(100vw * 3 / 4);
        min-height: unset;
        max-height: 80vh;
    }
    /* Imagen completa sin recorte lateral */
    .alv-ficha-hero-swiper img {
        object-fit: contain;
        object-position: center;
    }
    /* Ocultar precio/meta en el hero — aparecen en Características */
    .alv-ficha-price-row {
        display: none;
    }
}
.alv-ficha-hero-swiper,
.alv-ficha-hero-swiper .swiper-wrapper,
.alv-ficha-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}
.alv-ficha-hero-swiper {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.alv-ficha-hero-swiper img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
/* Capa alfa del hero retirada a petición del cliente: en ficha prioriza
   la iluminación real del inmueble sobre el efecto Elliman. La del HOME
   (body.alv-home .alv-video-hero::after, en elliman-home.css) SÍ se
   mantiene — ahí hace falta para el efecto de menú al hacer scroll. */
.alv-ficha-hero .swiper-button-prev,
.alv-ficha-hero .swiper-button-next {
    color: #fff; width: 32px; height: 32px;
    z-index: 30; pointer-events: auto;
    top: 50%; transform: translateY(-50%);
    --swiper-navigation-size: 24px;
}
.alv-ficha-hero .swiper-button-prev::after,
.alv-ficha-hero .swiper-button-next::after { font-size: 22px; font-weight: 700; }
.alv-ficha-hero .swiper-button-disabled { opacity: 0; pointer-events: none; }

/* .alv-hero-logo ocultado — se usa .alv-logo del header en blanco */

/* =========================
   HERO OVERLAY
========================= */
.alv-ficha-hero-overlay {
    position: absolute; inset: 0; z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    pointer-events: none;
}

/* Contenedor interno — mismo sistema que alv-wrap y alv-topbar-inner */
.alv-ficha-hero-overlay-inner {
    width: 100%;
    max-width: var(--alv-layout-max);
    margin: 0 auto;
    /* Antes 32px. Gonzalo pidió que las píldoras (Galería/3D/Video) queden
       pegadas a la línea que separa la foto de Favoritos/Compartir, no
       flotando arriba — este padding-bottom es lo que fija esa distancia. */
    padding: 0 var(--alv-layout-pad) 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 14px;
    align-items: end;
}

.alv-ficha-title {
    display: none; /* Aparece en Características */
    grid-column: 1 / -1; grid-row: 1;
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.12; max-width: 1100px;
    pointer-events: auto; color: #fff;
}
.alv-ficha-price-row {
    display: none; /* Aparece en Características */
    grid-column: 1; grid-row: 2;
    align-items: baseline;
    gap: 16px;
    align-self: end;
    pointer-events: auto;
    flex-wrap: wrap;
}
.alv-ficha-price {
    font-size: 22px; font-weight: 500;
    color: #fff; opacity: .95;
    white-space: nowrap;
}
.alv-ficha-hero-meta {
    font-size: 13px; font-weight: 400;
    color: rgba(255,255,255,.75);
    letter-spacing: .02em;
    white-space: nowrap;
}
.alv-ficha-hero-actions {
    grid-column: 2; grid-row: 2;
    display: flex; gap: 12px;
    align-items: flex-end; justify-content: flex-end;
    pointer-events: auto;
    /* OJO: con align-items:end en la fila del grid, un margin-top en el
       propio item NO lo baja (el margin queda arriba, el borde inferior
       se queda igual pegado al final de la fila) — por eso el intento
       anterior con margin-top:14px no se notaba. Lo que de verdad controla
       la distancia al borde de la foto es el padding-bottom de
       .alv-ficha-hero-overlay-inner, ver arriba. */
}

@media (max-width: 1024px) {
    .alv-ficha-hero-overlay-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 0 var(--alv-layout-pad) 20px;
    }
    .alv-ficha-hero-actions { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .alv-ficha-hero-overlay-inner {
        padding: 0 16px 16px;
        row-gap: 8px;
    }
    /* Título hero más pequeño en móvil */
    .alv-ficha-title { font-size: 22px; line-height: 1.2; }
    /* Precio hero */
    .alv-ficha-price { font-size: 18px; }
    /* Metas hero — permitir wrap en móvil */
    .alv-ficha-hero-meta { white-space: normal; font-size: 12px; }
    /* Fila precio+metas en columna en móvil */
    .alv-ficha-price-row { flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* =========================
   BOTÓN GALERÍA
========================= */
.alv-btn-gallery {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.15);
    color: #fff; border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px; padding: 10px 18px;
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .2s ease, transform .15s ease;
    pointer-events: auto;
}
.alv-btn-gallery::before {
    content: ""; display: inline-block;
    width: 16px; height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat; flex-shrink: 0;
}
.alv-btn-gallery:hover { background: rgba(255,255,255,0.30); transform: translateY(-1px); }
.alv-btn-gallery:active { transform: translateY(0); }

/* =========================
   BOTÓN 3D (antes "360°")
   Mismo estilo cristal/transparente que Galería — antes caía en el
   .alv-btn genérico de alvora-base.css (fondo blanco sólido), por eso
   no hacía juego con Galería (doc Gonzalo, item 12).
========================= */
.alv-btn-360 {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.15);
    color: #fff; border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px; padding: 10px 18px;
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .2s ease, transform .15s ease;
    pointer-events: auto;
}
.alv-btn-360::before {
    content: ""; display: inline-block;
    width: 16px; height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16.5c0 .38-.21.71-.53.88l-7.9 4.44a1 1 0 0 1-.94 0l-7.9-4.44A1 1 0 0 1 3.2 16.5v-9a1 1 0 0 1 .53-.88l7.9-4.44a1 1 0 0 1 .94 0l7.9 4.44a1 1 0 0 1 .53.88v9Z'/%3E%3Cpath d='M12 22V12'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat; flex-shrink: 0;
}
.alv-btn-360:hover { background: rgba(255,255,255,0.30); transform: translateY(-1px); }
.alv-btn-360:active { transform: translateY(0); }

/* =========================
   BOTÓN VÍDEO
========================= */
.alv-btn-video {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.15);
    color: #fff; border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px; padding: 10px 18px;
    font-size: 14px; font-weight: 500; font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .2s ease, transform .15s ease;
    pointer-events: auto;
}
.alv-btn-video::before {
    content: ""; display: inline-block;
    width: 16px; height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat; flex-shrink: 0;
}
.alv-btn-video:hover { background: rgba(255,255,255,0.30); transform: translateY(-1px); }
.alv-btn-video:active { transform: translateY(0); }

/* =========================
   ESTADOS IS-LOADING / IS-READY
========================= */
.alv-ficha.is-loading { min-height: 100vh; }

.alv-ficha.is-loading .alv-ficha-title,
.alv-ficha.is-loading .alv-ficha-price,
.alv-ficha.is-loading .alv-ficha-hero-actions,
.alv-ficha.is-loading .alv-ficha-main-title,
.alv-ficha.is-loading .alv-ficha-main-meta,
.alv-ficha.is-loading .alv-ficha-main-price,
.alv-ficha.is-loading .alv-ficha-description,
.alv-ficha.is-loading .alv-readmore-btn,
.alv-ficha.is-loading .alv-ficha-facts,
.alv-ficha.is-loading .alv-ficha-similares { opacity: 0; pointer-events: none; }

.alv-ficha.is-ready .alv-ficha-title,
.alv-ficha.is-ready .alv-ficha-price,
.alv-ficha.is-ready .alv-ficha-hero-actions,
.alv-ficha.is-ready .alv-ficha-main-title,
.alv-ficha.is-ready .alv-ficha-main-meta,
.alv-ficha.is-ready .alv-ficha-main-price,
.alv-ficha.is-ready .alv-ficha-description,
.alv-ficha.is-ready .alv-readmore-btn,
.alv-ficha.is-ready .alv-ficha-facts,
.alv-ficha.is-ready .alv-ficha-similares { opacity: 1; transition: opacity .3s ease; }

body.page-ficha .alv-hero-overlay,
body.page-ficha .hero-overlay,
body.page-ficha .home-overlay,
body.page-ficha .alv-brand-overlay,
body.page-ficha .video-overlay { display: none !important; }

/* =========================
   GALERÍA MODAL
========================= */
body.is-locked { overflow: hidden; }

.alv-gallery-modal {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.93);
    align-items: center; justify-content: center;
}
.alv-gallery-modal.is-open { display: flex; }

.alv-gallery-overlay {
    position: absolute; inset: 0; z-index: 0; cursor: zoom-out;
}
.alv-gallery-close {
    position: absolute; top: 18px; right: 22px; z-index: 10;
    background: none; border: none; color: #fff;
    font-size: 36px; line-height: 1;
    cursor: pointer; padding: 4px 8px;
    opacity: .8; transition: opacity .2s;
}
.alv-gallery-close:hover { opacity: 1; }

.alv-gallery-swiper {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    max-width: 1200px; max-height: 90vh;
}
.alv-gallery-swiper .swiper-wrapper,
.alv-gallery-swiper .swiper-slide { height: 100%; }
.alv-gallery-swiper .swiper-slide {
    display: flex; align-items: center; justify-content: center;
}
.alv-gallery-swiper img {
    max-width: 100%; max-height: 90vh;
    width: auto; height: auto;
    object-fit: contain; display: block;
    user-select: none;
}

.alv-gallery-prev, .alv-gallery-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 52px; height: 52px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    transition: background .2s; cursor: pointer; color: #fff;
    --swiper-navigation-sides-offset: 20px;
}
.alv-gallery-prev:hover, .alv-gallery-next:hover { background: rgba(255,255,255,.3); }
.alv-gallery-prev::after, .alv-gallery-next::after { font-size: 20px; }

.alv-gallery-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 10; color: #fff; font-size: 14px; font-weight: 500;
    background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: 20px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .alv-gallery-prev, .alv-gallery-next { width: 44px; height: 44px; --swiper-navigation-sides-offset: 10px; }
    .alv-gallery-prev::after, .alv-gallery-next::after { font-size: 18px; }
    .alv-gallery-close { top: 12px; right: 14px; font-size: 30px; }
}

/* =========================
   LAYOUT CONTENIDO
========================= */
.alv-ficha-content { padding: 4px 0 20px; }

.alv-ficha-grid {
    max-width: var(--alv-layout-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 48px;
}
.alv-ficha-main { max-width: 820px; padding-right: 0; }
.alv-ficha-sidebar {
    position: sticky;
    top: calc(16px + 72px + 16px);
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 28px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: #fff;
}

/* =========================
   TABS
========================= */
.alv-ficha-tabs-wrap {
    position: sticky;
    top: 73px;
    background: #fff;
    z-index: 50;
    padding-top: 0;
    margin-bottom: 0;
    border-bottom: 0.5px solid #e8e4de;
}

.alv-ficha-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: none;
    overflow-x: auto;
}
.alv-ficha-tabs-nav::-webkit-scrollbar { display: none; }

/* Reset del border-radius global del plugin (alvora-base.css define button con border-radius:30px) */
.alv-ficha-tabs-nav button {
    position: relative;
    padding: 14px 18px;
    background: none;
    border: 0;
    border-radius: 0 !important;
    font-size: 10.5px;
    font-weight: 400;
    font-family: 'Jost', 'Inter', sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
    cursor: pointer;
    color: #58534c;
    transition: color .15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.alv-ficha-tabs-nav button:first-child { padding-left: 0; }

.alv-ficha-tabs-nav button::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -0.5px;
    height: 2px;
    background: #0e0e0e;
    transform: scaleX(0);
    transition: transform .25s ease;
}

.alv-ficha-tabs-nav button:hover { color: #6b6560; }

.alv-ficha-tabs-nav button.is-active {
    color: #0e0e0e;
    font-weight: 500;
}
.alv-ficha-tabs-nav button.is-active::after {
    transform: scaleX(1);
}

/* Paneles */
.alv-tab { display: none; }
.alv-tab.is-active { display: block; }
.alv-tab[data-tab="caracteristicas"] { padding-top: 28px; }

/* Placeholder para tabs sin contenido real */
.alv-tab-placeholder {
    padding: 48px 0 24px;
    color: #58534c;
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
}

/* =========================
   ACCIONES — MIGA DE PAN
========================= */
.alv-ficha-actions { display: flex; gap: 8px; margin-top: 0; position: relative; }
.alv-ficha-actions--sidebar { justify-content: flex-end; }

/* Menú desplegable de Compartir (WhatsApp / Correo / Copiar enlace) */
.alv-share-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #fff;
    border: 0.5px solid #e8e4de;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    padding: 6px;
    z-index: 60;
}
.alv-share-menu.is-open { display: block; }

/* Móvil: el menú se ancla al viewport (bottom sheet), no al botón,
   para que nunca quede fuera de pantalla sea cual sea la posición
   del contenedor .alv-ficha-actions en cada layout responsive. */
@media (max-width: 768px) {
    .alv-share-menu {
        position: fixed;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: auto;
        min-width: 190px;
        max-width: calc(100vw - 32px);
        z-index: 1002;
    }
}
.alv-share-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    font-size: 12px;
    font-family: 'Jost', 'Inter', sans-serif;
    color: #172534;
    text-decoration: none;
    border-radius: 3px;
    white-space: nowrap;
}
.alv-share-menu a:hover { background: #f5f3f0; }
.alv-share-menu svg { flex-shrink: 0; }

.alv-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-family: 'Jost', 'Inter', sans-serif;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
    position: relative;
}

/* Favorita — negro sólido */
.alv-fav-btn {
    background: #0e0e0e;
    color: #fff;
    border: 0.5px solid #0e0e0e;
}
.alv-fav-btn:hover { background: #2a2a2a; border-color: #2a2a2a; }
.alv-fav-btn svg { stroke: #fff; }

/* Favorito activo */
.alv-fav-btn.is-active {
    background: #0e0e0e;
    border-color: #0e0e0e;
    color: #fff;
}
.alv-fav-btn.is-active svg { stroke: #fff; fill: #fff; }

/* Compartir — borde fino, transparente */
.alv-share-btn {
    background: #fff;
    color: #6b6560;
    border: 0.5px solid #e8e4de;
}
.alv-share-btn:hover { background: #f5f3f0; }
.alv-share-btn svg { stroke: #6b6560; }

/* =========================
   FACTS LATERAL — tabla bicolor
========================= */
.alv-ficha-facts {
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    outline: none;
    box-shadow: none;
}
.alv-fact-row {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0;
    padding: 0;
    border-top: 0.5px solid #e8e4de;
}
.alv-fact-row:first-child { border-top: none; }

/* columna etiqueta — blanco */
.alv-fact-k {
    background: #fff;
    border-right: 0.5px solid #e8e4de;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Jost', 'Inter', sans-serif;
    color: #6b6560;
    display: flex;
    align-items: center;
}
/* columna valor — blanco puro */
.alv-fact-v {
    background: #fff;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Jost', 'Inter', sans-serif;
    color: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

/* =========================
   CABECERA CARACTERÍSTICAS
========================= */

/* Fila precio + REF: flex con precio izq y ref der */
.alv-ficha-main-price {
    margin: 0 0 24px;
    padding: 13px 0;
    border-top: 0.5px solid #e8e4de;
    border-bottom: 0.5px solid #e8e4de;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.alv-main-price__amount {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 29px;
    font-weight: 400;
    letter-spacing: .02em;
    color: #0e0e0e;
}
.alv-main-price__ref {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.alv-main-price__ref-label {
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #58534c;
    font-family: 'Jost', 'Inter', sans-serif;
    font-weight: 400;
    display: block;
}
.alv-main-price__ref {
    font-size: 12px;
    font-weight: 400;
    color: #6b6560;
    font-family: 'Jost', 'Inter', sans-serif;
    letter-spacing: .05em;
}

/* =========================
   MIGA DE PAN + BOTONES
========================= */
.alv-breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-bottom: 0.5px solid #e8e4de;
    min-height: 44px;
}
.alv-breadcrumb-row .alv-ficha-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

.alv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 300;
    font-family: 'Jost', 'Inter', sans-serif;
    color: #6b655c;
    letter-spacing: .04em;
}
.alv-breadcrumb__home {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: #6b655c;
    text-decoration: none;
    transition: color .15s;
}
.alv-breadcrumb__home svg {
    display: block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    /* El SVG como inline hereda baseline — forzamos alineación óptica */
    vertical-align: middle;
    position: relative;
    top: -0.5px;
}
.alv-breadcrumb__home:hover { color: #0e0e0e; }
.alv-breadcrumb__link {
    color: #6b655c;
    text-decoration: none;
    transition: color .15s;
}
.alv-breadcrumb__link:hover { color: #0e0e0e; }
.alv-breadcrumb__sep { color: #a39d94; font-size: 10px; }
.alv-breadcrumb__sep:last-of-type { display: none; }
.alv-breadcrumb__zone { color: #6b655c; }
.alv-breadcrumb__current {
    display: none;
}

.alv-ficha-main-title {
    margin: 0 0 14px;
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .01em;
    color: #0a0a0a;
}
/* Meta: Salón · Dormitorios · Baños · m²  — línea compacta con separador · */
.alv-ficha-main-meta {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 300;
    font-family: 'Jost', 'Inter', sans-serif;
    color: #1E293B;
    letter-spacing: .02em;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
/* Precio + REF: flex row, precio izq, ref der */
.alv-ficha-main-price {
    margin: 0 0 24px;
    padding: 18px 0;
    border-top: 0.5px solid #e8e4de;
    border-bottom: 0.5px solid #e8e4de;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}
.alv-main-price__amount {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: .01em;
    color: #0e0e0e;
    white-space: nowrap;
    flex-shrink: 0;
}
.alv-main-price__ref {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    min-width: 0;
}
.alv-main-price__ref-label {
    font-size: 10px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #58534c;
    font-family: 'Jost', 'Inter', sans-serif;
    font-weight: 400;
    display: block;
    white-space: nowrap;
}
.alv-main-price__ref-num {
    font-size: 14px;
    font-weight: 400;
    color: #6b6560;
    font-family: 'Jost', 'Inter', sans-serif;
    letter-spacing: .05em;
    white-space: nowrap;
}

/* =========================
   DESCRIPCIÓN
========================= */
.alv-ficha-description {
    line-height: 1.85;
    color: #334155;
    font-size: 16px;
    text-align: justify;
    /* Abierta por defecto — sin clamp */
}
/* Saltos de párrafo en la descripción */
.alv-ficha-description p {
    margin-bottom: 1.1em;
}
.alv-ficha-description p:last-child {
    margin-bottom: 0;
}
/* Los \r\n de Inmonet llegan como texto plano — convertir saltos de línea */
.alv-ficha-description br {
    display: block;
    margin-bottom: .6em;
}
/* El botón aparece solo si la descripción es muy larga (lo gestiona el JS) */
.alv-readmore-btn {
    margin-top: 20px;
    padding-top: 12px;
    display: inline-block;
    font-weight: 500;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: #58534c;
    letter-spacing: .02em;
}
.alv-readmore-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 32px; height: 1px;
    background: #cbd5e1;
}
.alv-readmore-btn:hover { color: #0f172a; }
.alv-readmore-btn.is-hidden { display: none; }

/* Estado colapsado (solo si el usuario lo colapsa manualmente) */
.alv-ficha-description.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.alv-ficha-content, .alv-ficha-content * { pointer-events: auto; }

/* =========================
   SIMILARES
========================= */
/* ── RESET del grid de cards.css que interfiere con Swiper ── */
.alv-ficha-similares-inner {
    display: block !important;
    grid-template-columns: none !important;
}
.alv-ficha-similares-inner .alv-similares-swiper {
    display: block !important;
}

.alv-ficha-similares,
.alv-ficha-recientes { padding: 40px 0 60px; }

/* Cabecera: título + flechas en la misma línea */
.alv-similares-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.alv-ficha-similares h2,
.alv-ficha-recientes h2 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    margin: 0;
    color: #0f172a;
}
.alv-ficha-recientes .alv-similares-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}
.alv-ficha-recientes .alv-similares-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.alv-similares-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.alv-similares-prev,
.alv-similares-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    flex-shrink: 0;
}
.alv-similares-prev:hover,
.alv-similares-next:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}
.alv-similares-prev.swiper-button-disabled,
.alv-similares-next.swiper-button-disabled {
    opacity: .3;
}
.alv-recientes-prev,
.alv-recientes-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    flex-shrink: 0;
}
.alv-recientes-prev:hover,
.alv-recientes-next:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}
.alv-recientes-prev.swiper-button-disabled,
.alv-recientes-next.swiper-button-disabled {
    opacity: .3;
    pointer-events: none;
}
.alv-ficha-similares-inner {
    position: relative;
    width: 100%;
}

/* Swiper de similares — estructura estándar */
.alv-similares-swiper {
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
}

/* Slides estándar — Swiper calcula el ancho correctamente */
.alv-similares-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Card ocupa el slide entero */
.alv-ficha-similares .alv-card {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    cursor: pointer;
    background: #fff;
}
.alv-ficha-similares .alv-card:hover { transform: none; box-shadow: 0 12px 32px rgba(0,0,0,.13); }

/* Imagen portada de la card */
.alv-ficha-similares .alv-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
}
.alv-ficha-similares .alv-sim-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.alv-ficha-similares .alv-card:hover .alv-sim-foto {
    transform: scale(1.04);
}
.alv-ficha-similares .alv-pill { z-index: 20; }

/* Mismo bloque que arriba, para "Vistos recientemente" — antes no
   existía, por eso no salía la manita sobre la imagen ni el zoom. */
.alv-ficha-recientes .alv-card {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    cursor: pointer;
    background: #fff;
}
.alv-ficha-recientes .alv-card:hover { transform: none; box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.alv-ficha-recientes .alv-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
}
.alv-ficha-recientes .alv-sim-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.alv-ficha-recientes .alv-card:hover .alv-sim-foto {
    transform: scale(1.04);
}
.alv-ficha-recientes .alv-pill { z-index: 20; }

/* Contenido de la card */
.alv-ficha-similares .alv-card__content {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.alv-ficha-similares .alv-card__title {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.alv-ficha-similares .alv-card__meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.alv-ficha-similares .alv-card__price {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-top: auto;
    padding-top: 10px;
}



/* Referencia — misma estructura que el resto de alv-fact-row */
.alv-fact-ref { display: none; } /* legacy — ya no se usa, la ref va en alv-fact-row */

/* =========================
   CTA SOLICITAR INFORMACIÓN
========================= */
.alv-sidebar-cta {
    margin-top: 16px;
    border: 0.5px solid #e8e4de;
    padding: 18px 16px;
    text-align: center;
}
.alv-sidebar-cta__text {
    font-size: 11px;
    font-family: 'Jost', 'Inter', sans-serif;
    font-weight: 300;
    color: #58534c;
    letter-spacing: .04em;
    margin: 0 0 12px;
}
.alv-sidebar-cta__btn {
    display: block;
    width: 100%;
    background: #0e0e0e;
    color: #fff;
    text-decoration: none;
    padding: 13px 0;
    font-family: 'Jost', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    transition: background .2s;
    border: none;
    cursor: pointer;
}
.alv-sidebar-cta__btn:hover {
    background: #2a2a2a;
    color: #fff;
    opacity: 1;
}

/* Tab Otros datos */
.alv-otros-wrap {
    padding-top: 8px;
}


/* =========================
   LATERAL · TOGGLE "Ver más"
========================= */
.alv-facts-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.alv-facts-hidden.is-open {
    max-height: 600px;
}

.alv-facts-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: none;
    border-top: 0.5px solid #e8e4de;
    border-bottom: 0.5px solid #e8e4de;
    border-radius: 0;
    font-size: 10px;
    font-weight: 400;
    font-family: 'Jost', 'Inter', sans-serif;
    color: #58534c;
    cursor: pointer;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .15s, background .15s;
    line-height: 1;
}
.alv-facts-toggle-label {
    /* uppercase + letter-spacing tiene ascendente óptico — lo bajamos 1px */
    padding-top: 1px;
    display: inline-block;
}
.alv-facts-toggle:hover {
    color: #0e0e0e;
    background: #f5f3f0;
}
.alv-facts-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border: 0.5px solid #e8e4de;
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color .15s, transform .2s ease;
    position: relative;
    /* Ocultar el carácter + / − tipográfico que desalinea */
    font-size: 0;
    color: transparent;
}
/* Cruz con pseudoelementos — perfectamente centrada */
.alv-facts-toggle-icon::before,
.alv-facts-toggle-icon::after {
    content: '';
    position: absolute;
    background: #9e9990;
    border-radius: 1px;
    transition: background .15s, transform .2s ease;
}
/* Línea horizontal */
.alv-facts-toggle-icon::before {
    width: 8px; height: 1px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
/* Línea vertical (desaparece cuando está abierto) */
.alv-facts-toggle-icon::after {
    width: 1px; height: 8px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, opacity .2s ease;
}
.alv-facts-toggle:hover .alv-facts-toggle-icon {
    border-color: #0e0e0e;
}
.alv-facts-toggle:hover .alv-facts-toggle-icon::before,
.alv-facts-toggle:hover .alv-facts-toggle-icon::after {
    background: #0e0e0e;
}
/* Estado abierto: solo línea horizontal (= menos) */
.alv-facts-toggle.is-open .alv-facts-toggle-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

/* =========================
   TAB MAPA
========================= */
.alv-mapa-wrap {
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alv-mapa-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: .01em;
}

.alv-mapa-pin {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    opacity: .7;
}

.alv-mapa-frame {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.alv-mapa-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.alv-mapa-nota {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

/* Botón "Volver a distritos" — solo visible en el nivel 2 (barrios) */
.alv-mapa-volver {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    background: #f1f5f9;
    border: none;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background .15s ease;
}

.alv-mapa-volver:hover {
    background: #e2e8f0;
}

@media (max-width: 768px) {
    .alv-mapa-frame { height: 280px; }
}


/* =========================
   TAB PLANOS
========================= */
.alv-planos-wrap {
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.alv-planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.alv-plano-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}
.alv-plano-img svg {
    width: 100%;
    height: auto;
    display: block;
}
.alv-plano-label {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin: 0;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.alv-planos-nota {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

/* Compartir: feedback copiado — botón verde, sin cambiar tamaño */
.alv-share-btn.alv-share-copied {
    color: #22c55e !important;
    border-color: #22c55e !important;
    white-space: nowrap;
}


/* =========================
   TAB OTROS DATOS
========================= */
.alv-otros-wrap {
    padding: 28px 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "vivienda derecha";
    column-gap: 64px;
    align-items: start;
}
/* La columna derecha agrupa Edificio + Precio y gastos, apilados entre sí */
.alv-otros-wrap__derecha {
    grid-area: derecha;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.alv-otros-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.alv-otros-wrap > .alv-otros-group {
    grid-area: vivienda;
}

/* En pantallas estrechas, volver a una sola columna apilada */
@media (max-width: 768px) {
    .alv-otros-wrap {
        grid-template-columns: 1fr;
        grid-template-areas:
            "vivienda"
            "derecha";
        row-gap: 40px;
    }
}
.alv-otros-title {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1E293B;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1E293B;
}
.alv-otros-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 0.5px solid #f3f1ee;
    gap: 16px;
}
.alv-otros-row:last-child {
    border-bottom: none;
}
.alv-otros-k {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #58534c;
    flex-shrink: 0;
}
.alv-otros-v {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #0e0e0e;
    text-align: right;
}

/* =========================
   RESPONSIVE
========================= */

/* ── TABLET (≤1024px) ─────────────────────────────────── */
@media (max-width: 1024px) {

    .alv-ficha-content { padding: 0; }

    /* Grid: una columna, sidebar baja debajo */
    .alv-ficha-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .alv-ficha-main   { padding-right: 0; max-width: 100%; }
    .alv-ficha-main-title { font-size: 26px; }
    .alv-ficha-main-price .alv-main-price__amount { font-size: 24px; }
    .alv-ficha-main-meta { font-size: 16px; }
    .alv-ficha-sidebar {
        position: relative;
        top: auto;
        width: 100%;
        padding-top: 0;
    }
    /* Tabs dejan de ser sticky en tablet */
    .alv-ficha-tabs-wrap { position: relative; top: auto; }
    /* Reducir espacio entre tabs y título en tablet */
    .alv-tab[data-tab="caracteristicas"] { padding-top: 8px; }
}

/* ── MÓVIL (≤768px) ──────────────────────────────────── */
@media (max-width: 768px) {

    /* Hero overlay padding en móvil — directamente sin variable */
    .alv-ficha-hero-overlay-inner {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 36px;
    }

    /* Miga de pan: apilada */
    .alv-breadcrumb-row {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 0;
    }
    .alv-breadcrumb {
        padding: 10px 0;
        border-bottom: 0.5px solid #e8e4de;
        overflow: hidden;
        flex-wrap: nowrap;
        font-size: 11.5px;
    }
    .alv-breadcrumb__current {
        display: none;
    }
    .alv-breadcrumb__sep:last-of-type {
        display: none;
    }

    /* Botones: ancho completo bajo la miga */
    .alv-breadcrumb-row .alv-ficha-actions {
        display: flex;
        gap: 8px;
        padding: 8px 0;
        border-bottom: 0.5px solid #e8e4de;
    }
    .alv-breadcrumb-row .alv-ficha-actions .alv-action-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 0;
        font-size: 10px;
    }

    /* Tabs en móvil — no sticky, fluyen con el contenido */
    .alv-ficha-tabs-wrap {
        position: relative;
        top: auto;
        z-index: auto;
        background: #fff;
    }
    .alv-ficha-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .alv-ficha-tabs-nav::-webkit-scrollbar { display: none; }
    .alv-ficha-tabs-nav button {
        font-size: 11.5px;
        padding: 11px 12px;
        letter-spacing: .1em;
    }
    .alv-ficha-tabs-nav button:first-child { padding-left: 0; }

    /* Tipografía */
    .alv-ficha-main-title { font-size: 18px; }
    .alv-ficha-main-price .alv-main-price__amount { font-size: 17px; }
    .alv-ficha-main-meta  { font-size: 16px; }
    .alv-ficha-description { text-align: justify; font-size: 16px; }

    /* Precio + ref en móvil: apilados para más espacio */
    .alv-ficha-main-price {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Tabla sidebar — ancho completo */
    .alv-ficha-sidebar { width: 100%; min-width: 0; overflow: visible; }
    .alv-ficha-facts   { width: 100%; overflow: visible; box-sizing: border-box; }
    .alv-fact-row      { grid-template-columns: 45% 55%; width: 100%; box-sizing: border-box; }
    .alv-fact-k        { font-size: 16px !important; padding: 10px 12px; word-break: break-word; }
    .alv-fact-v        { font-size: 16px !important; padding: 10px 12px; word-break: break-word; min-width: 0; text-align: left; }
    .alv-facts-toggle  { font-size: 10px; padding: 11px 12px; }

    /* CTA */
    .alv-sidebar-cta { margin-top: 12px; }
    .alv-sidebar-cta__btn { font-size: 11px; padding: 14px 0; }
}

/* =========================
   FIX OVERFLOW MÓVIL — forzado
   Ningún elemento de la ficha puede superar el ancho del viewport
========================= */
@media (max-width: 768px) {
    body.page-ficha,
    body.page-ficha .alv-ficha,
    body.page-ficha .alv-ficha-content,
    body.page-ficha .alv-wrap,
    body.page-ficha .alv-ficha-grid,
    body.page-ficha .alv-ficha-main,
    body.page-ficha .alv-ficha-sidebar,
    body.page-ficha .alv-ficha-facts,
    body.page-ficha .alv-breadcrumb-row {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Tabs wrap — sin overflow hidden para que Safari permita scroll en los tabs */
    body.page-ficha .alv-ficha-tabs-wrap {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Los tabs: scroll horizontal */
    body.page-ficha .alv-ficha-tabs-nav {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    body.page-ficha .alv-ficha-tabs-nav::-webkit-scrollbar { display: none; }

    body.page-ficha .alv-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.page-ficha .alv-ficha-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Tipografía forzada con especificidad correcta */
    body.page-ficha .alv-ficha-tabs-nav button {
        font-size: 12.5px !important;
    }
    body.page-ficha .alv-main-price__amount {
        font-size: 28px !important;
    }
    body.page-ficha .alv-main-price__ref-num {
        font-size: 15px !important;
    }
    body.page-ficha .alv-main-price__ref-label {
        font-size: 11px !important;
    }
    body.page-ficha .alv-fact-k {
        font-size: 16px !important;
    }
    body.page-ficha .alv-fact-v {
        font-size: 16px !important;
    }
}

/* ======================================================
   MAPA · Mapbox marcadores por zona
====================================================== */

/* Contenedor Mapbox (sustituye al iframe) */
.alv-mapa-frame .mapboxgl-map {
    border-radius: 12px;
}

/* Píldora base */
.alv-map-marker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #d0ccc6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #111111;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
    user-select: none;
}

.alv-map-marker:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Zona activa (la del inmueble actual) */
.alv-map-marker--active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    z-index: 20;
}

.alv-map-marker__sep {
    opacity: 0.5;
    font-size: 10px;
}

.alv-map-marker__zona {
    font-weight: 500;
}

.alv-map-marker__count {
    font-weight: 400;
}

/* Ocultar logo Mapbox por defecto (se muestra el attribution compacto) */
.alv-mapa-frame .mapboxgl-ctrl-logo {
    display: none !important;
}
