/* ==========================================================================
   Module Circuits & Parcours Thématiques — iimersiv Cartographie
   Design System & Tour Navigation Styles
   ========================================================================== */

/* Tiroir / Panneau des Parcours Thématiques */
.tours-drawer {
    position: fixed;
    top: 16px;
    right: 70px;
    left: auto;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-tours-toggle {
    display: none !important;
}

/* Modal / Tiroir de sélection de parcours */
.tours-panel-body {
    pointer-events: auto;
    width: 380px;
    max-width: calc(100vw - 90px);
    max-height: calc(100vh - 40px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg, 20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    margin-top: 0;
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: tourPanelIn 0.25s ease;
}

.tours-panel-body.open {
    display: flex;
}

@keyframes tourPanelIn {
    from { opacity: 0; transform: translateX(8px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.tours-panel-header {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tours-panel-header h3 {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tours-panel-subtitle {
    font-size: 0.72rem;
    color: #38bdf8;
    font-weight: 600;
    margin-top: 2px;
}

.tours-pedestrian-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(56, 189, 248, 0.08);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding: 10px 16px;
    font-size: 0.74rem;
    color: #cbd5e1;
    line-height: 1.35;
}

.tours-pedestrian-banner .pedestrian-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.tours-pedestrian-banner strong {
    color: #38bdf8;
    display: block;
    margin-bottom: 2px;
}

.tours-panel-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted, #94a3b8);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.tours-panel-close:hover {
    color: #fff;
}

.tours-list-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Carte de parcours */
.tour-card-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md, 14px);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-card-item:hover, .tour-card-item.active {
    background: rgba(56, 189, 248, 0.08);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.tour-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tour-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.tour-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: #38bdf8;
    font-weight: 600;
    margin-bottom: 6px;
}

.tour-mode-tag {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 1px 7px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.active-tour-pedestrian-tag {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid #38bdf8;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tour-card-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted, #94a3b8);
    line-height: 1.4;
}

/* Barre de navigation du parcours actif (au bas de l'écran) */
.active-tour-bar {
    position: absolute;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid #38bdf8;
    border-radius: var(--radius-full, 9999px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.4);
    padding: 8px 18px;
    display: none;
    align-items: center;
    gap: 14px;
    z-index: var(--z-ui-controls, 1000);
    animation: tourBarIn 0.3s ease;
}

@keyframes tourBarIn {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.active-tour-bar.show {
    display: flex;
}

.active-tour-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
}

.active-tour-steps-count {
    font-size: 0.78rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    padding: 2px 8px;
    border-radius: 9999px;
}

.btn-tour-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-tour-nav:hover {
    background: #38bdf8;
    color: #0f172a;
}

.btn-tour-quit {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.btn-tour-quit:hover {
    background: #ef4444;
    color: #fff;
}

/* Marqueurs d'étapes de parcours avec numéro */
.tour-step-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #38bdf8;
    color: #0f172a;
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 12px rgba(56, 189, 248, 0.6);
    transition: transform 0.2s ease;
}

.tour-step-marker:hover, .tour-step-marker.active {
    transform: scale(1.25);
    background: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.8);
}
