/* =========================================
   PLUXDOM GALLERY - CSS OPTIMIZADO
   ========================================= */

/* =========================================
   VARIABLES
   ========================================= */
:root {
    --pluxdom-primary: #f5b400;
    --pluxdom-dark: #121212;
    --pluxdom-bg: #1a1a1a;
    --pluxdom-surface: #242424;
    --pluxdom-text: #ffffff;
    --pluxdom-text-muted: #a0a0a0;
    --pluxdom-whatsapp: #25D366;
    --pluxdom-youtube: #FF0000;
    --pluxdom-radius: 12px;
    --pluxdom-gap: 16px;
    --pluxdom-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   WRAPPER PRINCIPAL
   ========================================= */
.pluxdom-gallery-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =========================================
   GRID LAYOUT
   ========================================= */
.pluxdom-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: start;
}

.pluxdom-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================================
   GALERÍA (con miniaturas)
   ========================================= */
.pluxdom-gallery {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: var(--pluxdom-gap);
    background: var(--pluxdom-dark);
    border-radius: var(--pluxdom-radius);
    overflow: hidden;
    position: relative;
}

/* Miniaturas verticales */
.pluxdom-gallery__thumbs-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(80px * 5 + 10px * 6);
    background: var(--pluxdom-bg);
    scrollbar-width: thin;
    scrollbar-color: var(--pluxdom-surface) var(--pluxdom-dark);
    width: 130px;
    box-sizing: border-box;
}
.pluxdom-gallery__thumbs-left::-webkit-scrollbar {
    width: 4px;
    height: 0;
}
.pluxdom-gallery__thumbs-left::-webkit-scrollbar-track {
    background: var(--pluxdom-dark);
    border-radius: 2px;
}
.pluxdom-gallery__thumbs-left::-webkit-scrollbar-thumb {
    background: var(--pluxdom-surface);
    border-radius: 2px;
}

.pluxdom-gallery__thumb-left {
    flex: 0 0 80px;
    width: 106px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--pluxdom-surface);
    transition: all var(--pluxdom-transition);
    margin: 0 auto;
    display: block;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}
.pluxdom-gallery__thumb-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}
.pluxdom-gallery__thumb-left:hover {
    transform: scale(1.02);
}
.pluxdom-gallery__thumb-left.is-active {
    border-color: var(--pluxdom-primary);
    border-width: 3px;
}
.pluxdom-gallery__thumb-left:focus-visible {
    outline: 2px solid var(--pluxdom-primary);
    outline-offset: 2px;
}

/* Imagen principal */
.pluxdom-gallery__main {
    position: relative;
    background: var(--pluxdom-dark);
    border-radius: var(--pluxdom-radius);
    overflow: hidden;
}
.pluxdom-gallery__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 15 / 10;
    overflow: hidden;
    background: var(--pluxdom-dark);
}
.pluxdom-gallery__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pluxdom-gallery__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pluxdom-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flechas de navegación */
.pluxdom-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
        background: rgb(0 0 0 / 30%);
    
    border: none;
    color: var(--pluxdom-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--pluxdom-transition);
    opacity: 0;
}
.pluxdom-gallery__main:hover .pluxdom-gallery__arrow {
    opacity: 1;
}
.pluxdom-gallery__arrow:hover {
    background: #f5b4001f;
    color: var(--pluxdom-dark);
    transform: translateY(-50%) scale(1.05);
}
.pluxdom-gallery__arrow--prev { left: 16px; }
.pluxdom-gallery__arrow--next { right: 16px; }

/* Contador */
.pluxdom-gallery__counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(0 0 0 / 40%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    color: var(--pluxdom-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.pluxdom-gallery__counter-current {
    color: var(--pluxdom-primary);
}

/* =========================================
   VIDEO BLOCK
   ========================================= */
.pluxdom-video-block-below {
    background: var(--pluxdom-youtube);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transition: all var(--pluxdom-transition);
    position: relative;
    left: 65px;
    bottom: 10px;
}
.pluxdom-video-block-below:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px);
}
.pluxdom-video-block-below .pluxdom-video-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 32px;
    color: white;
    text-decoration: none;
    transition: all var(--pluxdom-transition);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.pluxdom-video-block-below .pluxdom-video-link:hover {
    background: #cc0000;
}
.pluxdom-video-block-below .pluxdom-video-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   INFORMACIÓN DE PROPIEDAD
   ========================================= */
.pluxdom-property-info {
    background: var(--pluxdom-dark);
    padding: 24px;
    border-radius: var(--pluxdom-radius);
    color: var(--pluxdom-text);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header: Ref + Acciones (unificado) */
.pluxdom-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pluxdom-ref {
    color: var(--pluxdom-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.pluxdom-info-actions {
    display: flex;
    gap: 16px; /* espacio entre botones */
    align-items: center;
}

/* Botones de acción (Favoritos y Compartir) - unificados */
.pluxdom-favorite-btn,
.pluxdom-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--pluxdom-text);
    cursor: pointer;
    transition: all var(--pluxdom-transition);
}
.pluxdom-share-btn {
    background: transparent;
    border-color: transparent;
}
.pluxdom-favorite-btn svg,
.pluxdom-share-btn svg {
    transition: all var(--pluxdom-transition);
}
.pluxdom-favorite-btn svg {
    fill: none;
    stroke: currentColor;
}
.pluxdom-share-btn svg {
    stroke: currentColor;
}
.pluxdom-favorite-btn .pluxdom-action-label,
.pluxdom-share-btn .pluxdom-action-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--pluxdom-text-muted);
    transition: all var(--pluxdom-transition);
}
/* Hover y activo para Favoritos */
.pluxdom-favorite-btn:hover,
.pluxdom-favorite-btn.active {
    background: transparent;
    border-color: var(--pluxdom-primary);
    color: #de4040!important;
    transform: translateY(-2px);
}
.pluxdom-favorite-btn:hover .pluxdom-action-label,
.pluxdom-favorite-btn.active .pluxdom-action-label {
    color: #de4040!important;
}
.pluxdom-favorite-btn.active svg {
    fill: var(--pluxdom-primary);
    stroke: var(--pluxdom-dark);
}
/* Hover para Compartir - solo la flecha se ilumina */
.pluxdom-share-btn:hover {
    background: transparent;
    border-color: transparent;
    transform: translateY(-2px);
}
.pluxdom-share-btn:hover svg {
    stroke: var(--pluxdom-primary);
    fill: var(--pluxdom-primary);
    filter: drop-shadow(0 0 6px rgba(245, 180, 0, 0.5));
}
.pluxdom-share-btn:hover .pluxdom-action-label {
    color: var(--pluxdom-primary);
}

/* Título - truncado a 2 líneas */
.pluxdom-property-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
}
.pluxdom-property-published {
    color: var(--pluxdom-text-muted);
    font-size: 14px;
    margin: 0;
}
.pluxdom-property-price {
    font-size: 32px;
    font-weight: 700;
    color: #1fd14b;
    margin: 8px 0;
    letter-spacing: -0.5px;
}

/* Características */
.pluxdom-property-features {
    font-weight: 700;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pluxdom-property-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--pluxdom-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pluxdom-property-features li:first-child { padding-top: 0; }
.pluxdom-property-features li:last-child { border-bottom: none; padding-bottom: 0; }
.pluxdom-property-features svg {
    fill: var(--pluxdom-primary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Botones de contacto */
.pluxdom-contact-buttons-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
    position: relative;
    top: 16px;
}
.pluxdom-btn-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--pluxdom-transition);
    cursor: pointer;
    border: none;
}
.pluxdom-btn-whatsapp-2 {
    background: var(--pluxdom-whatsapp);
    color: white;
    border: 2px solid var(--pluxdom-whatsapp);
}
.pluxdom-btn-whatsapp-2:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.pluxdom-btn-contact-2 {
    background: var(--pluxdom-primary);
    color: var(--pluxdom-dark);
    border: 2px solid var(--pluxdom-primary);
}
.pluxdom-btn-contact-2:hover {
    background: #ffc107;
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 180, 0, 0.3);
}

/* =========================================
   CASO ESPECIAL: SOLO 1 IMAGEN (sin miniaturas)
   ========================================= */
.pluxdom-gallery.single-image {
    grid-template-columns: 1fr !important;
}
.pluxdom-gallery.single-image .pluxdom-gallery__main {
    width: 100%;
}
.pluxdom-gallery.single-image .pluxdom-gallery__viewport {
    width: 100%;
}
.pluxdom-gallery.single-image .pluxdom-gallery__track {
    display: flex;
    width: 100%;
}
.pluxdom-gallery.single-image .pluxdom-gallery__slide {
    width: 100%;
    flex: 0 0 100%;
}
.pluxdom-gallery.single-image .pluxdom-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   RESPONSIVE
   ========================================= */
/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
    .pluxdom-gallery-wrapper { padding: 16px 24px; }
    .pluxdom-gallery-grid { grid-template-columns: 1fr; gap: 20px; }
    .pluxdom-gallery { grid-template-columns: 100px 1fr; gap: 12px; }
    .pluxdom-gallery__thumbs-left { width: 100px; padding: 10px; gap: 8px; }
    .pluxdom-gallery__thumb-left { width: 80px; height: 60px; flex: 0 0 60px; }
    .pluxdom-property-info { padding: 20px; }
    .pluxdom-property-title { font-size: 20px; }
    .pluxdom-property-price { font-size: 28px; }
    .pluxdom-video-block-below { max-width: 400px; width: 95%; }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
    .pluxdom-gallery-wrapper { padding: 1px !important; }
    .pluxdom-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .pluxdom-gallery__thumbs-left {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 10px;
        width: 100%;
        gap: 8px;
    }
    .pluxdom-gallery__thumbs-left::-webkit-scrollbar {
        height: 4px;
        width: 0;
    }
    .pluxdom-gallery__thumb-left {
        flex: 0 0 80px;
        width: 80px;
        height: 60px;
        margin: 0;
    }
    .pluxdom-property-info { padding: 16px; }
    .pluxdom-property-title { font-size: 18px; }
    .pluxdom-property-price { font-size: 24px; }
    .pluxdom-contact-buttons-2 { grid-template-columns: 1fr; }
    .pluxdom-video-block-below {
        max-width: 100%;
        width: 100%;
        margin: 0;
        left: 0;
        bottom: 0;
    }
    .pluxdom-video-block-below .pluxdom-video-link {
        padding: 14px 24px;
        font-size: 14px;
    }
    .pluxdom-video-block-below .pluxdom-video-icon {
        width: 24px;
        height: 24px;
    }
}

/* Desktop ajustes finos */
@media (min-width: 1024px) {
    
    
    .pluxdom-favorite-btn {
        position: relative !important;
        top: -6px !important;
        right: 1px !important;
        width: 40px;
        height: 40px;
        background: transparent !important;
        box-shadow: none !important;
    }
    .pluxdom-share-btn {
        position: relative;
        bottom: 6px;
    }
    /* Ajuste para breadcrumb si existe */
    .pluxdom-breadcrumb {
        left: 40px !important;
    }
    /* Mantener activo sin fondo */
    .pluxdom-favorite-btn.active {
        background: transparent !important;
    }
}


.pluxdom-favorite-btn .pluxdom-action-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--pluxdom-text-muted);
    transition: all var(--pluxdom-transition);
}

.pluxdom-favorite-btn.active .pluxdom-action-label {
    color: #ff0000; /* Rojo cuando está guardada */
}



/* =========================================
   SECCIÓN DE DESCRIPCIÓN
   ========================================= */
.pluxdom-description-section {
    margin-bottom: 20px;
    background: var(--pluxdom-dark);
    border-radius: var(--pluxdom-radius);
    padding: 24px;
    margin-top: 24px;
}

.pluxdom-description-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pluxdom-primary);
}

.pluxdom-description-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--pluxdom-primary);
    background: rgba(245, 180, 0, 0.1);
}

.pluxdom-description-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pluxdom-text);
    margin: 0;
}

.pluxdom-description-content {
    color: var(--pluxdom-text);
    line-height: 1.8;
}

.pluxdom-description-text {
    margin-bottom: 24px;
    font-size: 15px;
}

.pluxdom-description-text p {
    margin-bottom: 16px;
}

.pluxdom-caracteristicas-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pluxdom-caracteristica-item {
    padding: 8px 0;
    font-size: 14px;
    color: var(--pluxdom-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pluxdom-caracteristica-item:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 767px) {
    .pluxdom-description-section {
        padding: 20px;
    }
    
    .pluxdom-description-title {
        font-size: 20px;
    }
}







/* =========================================
   DESCRIPCIÓN + MAPA (2 columnas) — CORREGIDO
   ========================================= */

/* Contenedor del grid */
.pluxdom-description-map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 2px solid rgba(245, 180, 0, 0.2);
    align-items: start; /* Alinea ambas columnas al inicio */
}

/* Columna de descripción */
.pluxdom-description-column,
.pluxdom-map-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0; /* Evita desbordamiento */
}

/* Encabezado común para ambas columnas */
.pluxdom-description-header,
.pluxdom-map-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pluxdom-primary, #f5b400);
}

/* Icono común */
.pluxdom-description-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--pluxdom-primary, #f5b400);
    background: rgba(245, 180, 0, 0.1);
}

/* Título común */
.pluxdom-description-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pluxdom-text, #ffffff);
    margin: 0;
}

/* Contenido de descripción */
.pluxdom-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pluxdom-text, #e0e0e0);
    hyphens: none;
    word-wrap: break-word;
}

/* Mapa */
#pluxdom-property-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--pluxdom-surface, #242424);
}

/* Dirección y enlace */
.pluxdom-map-address {
    font-size: 14px;
    color: var(--pluxdom-text-muted, #a0a0a0);
    margin: 12px 0 0 0;
}

.pluxdom-map-address a {
    color: var(--pluxdom-primary, #f5b400);
    text-decoration: none;
    font-weight: 600;
}

.pluxdom-map-address a:hover {
    text-decoration: underline;
}

/* Responsive: tablet y móvil */
@media (max-width: 1023px) {
    .pluxdom-description-map-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #pluxdom-property-map {
        height: 300px;
    }
}

@media (max-width: 767px) {
    .pluxdom-description-map-grid {
        padding: 12px 0;
        margin-top: 24px;
    }

    #pluxdom-property-map {
        height: 250px;
    }

    .pluxdom-description-title {
        font-size: 20px;
    }

    .pluxdom-description-icon {
        width: 40px;
        height: 40px;
    }
}


/* =========================================
   DESCRIPCIÓN DINÁMICA — ESTILOS DE TEXTO
   Evita cortes de palabras y controla tamaños
   ========================================= */

.pluxdom-description-text {
    /* Desactivar separación silábica (guiones) */
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    
    /* Tamaño base y legibilidad */
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Encabezados dentro de la descripción */
.pluxdom-description-text h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: #f5b400;
    line-height: 1.3;
    hyphens: none;
}

.pluxdom-description-text h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 25px 0 12px 0;
    color: #f5b400;
    line-height: 1.3;
    hyphens: none;
}

/* Párrafos */
.pluxdom-description-text p {
    margin: 0 0 16px 0;
    font-size: 16px;
    line-height: 1.8;
}

/* Listas (viñetas) */
.pluxdom-description-text ul {
    margin: 12px 0 20px 0;
    padding-left: 24px;
    list-style: disc;
    line-height: 1.7;
}

.pluxdom-description-text ul li {
    margin-bottom: 8px;
    font-size: 16px;
}

/* Negritas dentro de la descripción */
.pluxdom-description-text strong,
.pluxdom-description-text b {
    color: #ffffff;
    font-weight: 700;
}

/* Enlaces (si los hay) */
.pluxdom-description-text a {
    color: #f5b400;
    text-decoration: none;
}

.pluxdom-description-text a:hover {
    text-decoration: underline;
}

/* Ajustes para móviles */
@media (max-width: 767px) {
    .pluxdom-description-text {
        font-size: 15px;
    }
    .pluxdom-description-text h2 {
        font-size: 22px;
    }
    .pluxdom-description-text h3 {
        font-size: 19px;
    }
    .pluxdom-description-text ul {
        padding-left: 18px;
    }
}



/* =========================================
   DESCRIPCIÓN — Toggle en móvil (solo pantallas < 768px)
   ========================================= */

.pluxdom-description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    hyphens: none;
}

/* En escritorio: mostrar todo sin botón */
@media (min-width: 768px) {
    .pluxdom-description-text {
        max-height: none !important;
        overflow: visible !important;
    }
    .pluxdom-desc-toggle-btn {
        display: none !important;
    }
}

/* En móvil: limitar altura inicial y mostrar botón */
@media (max-width: 767px) {
    .pluxdom-description-text {
        max-height: 1480px; /* ajustable según contenido */
        overflow: hidden;
        transition: max-height 0.5s ease;
        position: relative;
    }
    .pluxdom-description-text.expanded {
        max-height: none;
    }

    /* Botón toggle */
    .pluxdom-desc-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 0;
        margin-top: 10px;
        background: transparent;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #1fd14b;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .pluxdom-desc-toggle-btn:hover {
        background: rgba(245, 180, 0, 0.05);
    }
    .pluxdom-desc-toggle-btn .pluxdom-desc-toggle-icon {
        font-size: 12px;
        display: inline-block;
        transition: transform 0.3s ease;
    }
    .pluxdom-desc-toggle-btn.expanded .pluxdom-desc-toggle-icon {
        transform: rotate(180deg);
    }
}


.pluxdom-price-unit {
    font-size: 0.85em;
    color: #ffffff;
    font-weight: normal;
}











/* =========================================
   LIGHTBOX FULLSCREEN (visor independiente)
   ========================================= */
/* Y CÁMBIALO POR ESTO (congela el fondo incluso en iOS Safari): */
body.pluxdom-lightbox-lock {
    overflow: hidden;
    position: fixed;
    inset: 0;
    width: 100%;
}

.pluxdom-lightbox {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(0, 0, 0, 0.90);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s ease;
}
.pluxdom-lightbox.is-open { opacity: 1; }
.pluxdom-lightbox[hidden] { display: none; }

/* Barra superior */
.pluxdom-lightbox__topbar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 18px 22px; z-index: 5;
}
.pluxdom-lightbox__actions { display: flex; gap: 24px; }
.pluxdom-lightbox__action {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    background: transparent; border: none; color: #fff; cursor: pointer; padding: 0;
}
.pluxdom-lightbox__action .pluxdom-action-label { font-size: 14px; font-weight: 700; color: #fff; }
.pluxdom-lightbox__action:hover { color: var(--pluxdom-primary); }
/* Anula estilos del botón favoritos del panel info */
.pluxdom-lightbox__action.pluxdom-favorite-btn {
    position: static; width: auto; height: auto; background: transparent; border: none;
}
.pluxdom-lightbox__action.pluxdom-favorite-btn.active svg { fill: #ff4d4d; stroke: #ff4d4d; }
.pluxdom-lightbox__action.pluxdom-favorite-btn.active .pluxdom-action-label { color: #fff; }

.pluxdom-lightbox__close {
    background: transparent; border: none; color: #fff; cursor: pointer; padding: 4px;
    transition: transform .25s ease, color .2s ease;
}
.pluxdom-lightbox__close:hover { transform: rotate(90deg); color: var(--pluxdom-primary); }

/* Flechas laterales */
.pluxdom-lightbox__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; color: #fff; cursor: pointer;
    z-index: 5; padding: 10px; transition: color .2s ease, transform .2s ease;
}
.pluxdom-lightbox__arrow:hover { color: var(--pluxdom-primary); transform: translateY(-50%) scale(1.12); }
.pluxdom-lightbox__arrow--prev { left: 14px; }
.pluxdom-lightbox__arrow--next { right: 14px; }
.pluxdom-lightbox.single .pluxdom-lightbox__arrow { display: none; }

/* Imagen centrada con bordes redondeados (como la captura) */
.pluxdom-lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; }
.pluxdom-lightbox__img {
    max-width: min(99vw, 1100px); max-height: 99vh;
    width: auto; height: auto; border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,.6);
    transition: opacity .2s ease;
    user-select: none; -webkit-user-drag: none;
}

/* Contador tipo píldora (número actual en dorado) */
.pluxdom-lightbox__counter {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.30); color: #fff;
    font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 22px;
    pointer-events: none;
}
.pluxdom-lightbox__counter #pluxdom-lightbox-current { color: var(--pluxdom-primary); }

/* Cursor zoom en la imagen principal para indicar que es clicable */
.pluxdom-gallery__viewport { cursor: zoom-in; }

/* Móvil */
@media (max-width: 767px) {
    .pluxdom-lightbox__topbar { padding: 14px 16px; }
    .pluxdom-lightbox__arrow--prev { left: 2px; }
    .pluxdom-lightbox__arrow--next { right: 2px; }
    .pluxdom-lightbox__arrow svg { width: 34px; height: 34px; }
    .pluxdom-lightbox__img { max-width: 99vw; max-height: 80vh; }
}




.pluxdom-gallery__viewport {
    touch-action: pan-y; /* permite scroll vertical, evita scroll horizontal */
    cursor: zoom-in;
}





@media (min-width: 1024px) {
.pluxdom-lightbox__action.pluxdom-favorite-btn {

top: -0px !important;

}
}





/* =========================================
   LIGHTBOX: SAVE (sin hover) y SHARE (hover amarillo)
   ========================================= */

/* ---------- BOTÓN SHARE ---------- */
#pluxdom-lightbox-share .pluxdom-action-label {
    color: #ffffff !important;
}

#pluxdom-lightbox-share:hover .pluxdom-action-label {
    color: var(--pluxdom-primary) !important; /* Amarillo */
}

/* ---------- BOTÓN SAVE (favoritos) ---------- */
/* Estado inactivo: texto blanco, sin cambio en hover */
.pluxdom-lightbox__action.pluxdom-favorite-btn .pluxdom-action-label {
    color: #ffffff !important;
}
.pluxdom-lightbox__action.pluxdom-favorite-btn:hover .pluxdom-action-label {
    color: #ffffff !important; /* Se mantiene blanco */
}

/* Estado activo (guardado): texto rojo, sin cambio en hover */
.pluxdom-lightbox__action.pluxdom-favorite-btn.active .pluxdom-action-label {
    color: #ff4d4d !important;
}
.pluxdom-lightbox__action.pluxdom-favorite-btn.active:hover .pluxdom-action-label {
    color: #ff4d4d !important; /* Se mantiene rojo */
}

/* Icono de SAVE: en inactivo, blanco; en hover, blanco (sin cambio) */
.pluxdom-lightbox__action.pluxdom-favorite-btn svg {
    stroke: #ffffff;
    fill: none;
}
.pluxdom-lightbox__action.pluxdom-favorite-btn:hover svg {
    stroke: #ffffff !important;
    fill: none !important;
}

/* Icono de SAVE activo: rojo; en hover, rojo (sin cambio) */
.pluxdom-lightbox__action.pluxdom-favorite-btn.active svg {
    stroke: #ff4d4d !important;
    fill: #ff4d4d !important;
}
.pluxdom-lightbox__action.pluxdom-favorite-btn.active:hover svg {
    stroke: #ff4d4d !important;
    fill: #ff4d4d !important;
}

/* Asegurar que ningún hover general afecte a SAVE */
.pluxdom-lightbox__action.pluxdom-favorite-btn:hover {
    color: inherit !important; /* Anula cualquier color heredado */
}

/* Garantizar que los botones sigan siendo clicables */
.pluxdom-lightbox__action.pluxdom-favorite-btn,
#pluxdom-lightbox-share {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 20 !important;
    position: relative;
}





 @media screen and (min-width: 320px) and (max-width: 1024px) {
     
    .pluxdom-favorite-btn {
        position: static !important;
        top: -6px !important;
        right: 1px !important;
        width: 40px;
        height: 40px;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .pluxdom-favorite-btn.active {
    background: #ffffff00!important;
}


.pluxdom-breadcrumb {
top: 0px !important;
}

.pluxdom-single-test {
        padding: 2px !important;
    }

.pluxdom-breadcrumb {
    margin-bottom: 10px;

}

}








/* ======================================================
   TABLET: Ajustes para la galería de propiedades
   ====================================================== */
@media (min-width: 768px) and (max-width: 1023px) {

    /* 1. Grid principal: pasar a una sola columna
       (la info de la propiedad se coloca debajo) */
    .pluxdom-gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* 2. Contenedor de la galería: sin límite de altura */
    .pluxdom-gallery {
        grid-template-columns: 1fr !important; /* miniaturas abajo */
        grid-template-rows: auto auto;
        gap: 12px;
    }

    /* 3. Miniaturas: horizontal con scroll */
    .pluxdom-gallery__thumbs-left {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: none !important;
        width: 100% !important;
        padding: 0px 2px 10px !important;
        gap: 10px !important;
        scrollbar-width: thin;
    }

    .pluxdom-gallery__thumbs-left::-webkit-scrollbar {
        height: 4px;
    }
    .pluxdom-gallery__thumbs-left::-webkit-scrollbar-track {
        background: var(--pluxdom-bg, #1a1a1a);
    }
    .pluxdom-gallery__thumbs-left::-webkit-scrollbar-thumb {
        background: var(--pluxdom-primary, #f5b400);
        border-radius: 4px;
    }

    /* 4. Cada miniatura */
    .pluxdom-gallery__thumb-left {
        flex: 0 0 100px !important;
        width: 100px !important;
        height: 70px !important;
        margin: 0 !important;
        border-width: 2px !important;
    }
    .pluxdom-gallery__thumb-left img {
        border-radius: 4px;
        object-fit: cover;
    }

    /* 5. Visor principal (imagen grande) */
    .pluxdom-gallery__main {
        width: 100%;
        border-radius: var(--pluxdom-radius, 12px);
        overflow: hidden;
    }
    .pluxdom-gallery__viewport {
        aspect-ratio: 15 / 10; /* mantiene proporción */
        width: 100%;
    }
    .pluxdom-gallery__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 6. Flechas de navegación (tamaño tablet) */
    .pluxdom-gallery__arrow {
        width: 40px !important;
        height: 40px !important;
        opacity: 0.8 !important;
    }
    .pluxdom-gallery__arrow svg {
        width: 28px !important;
        height: 28px !important;
    }

    /* 7. Contador */
    .pluxdom-gallery__counter {
        font-size: 13px;
        padding: 6px 14px;
    }

    /* 8. Video block (se ajusta al ancho) */
    .pluxdom-video-block-below {
        max-width: 100% !important;
        width: 100% !important;
        left: 0 !important;
        bottom: 0 !important;
        margin: 10px 0 0 0 !important;
        border-radius: 10px;
    }
    .pluxdom-video-block-below .pluxdom-video-link {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    /* 9. Columna de información (se muestra abajo) */
    .pluxdom-info-column {
        width: 100%;
    }
    .pluxdom-property-info {
        padding: 20px !important;
    }

    /* 10. Ajuste del wrapper general */
    .pluxdom-gallery-wrapper {
        padding: 12px 16px !important;
    }

    /* 11. Breadcrumb (si existe) */
    .pluxdom-breadcrumb {
        padding: 8px 0 !important;
        font-size: 13px !important;
    }
    .pluxdom-breadcrumb-wrap {
        transform: none !important;
        gap: 6px !important;
    }
}

/* ======================================================
   TABLET
   ====================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
.pluxdom-breadcrumb-wrap {
    left: 30px;
    margin-top: 15px;
    position: relative;
}

.pluxdom-breadcrumb {
    padding: 20px 0px 0px !important;
    font-size: 13px !important;
}


}








