/* Core Styles & Design Tokens */
:root {
    --primary-color: #0d3b66;      /* Deep Sapphire */
    --primary-light: #1b4965;     /* Medium Sapphire */
    --secondary-color: #f4d35e;    /* Warm Gold */
    --accent-color: #62b6cb;       /* Soft Cyan */
    --dark-bg: #0f172a;            /* Slate 900 */
    --light-bg: #f8fafc;           /* Slate 50 */
    --white: #ffffff;
    --text-main: #1e293b;          /* Slate 800 */
    --text-muted: #64748b;         /* Slate 500 */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

h1, h2, h3, h4 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
}

/* Header & Navigation Bar */
.navbar {
    background-color: rgba(11, 60, 93, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    cursor: pointer;
}

.logo-gold {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.logo-blue {
    color: var(--white);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.lang-selector {
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    height: 60vh;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/1/1b/Khu_di_t%C3%ADch_Kim_Li%C3%AAn.jpg'); /* Default fallback image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 60, 93, 0.45) 0%, rgba(29, 39, 49, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 350;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

/* Search Bar */
.search-container-wrapper {
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 650px;
    backdrop-filter: blur(10px);
}

.search-container input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}

.search-container input::placeholder {
    color: #888888;
}

.search-container button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-container button:hover {
    background-color: var(--accent-color);
    transform: scale(1.02);
}

/* Main Grid & Layout */
.main-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 40px 0;
    padding: 0 20px;
}

.grid-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.panel-header {
    margin-bottom: 25px;
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
}

.panel-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.panel-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* GIS & Map Routing Layout */
.map-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .map-grid {
        grid-template-columns: 1fr;
    }
}

.map-wrapper {
    height: 480px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

#map {
    width: 100%;
    height: 100%;
}

.planner-panel {
    background-color: #f7f9fa;
    border: 1px solid #eef2f5;
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.planner-panel h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.small-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.selected-points-list {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 220px;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
}

.empty-list-msg {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px 10px;
    font-style: italic;
}

.point-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f1f5f9;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.point-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
}

.optimization-result {
    margin-top: 20px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 15px;
    border-radius: 8px;
}

.optimization-result h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.ordered-route-list {
    margin-left: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ordered-route-list li {
    margin-bottom: 4px;
}

.route-distance-summary {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border-top: 1px solid #bfdbfe;
    padding-top: 8px;
}

.gold-text {
    color: #b45309;
}

/* Digital Library Section Layout */
.library-explorer-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .library-explorer-grid {
        grid-template-columns: 1fr;
    }
}

.filter-sidebar {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: var(--border-radius);
}

.filter-sidebar h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-btn {
    background: var(--white);
    border: 1px solid #cbd5e1;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Articles Cards UI */
.articles-grid-wrapper {
    min-height: 300px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.article-card-media {
    height: 160px;
    background-color: #e2e8f0;
    position: relative;
}

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

.article-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--secondary-color);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.article-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.article-card-metadata {
    font-size: 0.75rem;
    color: #888888;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
}

/* Spatial Analytics Layout */
.analytics-item {
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.analytics-item span:first-child {
    font-weight: 500;
}

.analytics-item span:last-child {
    font-weight: bold;
    color: var(--primary-color);
}

/* Floating AI Chat Window */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.05);
    background-color: var(--accent-color);
}

.chat-window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f8fafc;
}

.msg-bot {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px 12px 12px 0;
    align-self: flex-start;
    font-size: 0.85rem;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.msg-user {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 12px 12px 0 12px;
    align-self: flex-end;
    font-size: 0.85rem;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-footer {
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    background-color: var(--white);
}

.chat-footer input {
    flex-grow: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    outline: none;
    font-size: 0.85rem;
}

.chat-footer button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-footer button:hover {
    background-color: var(--accent-color);
}

/* Shimmer Loading Animations */
.shimmer-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.shimmer-card {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Map Pill Filters Styling */
.map-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-pill-btn.inactive {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 0.6;
}

/* Custom Marker Pins on Map */
.custom-div-icon {
    background: transparent;
    border: none;
}

/* CSS-based Fullscreen Map Sandbox styling */
/* Dùng inset 4 cạnh (top/left/right/bottom = 0) thay vì width:100vw/height:100vh - vw/vh tính luôn cả bề rộng
   thanh cuộn dọc của trang, khiến rìa phải bản đồ (và các nút đặt theo right:Npx bên trong như nút định vị
   #btn-map-locate và bộ chọn lớp bản đồ Leaflet góc trên phải) bị thanh cuộn che mất. Dùng inset thì khung
   bản đồ luôn khớp đúng vùng hiển thị thực tế của viewport, có thanh cuộn hay không cũng không lệch. */
.map-wrapper.map-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Khóa cuộn trang nền trong lúc bản đồ ở chế độ toàn màn hình - vừa tránh thanh cuộn xuất hiện đè lên
   các nút bên phải, vừa đúng trải nghiệm "toàn màn hình" (không cuộn được nội dung phía sau). */
body.map-fullscreen-active {
    overflow: hidden !important;
}

#btn-map-fullscreen:hover {
    background: rgba(15, 23, 42, 0.9) !important;
    transform: scale(1.08);
}

/* Collapsible Layers Panel */
.map-control-layers.collapsed #map-layers-list {
    display: none !important;
}

.map-control-layers.collapsed #map-layers-toggle-arrow {
    transform: rotate(180deg);
}

/* --- NEW PROMOTIONAL & NEWS CSS STYLES --- */

/* Portal Layout Columns */
.portal-body-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

/* Sidebar Promos - Sticky Columns flanking the main content */
.sidebar-promo {
    position: -webkit-sticky;
    position: sticky;
    top: 90px; /* Sticks below the header */
    margin-top: 65px; /* Aligns top edge perfectly with News Section */
    width: calc((100vw - 1280px) / 2 - 25px);
    min-width: 160px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 99;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.promo-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 4px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-in-out;
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(244, 211, 94, 0.5);
}

/* Redesign text & badges inside the promo-card */
.sticky-ad-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
    padding-bottom: 8px;
    margin-bottom: 2px;
}

.sticky-ad-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.sticky-ad-img {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sticky-ad-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 4px;
}

.sticky-ad-badge {
    background: rgba(244, 211, 94, 0.15);
    color: #b45309;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 2px;
}

.ad-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 8px 0;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    margin-top: 4px;
}

.ad-cta-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}


/* Hiệu ứng crossfade mượt khi thẻ quảng cáo luân phiên sang nội dung kế tiếp:
   JS hạ opacity thẻ về 0 (nhờ transition opacity 0.6s ở .promo-card), đổi nội dung, rồi trả opacity về 1 */
.promo-card.ad-item-fading {
    opacity: 0;
}

/* Hide sidebars if viewport cannot display both sidebars and 1220px main content */
@media (max-width: 1580px) {
    .sidebar-promo {
        display: none !important;
    }
}

/* News & Events Section - Sliding Carousel */
.news-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 20px;
    padding: 5px 0;
}

.news-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.news-card {
    flex: 0 0 calc(33.333% - 16px); /* Exact 3-card display in container */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

@media (max-width: 900px) {
    .news-card {
        flex: 0 0 calc(50% - 12px); /* 2 cards visible */
    }
}

@media (max-width: 600px) {
    .news-card {
        flex: 0 0 100%; /* 1 card visible */
    }
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.news-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.news-card-body {
    padding: 20px;
}

.news-card-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0b3c5d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

/* Governmental Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 45px 0 25px 0;
    margin-top: 60px;
    border-top: 3px solid #d9b310;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-info-col h4, .footer-links-col h4, .footer-contact-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-info-col h4::after, .footer-links-col h4::after, .footer-contact-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #d9b310;
}

.footer-info-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col ul li {
    margin-bottom: 10px;
}

.footer-links-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links-col ul li a:hover {
    color: #d9b310;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.footer-contact-icon {
    color: #d9b310;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 20px 20px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.78rem;
}

@media (max-width: 480px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* Collapsible Layers Panel */
.map-control-layers.collapsed #map-layers-list {
    display: none !important;
}

.map-control-layers.collapsed #map-layers-toggle-arrow {
    transform: rotate(180deg);
}

/* News Details Popup Modal Styling */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.news-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    padding: 24px;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.news-modal-close:hover {
    color: #0f172a;
}

#news-modal-body h3 {
    font-size: 1.3rem;
    color: #0b3c5d;
    margin-bottom: 8px;
    line-height: 1.4;
}

#news-modal-body .news-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

#news-modal-body img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

#news-modal-body p {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 10px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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



/* =====================================================================
 * STANDARDIZED 100 ENTITIES, 3-TIER INDOOR MAP & MULTIMODAL AI STYLES
 * ===================================================================== */
.std-explorer-section {
    max-width: 1280px;
    margin: 48px auto;
    padding: 32px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(11, 60, 93, 0.08);
}

.std-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.std-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.std-section-header h2 {
    font-size: 1.55rem;
    color: #0b3c5d;
    margin: 0 0 6px 0;
}

.std-section-header p {
    color: #475569;
    font-size: 0.92rem;
    margin: 0;
}

.std-primary-pill, .std-secondary-pill {
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.std-primary-pill {
    background: linear-gradient(135deg, #0b3c5d, #0284c7);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(11, 60, 93, 0.22);
}

.std-secondary-pill {
    background: #ffffff;
    color: #0b3c5d;
    border: 1px solid #cbd5e1;
}

.std-primary-pill:hover, .std-secondary-pill:hover {
    transform: translateY(-1px);
}

.std-indoor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 960px) {
    .std-indoor-layout {
        grid-template-columns: 1fr;
    }
}

.std-indoor-map-card, .std-hierarchy-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.std-map-toolbar {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
}

.std-map-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.std-map-title-wrap strong {
    color: #0b3c5d;
    font-size: 0.98rem;
}

.std-map-title-wrap span {
    color: #64748b;
    font-size: 0.78rem;
}

.std-layer-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: #334155;
    font-weight: 600;
}

.std-layer-toggles label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.std-indoor-map-canvas {
    width: 100%;
    height: 410px;
    background: #e2e8f0;
}

.std-stop-pin-badge {
    background: #d97706;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.std-geofence-bar {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.std-geofence-status {
    font-size: 0.8rem;
    color: #475569;
    flex: 1 1 220px;
}

.std-sidebar-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.std-sidebar-header h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #0b3c5d;
}

.std-hierarchy-tree-list {
    max-height: 456px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.std-tree-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.std-tree-item:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

.std-tree-item.tier-1b { border-left: 4px solid #0284c7; }
.std-tree-item.tier-1c { border-left: 4px solid #d97706; margin-left: 12px; }
.std-tree-item.tier-1d { border-left: 4px solid #059669; margin-left: 12px; }

.std-tree-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 3px;
}

.std-tree-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.std-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
}

.std-badge-blue { background: rgba(2, 132, 199, 0.14); color: #0369a1; }
.std-badge-gold { background: rgba(217, 119, 6, 0.16); color: #b45309; }

.std-directory-box {
    margin-top: 8px;
}

.std-directory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.std-group-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.std-filter-chip {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.std-filter-chip.active {
    background: #0b3c5d;
    border-color: #0b3c5d;
    color: #ffffff;
}

#std-directory-search {
    min-width: 260px;
    flex: 0 1 340px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.85rem;
    outline: none;
}

.std-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.std-entity-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.std-entity-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.std-entity-card-actions button {
    flex: 1 1 110px;
    padding: 6px 10px;
    font-size: 0.76rem;
}

/* Modal Styles */
.std-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 26px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.std-modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #475569;
}

.std-modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    padding-right: 42px;
}

.std-modal-badges, .std-modal-actions-top {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.std-modal-title {
    margin: 0 0 4px 0;
    color: #0b3c5d;
    font-size: 1.45rem;
}

.std-modal-subtitle {
    margin: 0 0 14px 0;
    color: #64748b;
    font-size: 0.9rem;
}

.std-guardrail-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #d97706;
    color: #78350f;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    margin-bottom: 14px;
}

.std-narration-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.std-narration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.std-duration-pills, .std-speech-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.std-dur-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.std-dur-btn.active {
    background: #0b3c5d;
    color: #ffffff;
    border-color: #0b3c5d;
}

.std-narration-text {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.6;
    white-space: pre-line;
}

.std-modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.std-tab-btn {
    border: none;
    background: none;
    padding: 9px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    margin-bottom: -2px;
}

.std-tab-btn.active {
    color: #0b3c5d;
    border-bottom-color: #0b3c5d;
}

.std-tab-panel {
    display: none;
}

.std-tab-panel.active {
    display: block;
}

.std-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.std-media-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
}

.std-vr360-stage {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    background-size: 220% auto;
    background-position: 50% 50%;
    cursor: grab;
    position: relative;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: flex-end;
    padding: 8px;
}

.std-vr360-hint {
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 999px;
}

.std-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #ffffff;
}

.std-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #0b3c5d;
    font-size: 0.88rem;
}

.std-faq-item p {
    margin: 8px 0 0 0;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

/* AI Chat Controls & Multimodal Cards */
.chat-controls-bar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.chat-controls-bar select {
    flex: 1;
    font-size: 0.75rem;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
}

.chat-mic-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0 10px;
    cursor: pointer;
    font-size: 1rem;
}

.chat-mic-btn.recording {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

.chat-rich-actions, .chat-evidence-strip, .chat-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.chat-action-chip {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.chat-suggest-chip {
    background: #f8fafc;
    color: #0b3c5d;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    cursor: pointer;
    text-align: left;
}

.chat-evidence-thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

/* =========================================================================
 * V5.0 "HOÀNG ĐAN XỨ NGHỆ — HERITAGE & SPATIAL AI" EDITORIAL REDESIGN
 * ========================================================================= */
:root {
    --primary-color: #0b2545;
    --primary-light: #134074;
    --secondary-color: #d4af37;
    --accent-color: #0284c7;
    --warm-bg: #faf7f2;
}

body {
    background-color: var(--warm-bg);
    color: #0f172a;
    padding-bottom: 0;
}

.navbar {
    background: linear-gradient(90deg, rgba(11, 37, 69, 0.97) 0%, rgba(19, 64, 116, 0.96) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    height: 74px;
}

.nav-container {
    max-width: 1360px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.15;
}

.logo-emblem {
    font-size: 1.7rem;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.4));
}

.logo-sub {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

.nav-menu {
    gap: 22px;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-install-pill {
    background: linear-gradient(135deg, #d4af37 0%, #f59e0b 100%);
    color: #0b2545;
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s ease;
}

.pwa-install-pill:hover {
    transform: translateY(-1px);
}

.nav-login-btn {
    cursor: pointer;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.82rem;
    transition: var(--transition-smooth);
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.nav-profile-btn {
    cursor: pointer;
    font-weight: 700;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.82rem;
    align-items: center;
    gap: 6px;
}

/* Enhanced Hero Banner */
.hero {
    margin-top: 74px;
    min-height: 540px;
    height: auto;
    padding: 54px 20px 46px 20px;
    background-image: linear-gradient(180deg, rgba(11, 37, 69, 0.68) 0%, rgba(15, 23, 42, 0.82) 100%), url('https://images.unsplash.com/photo-1583417319070-4a69db38a482?w=1600&q=85');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: radial-gradient(circle at center, rgba(11, 37, 69, 0.2) 0%, rgba(11, 37, 69, 0.72) 100%);
}

.hero-content {
    max-width: 960px;
    width: 100%;
}

.hero-official-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: #fde68a;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.7rem);
    color: #fef08a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.06rem;
    max-width: 780px;
    margin: 0 auto 26px auto;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
}

.search-container {
    max-width: 780px;
    background: rgba(255, 255, 255, 0.96);
    padding: 7px 8px 7px 16px;
    align-items: center;
    gap: 6px;
    border: 2px solid rgba(212, 175, 55, 0.55);
}

.search-sparkle {
    font-size: 1.15rem;
}

.hero-voice-btn {
    background: #f1f5f9 !important;
    color: #0b2545 !important;
    padding: 10px 14px !important;
    border-radius: 50% !important;
    font-size: 1rem;
    border: 1px solid #cbd5e1 !important;
}

.hero-quick-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hero-chip {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
    font-family: inherit;
}

.hero-chip:hover {
    background: #d4af37;
    color: #0b2545;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.hero-stats-strip {
    margin-top: 28px;
    background: rgba(11, 37, 69, 0.76);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    padding: 14px 22px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    backdrop-filter: blur(10px);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-stat-item strong {
    color: #fde68a;
    font-size: 1.15rem;
    font-weight: 800;
}

.hero-stat-item span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
    .hero-stat-divider { display: none; }
    .nav-menu { display: none; }
}

/* Wide Main Container without Sticky Ad Sidebars */
.portal-body-wrapper {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 18px;
}

.main-container {
    max-width: 1340px;
    margin: 30px auto;
    padding: 0;
}

.grid-section {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(11, 37, 69, 0.06);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #b45309;
    background: rgba(212, 175, 55, 0.16);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 6px;
}

/* Unified Multi-Scale Smart Map & Route Studio */
.studio-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.map-scale-switcher {
    display: inline-flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    gap: 4px;
}

.scale-mode-btn {
    border: none;
    background: transparent;
    color: #334155;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.scale-mode-btn.active {
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
    color: #fde68a;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
}

.studio-pane {
    display: none;
}

.studio-pane.active {
    display: block;
}

.map-wrapper {
    height: 510px;
    border-radius: 16px;
}

.map-control-layers {
    position: absolute;
    bottom: 20px;
    left: 12px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    min-width: 175px;
}

#map-layers-header {
    font-weight: 700;
    font-size: 0.8rem;
    color: #0b2545;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

#map-layers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

#map-layers-list label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    cursor: pointer;
    color: #334155;
    font-weight: 500;
}

#btn-map-fullscreen {
    background: #0b2545;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

.map-floating-indoor-cta {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 950;
    background: linear-gradient(135deg, #0b2545 0%, #b45309 100%);
    color: #ffffff;
    border: 1px solid rgba(253, 230, 138, 0.6);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.map-floating-indoor-cta:hover {
    transform: scale(1.03);
}

#btn-map-locate {
    position: absolute;
    bottom: 24px;
    right: 12px;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Planner Subtabs */
.planner-subtabs {
    display: flex;
    gap: 6px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.planner-subtab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
}

.planner-subtab.active {
    background: #ffffff;
    color: #0b2545;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.planner-subpane {
    display: none;
    flex-direction: column;
    flex: 1;
}

.planner-subpane.active {
    display: flex;
}

.studio-select {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    outline: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #0b2545;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.map-sample-tours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 370px;
    overflow-y: auto;
    padding-right: 4px;
}

.sample-tour-mini-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #d4af37;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-tour-mini-card:hover {
    border-color: #0b2545;
    background: #f8fafc;
}

/* Indoor 3-Tier Map Selector & Quick Audio Bar */
.indoor-selector-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.indoor-selector-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.indoor-select-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0b2545;
    white-space: nowrap;
}

.indoor-dest-select {
    max-width: 440px;
}

.indoor-quick-audio-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.audio-bar-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0b2545;
}

.indoor-audio-chip {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.indoor-audio-chip.active {
    background: #0b2545;
    color: #fde68a;
    border-color: #0b2545;
}

/* Unified Tourist Heritage Explorer Grid */
.explorer-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.explorer-search-box {
    flex: 0 1 380px;
    min-width: 260px;
}

#std-directory-search {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.88rem;
    background: #f8fafc;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#std-directory-search:focus {
    border-color: #0b2545;
    background: #ffffff;
}

.explorer-count-pill {
    font-size: 0.82rem;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 999px;
}

.tourist-heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 22px;
    margin-top: 12px;
}

.tourist-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tourist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(11, 37, 69, 0.12);
    border-color: #cbd5e1;
}

.tourist-card-media {
    position: relative;
    height: 195px;
    overflow: hidden;
    background: #e2e8f0;
}

.tourist-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tourist-card:hover .tourist-card-media img {
    transform: scale(1.06);
}

.tourist-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.tourist-rank-badge {
    background: rgba(11, 37, 69, 0.88);
    color: #fde68a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.tourist-loc-badge {
    background: rgba(255, 255, 255, 0.92);
    color: #0b2545;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.tourist-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tourist-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b2545;
    margin-bottom: 6px;
    line-height: 1.38;
}

.tourist-card-desc {
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tourist-card-footer {
    display: flex;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.tourist-card-footer button {
    flex: 1;
    padding: 7px 8px;
    font-size: 0.76rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0b2545;
    transition: all 0.15s ease;
    font-family: inherit;
}

.tourist-card-footer button.primary-act {
    background: #0b2545;
    color: #ffffff;
    border-color: #0b2545;
}

.tourist-card-footer button:hover {
    transform: translateY(-1px);
}

/* Spatial Analytics Drawer */
.spatial-analytics-drawer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
}

.spatial-analytics-drawer summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0b2545;
}

.spatial-analytics-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

/* Ecosystem Sections: Tours, 3D Flipbooks, Videos, News, Hotels & Travel Agencies */
.eco-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.eco-tab-btn, .service-tab-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.eco-tab-btn.active, .service-tab-btn.active {
    background: #0b2545;
    color: #fde68a;
    border-color: #0b2545;
}

.eco-tab-pane {
    display: none;
}

.eco-tab-pane.active {
    display: block;
}

.eco-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.eco-flipbooks-grid, .eco-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.eco-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.eco-agencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.agency-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0b2545;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.agency-card strong {
    color: #0b2545;
    font-size: 0.92rem;
}

.agency-card span {
    font-size: 0.8rem;
    color: #475569;
}

.std-modal-hero-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.std-modal-hero-gallery img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.footer-source-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.footer-source-badges a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
}

.footer-source-badges a:hover {
    border-color: #d4af37;
    color: #fde68a;
}

/* Mobile / PWA Bottom Navigation Bar */
.pwa-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(11, 37, 69, 0.98);
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    z-index: 3500;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    backdrop-filter: blur(10px);
}

.pwa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.pwa-nav-item.active, .pwa-nav-item:hover {
    color: #fde68a;
}

.pwa-nav-icon {
    font-size: 1.15rem;
}

@media (max-width: 900px) {
    .pwa-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 68px;
    }
    .ai-chat-widget {
        bottom: 76px;
        right: 16px;
    }
}

/* =========================================================================
 * V6.0 PHƯƠNG ÁN A: "MINIMALIST HERITAGE & GLASS" + MULTI-DEVICE SHELLS
 * (Web Portal • Mobile PWA App (?mode=mobile) • Touch Kiosk (?mode=kiosk))
 * ========================================================================= */
:root {
    --primary-color: #0F3D3E;
    --primary-light: #175658;
    --secondary-color: #D4AF37;
    --warm-bg: #FAF8F5;
    --ink-primary: #0F292A;
    --ink-secondary: #4A6061;
    --glass-surface: rgba(255, 255, 255, 0.86);
    --hairline-border: rgba(15, 61, 62, 0.08);
}

body {
    background-color: var(--warm-bg);
    color: var(--ink-primary);
}

/* Glass Navbar Refinement */
.navbar {
    background: rgba(15, 41, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    height: 76px;
}

.nav-menu a {
    padding: 8px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.86);
}

.nav-menu a.active,
.nav-menu a:hover {
    background: rgba(212, 175, 55, 0.18);
    color: #FDE68A;
}

.nav-menu a::after {
    display: none;
}

/* Breathable Minimalist Hero */
.hero {
    margin-top: 76px;
    min-height: 450px;
    padding: 64px 20px 56px 20px;
    background-image: linear-gradient(180deg, rgba(15, 41, 42, 0.54) 0%, rgba(15, 41, 42, 0.78) 100%), url('https://images.unsplash.com/photo-1583417319070-4a69db38a482?w=1800&q=85');
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 4.6vw, 3.85rem);
    color: #FFFDF7;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    margin-bottom: 14px;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    margin-bottom: 28px;
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-radius: 999px;
    padding: 7px 8px 7px 20px;
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 18px 40px rgba(15, 41, 42, 0.25);
}

/* Focused Web Space Ordering & Clean Section Surfaces */
#homepage-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

#library-section { order: 1; margin-top: 0 !important; }
#map-section { order: 2; margin-top: 0 !important; }
#ecosystem-tours-section { order: 3; margin-top: 0 !important; }
#news-section { order: 4; margin-top: 0 !important; }
#ecosystem-services-section { order: 5; margin-top: 0 !important; }

.grid-section {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid var(--hairline-border);
    border-radius: 26px;
    padding: 36px 34px;
    box-shadow: 0 16px 42px rgba(15, 41, 42, 0.05);
}

.panel-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.85rem;
    color: var(--ink-primary);
    letter-spacing: -0.01em;
}

/* Minimalist Heritage Cards (Option A: Full-bleed Photo + Floating Audio Play Button) */
.tourist-heritage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
    gap: 26px;
    margin-top: 18px;
}

.tourist-card {
    background: #FFFFFF;
    border: 1px solid rgba(15, 61, 62, 0.07);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(15, 41, 42, 0.05);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.tourist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(15, 41, 42, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
}

.tourist-card-media {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.tourist-card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(15, 41, 42, 0) 0%, rgba(15, 41, 42, 0.62) 100%);
    pointer-events: none;
}

.tourist-rank-badge {
    background: rgba(15, 41, 42, 0.76);
    color: #FDE68A;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(253, 230, 138, 0.28);
    font-size: 0.7rem;
    padding: 5px 12px;
}

.tourist-loc-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-primary);
    backdrop-filter: blur(8px);
}

/* Floating Circular Play Audio Button on Card Image */
.card-floating-play-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(253, 230, 138, 0.75);
    background: rgba(15, 61, 62, 0.88);
    color: #FDE68A;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.card-floating-play-btn:hover {
    transform: scale(1.1);
    background: #D4AF37;
    color: #0F292A;
}

.card-floating-qr-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.tourist-card-body {
    padding: 18px 20px 20px 20px;
}

.tourist-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.16rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 6px;
}

.tourist-card-desc {
    font-size: 0.85rem;
    color: var(--ink-secondary);
    -webkit-line-clamp: 2;
    margin-bottom: 0;
}

/* QR Strip inside Detail Modal */
.std-modal-qr-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #FAF8F5 0%, #F1EFEA 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.std-modal-qr-svg svg {
    display: block;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 4px;
}

.std-modal-qr-info strong {
    color: var(--ink-primary);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 4px;
}

.std-modal-qr-info p {
    color: var(--ink-secondary);
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.45;
}

/* =========================================================================
 * STICKY GLASS MINI AUDIO PLAYER (Spotify / Smartify Style)
 * ========================================================================= */
.sticky-mini-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 32px));
    background: rgba(15, 41, 42, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    padding: 8px 16px 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    z-index: 4900;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.mini-player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-width: 0;
    flex: 1;
}

.mini-player-left img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4AF37;
    flex-shrink: 0;
}

.mini-player-meta {
    min-width: 0;
}

.mini-player-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #FDE68A;
    font-weight: 700;
}

.mini-player-meta strong {
    display: block;
    font-size: 0.88rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-wave-dots {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}

.audio-wave-dots span {
    width: 3px;
    height: 10px;
    background: #D4AF37;
    border-radius: 2px;
    animation: wavePulse 0.9s infinite ease-in-out;
}

.audio-wave-dots span:nth-child(2) { animation-delay: 0.2s; }
.audio-wave-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wavePulse {
    0%, 100% { height: 4px; }
    50% { height: 11px; }
}

.mini-player-center {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 999px;
}

.mini-dur-pill {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.73rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.mini-dur-pill.active {
    background: #D4AF37;
    color: #0F292A;
}

.mini-player-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-ctrl-btn {
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.mini-ctrl-btn.stop {
    background: rgba(239, 68, 68, 0.22);
    color: #fecaca;
}

.mini-close-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 4px;
}

/* =========================================================================
 * UNIVERSAL QR CODE SCANNER MODAL
 * ========================================================================= */
.qr-scanner-card {
    background: #FAF8F5;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.qr-scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.qr-scanner-header h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    color: var(--ink-primary);
    margin: 0;
}

.qr-scanner-sub {
    font-size: 0.86rem;
    color: var(--ink-secondary);
    margin-bottom: 14px;
}

.qr-viewfinder-box {
    position: relative;
    width: 100%;
    height: 210px;
    background: radial-gradient(circle at center, #173f40 0%, #09191a 100%);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: 2px solid rgba(212, 175, 55, 0.45);
}

.qr-scan-frame {
    width: 170px;
    height: 150px;
    border: 2px dashed #D4AF37;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDE68A;
    font-size: 0.8rem;
    font-weight: 600;
}

.qr-laser-line {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FDE68A, #D4AF37, transparent);
    box-shadow: 0 0 12px #D4AF37;
    animation: qrLaserMove 2.2s infinite ease-in-out;
}

@keyframes qrLaserMove {
    0%, 100% { top: 14px; }
    50% { top: 132px; }
}

.qr-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.qr-manual-input-wrap {
    display: flex;
    gap: 6px;
    flex: 1 1 220px;
}

.qr-manual-input-wrap input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: 0.83rem;
    outline: none;
}

.qr-demo-stops-box {
    background: #ffffff;
    border: 1px solid rgba(15, 61, 62, 0.1);
    border-radius: 16px;
    padding: 14px;
}

.qr-demo-stops-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-primary);
    margin-bottom: 10px;
}

.qr-demo-stops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 8px;
}

.qr-demo-stop-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #FAF8F5;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    font-family: inherit;
}

.qr-demo-stop-btn:hover {
    border-color: #D4AF37;
    background: #FFFBEB;
    transform: translateY(-1px);
}

.qr-demo-stop-btn code {
    font-size: 0.7rem;
    color: #B45309;
    font-weight: 700;
}

.qr-demo-stop-btn strong {
    font-size: 0.8rem;
    color: var(--ink-primary);
    line-height: 1.3;
}

/* =========================================================================
 * EXPERIENCE 2: MOBILE PWA APP SHELL (?mode=mobile or ?qr=...)
 * ========================================================================= */
body.mode-mobile #web-top-navbar,
body.mode-mobile #explore,
body.mode-mobile .portal-body-wrapper,
body.mode-mobile #web-site-footer,
body.mode-mobile .pwa-bottom-nav,
body.mode-mobile #ai-chat-widget {
    display: none !important;
}

body.mode-mobile {
    background: radial-gradient(circle at top, #134445 0%, #091d1e 100%);
    min-height: 100vh;
    padding-bottom: 0 !important;
}

.mobile-pwa-backdrop {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 12px;
}

.mobile-device-frame {
    width: 100%;
    max-width: 435px;
    height: min(865px, calc(100vh - 36px));
    background: #FAF8F5;
    border-radius: 40px;
    border: 8px solid #1c3637;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

@media (max-width: 600px) {
    .mobile-pwa-backdrop {
        padding: 0;
    }
    .mobile-device-frame {
        max-width: 100vw;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
}

.mob-app-header {
    background: linear-gradient(135deg, #0F3D3E 0%, #155253 100%);
    color: #ffffff;
    padding: 14px 16px 12px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    flex-shrink: 0;
}

.mob-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mob-brand-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mob-lotus {
    font-size: 1.5rem;
}

.mob-brand-left strong {
    display: block;
    font-size: 1rem;
    color: #FDE68A;
    line-height: 1.15;
}

.mob-brand-left small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.78);
}

.mob-brand-actions {
    display: flex;
    gap: 6px;
}

.mob-pill-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.mob-pill-btn.gold {
    background: #D4AF37;
    color: #0F292A;
    border-color: #D4AF37;
}

.mob-viewport-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 86px 14px;
}

.mob-tab-pane {
    display: none;
}

.mob-tab-pane.active {
    display: block;
}

.mob-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid rgba(15, 61, 62, 0.14);
    border-radius: 999px;
    padding: 7px 10px 7px 14px;
    box-shadow: 0 4px 14px rgba(15, 41, 42, 0.05);
    margin-bottom: 12px;
}

.mob-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.86rem;
    background: transparent;
}

.mob-search-bar button {
    border: none;
    background: #FAF8F5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

/* Scanned QR Active Card on Mobile */
.mob-qr-active-card {
    background: linear-gradient(135deg, #0F3D3E 0%, #1b595b 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1.5px solid #D4AF37;
    box-shadow: 0 10px 25px rgba(15, 61, 62, 0.25);
}

.mob-hero-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.mob-quick-action-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(15, 61, 62, 0.1);
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 41, 42, 0.04);
    font-family: inherit;
}

.mob-quick-action-card.primary {
    background: linear-gradient(135deg, #0F3D3E 0%, #175658 100%);
    color: #ffffff;
    border-color: #D4AF37;
}

.mob-qa-icon {
    font-size: 1.5rem;
}

.mob-quick-action-card strong {
    display: block;
    font-size: 0.84rem;
}

.mob-quick-action-card small {
    font-size: 0.7rem;
    opacity: 0.82;
}

.mob-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mob-section-head h3 {
    font-size: 0.95rem;
    color: var(--ink-primary);
    margin: 0;
}

.mob-section-head span {
    font-size: 0.72rem;
    color: var(--ink-secondary);
}

.mob-featured-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.mob-story-card {
    flex: 0 0 215px;
    height: 145px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.mob-story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mob-story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(15,41,42,0.86) 100%);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.mob-story-overlay strong {
    font-size: 0.84rem;
    line-height: 1.25;
}

.mob-story-overlay span {
    font-size: 0.68rem;
    color: #FDE68A;
}

.mob-filter-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.mob-chip {
    white-space: nowrap;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--ink-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.mob-chip.active {
    background: #0F3D3E;
    color: #FDE68A;
    border-color: #0F3D3E;
}

.mob-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mob-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 61, 62, 0.08);
    border-radius: 16px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(15, 41, 42, 0.04);
}

.mob-feed-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.mob-feed-info {
    flex: 1;
    min-width: 0;
}

.mob-feed-info small {
    display: block;
    font-size: 0.68rem;
    color: #B45309;
    font-weight: 700;
}

.mob-feed-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--ink-primary);
    margin: 2px 0;
}

.mob-feed-info p {
    font-size: 0.75rem;
    color: var(--ink-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-feed-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #0F3D3E;
    color: #FDE68A;
    font-size: 0.9rem;
    flex-shrink: 0;
    cursor: pointer;
}

/* Mobile Map & Audio Tabs */
.mob-map-top-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.mob-map-mode-pills {
    display: flex;
    gap: 6px;
}

.mob-geofence-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #D4AF37;
    background: #FFFBEB;
    color: #92400E;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.mob-leaflet-map {
    width: 100%;
    height: 350px;
    border-radius: 18px;
    border: 1px solid #cbd5e1;
    margin-bottom: 10px;
}

.mob-map-stops-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mob-audio-hero {
    background: linear-gradient(135deg, #0F3D3E 0%, #175658 100%);
    color: #ffffff;
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.mob-audio-hero h3 {
    margin: 4px 0;
    font-size: 1.15rem;
    color: #FDE68A;
}

.mob-audio-hero p {
    font-size: 0.78rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.mob-audio-dur-bar {
    display: flex;
    gap: 6px;
}

.mob-dur-chip {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
}

.mob-dur-chip.active {
    background: #D4AF37;
    color: #0F292A;
    border-color: #D4AF37;
}

.mob-audio-playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mobile AI Tab */
.mob-ai-top-card {
    background: #ffffff;
    border: 1px solid rgba(15, 61, 62, 0.1);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.mob-ai-top-card strong {
    font-size: 0.92rem;
    color: var(--ink-primary);
}

.mob-ai-top-card p {
    font-size: 0.75rem;
    color: var(--ink-secondary);
    margin: 4px 0 0 0;
}

.mob-ai-voice-orb {
    background: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
    color: #0F292A;
    border: none;
    border-radius: 16px;
    padding: 10px 12px;
    font-weight: 800;
    font-size: 0.76rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.mob-ai-quick-prompts {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.mob-prompt-chip {
    white-space: nowrap;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--ink-primary);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.73rem;
    cursor: pointer;
}

.mob-ai-messages {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 12px;
    height: 310px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.mob-ai-input-row {
    display: flex;
    gap: 8px;
}

.mob-ai-input-row input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    outline: none;
}

.mob-ai-input-row button {
    background: #0F3D3E;
    color: #FDE68A;
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
}

/* Mobile 5-Tab Bottom Dock */
.mob-bottom-dock {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(15, 41, 42, 0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    z-index: 30;
}

.mob-dock-item {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.mob-dock-item.active {
    color: #FDE68A;
}

.mob-dock-icon {
    font-size: 1.15rem;
}

.mob-dock-qr-center {
    border: none;
    background: transparent;
    color: #FDE68A;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-14px);
    font-family: inherit;
}

.mob-dock-qr-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
    color: #0F292A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
    border: 3px solid #FAF8F5;
}

/* =========================================================================
 * EXPERIENCE 3: INTERACTIVE TOUCH KIOSK SHELL (?mode=kiosk)
 * (100vh Zero-Scroll • Giant Touch Targets • You Are Here Map • QR Handoff)
 * ========================================================================= */
body.mode-kiosk #web-top-navbar,
body.mode-kiosk #explore,
body.mode-kiosk .portal-body-wrapper,
body.mode-kiosk #web-site-footer,
body.mode-kiosk .pwa-bottom-nav,
body.mode-kiosk #ai-chat-widget {
    display: none !important;
}

body.mode-kiosk {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background: #0B2223;
    padding: 0 !important;
}

.kiosk-touch-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #0B2223 0%, #0F3D3E 100%);
    color: #ffffff;
    overflow: hidden;
}

.kiosk-header {
    height: 82px;
    padding: 0 26px;
    background: rgba(9, 25, 26, 0.85);
    border-bottom: 2px solid rgba(212, 175, 55, 0.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.kiosk-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kiosk-emblem {
    font-size: 2.3rem;
}

.kiosk-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #FDE68A;
}

.kiosk-brand h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    color: #ffffff;
    margin: 2px 0 0 0;
}

.kiosk-status-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kiosk-clock-box {
    text-align: right;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.kiosk-clock-box strong {
    display: block;
    font-size: 1.25rem;
    color: #FDE68A;
}

.kiosk-clock-box span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.8);
}

.kiosk-touch-pill {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.kiosk-touch-pill.gold {
    background: #D4AF37;
    color: #0F292A;
    border-color: #D4AF37;
}

.kiosk-main-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 340px 1fr 360px;
    gap: 18px;
    padding: 18px 22px;
    overflow: hidden;
    min-height: 0;
}

@media (max-width: 1200px) {
    body.mode-kiosk { overflow-y: auto; height: auto; }
    .kiosk-touch-shell { height: auto; min-height: 100vh; overflow: visible; }
    .kiosk-main-grid { grid-template-columns: 1fr; }
}

.kiosk-col-left,
.kiosk-col-center,
.kiosk-col-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow: hidden;
}

.kiosk-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex-shrink: 0;
}

.kiosk-cat-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 16px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.kiosk-cat-btn span {
    font-size: 1.4rem;
}

.kiosk-cat-btn strong {
    font-size: 0.8rem;
    text-align: center;
}

.kiosk-cat-btn.active {
    background: #D4AF37;
    color: #0F292A;
    border-color: #FDE68A;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.kiosk-list-header {
    font-size: 0.8rem;
    color: #FDE68A;
    font-weight: 700;
}

.kiosk-touch-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.kiosk-list-item {
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink-primary);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

.kiosk-list-item.active,
.kiosk-list-item:hover {
    border-color: #D4AF37;
    background: #FFFBEB;
}

.kiosk-list-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-primary);
}

.kiosk-list-item small {
    font-size: 0.75rem;
    color: var(--ink-secondary);
}

/* Kiosk Center Map & Console */
.kiosk-map-card {
    flex: 1;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(212, 175, 55, 0.45);
    min-height: 240px;
}

.kiosk-you-are-here-pill {
    background: #0F292A;
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
}

.kiosk-you-are-here-pill strong {
    color: #FDE68A;
}

.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
    margin-right: 6px;
}

.kiosk-leaflet-map {
    flex: 1;
    width: 100%;
    min-height: 220px;
}

.kiosk-active-console {
    background: #FAF8F5;
    color: var(--ink-primary);
    border-radius: 22px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    border: 2px solid rgba(212, 175, 55, 0.45);
    flex-shrink: 0;
}

.kiosk-active-console img {
    width: 150px;
    height: 135px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.kiosk-active-info {
    flex: 1;
    min-width: 0;
}

.kiosk-active-info h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.28rem;
    margin: 4px 0;
    color: var(--ink-primary);
}

.kiosk-active-info p {
    font-size: 0.83rem;
    color: var(--ink-secondary);
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kiosk-audio-touch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kiosk-audio-btn {
    border: 1.5px solid #0F3D3E;
    background: #ffffff;
    color: #0F3D3E;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.kiosk-audio-btn.active {
    background: #0F3D3E;
    color: #FDE68A;
}

.kiosk-audio-btn.stop {
    border-color: #ef4444;
    color: #b91c1c;
}

.kiosk-audio-btn.detail {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #0F292A;
}

/* Kiosk Right Column: QR Handoff & Voice AI */
.kiosk-qr-handoff-card,
.kiosk-ai-card {
    background: #FAF8F5;
    color: var(--ink-primary);
    border-radius: 22px;
    padding: 16px;
    border: 2px solid rgba(212, 175, 55, 0.45);
}

.kiosk-qr-handoff-card h3,
.kiosk-ai-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.18rem;
    margin: 2px 0 4px 0;
    color: var(--ink-primary);
}

.kiosk-qr-handoff-card p {
    font-size: 0.78rem;
    color: var(--ink-secondary);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.kiosk-qr-box-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.kiosk-qr-svg-container svg {
    display: block;
    border-radius: 8px;
}

.kiosk-qr-meta code {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #B45309;
}

.kiosk-ai-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

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

.kiosk-voice-ptt-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
    color: #0F292A;
    border: none;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.kiosk-ai-quick-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.kiosk-q-btn {
    text-align: left;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--ink-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.kiosk-q-btn:hover {
    border-color: #0F3D3E;
    background: #F0FDF4;
}

.kiosk-ai-answer-box {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink-primary);
    overflow-y: auto;
}


