/* ==========================================================================
   BẢN ĐỒ SỐ THT - BRAND IDENTITY & GIS DESIGN SYSTEM (ROYAL THT BLUE)
   ========================================================================== */

:root {
    --primary: #0050a4;          /* THT Royal Corporate Blue (Chuẩn mã màu Logo THT) */
    --primary-hover: #003e82;
    --primary-light: rgba(0, 80, 164, 0.12);
    --primary-glow: rgba(0, 80, 164, 0.35);
    
    --secondary: #0284c7;        /* Sky Blue / GIS Tech */
    --secondary-hover: #0369a1;
    --accent: #f59e0b;           /* Amber Gold */
    --info: #0ea5e9;
    
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-glass-dark: rgba(15, 23, 42, 0.88);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-color: rgba(226, 232, 240, 0.85);
    --border-glass: rgba(255, 255, 255, 0.65);
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Reset & Body */
*, *::before, *::after {
    box-sizing: border-box;
}

body.map-app-body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
}

/* App Layout Canvas */
.map-app-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

#main-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #e2e8f0;
}

/* Custom Glassmorphism Utility */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   TOP HEADER NAVIGATION BAR (SÁT MÉP TRÊN CÙNG - CĂN CHỈNH CAO RÁO)
   ========================================================================== */
.top-nav-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    border-radius: 0 0 16px 16px;
    border-top: none;
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 40, 100, 0.1);
    transition: var(--transition);
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.brand-section:hover .brand-logo-img {
    transform: scale(1.05);
}

.about-logo-img {
    height: 68px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 80, 164, 0.15));
}

.brand-text h1 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-text h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, #0050a4 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text p {
    font-size: 11px;
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Center Search Container */
.search-container {
    position: relative;
    width: 580px;
    max-width: 48%;
    margin: 0 14px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i.search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 38px;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(203, 213, 225, 0.6);
    background: rgba(255, 255, 255, 0.95);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3.5px var(--primary-light), var(--shadow-md);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: none;
    padding: 4px;
}

/* Autocomplete Suggestion Dropdown - Nền trắng sáng thuần 100%, không bị che mờ hay bóng mờ */
.search-results-dropdown {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 16px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 20px 42px -8px rgba(15, 23, 42, 0.24), 0 4px 14px rgba(15, 23, 42, 0.08);
    display: none;
    z-index: 2000;
    padding: 6px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 16px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.18s ease;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f0f7ff;
}

.search-result-item img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info h4 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.search-result-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-result-info p i {
    color: var(--primary);
    font-size: 11px;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 80, 164, 0.16);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.weather-widget:hover {
    background: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(0, 80, 164, 0.14);
    transform: translateY(-1px);
}

.weather-badge-aqi {
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1px 6px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.nav-action-btn {
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.nav-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Category Filter Strip Below Header */
.category-filter-strip {
    position: absolute;
    top: 70px;
    left: 16px;
    z-index: 990;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: calc(100vw - 32px);
    padding-bottom: 6px;
    scrollbar-width: none;
}

.category-filter-strip::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.filter-chip i {
    font-size: 13px;
    color: var(--primary);
}

.filter-chip:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.filter-chip.active i {
    color: #ffffff;
}

/* ==========================================================================
   LEFT EXPLORER SIDEBAR
   ========================================================================== */
.sidebar-explorer {
    position: absolute;
    top: 122px;
    left: 16px;
    bottom: 20px;
    width: 500px;
    z-index: 980;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar-explorer.collapsed {
    transform: translateX(-530px);
}

.sidebar-toggle-btn {
    position: absolute;
    top: 130px;
    left: 526px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 985;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle-btn:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: scale(1.05);
}

.sidebar-explorer.collapsed + .sidebar-toggle-btn {
    left: 16px;
}

/* Sidebar Navigation Tabs */
.sidebar-tabs {
    display: flex;
    padding: 12px 14px 6px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    gap: 4px;
    flex-shrink: 0;
}

.sidebar-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 4px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-tab-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.sidebar-tab-btn.active {
    color: var(--primary);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.sidebar-tab-btn .badge-count {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
}

/* Filter Controls inside Sidebar */
.sidebar-controls {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    flex-shrink: 0;
    width: 100%;
}

/* Custom Searchable District Select (Auto Search) */
.district-search-combobox {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.district-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.district-combobox-icon {
    position: absolute;
    left: 10px;
    font-size: 12px;
    color: var(--primary);
    pointer-events: none;
    z-index: 2;
}

.district-search-input {
    width: 100%;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(203, 213, 225, 0.85);
    background: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 50px 0 28px;
    color: var(--text-main);
    outline: none;
    cursor: text;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.district-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-sm);
}

.district-clear-btn {
    position: absolute;
    right: 26px;
    width: 19px;
    height: 19px;
    border: none;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    z-index: 2;
}

.district-clear-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.district-toggle-btn {
    position: absolute;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 2;
}

.district-search-combobox.open .district-toggle-btn {
    transform: rotate(180deg);
}

.district-dropdown-menu {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    display: none;
    z-index: 1050;
    padding: 4px;
}

.district-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.district-menu-item {
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.district-menu-item:hover,
.district-menu-item.highlighted {
    background: #eff6ff;
    color: var(--primary);
}

.district-menu-item.selected {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.district-menu-item .item-count-badge {
    font-size: 10.5px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 10px;
}

.district-empty-item {
    padding: 14px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.view-mode-buttons {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.btn-view-mode {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-view-mode:hover {
    color: var(--primary);
}

.btn-view-mode.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Scrollable List Container */
.sidebar-content-area {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-content-area::-webkit-scrollbar,
.search-results-dropdown::-webkit-scrollbar,
.detail-body-scroll::-webkit-scrollbar {
    width: 6px;
}
.sidebar-content-area::-webkit-scrollbar-track,
.search-results-dropdown::-webkit-scrollbar-track,
.detail-body-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-content-area::-webkit-scrollbar-thumb,
.search-results-dropdown::-webkit-scrollbar-thumb,
.detail-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   HORIZONTAL PLACE ITEM CARD (THT STYLE)
   ========================================================================== */
.place-card {
    flex-shrink: 0 !important;
    min-height: 108px;
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.place-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 80, 164, 0.1);
    border-color: #93c5fd;
}

.place-card.active-selected {
    border-color: var(--primary) !important;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px var(--primary-light), 0 8px 20px var(--primary-glow) !important;
}

.place-card-img-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.place-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.place-card:hover .place-card-img {
    transform: scale(1.08);
}

.place-card-category-tag {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.place-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.place-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.place-district-label {
    font-size: 11px;
    font-weight: 700;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-district-label i {
    color: var(--primary);
    font-size: 10px;
}

.btn-card-fav {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-card-fav:hover,
.btn-card-fav.favorited {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
    transform: scale(1.1);
}

.place-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin: 3px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.place-card-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    margin-bottom: 3px;
}

.meta-rating {
    font-weight: 800;
    color: #d97706;
    display: flex;
    align-items: center;
    gap: 3px;
}

.meta-reviews {
    color: #94a3b8;
    font-size: 11px;
}

.meta-divider {
    color: #cbd5e1;
    font-size: 10px;
}

.meta-status {
    color: #0284c7;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0284c7;
    display: inline-block;
}

.place-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 7px;
    margin-top: 5px;
    flex-wrap: nowrap;
}

.place-cat-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-footer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-card-detail {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-card-detail:hover {
    background: #e2e8f0;
    color: var(--primary);
    border-color: #94a3b8;
}

.btn-card-direct {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-card-direct:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Large Card View */
.sidebar-content-area.card-view .place-card {
    flex-direction: column;
    min-height: 220px;
    padding: 0;
}

.sidebar-content-area.card-view .place-card-img-wrap {
    width: 100%;
    height: 125px;
    border-radius: 14px 14px 0 0;
}

.sidebar-content-area.card-view .place-card-content {
    padding: 10px 12px;
}

/* ==========================================================================
   TOURS LIST PANEL
   ========================================================================== */
.tour-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
    flex-shrink: 0 !important;
}

.tour-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tour-card.active-tour {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-md);
}

.tour-card-header {
    position: relative;
    height: 120px;
}

.tour-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-duration-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 80, 164, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.tour-card-body {
    padding: 12px 14px;
}

.tour-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 6px 0;
}

.tour-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.tour-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.tour-timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
}

.step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

.btn-show-tour-map {
    width: 100%;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-show-tour-map:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   FLOATING MAP CONTROLS (Right Side)
   ========================================================================== */
.map-floating-controls {
    position: absolute;
    right: 16px;
    top: 70px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.map-control-btn:hover {
    background: #ffffff;
    color: var(--primary);
    transform: scale(1.06);
}

.map-control-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.map-control-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 54px;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-control-btn:hover[data-tooltip]::after {
    opacity: 1;
    transform: translateX(0);
}

.layer-switcher-panel {
    position: absolute;
    right: 64px;
    top: 0;
    width: 220px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 10px;
    display: none;
    z-index: 1000;
}

.layer-switcher-panel.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.layer-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.layer-option:hover {
    background: #f1f5f9;
}

.layer-option.active {
    background: var(--primary-light);
    color: var(--primary);
}

.layer-option-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-size: 14px;
}

.layer-option.active .layer-option-icon {
    background: var(--primary);
    color: #fff;
}

/* ==========================================================================
   CUSTOM MAPBOX MARKERS & POPUP
   ========================================================================== */
/* ==========================================================================
   MAPBOX MARKERS - ZERO-DRIFT PRECISION ANCHORING & ALWAYS-ON LABELS
   ========================================================================== */
.mapboxgl-marker {
    transition: none !important; /* Loại bỏ độ trễ transition khi kéo bản đồ */
    will-change: transform;
    pointer-events: auto;
}

/* POI Marker Container */
.custom-map-marker {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: none !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}

.custom-map-marker:hover {
    z-index: 9999 !important;
}

/* Label Pill on Regular POI */
.marker-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 3px;
    white-space: nowrap;
    max-width: 150px;
    pointer-events: auto;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.custom-map-marker:hover .marker-label-pill {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.marker-cat-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.marker-title-text {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pin Wrap */
.marker-pin-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: 50% 100%;
}

.custom-map-marker:hover .marker-pin-wrap {
    transform: scale(1.12);
}

.marker-pin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.marker-icon {
    color: #ffffff;
    font-size: 13px;
}

.marker-pin-tip {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #0050a4;
    margin-top: -1.5px;
}

/* ==========================================================================
   CUSTOM TOUR STEP MARKERS - WITH ALWAYS-ON LABELS
   ========================================================================== */
.custom-tour-step-marker {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: none !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.custom-tour-step-marker:hover {
    z-index: 9999 !important;
}

/* Label Pill on Tour Step */
.tour-step-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    padding: 3px 9px 3px 4px;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    border: 1.5px solid #0050a4;
    margin-bottom: 3px;
    white-space: nowrap;
    max-width: 175px;
    pointer-events: auto;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.custom-tour-step-marker:hover .tour-step-label-pill {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
}

.tour-step-pill-num {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tour-step-pill-name {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tour Pin Wrap */
.tour-pin-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: 50% 100%;
}

.custom-tour-step-marker:hover .tour-pin-wrap {
    transform: scale(1.12);
}

.tour-pin-marker {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.tour-pin-num {
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
}

.tour-pin-tip {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #0050a4;
    margin-top: -1.5px;
}

/* ==========================================================================
   RICH TOUR STOP POPUP (ĐẲNG CẤP, HIỆN ĐẠI)
   ========================================================================== */
.tour-stop-mapbox-popup .mapboxgl-popup-content {
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 40px rgba(0, 40, 100, 0.22) !important;
    border: 1.5px solid rgba(0, 80, 164, 0.15) !important;
}

.tour-stop-popup {
    width: 310px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.tour-stop-popup-banner {
    position: relative;
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: #0f172a;
}

.tour-stop-popup-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tour-stop-popup:hover .tour-stop-popup-banner img {
    transform: scale(1.06);
}

.tour-stop-popup-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.78) 100%);
}

.tour-stop-badge-row {
    position: absolute;
    bottom: 8px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-stop-num-badge {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-stop-time-badge {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #f8fafc;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-stop-popup-body {
    padding: 12px 14px 14px;
}

.tour-stop-tour-name {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-stop-place-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.tour-stop-location {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-stop-experience {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11.5px;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.tour-stop-experience i {
    margin-top: 2px;
    flex-shrink: 0;
}

.tour-stop-popup-actions {
    display: flex;
    gap: 6px;
}

.btn-tour-pop-speak,
.btn-tour-pop-detail,
.btn-tour-pop-route {
    flex: 1;
    height: 32px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-tour-pop-speak {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
}
.btn-tour-pop-speak:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-tour-pop-detail {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #0050a4;
}
.btn-tour-pop-detail:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.btn-tour-pop-route {
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 80, 164, 0.25);
}
.btn-tour-pop-route:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.mapboxgl-popup-content {
    padding: 0 !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-lg) !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Nút đóng Popup Mapbox chuẩn - Tròn, nền mờ, nổi bật, dễ bấm */
.mapboxgl-popup-close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-family: Arial, sans-serif !important;
    font-weight: 700;
    line-height: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s ease;
    padding: 0 0 2px 0 !important;
    outline: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.mapboxgl-popup-close-button:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: scale(1.12);
}

.popup-card {
    display: flex;
    flex-direction: column;
    min-width: 310px;
    max-width: 350px;
}

.popup-img-wrap {
    position: relative;
    width: 100%;
    height: 130px;
}

.popup-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 80, 164, 0.88);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
}

.popup-body {
    padding: 10px 12px;
}

.popup-title {
    font-size: 13.5px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #0f172a;
}

.popup-address {
    font-size: 11px;
    color: #64748b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-btn-detail {
    width: 100%;
    height: 32px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}

.popup-btn-detail:hover {
    background: var(--primary-hover);
}

/* Place Detail Flyout Modal */
.place-detail-modal {
    position: absolute;
    top: 70px;
    right: 76px;
    bottom: 20px;
    width: 440px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 1010;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(540px);
    transition: var(--transition);
}

.place-detail-modal.show {
    transform: translateX(0);
}

.btn-close-detail {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.btn-close-detail:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: scale(1.1);
}

.detail-hero-banner {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.detail-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0, 50, 110, 0.88) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 20px;
}

.detail-category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    width: fit-content;
}

.detail-hero-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.detail-hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 12.5px;
    font-weight: 600;
}

.detail-hero-rating span {
    color: #e2e8f0;
    font-weight: 400;
}

.detail-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* AI Audio Guide Box */
.audio-guide-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audio-guide-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-guide-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-audio-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: var(--transition);
}

.btn-audio-play:hover {
    background: var(--primary-hover);
    transform: scale(1.08);
}

.audio-status-text {
    font-size: 11.5px;
    color: #334155;
    font-weight: 500;
    line-height: 1.35;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.detail-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #334155;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
}

.detail-info-row i {
    color: var(--primary);
    font-size: 14px;
    margin-top: 2px;
}

.detail-section-heading {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-description-p {
    font-size: 13px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
    text-align: justify;
}

.detail-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-highlights-list li {
    font-size: 12.5px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-highlights-list li i {
    color: var(--secondary);
    font-size: 12px;
}

.detail-actions-bar {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    display: flex;
    gap: 10px;
}

.btn-detail-action {
    flex: 1;
    height: 42px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-detail-action.primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-detail-action.primary:hover {
    background: var(--primary-hover);
}

.btn-detail-action.secondary {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-detail-action.secondary:hover {
    background: #f1f5f9;
}

#btn-detail-vr {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1.5px solid #c4b5fd;
    color: #6d28d9;
}

#btn-detail-vr:hover {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #8b5cf6;
    color: #5b21b6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.18);
}


/* Route Navigation Panel */
.route-panel {
    position: absolute;
    bottom: 24px;
    left: 446px;
    width: 360px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 995;
    padding: 14px 16px;
    display: none;
    animation: slideUp 0.25s ease;
}

.route-panel.show {
    display: block;
}

.route-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.route-panel-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-close-route {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
}

.route-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.route-stat-item h5 {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
}

.route-stat-item p {
    margin: 2px 0 0 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

/* ==========================================================================
   ABOUT THT MODAL (GIỚI THIỆU DOANH NGHIỆP CÔNG NGHỆ THT)
   ========================================================================== */
.about-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.about-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.about-modal-card {
    width: 780px;
    max-width: 95vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 40, 100, 0.3);
    border: 1px solid rgba(0, 80, 164, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 26px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    gap: 16px;
}

.about-brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-modal-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    flex-shrink: 0;
}

.about-brand-titles {
    display: flex;
    flex-direction: column;
}

.about-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 800;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    width: fit-content;
}

.about-company-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.2px;
    line-height: 1.35;
}

.about-company-sub {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.about-company-sub a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.about-company-sub a:hover {
    text-decoration: underline;
}

.btn-close-about {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-close-about:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.about-modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(90vh - 160px);
}

.about-highlight-box {
    background: linear-gradient(135deg, rgba(0, 80, 164, 0.05) 0%, rgba(14, 165, 233, 0.08) 100%);
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 80, 164, 0.15);
}

.about-highlight-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-highlight-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
    text-align: justify;
}

.about-section-heading-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-section-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.about-service-card {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.about-service-card:hover {
    background: #ffffff;
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(0, 80, 164, 0.08);
    transform: translateY(-2px);
}

.service-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.service-info h5 {
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.service-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.about-contact-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
}

.about-contact-col {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.5;
}

.contact-item i {
    margin-top: 3px;
    font-size: 14px;
    width: 16px;
    flex-shrink: 0;
}

.contact-link {
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    text-decoration: underline;
}

.about-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 26px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    gap: 12px;
}

.btn-visit-tht {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 80, 164, 0.25);
    transition: all 0.2s;
}

.btn-visit-tht:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-about-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-about-close:hover {
    background: #f1f5f9;
    color: #334155;
}

/* ==========================================================================
   SUGGESTED TOURS MODAL (MODAL CHỌN LỘ TRÌNH TOUR GỢI Ý)
   ========================================================================== */
.tours-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.tours-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.tours-modal-card {
    width: 960px;
    max-width: 95vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 40, 100, 0.3);
    border: 1px solid rgba(0, 80, 164, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tours-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 28px 18px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    gap: 16px;
}

.tours-modal-title-group h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.tours-modal-title-group p {
    margin: 3px 0 0 0;
    font-size: 12.5px;
    color: #64748b;
}

.tours-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--primary);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
    width: fit-content;
}

.btn-close-tours {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-close-tours:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: rotate(90deg);
}

.tours-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.tours-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tour-modal-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tour-modal-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0, 80, 164, 0.12);
    transform: translateY(-3px);
}

.tour-modal-thumb-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.tour-modal-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tour-modal-card:hover .tour-modal-thumb-wrap img {
    transform: scale(1.05);
}

.tour-modal-duration-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-modal-stops-count {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tour-modal-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-modal-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.tour-modal-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-modal-stops-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.tour-preview-stop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-preview-stop-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-start-tour-modal {
    margin-top: auto;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 80, 164, 0.25);
}

.btn-start-tour-modal:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   FLOATING TOUR PLAYER / HUD BAR (ĐIỀU HƯỚNG CHẶNG TOUR 3D)
   ========================================================================== */
.tour-hud-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(0, 40, 100, 0.28);
    border: 1.5px solid rgba(0, 80, 164, 0.25);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 94vw;
    width: 820px;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-hud-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-grow: 1;
    min-width: 0;
}

.tour-hud-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 80, 164, 0.3);
}

.tour-hud-info {
    min-width: 0;
    flex-grow: 1;
}

.tour-hud-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.tour-hud-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.tour-hud-step-badge {
    font-size: 10px;
    font-weight: 800;
    background: #e0f2fe;
    color: #0284c7;
    padding: 1px 7px;
    border-radius: 12px;
    border: 1px solid #bae6fd;
    flex-shrink: 0;
}

.tour-hud-stop-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.tour-hud-stop-desc {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.tour-hud-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-hud-nav {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hud-nav:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-hud-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-hud-action {
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hud-action.primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 80, 164, 0.25);
}

.btn-hud-action.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-hud-action.audio {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.btn-hud-action.audio:hover {
    background: #dcfce7;
}

.btn-hud-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.btn-hud-icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-hud-icon-btn.close-tour:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

/* 360 VR Simulator Modal - Kích thước lớn, trực tiếp trên trang */
.vr-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease;
}

.vr-modal.show {
    display: flex;
}

.vr-modal-content {
    position: relative;
    width: 96vw;
    max-width: 1600px;
    height: 92vh;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
}

.vr-modal-header {
    height: 56px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 10;
}

.vr-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vr-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.vr-modal-title {
    margin: 0;
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vr-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-vr-header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-vr-header-action:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-close-vr {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-vr:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.06);
}

.vr-iframe-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    background: #090d16;
}

.vr-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.btn-vr-nav {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-vr-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   ROUTE NAVIGATION PANEL & MULTI-MODAL DIRECTIONS (THT LUXURY)
   ========================================================================== */
.route-panel {
    position: fixed;
    bottom: 24px;
    left: calc(390px + 24px);
    width: 580px;
    max-width: min(580px, calc(100vw - 440px));
    max-height: calc(100vh - 100px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0, 80, 164, 0.2);
    border-radius: 22px;
    box-shadow: 0 24px 54px -10px rgba(0, 45, 110, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    padding: 20px 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.route-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.route-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.route-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.route-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    color: #059669;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    width: fit-content;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDotAnim 1.8s infinite;
}

@keyframes pulseDotAnim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.route-dest-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-route-action,
.btn-close-route {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-route-action:hover,
.btn-close-route:hover {
    background: #eff6ff;
    color: var(--primary);
    border-color: #93c5fd;
    transform: scale(1.06);
}

/* Route Origin & Destination Box */
.route-points-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.route-point-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.point-bullet {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    flex-shrink: 0;
}

.point-bullet.start {
    background: #eff6ff;
    color: #0050a4;
    border: 1.5px solid #93c5fd;
}

.point-bullet.end {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
}

.point-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.point-info small {
    font-size: 10.5px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.point-info span {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-point-change {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-point-change:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.route-point-connector {
    width: 2px;
    height: 10px;
    border-left: 2px dashed #94a3b8;
    margin: 2px 0 2px 12px;
}

/* Transport Modes Selector */
.route-transport-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.btn-transport-mode {
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-transport-mode i {
    font-size: 18px;
    color: #64748b;
    transition: color 0.2s ease;
}

.transport-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mode-name {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.mode-time {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 2px;
}

.btn-transport-mode:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    transform: translateY(-2px);
}

.btn-transport-mode.active {
    background: linear-gradient(135deg, #0050a4 0%, #003e82 100%);
    border-color: #003e82;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 80, 164, 0.35);
}

.btn-transport-mode.active i,
.btn-transport-mode.active .mode-name {
    color: #ffffff;
}

.btn-transport-mode.active .mode-time {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Route Stats Grid */
.route-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 10px;
    padding: 12px 14px;
    background: #f1f5f9;
    border-radius: 14px;
    margin-bottom: 12px;
}

.route-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.route-stat-item h5 {
    margin: 0 0 2px 0;
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.route-stat-item p {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#route-summary-text {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Turn-by-Turn Collapsible Section */
.route-steps-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    transition: var(--transition);
}

.route-steps-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.toggle-arrow {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.route-steps-toggle.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.route-steps-list {
    max-height: 190px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
    margin-bottom: 10px;
}

.route-steps-list::-webkit-scrollbar {
    width: 5px;
}
.route-steps-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

.route-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-size: 11.5px;
    transition: background 0.2s ease;
}

.route-step-item:hover {
    background: #eff6ff;
}

.route-step-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.route-step-text {
    flex: 1;
    color: #1e293b;
    line-height: 1.35;
    font-weight: 500;
}

.route-step-distance {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

/* Footer Actions */
.route-footer-actions {
    display: flex;
    gap: 10px;
}

.btn-route-footer {
    flex: 1;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-route-footer.primary {
    background: linear-gradient(135deg, #0050a4 0%, #003e82 100%);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-route-footer.primary:hover {
    background: linear-gradient(135deg, #003e82 0%, #002b5c 100%);
    transform: translateY(-1px);
}

.btn-route-footer.secondary {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
}

.btn-route-footer.secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Map Route Custom Markers */
.nav-marker-pulse {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0050a4;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0, 80, 164, 0.4);
    border: 2.5px solid #ffffff;
    cursor: pointer;
}

.nav-marker-pulse::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 2px solid #0050a4;
    animation: markerRadar 2s infinite ease-out;
}

@keyframes markerRadar {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.nav-marker-dest {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
    border: 2.5px solid #ffffff;
    cursor: pointer;
}

/* ==========================================================================
   WEATHER MODULE (DESTINATION, ROUTE & FORECAST MODAL)
   ========================================================================== */
/* 1. Destination Weather Card in Place Detail */
.detail-weather-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 14px 0;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.detail-weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-header-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
}

.weather-status-pill {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.detail-weather-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 10px 0;
    gap: 12px;
}

.detail-weather-temp-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-temp-icon {
    font-size: 28px;
}

.weather-temp-num {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    display: block;
}

.weather-temp-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin-top: 3px;
}

.detail-weather-metrics {
    display: flex;
    gap: 8px;
}

.weather-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid #e0f2fe;
    min-width: 52px;
}

.weather-metric-item small {
    font-size: 9.5px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.weather-metric-item strong {
    font-size: 11.5px;
    color: #0f172a;
    font-weight: 700;
    margin-top: 2px;
}

.detail-weather-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid #10b981;
    font-size: 11px;
    color: #334155;
    line-height: 1.4;
}

/* 2. Route Navigation Weather Strip */
.route-weather-strip {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.route-weather-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #166534;
}

.route-weather-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: #15803d;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* 3. Detailed Weather Forecast Modal */
.weather-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.weather-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.weather-modal-card {
    width: 500px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 24px;
    box-shadow: 0 24px 60px rgba(0, 40, 100, 0.25);
    border: 1px solid rgba(0, 80, 164, 0.16);
    animation: slideUp 0.3s ease;
}

.weather-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.weather-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #a7f3d0;
    margin-bottom: 4px;
}

.weather-header-info h3 {
    margin: 2px 0 2px 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.weather-header-info p {
    margin: 0;
    font-size: 11.5px;
    color: #64748b;
}

.btn-close-weather {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-weather:hover {
    background: #eff6ff;
    color: var(--primary);
    transform: scale(1.06);
}

/* Modal Current Banner */
.weather-current-banner {
    background: linear-gradient(135deg, #0050a4 0%, #0284c7 100%);
    border-radius: 16px;
    padding: 16px 18px;
    color: #ffffff;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 80, 164, 0.25);
}

.current-temp-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.current-weather-icon {
    font-size: 38px;
}

.temp-big {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.temp-condition {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 2px;
}

.current-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.metric-box small {
    display: block;
    font-size: 9px;
    opacity: 0.85;
    text-transform: uppercase;
    font-weight: 700;
}

.metric-box span {
    font-size: 11.5px;
    font-weight: 700;
}

/* Modal Forecast Section */
.weather-forecast-section {
    margin-bottom: 14px;
}

.forecast-heading {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forecast-days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.forecast-day-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    transition: var(--transition);
}

.forecast-day-card:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
    transform: translateY(-2px);
}

.forecast-day-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.forecast-day-icon {
    font-size: 22px;
    margin: 4px 0;
}

.forecast-day-temp {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.forecast-day-desc {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 2px;
}

.weather-travel-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    font-size: 11.5px;
    color: #166534;
    line-height: 1.45;
}

.weather-travel-notice strong {
    display: block;
    margin-bottom: 2px;
    color: #14532d;
}

.weather-travel-notice p {
    margin: 0;
}

/* 4. Compact Place Card Weather Badge */
.place-card-weather-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #ea580c;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.popup-weather-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Animations & Responsive */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile drag handle and toggle button defaults on desktop */
.mobile-sheet-drag-handle {
    display: none;
}

.mobile-map-toggle-btn {
    display: none;
}

@media (max-width: 992px) {
    .sidebar-explorer {
        width: 450px;
    }
    .sidebar-toggle-btn {
        left: 476px;
    }
    .place-detail-modal {
        width: 400px;
    }
}

@media (max-width: 768px) {
    /* Top Header Bar */
    .top-nav-bar {
        top: 0;
        left: 0;
        right: 0;
        height: auto;
        min-height: 96px;
        padding: 8px 12px;
        border-radius: 0 0 16px 16px;
        flex-direction: column;
        gap: 6px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
    }

    .brand-section {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .brand-logo-img {
        height: 32px;
    }

    .brand-text h1 {
        font-size: 13.5px;
    }

    .brand-text p {
        display: none;
    }

    /* Giữ lại widget thời tiết Open-Meteo trực tiếp trên header di động */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .weather-widget {
        display: inline-flex !important;
        padding: 4px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .weather-badge-aqi {
        display: none;
    }

    .nav-action-btn span {
        display: none;
    }

    .nav-action-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        justify-content: center;
    }

    /* Khung tìm kiếm dòng 2 */
    .search-container {
        width: 100%;
        max-width: 100%;
        order: 2;
    }

    .search-input {
        height: 38px;
        font-size: 12.5px;
        padding-left: 36px;
    }

    .search-input-wrapper i.search-icon {
        left: 12px;
        font-size: 12px;
    }

    .search-results-dropdown {
        top: 44px;
        max-height: 280px;
    }

    /* Dải danh mục cuộn ngang */
    .category-filter-strip {
        top: 104px;
        left: 8px;
        right: 8px;
        max-width: calc(100vw - 16px);
        padding-bottom: 4px;
        gap: 6px;
    }

    .filter-chip {
        padding: 6px 12px;
        font-size: 11px;
        gap: 5px;
    }

    .filter-chip i {
        font-size: 11px;
    }

    /* Nút công cụ bản đồ nổi bên phải */
    .map-floating-controls {
        top: 155px;
        right: 10px;
        gap: 8px;
    }

    .map-control-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .layer-switcher-panel {
        right: 46px;
        width: 180px;
    }

    /* Thanh gạt kéo thả Bottom Sheet trên di động */
    .mobile-sheet-drag-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 0 4px 0;
        cursor: pointer;
        width: 100%;
        flex-shrink: 0;
    }

    .sheet-pill {
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: #cbd5e1;
        transition: var(--transition);
    }

    .mobile-sheet-drag-handle:active .sheet-pill {
        background: var(--primary);
        width: 52px;
    }

    /* Bảng danh sách Bottom Sheet khám phá */
    .sidebar-explorer {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 60vh;
        max-height: 82vh;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
        z-index: 1200;
        transform: translateY(0);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    }

    /* Chế độ thu nhỏ (peek mode) trên điện thoại: để lộ >85% diện tích bản đồ 3D */
    .sidebar-explorer.mobile-collapsed {
        transform: translateY(calc(100% - 68px));
    }

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

    /* Nút nổi chuyển đổi Bản đồ / Danh sách */
    .mobile-map-toggle-btn {
        display: flex !important;
        position: fixed;
        bottom: 84px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1250;
        background: var(--primary);
        color: #ffffff;
        border: 2px solid rgba(255, 255, 255, 0.85);
        border-radius: 999px;
        padding: 9px 18px;
        font-size: 12.5px;
        font-weight: 700;
        align-items: center;
        gap: 7px;
        box-shadow: 0 4px 20px rgba(0, 80, 164, 0.45);
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-map-toggle-btn:active {
        transform: translateX(-50%) scale(0.96);
    }

    .sidebar-tabs {
        padding: 6px 10px;
        gap: 2px;
    }

    .sidebar-tab-btn {
        padding: 7px 4px;
        font-size: 11px;
        gap: 4px;
        white-space: nowrap;
    }

    .sidebar-tab-btn i {
        font-size: 11px;
    }

    .sidebar-controls {
        padding: 8px 10px;
        gap: 6px;
    }

    .sidebar-content-area {
        padding: 10px;
        gap: 10px;
    }

    /* Thẻ địa điểm trên điện thoại */
    .place-card {
        padding: 8px;
        gap: 10px;
        min-height: 106px;
    }

    .place-card-img-wrap {
        width: 86px;
        height: 86px;
    }

    .place-card-title {
        font-size: 13px;
        margin: 2px 0;
    }

    .place-card-meta-row {
        font-size: 10.5px;
        gap: 4px;
    }

    .place-card-footer-row {
        gap: 6px;
        padding-top: 6px;
        flex-wrap: nowrap;
    }

    .place-cat-pill {
        font-size: 10.5px;
        padding: 2px 7px;
        border-radius: 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .btn-card-detail, .btn-card-direct {
        font-size: 10.5px;
        padding: 2px 6px;
    }

    /* Modal chi tiết điểm đến trên điện thoại */
    .place-detail-modal {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 86vh;
        max-height: 86vh;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
        z-index: 2000;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .place-detail-modal.show {
        transform: translateY(0);
    }

    .detail-hero-banner {
        height: 180px;
    }

    .detail-hero-title {
        font-size: 18px;
    }

    .btn-close-detail {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        background: rgba(15, 23, 42, 0.65);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.2);
    }

    /* Modal thời tiết chi tiết trên di động */
    .weather-modal-card {
        width: 94%;
        max-width: 420px;
        max-height: 88vh;
        border-radius: 20px;
        padding: 16px;
    }

    .current-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .forecast-days-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .forecast-day-card {
        padding: 8px 4px;
    }

    .forecast-day-temp {
        font-size: 11px;
    }

    /* Hướng dẫn chỉ đường trên di động */
    .route-panel {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 8px;
        top: auto;
        width: auto;
        max-width: none;
        max-height: 82vh;
        border-radius: 18px;
        padding: 14px;
        z-index: 2100;
    }

    .transport-modes-strip {
        gap: 6px;
    }

    .btn-transport-mode {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Modal giới thiệu THT trên di động */
    .about-modal-card {
        width: 95vw;
        max-height: 92vh;
        border-radius: 20px;
    }

    .about-modal-header {
        padding: 16px 18px 14px;
    }

    .about-modal-logo {
        height: 38px;
    }

    .about-company-title {
        font-size: 13.5px;
    }

    .about-modal-body {
        padding: 16px 18px;
        gap: 16px;
    }

    .about-services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-contact-banner {
        padding: 14px;
        flex-direction: column;
    }

    .about-modal-footer {
        padding: 12px 18px;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .btn-visit-tht,
    .btn-about-close {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Modal chọn Tour trên di động */
    .tours-modal-card {
        width: 95vw;
        max-height: 92vh;
        border-radius: 20px;
    }

    .tours-modal-header {
        padding: 16px 18px 14px;
    }

    .tours-modal-body {
        padding: 14px 16px;
    }

    .tours-modal-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tour-modal-thumb-wrap {
        height: 140px;
    }

    /* Thanh điều hướng Tour Player HUD trên di động */
    .tour-hud-bar {
        bottom: 84px;
        width: 95vw;
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
        border-radius: 16px;
    }

    .tour-hud-left {
        width: 100%;
        gap: 10px;
    }

    .tour-hud-icon-wrap {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .tour-hud-stop-name {
        font-size: 13px;
    }

    .tour-hud-controls {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
    }

    .btn-hud-nav span,
    .btn-hud-action span {
        display: none;
    }

    .btn-hud-nav,
    .btn-hud-action {
        padding: 0 10px;
        height: 34px;
        font-size: 11px;
    }
}

/* ==========================================================================
   ROUTE VOICE GUIDANCE SPEAKING STATE
   ========================================================================== */
.btn-route-footer.btn-speaking {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45) !important;
    animation: pulseRouteSpeaking 1.5s infinite;
}

@keyframes pulseRouteSpeaking {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

