/* tour-timeline.css - Virtual Tour & Timeline Sections */

/* 360° Virtual Room Tour */
.virtual-tour-section {
    padding: 100px 40px;
    background: var(--warm-white);
}

.tour-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.tour-viewer {
    background: white;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 30px 80px rgba(124, 132, 113, 0.15);
    position: relative;
    overflow: hidden;
}

/* Google 360° Tour Integration - Fixed */
.google-tour-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(124, 132, 113, 0.1);
}

.tour-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease;
}

.tour-link:hover {
    transform: scale(1.02);
}

.tour-preview {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.tour-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-link:hover .tour-preview-image {
    transform: scale(1.05);
}

.tour-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.tour-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    color: var(--olive);
}

.tour-link:hover .tour-play-button {
    transform: scale(1.1);
    background: var(--olive);
    color: white;
}

.tour-360-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--sage);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.tour-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    pointer-events: none;
}

.tour-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(124, 132, 113, 0.15);
    border: 1px solid rgba(168, 183, 158, 0.3);
}

.tour-icon {
    font-weight: bold;
    color: var(--olive);
    font-size: 1.1rem;
}

.tour-text {
    color: var(--deep-olive);
    font-weight: 600;
    font-size: 0.9rem;
}

.tour-instructions {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-align: center;
}

.tour-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    cursor: grab;
}

.tour-image-container:active {
    cursor: grabbing;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.hotspot-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--sage);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s ease infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hotspot-dot {
    position: relative;
    width: 30px;
    height: 30px;
    background: var(--olive);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.hotspot:hover .hotspot-dot {
    transform: scale(1.2);
    background: var(--deep-olive);
}

.hotspot-tooltip {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 50px;
}

.tour-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.95);
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.tour-control {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--olive);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tour-control:hover {
    background: var(--deep-olive);
    transform: scale(1.1);
}

.tour-rooms {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(124, 132, 113, 0.1);
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tour-rooms-header {
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.tour-rooms h3 {
    color: var(--deep-olive);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.tour-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
    margin: 0 auto;
}

.room-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.tour-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.tour-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--cream);
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tour-info-item:hover {
    background: var(--light-sage);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--deep-olive);
    font-size: 0.9rem;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.info-content p {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

.room-btn {
    background: var(--cream);
    border: 2px solid var(--soft-gray);
    border-radius: 15px;
    padding: 18px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.room-btn:hover {
    border-color: var(--sage);
    transform: translateY(-3px);
}

.room-btn.active {
    background: var(--sage);
    border-color: var(--olive);
    color: white;
}

.room-icon {
    font-size: 1.8rem;
}

.tour-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tour-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--cream);
    border-radius: 12px;
}

.tour-feature .feature-icon {
    font-size: 1.2rem;
}

/* Timeline Section */
.timeline-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--sage) 0%, var(--olive) 50%, var(--sage) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--warm-white);
    border: 3px solid var(--olive);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    background: var(--olive);
}

.timeline-content {
    width: 45%;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(124, 132, 113, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 55%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 55%;
}

.timeline-item::before {
    content: attr(data-time);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.timeline-item:nth-child(odd)::before {
    right: 55%;
    margin-right: 30px;
}

.timeline-item:nth-child(even)::before {
    left: 55%;
    margin-left: 30px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(124, 132, 113, 0.15);
}

.timeline-content h3 {
    color: var(--deep-olive);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.timeline-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Mobile Responsive Styles for Virtual Tour Section */
@media (max-width: 768px) {
    .virtual-tour-section {
        padding: 60px 20px;
    }
    
    .tour-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }
    
    .tour-viewer {
        order: 1;
        padding: 15px;
        border-radius: 20px;
    }
    
    .google-tour-container {
        height: 300px;
    }
    
    .tour-rooms {
        order: 2;
        height: auto;
        padding: 25px 20px;
        justify-content: flex-start;
        gap: 20px;
    }
    
    .tour-rooms-header {
        margin-bottom: 20px;
    }
    
    .tour-rooms h3 {
        font-size: 1.2rem;
    }
    
    .tour-description {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    .room-selector {
        max-width: 100%;
        gap: 12px;
    }
    
    .room-btn {
        padding: 15px 10px;
        font-size: 0.85rem;
    }
    
    .room-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .virtual-tour-section {
        padding: 40px 15px;
    }
    
    .tour-viewer {
        padding: 10px;
        border-radius: 15px;
    }
    
    .google-tour-container {
        height: 250px;
        border-radius: 15px;
    }
    
    .tour-rooms {
        padding: 20px 15px;
    }
    
    .tour-rooms h3 {
        font-size: 1.1rem;
    }
    
    .tour-description {
        font-size: 0.8rem;
    }
    
    .room-selector {
        gap: 10px;
    }
    
    .room-btn {
        padding: 12px 8px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .room-icon {
        font-size: 1.3rem;
    }
}