/* ============= GUIDED TOUR STYLES ============= */

/* Spotlight overlay */
.tour-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9998; pointer-events: none;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0; transition: opacity 0.3s ease;
}
.tour-overlay.active { opacity: 1; }

.tour-spotlight {
    position: absolute;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 9999;
}

/* Tooltip */
.tour-tooltip {
    position: fixed; z-index: 10001;
    width: 380px; max-width: 90vw;
    background: var(--glass-bg, rgba(255,255,255,0.95));
    backdrop-filter: blur(20px);
    border: var(--glass-border, 1px solid rgba(255,255,255,0.5));
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 28px 24px 20px;
    opacity: 0; transform: translateY(12px);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    font-family: var(--font-ui, 'Inter', sans-serif);
    color: var(--col-ink, #4A3B32);
    direction: ltr;
}
[dir="rtl"] .tour-tooltip { direction: rtl; font-family: 'Noto Kufi Arabic', 'Amiri', sans-serif; }

.tour-tooltip.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.tour-tooltip-arrow {
    position: absolute; width: 0; height: 0;
    border: 10px solid transparent;
    z-index: 10002;
}

.tour-step-counter {
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--col-gold, #C5A059);
    font-weight: 700; margin-bottom: 8px;
}
[dir="rtl"] .tour-step-counter { letter-spacing: 0; }

.tour-title {
    font-family: var(--font-display, 'Amiri', serif);
    font-size: 1.4rem; color: var(--col-cobalt, #303083);
    margin-bottom: 8px; line-height: 1.2;
}
[dir="rtl"] .tour-title { font-family: 'Amiri', serif; }

.tour-description {
    font-size: 0.9rem; line-height: 1.6;
    color: var(--col-ink, #4A3B32);
    margin-bottom: 20px;
}

.tour-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
}
.tour-dots {
    display: flex; gap: 6px; flex-grow: 1; justify-content: center;
}
.tour-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(128,128,128,0.25);
    transition: all 0.3s ease;
}
.tour-dot.active { background: var(--col-cobalt, #303083); transform: scale(1.3); }
.tour-dot.completed { background: var(--col-gold, #C5A059); }

.tour-btn {
    padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(128,128,128,0.2);
    background: transparent; color: var(--col-ink, #4A3B32);
    font-family: inherit; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease;
    white-space: nowrap;
}
.tour-btn:hover { background: rgba(128,128,128,0.1); }
.tour-btn-primary {
    background: var(--col-cobalt, #303083); color: #fff;
    border-color: var(--col-cobalt, #303083);
}
.tour-btn-primary:hover { background: var(--col-cobalt, #303083); opacity: 0.9; }
.tour-btn-skip {
    color: var(--text-muted, #666); font-weight: 400; font-size: 0.8rem;
    border: none; padding: 8px 4px;
}

.tour-reopen-btn {
    position: fixed; bottom: 30px; inset-inline-end: 24px;
    z-index: 10000; width: 44px; height: 44px;
    border-radius: 50%; border: var(--glass-border, 1px solid rgba(255,255,255,0.5));
    background: var(--glass-bg, rgba(255,255,255,0.82));
    backdrop-filter: blur(20px); box-shadow: var(--shadow-soft, 0 12px 40px rgba(31,38,135,0.15));
    color: var(--col-cobalt, #303083); font-size: 1.2rem; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.tour-reopen-btn:hover { transform: scale(1.1); background: var(--col-cobalt, #303083); color: #fff; }
.tour-reopen-btn.visible { display: flex; }

@media (max-width: 600px) {
    .tour-tooltip { width: 92vw; padding: 20px 16px 16px; }
    .tour-title { font-size: 1.2rem; }
    .tour-reopen-btn { bottom: 110px; inset-inline-end: 16px; }
}