/* Media Grid Layout */
.media-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

/* 1. Top Video Section */
.video-container {
    width: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 200px;
}

@media (min-width: 769px) {
    .media-grid {
        display: flex;
        flex-direction: row;
        gap: 10px;
        height: 510px; /* 250px * 2 + 10px gap */
    }

    .video-container {
        flex: 1.2;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .video-container video {
        height: 100% !important;
        max-height: 100% !important;
        object-fit: cover;
    }

    .media-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex: 1;
        height: 100% !important;
    }

    .media-col {
        flex: 1;
        height: calc(50% - 5px) !important;
    }
}

/* Overlay Generic */
.video-overlay,
.trigger-overlay {
    position: absolute;
    bottom: 20px;
    pointer-events: none;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-overlay h2 {
    color: #fff;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.btn-fullscreen-video {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s;
}

.btn-fullscreen-video:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 2. Media Row (Split) */
.media-row {
    display: flex;
    gap: 10px;
    height: 250px;
}

.media-col {
    flex: 1;
    position: relative;
    background: var(--bg-surface);
    border-radius: 10px;
    overflow: hidden;
}

/* Left: 360 Trigger */
.media-360-trigger {
    cursor: pointer;
}

.pannellum-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s;
}

.media-360-trigger:hover .pannellum-thumbnail {
    transform: scale(1.05);
}

.trigger-overlay {
    bottom: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
    justify-content: center;
}

.media-360-trigger:hover .trigger-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.4);
}

.icon-circle i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.icon-circle span {
    font-size: 0.7rem;
    font-weight: bold;
}

.trigger-overlay p {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
    text-align: center;
}

/* Right: Mini Gallery */
.mini-gallery-container {
    position: relative;
}

.mini-gallery-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.mini-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.mini-slide.active {
    opacity: 1;
    z-index: 1;
}

.mini-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mini Controls */
.mini-prev,
.mini-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.mini-gallery-container:hover .mini-prev,
.mini-gallery-container:hover .mini-next {
    opacity: 1;
}

.mini-prev {
    left: 10px;
}

.mini-next {
    right: 10px;
}

.mini-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* FULLSCREEN MODALS */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300000;
    display: none;
    flex-direction: column;
    background: #00000085;
}

.fullscreen-modal.active {
    display: flex;
}

.close-fs {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 300002;
    text-shadow: 0 0 10px #000;
}

/* Ocultar controles nativos de Pannellum (Zoom +/-, Fullscreen) */
.pnlm-ui .pnlm-about-msg,
.pnlm-ui .pnlm-load-button,
.pnlm-controls-container,
.pnlm-zoom-controls,
.pnlm-fullscreen-toggle-button,
.pnlm-zoom-in,
.pnlm-zoom-out {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Pannellum Scene Hotspot Custom Style */
.pnlm-hotspot.scene-hotspot {
    background-color: transparent !important;
    width: 10px !important;
    height: 10px !important;
    border: none !important;
    box-shadow: none;
    display: block;
    cursor: pointer;
    animation: none;
}

.pnlm-hotspot.scene-hotspot:hover {
    z-index: 1000 !important;
}

.pnlm-hotspot.scene-hotspot::after {
    content: none;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* Pannellum Size */
#pannellumViewer {
    width: 100%;
    height: 100%;
}

/* FS Video */
.fs-video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-video-container video {
    max-width: 100%;
    max-height: 100%;
    height: 100vh;
}

/* FS Gallery */
.gallery-mode {
    background: rgba(0, 0, 0, 0.95);
}

.fs-gallery-track {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fs-slide.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.fs-slide img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.fs-prev,
.fs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    z-index: 300001;
    transition: transform 0.2s;
}

.fs-prev:hover,
.fs-next:hover {
    transform: translateY(-50%) scale(1.2);
    color: var(--primary-color);
}

.fs-prev {
    left: 20px;
}

.fs-next {
    right: 20px;
}

/* Property Header Redesign - GLOBAL STYLES */
.property-header-redesign {
    font-family: 'Montserrat', sans-serif;
}

.prop-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.prop-main-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* text-shadow para legibilidad sobre cualquier fondo */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.prop-location-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.prop-location-row i {
    color: var(--primary-color);
}

/* ============================================================
   HERO SHOWCASE SECTION (SECCIÓN PRINCIPAL DE IMPACTO VISUAL)
   ============================================================ */
.hero-showcase-section {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(15, 23, 42, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 24px 28px !important;
    box-shadow: 
        0 20px 45px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 35px rgba(121, 177, 0, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 25px !important;
}

/* Glowing top accent line */
.hero-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #79b100 25%, #a3e635 50%, #fb923c 75%, transparent 100%);
    box-shadow: 0 0 15px rgba(121, 177, 0, 0.8);
    pointer-events: none;
    z-index: 2;
}

/* Ambient backlight glow */
.hero-showcase-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(121, 177, 0, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.hero-showcase-section > * {
    position: relative;
    z-index: 1;
}

/* Top Meta Badges - Ocultos */
.hero-top-badges {
    display: none !important;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.hero-badge-tag.type {
    background: rgba(121, 177, 0, 0.15);
    border: 1px solid rgba(121, 177, 0, 0.4);
    color: #a3e635;
    box-shadow: 0 0 15px rgba(121, 177, 0, 0.2);
}

.hero-badge-tag.location {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.hero-badge-tag.location i {
    color: #38bdf8;
}

.hero-badge-tag.status {
    background: rgba(251, 146, 60, 0.15);
    border: 1px solid rgba(251, 146, 60, 0.35);
    color: #fdba74;
}

.hero-badge-tag.status i {
    color: #fb923c;
}

/* Pulse Dot */
.pulse-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a3e635;
    box-shadow: 0 0 8px #a3e635;
    animation: statusPulse 1.8s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Hero Main Title */
.hero-showcase-section .prop-main-title {
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
    text-transform: uppercase !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
}

/* Property Description directly below Title */
.prop-hero-description {
    margin-bottom: 22px;
    line-height: 1.65;
    font-size: 1.05rem;
    color: #e2e8f0;
    max-width: 960px;
}

.prop-hero-description p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #e2e8f0;
}

.prop-hero-description .highlight-keyword {
    color: #60a5fa;
    font-weight: 700;
}

[data-theme="light"] .prop-hero-description,
[data-theme="light"] .prop-hero-description p {
    color: #334155 !important;
}

[data-theme="light"] .prop-hero-description .highlight-keyword {
    color: var(--primary-color, #2563eb) !important;
    font-weight: 800;
}

/* Red Stats Card / Hero Stats Card */
.red-stats-card,
.hero-stats-card {
    background: linear-gradient(140deg, rgba(10, 15, 29, 0.9) 0%, rgba(20, 27, 45, 0.8) 50%, rgba(10, 15, 29, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    color: white !important;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255,255,255,0.06) inset !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Subtle animated glow background */
.red-stats-card::before,
.hero-stats-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(121, 177, 0, 0.14) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(251, 146, 60, 0.14) 0%, transparent 60%);
    pointer-events: none;
}

.red-stats-card .stat-item,
.hero-stats-card .stat-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 1.6rem 2rem !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    cursor: default !important;
}

.red-stats-card .stat-item:hover,
.hero-stats-card .stat-item:hover {
    background: rgba(255, 255, 255, 0.035) !important;
}

/* Vertical divider between items */
.red-stats-card .stat-item + .stat-item::before,
.hero-stats-card .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25), transparent);
}

/* Header inside stat item */
.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stat-icon-badge {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.stat-icon-badge.area {
    background: rgba(163, 230, 53, 0.18);
    color: #a3e635;
    border: 1px solid rgba(163, 230, 53, 0.35);
}

.stat-icon-badge.price {
    background: rgba(251, 146, 60, 0.18);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.35);
}

.red-stats-card .stat-label,
.hero-stats-card .stat-label {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    margin-bottom: 0 !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
}

.red-stats-card .stat-value,
.hero-stats-card .stat-value {
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ÁREA — accent verde-lima */
.red-stats-card .stat-item:nth-child(1) .stat-value b,
.hero-stats-card .area-item .stat-value b {
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #a3e635 !important;
    text-shadow:
        0 0 25px rgba(163, 230, 53, 0.65),
        0 0 50px rgba(163, 230, 53, 0.3) !important;
    letter-spacing: -1.5px !important;
}

.red-stats-card .stat-item:nth-child(1) .stat-currency,
.hero-stats-card .area-item .stat-currency {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #d9f99d !important;
}

/* PRECIO — accent naranja dorado */
.red-stats-card .stat-item:nth-child(2) .stat-value b,
.hero-stats-card .price-item .stat-value b {
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    color: #fb923c !important;
    text-shadow:
        0 0 25px rgba(251, 146, 60, 0.7),
        0 0 50px rgba(251, 146, 60, 0.35) !important;
    letter-spacing: -1.5px !important;
}

.red-stats-card .stat-item:nth-child(2) .stat-currency,
.hero-stats-card .price-item .stat-currency {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    color: #fbbf24 !important;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.7) !important;
}

.red-stats-card .stat-value b {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.red-stats-card .stat-value small,
.hero-stats-card .stat-value small {
    font-size: 0.92rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 600 !important;
    align-self: flex-end !important;
    padding-bottom: 5px !important;
}

/* Mini Tags inside stats */
.stat-mini-pill {
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #94a3b8);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stat-mini-pill.price-pill {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.3);
    color: #fdba74;
}



/* Responsive */
@media (max-width: 768px) {
    .video-overlay h2 {
        font-size: 1rem;
    }

    .property-header-redesign {
        margin-top: 20px;
        position: relative;
        z-index: 5;
    }

    .media-row {
        flex-direction: row;
        height: 180px;
        gap: 5px;
    }

    .media-col {
        height: 100%;
        width: 50%;
        flex: 1;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
    }

    .icon-circle i {
        font-size: 1rem;
    }

    .icon-circle span {
        font-size: 0.6rem;
    }

    .trigger-overlay p {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .hero-showcase-section {
        padding: 18px 16px !important;
        border-radius: 16px !important;
    }

    .hero-showcase-section .prop-main-title {
        font-size: 1.45rem !important;
        margin-bottom: 16px !important;
    }

    .hero-top-badges {
        gap: 6px;
        margin-bottom: 10px;
    }

    .hero-badge-tag {
        font-size: 0.74rem;
        padding: 4px 10px;
    }

    .red-stats-card,
    .hero-stats-card {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 12px !important;
    }

    .red-stats-card .stat-item,
    .hero-stats-card .stat-item {
        flex: 1 !important;
        padding: 1.1rem 0.6rem !important;
    }

    .red-stats-card .stat-item + .stat-item::before,
    .hero-stats-card .stat-item + .stat-item::before {
        top: 15% !important;
        height: 70% !important;
    }

    .red-stats-card .stat-label,
    .hero-stats-card .stat-label {
        font-size: 0.58rem !important;
        margin-bottom: 0 !important;
        letter-spacing: 1px !important;
    }

    .stat-header {
        gap: 5px;
        margin-bottom: 6px;
    }

    .stat-icon-badge {
        width: 20px;
        height: 20px;
        font-size: 0.72rem;
    }

    .red-stats-card .stat-value,
    .hero-stats-card .stat-value {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
        justify-content: center !important;
        align-items: baseline !important;
    }

    .red-stats-card .stat-item:nth-child(1) .stat-value b,
    .red-stats-card .stat-item:nth-child(2) .stat-value b,
    .hero-stats-card .area-item .stat-value b,
    .hero-stats-card .price-item .stat-value b {
        font-size: 1.85rem !important;
        letter-spacing: -0.5px !important;
    }

    .red-stats-card .stat-value b,
    .hero-stats-card .stat-value b {
        font-size: 1.85rem !important;
    }

    .red-stats-card .stat-item:nth-child(1) .stat-currency,
    .hero-stats-card .area-item .stat-currency {
        font-size: 0.95rem !important;
    }

    .red-stats-card .stat-item:nth-child(2) .stat-currency,
    .hero-stats-card .price-item .stat-currency {
        font-size: 1.15rem !important;
    }

    .red-stats-card .stat-value small,
    .hero-stats-card .stat-value small {
        font-size: 0.72rem !important;
        width: 100% !important;
        text-align: center !important;
        padding-bottom: 0 !important;
    }

    .stat-mini-pill {
        font-size: 0.65rem;
        padding: 2px 7px;
        margin-top: 6px;
    }
}

/* Premium Zoom Controls Bar styles */
.zoom-controls-bar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300005;
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    align-items: center;
}

.zoom-controls-bar.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 15px);
}

.zoom-btn {
    background: none;
    border: none;
    color: #f8fafc;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: var(--primary-color, #79b100);
    color: #fff;
    transform: scale(1.1);
}

.zoom-btn.zoom-rotate:hover {
    background: #0284c7;
    color: #fff;
}

.zoom-btn.zoom-reset:hover {
    background: #475569;
    color: #fff;
}

.zoom-btn:active {
    transform: scale(0.95);
}

/* Zoom interactive styling */
.zoomable-img {
    transition: transform 0.1s ease-out;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    cursor: zoom-in;
}

/* ============================================================
   CENTER ADVISOR / PHONE OVERLAY (CON FOTO DEL USUARIO)
   ============================================================ */
.phone-center-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300010; /* Above pannellum and controls */
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: auto;
    animation: fadeInOverlay 0.25s ease;
}

.phone-center-overlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.phone-advisor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px 36px 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    width: 90%;
    max-width: 440px;
    box-sizing: border-box;
    animation: zoomInPopup 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.advisor-card-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.advisor-card-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #f87171;
    color: #ffffff;
    transform: scale(1.1);
}

/* Avatar with Online/Verified Badge */
.advisor-avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
}

.advisor-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    background: #1e293b;
}

.advisor-status-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2.5px solid #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

/* Name and Role */
.advisor-name {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.advisor-role {
    color: #60a5fa;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

/* Action Phone / WhatsApp Pill (Color Oficial WhatsApp #25D366) */
.advisor-phone-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 18px;
    cursor: pointer;
}

.advisor-phone-pill:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.65);
    border-color: #ffffff;
    background: linear-gradient(135deg, #28e06c 0%, #16a08f 100%);
    filter: brightness(1.06);
}

.phone-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff;
}

/* CTA Message */
.advisor-cta-text {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    position: relative;
    width: 100%;
}

.advisor-quote-icon {
    color: #60a5fa;
    font-size: 0.85rem;
    margin-right: 6px;
    opacity: 0.8;
}

@keyframes zoomInPopup {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsiveness for Advisor Card Overlay */
@media (max-width: 768px) {
    .phone-advisor-card {
        padding: 24px 20px 20px;
        border-radius: 20px;
        max-width: 92%;
    }
    .advisor-avatar-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    .advisor-name {
        font-size: 1.25rem;
    }
    .advisor-role {
        font-size: 0.85rem;
        padding: 3px 12px;
        margin-bottom: 14px;
    }
    .advisor-phone-pill {
        font-size: 1.15rem;
        padding: 10px 20px;
        gap: 10px;
    }
    .phone-pill-icon {
        width: 30px;
        height: 30px;
        font-size: 1.05rem;
    }
    .advisor-cta-text {
        font-size: 0.88rem;
        padding-top: 12px;
    }
}

/* ============================================================
   LIGHT MODE ENHANCEMENTS FOR PROPERTY DETAIL / HERO / SPECS
   ============================================================ */
[data-theme="light"] .hero-showcase-section {
    background: linear-gradient(145deg, #ffffff 0%, var(--bg-hover) 100%) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .hero-showcase-section::after {
    background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb, 255, 152, 0), 0.08) 0%, transparent 45%) !important;
}

[data-theme="light"] .hero-showcase-section .prop-main-title {
    color: var(--text-heading) !important;
    text-shadow: none !important;
    text-align: center;
}

[data-theme="light"] .hero-badge-tag.location {
    background: var(--bg-darker) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .hero-stats-card,
[data-theme="light"] .red-stats-card {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .hero-stats-card .stat-item:hover,
[data-theme="light"] .red-stats-card .stat-item:hover {
    background: var(--bg-hover) !important;
}

[data-theme="light"] .red-stats-card .stat-item + .stat-item::before,
[data-theme="light"] .hero-stats-card .stat-item + .stat-item::before {
    background: var(--border-color) !important;
}

[data-theme="light"] .red-stats-card .stat-label,
[data-theme="light"] .hero-stats-card .stat-label {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .red-stats-card .stat-item:nth-child(1) .stat-value b,
[data-theme="light"] .hero-stats-card .area-item .stat-value b {
    color: #16a34a !important;
    text-shadow: none !important;
}

[data-theme="light"] .red-stats-card .stat-item:nth-child(1) .stat-currency,
[data-theme="light"] .hero-stats-card .area-item .stat-currency {
    color: #15803d !important;
}

[data-theme="light"] .red-stats-card .stat-item:nth-child(2) .stat-value b,
[data-theme="light"] .hero-stats-card .price-item .stat-value b {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

[data-theme="light"] .red-stats-card .stat-item:nth-child(2) .stat-currency,
[data-theme="light"] .hero-stats-card .price-item .stat-currency {
    color: var(--primary-dark) !important;
    text-shadow: none !important;
}

[data-theme="light"] .red-stats-card .stat-value small,
[data-theme="light"] .hero-stats-card .stat-value small {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .quick-actions-bar {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .detail-card-unified {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .tab-btn-pill {
    background: var(--bg-darker) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="light"] .tab-btn-pill.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}