/* =========================================
   Pacifico Living — Virtual Tour Styles
   ========================================= */

/* --- SHARED FONTS --- */
/* Fonts loaded via wp_enqueue_style in the plugin */

/* =========================================
   VISIBILITY CONTROLLER
   ========================================= */
@media (min-width: 981px) {
    .vt-mobile-body { display: none !important; }
}
@media (max-width: 980px) {
    .vt-desktop-body { display: none !important; }
}

/* =========================================
   DESKTOP STYLES
   ========================================= */
.vt-desktop-body {
    font-family: 'Cormorant Garamond', sans-serif;
    background: transparent;
    overflow: visible;
    position: relative;
    padding-bottom: 80px;
    margin-bottom: 80px;
    width: 100%;
    box-sizing: border-box;
    display: block;
}
.vt-desktop-body *,
.vt-desktop-body *::before,
.vt-desktop-body *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header */
.vt-desktop-title-wrapper {
    text-align: center;
    padding: 40px 0;
    overflow: hidden;
    width: 100%;
}
.vt-desktop-animated-title {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: clamp(36px, 10vw, 60px);
    font-weight: 700;
    color: #4a5d4a;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 1.5vw, 8px);
    position: relative;
    display: inline-block;
    opacity: 0;
    animation: vt-desktop-fadeInUp 0.8s 0.2s ease-out forwards;
    line-height: 1.2;
}
.vt-desktop-title-divider {
    width: 0;
    height: 1px;
    background: #c59e6c;
    margin: 25px auto 0 auto;
    animation: vt-desktop-expand-divider 1s 0.8s ease-out forwards;
}

/* Scroll Indicator */
.vt-desktop-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 40px;
    transition: opacity 0.4s ease;
}
.vt-desktop-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}
.vt-desktop-arrow {
    width: 18px;
    height: 18px;
    border: solid #c59e6c;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: vt-desktop-pulse-arrow 2s infinite;
}
.vt-desktop-scroll-indicator .vt-desktop-arrow:nth-child(2) { animation-delay: 0.3s; }
.vt-desktop-scroll-indicator .vt-desktop-arrow:nth-child(3) { animation-delay: 0.6s; }

/* Layout */
.vt-desktop-container {
    display: flex;
    height: 85vh;
    min-height: 600px;
    position: relative;
    width: 100%;
}

/* Tabs */
.vt-desktop-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    background: transparent;
    padding: 20px 10px 10px 10px;
    margin-bottom: -20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}
.vt-desktop-nav-tab {
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1;
    color: #4a3728;
}
.vt-desktop-nav-tab.active {
    background: #c59e6c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 158, 108, 0.4);
}
.vt-desktop-nav-tab:hover:not(.active) {
    background: rgba(74, 55, 40, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Main View */
.vt-desktop-main-view {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 30px 30px 30px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.vt-desktop-image-container {
    position: relative;
    width: 100%;
    max-width: calc(100% - 40px);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vt-desktop-room-image {
    position: absolute;
    width: 100%;
    max-width: 95%;
    height: 100%;
    max-height: 95%;
    object-fit: contain;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.15));
    pointer-events: none;
}
.vt-desktop-room-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Floor Plan Panel */
.vt-desktop-floor-plan-panel {
    width: 520px;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 50px;
    height: 100%;
}
.vt-desktop-floor-plan-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: min(650px, 80%);
    background: rgba(0, 0, 0, 0.1);
}
.vt-desktop-floor-plan-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    max-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vt-desktop-floor-plan {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.vt-desktop-floor-plan.active {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Camera Icons */
.vt-desktop-camera-icons-group {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.vt-desktop-camera-icons-group.active {
    display: block;
    animation: vt-desktop-fadeInButtons 0.3s 0.7s ease forwards;
}
.vt-desktop-camera-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(197, 158, 108, 0.3));
    z-index: 20;
}
.vt-desktop-camera-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 12px rgba(197, 158, 108, 0.4));
}
.vt-desktop-camera-icon.active {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 12px rgba(197, 158, 108, 0.5));
}
.vt-desktop-camera-icon img { width: 100%; height: 100%; display: block; }

/* Desktop Camera Positions */
.vt-desktop-monolocale-cam1 { bottom: 70%; left: 47%; }
.vt-desktop-monolocale-cam2 { top: 84%; right: 72%; }
.vt-desktop-monolocale-cam3 { bottom: 42%; left: 51%; }
.vt-desktop-monolocale-cam4 { top: 55%; left: 73%; }
.vt-desktop-bilocale-cam1 { top: 39%; left: 48%; }
.vt-desktop-bilocale-cam2 { top: 70%; right: 43%; }
.vt-desktop-bilocale-cam3 { bottom: 24%; left: 74%; }
.vt-desktop-bilocale-cam4 { top: 50%; left: 25%; }
.vt-desktop-trilocale-cam1 { top: 50%; left: 23%; }
.vt-desktop-trilocale-cam2 { top: 52%; right: 37%; }
.vt-desktop-trilocale-cam3 { top: 70%; left: 55%; }
.vt-desktop-trilocale-cam4 { bottom: 55%; right: 37%; }
.vt-desktop-quadrilocale-cam1 { top: 85%; left: 50%; }
.vt-desktop-quadrilocale-cam2 { top: 27%; left: 50%; }
.vt-desktop-quadrilocale-cam3 { top: 69%; left: 50%; }
.vt-desktop-quadrilocale-cam4 { top: 42%; left: 50%; }
.vt-desktop-quadrilocale-cam5 { top: 50%; left: 17%; }

/* Desktop Animations */
@keyframes vt-desktop-fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vt-desktop-fadeInButtons { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-desktop-expand-divider { from { width: 0; } to { width: 100px; } }
@keyframes vt-desktop-pulse-arrow { 0% { opacity: 0; transform: rotate(45deg) translateY(-10px); } 50% { opacity: 1; } 100% { opacity: 0; transform: rotate(45deg) translateY(10px); } }


/* =========================================
   MOBILE STYLES
   ========================================= */
.vt-mobile-body {
    --vt-mobile-bg-color: #f5f3ef;
    --vt-mobile-container-bg: #ffffff;
    --vt-mobile-accent-color: #e8d9c4;
    --vt-mobile-accent-hover: #d1bfa8;
    --vt-mobile-text-color: #4a5d4a;
    --vt-mobile-placeholder-bg: #e9e4de;
    --vt-mobile-gold-color: #C59E6C;
    --vt-mobile-divider-color: #e0e0e0;
    font-family: 'Cormorant Garamond', sans-serif;
    background: transparent;
    overflow: visible;
    position: relative;
    padding-bottom: 0px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
    display: block;
}
.vt-mobile-body *,
.vt-mobile-body *::before,
.vt-mobile-body *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Mobile Header */
.vt-mobile-title-wrapper {
    text-align: center;
    padding: 20px 0 10px 0;
    overflow: hidden;
    width: 100%;
}
.vt-mobile-animated-title {
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: clamp(36px, 10vw, 60px);
    font-weight: 700;
    color: #4a5d4a;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 1.5vw, 8px);
    position: relative;
    display: inline-block;
    opacity: 0;
    line-height: 1.1;
    margin-bottom: 0;
}
.vt-mobile-body.start-animation .vt-mobile-animated-title {
    animation: vt-mobile-fadeInUp 0.8s 0.2s ease-out forwards;
}
.vt-mobile-title-divider {
    width: 0;
    height: 1px;
    background: #c59e6c;
    margin: 10px auto 0 auto;
}
.vt-mobile-body.start-animation .vt-mobile-title-divider {
    animation: vt-mobile-expand-divider 1s 0.8s ease-out forwards;
}

/* Mobile Arrows */
.vt-mobile-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
    transition: opacity 0.4s ease;
    width: 100%;
}
.vt-mobile-scroll-indicator.hidden { opacity: 0; pointer-events: none; }
.vt-mobile-arrow {
    width: 18px;
    height: 18px;
    border: solid #c59e6c;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: vt-mobile-pulse-arrow 2s infinite;
}
.vt-mobile-scroll-indicator .vt-mobile-arrow:nth-child(2) { animation-delay: 0.3s; }
.vt-mobile-scroll-indicator .vt-mobile-arrow:nth-child(3) { animation-delay: 0.6s; }

/* Mobile Container */
.vt-mobile-container {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    padding: 1rem 2rem 3rem 2rem;
    padding-bottom: 0px !important;
    gap: 0;
    border-radius: 0;
    background-color: var(--vt-mobile-container-bg);
}

/* Mobile Dropdown */
.vt-mobile-dropdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px auto 0 auto;
    position: relative;
    z-index: 2000;
    font-family: 'Urbanist', sans-serif;
    height: 50px;
}
.vt-mobile-dropdown-button {
    width: 12px;
    height: 12px;
    padding: 0;
    background-color: #E8D9C4;
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 158, 108, 0.3);
    box-sizing: border-box;
    overflow: hidden;
    opacity: 0;
}
.vt-mobile-body.start-animation .vt-mobile-dropdown-button {
    animation: vt-mobile-intro-sequence 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: 0.2s;
}
.vt-mobile-dropdown-button:hover { background-color: #b58e5c; }
.vt-mobile-dropdown-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 260px;
    padding: 0 24px;
    opacity: 0;
    white-space: nowrap;
}
.vt-mobile-body.start-animation .vt-mobile-dropdown-content-wrapper {
    animation: vt-mobile-text-fade-in 0.5s ease forwards;
    animation-delay: 1.8s;
}
.vt-mobile-dropdown-arrow { font-size: 10px; margin-left: 10px; }
.vt-mobile-dropdown-list {
    display: none;
    position: absolute;
    top: 115%;
    width: 260px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 2001;
    border: 1px solid rgba(0,0,0,0.05);
    box-sizing: border-box;
}
.vt-mobile-dropdown-list.open {
    display: block;
    animation: vt-mobile-dropdown-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.vt-mobile-dropdown-item {
    padding: 14px 24px;
    border-bottom: 1px solid #f5f5f5;
    color: #4a3728;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    background: #fff;
    box-sizing: border-box;
}
.vt-mobile-dropdown-item:last-child { border-bottom: none; }
.vt-mobile-dropdown-item:hover { background: #fcf9f4; color: #c59e6c; }

/* Mobile Image Viewer */
.vt-mobile-main-view {
    height: 50vh;
    min-height: 450px;
    padding: 0;
    width: 100%;
    order: 1;
    margin-bottom: 0;
    display: block;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}
.vt-mobile-image-container {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    background-color: #F9F6F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.vt-mobile-room-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    display: none;
}
.vt-mobile-room-image.active { display: block !important; z-index: 2; }

/* Mobile Divider */
.vt-mobile-divider {
    display: block;
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, rgba(224,224,224,0) 0%, rgba(224,224,224,1) 50%, rgba(224,224,224,0) 100%);
    margin: 30px auto 0 auto;
    order: 2;
    opacity: 0;
}
.vt-mobile-body.start-animation .vt-mobile-divider {
    animation: vt-mobile-fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

/* Mobile Floor Plan */
.vt-mobile-floor-plan-panel {
    width: 100%;
    height: 320px;
    padding: 0;
    border: none;
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -10px;
    background: transparent;
    overflow: visible;
}
.vt-mobile-floor-plan-container {
    width: 450px;
    height: 650px;
    max-width: 450px;
    max-height: 650px;
    transform: rotate(90deg) scale(0.5);
    transform-origin: center center;
    position: relative;
    opacity: 0;
}
.vt-mobile-body.start-animation .vt-mobile-floor-plan-container {
    animation: vt-mobile-fadeIn 1s ease forwards;
    animation-delay: 0.8s;
}
.vt-mobile-floor-plan {
    transform: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}
.vt-mobile-floor-plan.active { display: block !important; }

/* Mobile Cameras */
.vt-mobile-camera-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0;
}
.vt-mobile-body.start-animation .vt-mobile-camera-icon {
    animation: vt-mobile-fadeIn 0.8s ease forwards;
    animation-delay: 1.5s;
}
.vt-mobile-camera-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: rgba(232, 217, 196, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.vt-mobile-camera-icon:hover { transform: rotate(-90deg) scale(1.1); }
.vt-mobile-camera-icon.active { transform: rotate(-90deg) scale(1.15); }
.vt-mobile-camera-icon.active::before { opacity: 1; }
.vt-mobile-camera-icon img { width: 100%; height: 100%; display: block; }

/* Mobile Camera Positions */
.vt-mobile-monolocale-cam1 { bottom: 70%; left: 47%; }
.vt-mobile-monolocale-cam2 { top: 84%; right: 72%; }
.vt-mobile-monolocale-cam3 { bottom: 42%; left: 51%; }
.vt-mobile-monolocale-cam4 { top: 55%; left: 73%; }
.vt-mobile-bilocale-cam1 { top: 39%; left: 48%; }
.vt-mobile-bilocale-cam2 { top: 70%; right: 43%; }
.vt-mobile-bilocale-cam3 { bottom: 24%; left: 74%; }
.vt-mobile-bilocale-cam4 { top: 50%; left: 25%; }
.vt-mobile-trilocale-cam1 { top: 50%; left: 23%; }
.vt-mobile-trilocale-cam2 { top: 52%; right: 37%; }
.vt-mobile-trilocale-cam3 { top: 70%; left: 55%; }
.vt-mobile-trilocale-cam4 { bottom: 55%; right: 37%; }
.vt-mobile-quadrilocale-cam1 { top: 85%; left: 50%; }
.vt-mobile-quadrilocale-cam2 { top: 27%; left: 50%; }
.vt-mobile-quadrilocale-cam3 { top: 69%; left: 50%; }
.vt-mobile-quadrilocale-cam4 { top: 42%; left: 50%; }
.vt-mobile-quadrilocale-cam5 { top: 50%; left: 17%; }
.vt-mobile-camera-icons-group { display: none; }
.vt-mobile-camera-icons-group.active { display: block; }

/* Mobile Animations */
@keyframes vt-mobile-pulse-arrow { 0% { opacity: 0; transform: rotate(45deg) translateY(-10px); } 50% { opacity: 1; } 100% { opacity: 0; transform: rotate(45deg) translateY(10px); } }
@keyframes vt-mobile-intro-sequence {
    0% { opacity: 0; width: 12px; height: 12px; border-radius: 999px; background-color: #E8D9C4; }
    20% { opacity: 1; width: 12px; height: 12px; border-radius: 999px; background-color: #E8D9C4; }
    40% { width: 50px; height: 50px; border-radius: 999px; background-color: #C59E6C; opacity: 1; }
    60% { width: 50px; height: 50px; border-radius: 999px; background-color: #C59E6C; opacity: 1; }
    100% { width: 260px; height: 50px; border-radius: 999px; background-color: #C59E6C; opacity: 1; }
}
@keyframes vt-mobile-text-fade-in { 0% { opacity: 0; transform: translateY(2px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes vt-mobile-dropdown-enter { 0% { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.95); } 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes vt-mobile-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-mobile-fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vt-mobile-expand-divider { from { width: 0; } to { width: 100px; } }
