/* ==================== RESET & GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c9a961;
    --dark-bg: #2c3e50;
    --text-light: #ffffff;
    --overlay-bg: rgba(0, 0, 0, 0.9);
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px;
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    height: 50px;
    width: auto;
}

.header-title {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.nav-btn .icon {
    font-size: 1.2rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: 0.3s;
}

/* ==================== MAIN TOUR 360 ==================== */
.tour-main {
    flex: 1;
    position: relative;
    margin-top: 0;
    height: 100vh;
}

.tour-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.tour-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-large {
    max-width: 95%;
    width: 1200px;
}

.modal-title {
    color: var(--dark-bg);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.modal-body {
    width: 100%;
}

/* ==================== AERIAL/OVERVIEW IMAGE WITH ZOOM ==================== */
.zoom-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.aerial-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    user-select: none;
}

.aerial-image.zoomed {
    cursor: zoom-out;
}

.zoom-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    pointer-events: none;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== LOCATION IMAGE ==================== */
.location-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.location-image.zoomed {
    cursor: zoom-out;
    transform-origin: center center;
}

/* ==================== SLIDESHOW ==================== */
.slideshow-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.slide {
    display: none;
    position: relative;
    overflow: hidden;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.slide img.zoomed {
    cursor: zoom-out;
    transform-origin: center center;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
    transition: 0.3s;
}

.slide-prev:hover, .slide-next:hover {
    background: rgba(0,0,0,0.9);
}

.slide-prev {
    left: 10px;
}

.slide-next {
    right: 10px;
}

.slide-dots {
    text-align: center;
    padding: 20px 0 10px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bbb;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.dot:hover {
    background: #717171;
}

/* ==================== VIDEO ==================== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade {
    animation: fadeEffect 0.5s;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }

    .header-title {
        font-size: 1rem;
    }

    .header-logo {
        height: 40px;
    }

    .header-right {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }

    .header-right.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        padding: 20px;
        max-width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .slide-prev, .slide-next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
}