/* ==================== SITE GUIDE / TOUR ==================== */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000;
    pointer-events: auto;
    display: none;
}

.tour-highlight {
    position: fixed;
    border-radius: 8px;
    z-index: 15001;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
    pointer-events: none;
    transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
    display: none;
}

.tour-target-active {
    position: relative !important;
    z-index: 15001 !important;
    pointer-events: auto !important;
}

.tour-tooltip {
    position: fixed;
    z-index: 15002;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    max-width: 340px;
    min-width: 280px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
    display: none;
    animation: tourTooltipIn 0.3s ease-out;
}

@keyframes tourTooltipIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tour-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
}
.tour-tooltip-arrow.arrow-left {
    left: -8px;
    top: 20px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #333;
}
.tour-tooltip-arrow.arrow-right {
    right: -8px;
    top: 20px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #333;
}
.tour-tooltip-arrow.arrow-top {
    top: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #333;
}
.tour-tooltip-arrow.arrow-bottom {
    bottom: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #333;
}

.tour-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.tour-tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.tour-tooltip-step {
    font-size: 12px;
    color: #caa999;
    font-weight: 500;
}

.tour-tooltip-body {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tour-progress {
    height: 3px;
    background: #333;
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}
.tour-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #caa999, #e0c4b0);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.tour-tooltip-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tour-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.tour-btn-skip {
    background: none;
    color: #666;
    padding: 8px 12px;
}
.tour-btn-skip:hover { color: #999; }
.tour-btn-back {
    background: #2a2a2a;
    color: #e3e3e3;
    border: 1px solid #444;
}
.tour-btn-back:hover { background: #333; }
.tour-btn-next {
    background: linear-gradient(135deg, #caa999, #b8956e);
    color: #000;
    font-weight: 600;
}
.tour-btn-next:hover { background: linear-gradient(135deg, #d4b8a8, #c4a07a); }

/* Welcome modal */
.tour-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.tour-welcome-modal.hidden { display: none; }

.tour-welcome-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}
.tour-welcome-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}
.tour-welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.tour-welcome-text {
    font-size: 15px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 28px;
}
.tour-welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tour-welcome-start {
    background: linear-gradient(135deg, #caa999, #b8956e);
    color: #000;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.tour-welcome-start:hover {
    background: linear-gradient(135deg, #d4b8a8, #c4a07a);
    transform: translateY(-1px);
}
.tour-welcome-skip {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 8px;
}
.tour-welcome-skip:hover { color: #999; }

@media (max-width: 768px) {
    .tour-tooltip {
        max-width: 260px;
        min-width: 220px;
        padding: 16px;
    }
    .tour-tooltip-title { font-size: 14px; }
    .tour-tooltip-body { font-size: 13px; }
    .tour-welcome-content {
        padding: 28px 20px;
        margin: 0 16px;
    }
    .tour-welcome-title { font-size: 20px; }
}
