/* ============================================================
   TOUR NAVIGATION OVERLAY - iOS-STYLE TOP HEADER + BOTTOM CHAT
   ============================================================ */

/* ============================================================
   TOP HEADER - Tour Navigation Info
   ============================================================ */

.tour-navigation-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
    border-bottom: 1px solid #333333;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    max-height: 80px;
    overflow: hidden;
}

.tour-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tour-waypoint-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.tour-header-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.tour-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tour-stat-label {
    color: #999999;
    font-weight: 500;
}

.tour-stat-value {
    color: #ffffff;
}

.tour-distance {
    color: #2196F3;
    font-weight: 600;
}

.tour-time {
    color: #999999;
}

.tour-header-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tour-header-close:active {
    opacity: 0.7;
}

/* ============================================================
   BOTTOM CHAT BAR - Minimal Input
   ============================================================ */

.chat-bar-bottom {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-top: 1px solid #333333;
    padding: 8px 12px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
}

.chat-input-bottom {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    height: 36px;
}

.chat-input-bottom::placeholder {
    color: #666666;
}

.chat-input-bottom:focus {
    border-color: #2196F3;
}

.chat-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-icon-btn svg {
    width: 20px;
    height: 20px;
}

.chat-icon-btn:active {
    background: #1a1a1a;
}

.send-btn {
    color: #2196F3;
}

.mic-btn {
    color: #999999;
}

.mic-btn.recording {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

/* ============================================================
   MAP VIEW ADJUSTMENTS
   ============================================================ */

.exploreTab.has-nav-active #map {
    padding-top: 80px;
}

/* Adjust map when header is visible */
.map-view {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-view #map {
    width: 100%;
    height: 100%;
    transition: padding-top 0.3s ease;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 480px) {
    .tour-navigation-header {
        padding: 10px 12px;
    }

    .tour-waypoint-name {
        font-size: 14px;
    }

    .tour-header-stats {
        gap: 12px;
        font-size: 11px;
    }

    .tour-header-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }

    .chat-bar-bottom {
        padding: 6px 10px;
        gap: 6px;
    }

    .chat-input-bottom {
        font-size: 13px;
        padding: 6px 12px;
    }

    .chat-icon-btn {
        width: 32px;
        height: 32px;
    }

    .chat-icon-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */

@media (prefers-color-scheme: dark) {
    .tour-navigation-header {
        background: #0a0a0a;
        border-bottom-color: #1a1a1a;
    }

    .chat-bar-bottom {
        background: #1a1a1a;
        border-top-color: #2a2a2a;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes slideDownHeader {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpBar {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tour-navigation-header {
    animation: slideDownHeader 0.3s ease-out;
}

.chat-bar-bottom {
    animation: slideUpBar 0.3s ease-out;
}
