/**
 * Viamore - 3D Sanal Tur Sayfası
 * Marka: --accent-gold, --primary-color (kolay uyarlanabilir)
 */
:root {
    --tour-bg: #0a0a0a;
    --tour-gold: #c9a961;
    --tour-gold-light: #d4af37;
    --tour-gold-dark: #b8956a;
    --tour-text: #fafafa;
    --tour-text-muted: rgba(255, 255, 255, 0.7);
    --tour-font-heading: 'Playfair Display', serif;
    --tour-font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tour-page {
    font-family: var(--tour-font-body);
    background: var(--tour-bg);
    color: var(--tour-text);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loader */
.tour-loader {
    position: fixed;
    inset: 0;
    background: var(--tour-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.tour-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tour-loader-inner {
    text-align: center;
    max-width: 320px;
}

.tour-loader-logo {
    margin-bottom: 1.5rem;
}

.tour-loader-logo img {
    max-width: 160px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.tour-loader-text {
    font-family: var(--tour-font-heading);
    font-size: 1.75rem;
    color: var(--tour-gold);
    letter-spacing: 6px;
    font-weight: 300;
}

.tour-loader-label {
    font-size: 0.9rem;
    color: var(--tour-text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.tour-loader-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.tour-loader-progress {
    height: 100%;
    width: 0%;
    background: var(--tour-gold);
    transition: width 0.2s ease;
}

/* Header */
.tour-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
    z-index: 100;
    pointer-events: none;
}

.tour-header > * {
    pointer-events: auto;
}

.tour-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.tour-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.tour-logo-text {
    font-family: var(--tour-font-heading);
    font-size: 1.25rem;
    letter-spacing: 4px;
    color: var(--tour-gold);
    font-weight: 300;
}

.tour-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--tour-font-heading);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.95);
}

.tour-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tour-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-family: var(--tour-font-body);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--tour-text);
    background: transparent;
}

.tour-btn-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tour-btn-icon:hover {
    border-color: var(--tour-gold);
    color: var(--tour-gold);
}

.tour-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.tour-btn-outline:hover {
    border-color: var(--tour-gold);
    color: var(--tour-gold);
}

/* Canvas wrap */
.tour-canvas-wrap {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0;
}

#tour-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hotspots overlay */
.tour-hotspots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tour-hotspots .hotspot {
    position: absolute;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.25);
    border: 2px solid rgba(201, 169, 97, 0.6);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tour-hotspots .hotspot:hover {
    transform: scale(1.15);
    background: rgba(201, 169, 97, 0.4);
    border-color: var(--tour-gold);
}

.tour-hotspots .hotspot::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--tour-gold);
}

/* Tooltip */
.tour-tooltip {
    position: fixed;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    color: var(--tour-text);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--tour-gold);
    pointer-events: none;
    z-index: 200;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: 220px;
}

.tour-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom nav */
.tour-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    z-index: 100;
}

.tour-nav-inner {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.tour-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    font-family: var(--tour-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--tour-text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tour-nav-item:hover {
    color: var(--tour-gold);
    border-color: rgba(201, 169, 97, 0.4);
    background: rgba(201, 169, 97, 0.08);
}

.tour-nav-item.active {
    color: var(--tour-gold);
    border-color: var(--tour-gold);
    background: rgba(201, 169, 97, 0.12);
}

.tour-nav-icon {
    font-size: 1.25rem;
}

.tour-nav-label {
    font-weight: 500;
}

/* Fade overlay for scene transition */
.tour-fade {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tour-fade.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .tour-header {
        padding: 0 1rem;
        height: 56px;
    }

    .tour-title {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .tour-logo img {
        height: 28px;
    }

    .tour-nav-inner {
        gap: 0.35rem;
    }

    .tour-nav-item {
        padding: 0.6rem 0.35rem;
        font-size: 0.7rem;
    }

    .tour-nav-icon {
        font-size: 1.1rem;
    }
}

/* WhatsApp floating button (sanal tur – site tasarımına uyumlu) */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: var(--tour-bg);
    color: #fff;
    border: 2px solid var(--tour-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(201, 169, 97, 0.4);
    border-color: var(--tour-gold-light);
    color: #fff;
}
.whatsapp-float svg {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        border-width: 1.5px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}
