/**
 * STYLE.CSS - Bản đồ Du lịch Ngõ Hẻm TP.HCM
 * Design: Vibrant, Modern, Smart City
 */

/* ===========================================
   CSS VARIABLES - VIBRANT FESTIVE COLORS
   =========================================== */
:root {
    /* Primary Vibrant Colors - Lễ hội sôi động */
    --color-electric-pink: #FF1B8D;      /* Hồng điện neon */
    --color-cyber-purple: #9D4EDD;       /* Tím cyber */
    --color-neon-blue: #00D9FF;          /* Xanh neon */
    --color-festival-orange: #FF6B35;    /* Cam lễ hội */
    --color-lime-green: #32FF32;         /* Xanh lime sáng */
    
    /* Secondary Colorful Palette */
    --color-magenta: #FF006E;            /* Magenta gốc */
    --color-purple: #8338EC;             /* Tím gốc */
    --color-deep-blue: #3A86FF;          /* Xanh đậm */
    --color-sun-yellow: #FFBE0B;         /* Vàng nắng */
    --color-vivid-red: #FF3333;          /* Đỏ rực */
    
    /* Modern Connected Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-electric-pink), var(--color-cyber-purple));
    --gradient-secondary: linear-gradient(135deg, var(--color-neon-blue), var(--color-festival-orange));
    --gradient-accent: linear-gradient(135deg, var(--color-lime-green), var(--color-vivid-red));
    --gradient-rainbow: linear-gradient(135deg, 
        var(--color-electric-pink) 0%, 
        var(--color-cyber-purple) 25%, 
        var(--color-neon-blue) 50%, 
        var(--color-festival-orange) 75%, 
        var(--color-lime-green) 100%);
    
    /* Neutral Colors */
    --color-dark: #1A1A2E;
    --color-darker: #0F0F23;
    --color-darkest: #070714;
    --color-light: #F8F9FA;
    --color-gray: #6C757D;
    --color-gray-light: #ADB5BD;
    
    /* Glassmorphism with Vibrant Tints */
    --color-glass: rgba(255, 27, 141, 0.1);        /* Pink tint */
    --color-glass-strong: rgba(157, 78, 221, 0.15); /* Purple tint */
    --color-glass-border: rgba(0, 217, 255, 0.18);  /* Blue tint */
    
    /* Category Colors - More Vibrant */
    --color-food: var(--color-electric-pink);
    --color-cafe: var(--color-cyber-purple);
    --color-art: var(--color-neon-blue);
    --color-hotel: var(--color-festival-orange);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Shadows - More Colorful */
    --shadow-sm: 0 2px 8px rgba(255, 27, 141, 0.15);
    --shadow-md: 0 4px 15px rgba(157, 78, 221, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 217, 255, 0.3);
    --shadow-glow-pink: 0 0 20px rgba(255, 27, 141, 0.4);
    --shadow-glow-purple: 0 0 20px rgba(157, 78, 221, 0.4);
    --shadow-glow-blue: 0 0 20px rgba(0, 217, 255, 0.4);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* Layout */
    --header-height: 64px;
    --sidebar-width: 360px;
}

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--color-darker);
    color: var(--color-light);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================================
   LAYOUT
   =========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--gradient-rainbow);
    border-bottom: 1px solid var(--color-glass-border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 var(--space-lg);
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow-pink);
}

.header__logo {
    display: flex;
    align-items: center;
    justify-self: start;
}

.header__tourism-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Làm trắng logo trong dark mode */
}

.header__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    text-align: center;
    justify-self: center;
    letter-spacing: 2px;
}

/* Header title gradient for light mode */
body.light-mode .header__title {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

body.light-mode .header__tourism-logo {
    filter: none; /* Logo màu gốc trong light mode */
}

.header__controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-self: end;
}

.header__search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.search-input {
    width: 280px;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-magenta);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.2);
}

.search-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    margin-left: var(--space-sm);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--color-glass-strong);
    border-color: var(--color-sun-yellow);
}

.theme-toggle__icon {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all var(--transition-normal);
}

.theme-toggle__icon--dark {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle__icon--light {
    opacity: 0;
    transform: translateY(20px);
}

/* Light Mode Styles */
body.light-mode {
    --color-dark: #FFFFFF;
    --color-darker: #F5F5F7;
    --color-darkest: #E8E8ED;
    --color-light: #1A1A2E;
    --color-gray: #6C757D;
    --color-gray-light: #495057;
    --color-glass: rgba(0, 0, 0, 0.05);
    --color-glass-strong: rgba(0, 0, 0, 0.08);
    --color-glass-border: rgba(0, 0, 0, 0.1);
}

body.light-mode .theme-toggle__icon--dark {
    opacity: 0;
    transform: translateY(-20px);
}

body.light-mode .theme-toggle__icon--light {
    opacity: 1;
    transform: translateY(0);
}

body.light-mode .header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .search-input {
    background: rgba(0, 0, 0, 0.05);
    color: #1A1A2E;
}

body.light-mode .search-input::placeholder {
    color: #6C757D;
}

body.light-mode .sidebar {
    background: #FFFFFF;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .filter-tabs {
    background: #F8F9FA;
}

body.light-mode .filter-tab {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.light-mode .filter-tab:hover {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.3);
}

body.light-mode .filter-tab.active {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

body.light-mode .poi-card {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-mode .poi-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-magenta);
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.15);
}

body.light-mode .poi-card--active {
    border-color: var(--color-magenta);
    box-shadow: 0 0 0 2px rgba(255, 0, 110, 0.2), 0 4px 20px rgba(255, 0, 110, 0.15);
}

body.light-mode .modal__content {
    background: #FFFFFF;
}

body.light-mode .modal__close {
    background: var(--gradient-primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

body.light-mode .modal__close:hover {
    background: var(--color-electric-pink);
    transform: scale(1.1);
}

/* Light Mode Modal Styles */
body.light-mode .modal-overlay {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

body.light-mode .modal-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
    backdrop-filter: blur(20px);
}

body.light-mode .modal-close {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-glow-pink);
}

body.light-mode .modal-close:hover {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-glow-blue);
}

body.light-mode .modal-card__name {
    color: #1A1A2E;
}

body.light-mode .modal-card__alley {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .modal-card__description {
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .modal-card__hours {
    color: rgba(0, 0, 0, 0.7);
}

/* Light Mode Button */
body.light-mode .modal-card__cta {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
    color: white;
    border: none;
}

body.light-mode .modal-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.3);
}

/* Light Mode Map Marker Styles */
body.light-mode .leaflet-marker-icon.marker-icon--active img,
body.light-mode .marker-icon--active img {
    border: 3px solid var(--color-magenta) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    filter: drop-shadow(0 0 6px rgba(255, 0, 110, 0.6)) !important;
}

body.light-mode .marker-icon:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 0, 110, 0.6));
}

/* ===========================================
   SPLIT CONTAINER - LAYOUT V2
   =========================================== */
.split-container {
    display: flex;
    flex-direction: row;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    position: relative;
}

/* Panel Base */
.panel {
    position: relative;
    overflow: hidden;
}

/* Panel VR - Panorama */
.panel--vr {
    flex: 2;
    min-width: 20%;
    background: var(--color-darkest);
}

.panel--vr .panorama-container {
    width: 100%;
    height: 100%;
}

/* Panel Map */
.panel--map {
    flex: 1;
    min-width: 20%;
}

.panel--map .map-container {
    width: 100%;
    height: 100%;
}

/* Divider - Drag Handle */
.divider {
    width: 8px;
    background: var(--color-dark);
    cursor: col-resize;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.divider:hover {
    background: var(--color-magenta);
}

.divider__grip {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.divider__grip span {
    width: 4px;
    height: 4px;
    background: var(--color-gray-light);
    border-radius: 50%;
}

.divider:hover .divider__grip span {
    background: white;
}

/* When dragging */
body.is-dragging {
    cursor: col-resize !important;
    user-select: none;
}

body.is-dragging * {
    pointer-events: none;
}

body.is-dragging .divider {
    pointer-events: auto;
    background: var(--color-magenta);
}

/* Mobile: Vertical Split */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    
    .panel--vr {
        flex: 2;
        min-height: 30%;
    }
    
    .panel--map {
        flex: 1;
        min-height: 20%;
    }
    
    .divider {
        width: 100%;
        height: 8px;
        cursor: row-resize;
    }
    
    .divider__grip {
        flex-direction: row;
    }
    
    body.is-dragging {
        cursor: row-resize !important;
    }
}

/* ===========================================
   FAB BUTTON - Floating Action Button
   =========================================== */
.fab-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    box-shadow: var(--shadow-glow-pink);
    transition: all 0.3s ease;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.6);
}

.fab-button__icon {
    width: 24px;
    height: 24px;
    color: white;
}

/* FAB when drawer is open */
.fab-button.is-active {
    background: var(--color-dark);
}

.fab-button.is-active .fab-button__icon {
    transform: rotate(45deg);
}

/* ===========================================
   DRAWER - Side/Bottom Sheet
   =========================================== */
.drawer {
    position: fixed;
    top: var(--header-height);
    right: -380px;
    width: 360px;
    height: calc(100vh - var(--header-height));
    background: var(--color-darker);
    border-left: 1px solid var(--color-glass-border);
    z-index: 1400;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.drawer.is-open {
    right: 0;
}

.drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-glass-border);
    background: var(--color-darkest);
}

.drawer__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-light);
}

.drawer__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-light);
    transition: all 0.2s ease;
}

.drawer__close:hover {
    background: var(--color-magenta);
    color: white;
}

.drawer__search {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-glass-border);
}

.drawer__search .search-input {
    flex: 1;
}

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1350;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer - Bottom Sheet */
@media (max-width: 768px) {
    .drawer {
        top: auto;
        bottom: -70vh;
        left: 0;
        right: 0;
        width: 100%;
        height: 70vh;
        border-left: none;
        border-top: 1px solid var(--color-glass-border);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transition: bottom 0.3s ease;
    }
    
    .drawer.is-open {
        bottom: 0;
        right: 0;
    }
    
    .fab-button {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}

/* Light Mode Drawer */
body.light-mode .drawer {
    background: #FFFFFF;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .drawer__header {
    background: #F5F5F7;
}

body.light-mode .drawer__title {
    color: #1A1A2E;
}

/* ===========================================
   SIDEBAR
   =========================================== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--color-darker);
    border-right: 1px solid var(--color-glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-darkest);
    border-bottom: 1px solid var(--color-glass-border);
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-full);
    color: var(--color-gray-light);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.filter-tab__icon {
    width: 16px;
    height: 16px;
}

.filter-tab:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow-pink);
}

.filter-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow-pink);
}

/* POI List */
.poi-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.poi-list::-webkit-scrollbar {
    width: 6px;
}

.poi-list::-webkit-scrollbar-track {
    background: var(--color-darkest);
}

.poi-list::-webkit-scrollbar-thumb {
    background: var(--color-glass-strong);
    border-radius: var(--radius-full);
}

.poi-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-magenta);
}

.poi-list-empty {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-gray);
}

.poi-list-empty__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
}

/* POI Card */
.poi-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.poi-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-electric-pink);
    box-shadow: var(--shadow-glow-pink);
}

.poi-card--active {
    border-color: var(--color-electric-pink);
    box-shadow: 0 0 0 2px rgba(255, 27, 141, 0.4), var(--shadow-md);
    transform: translateY(-2px);
}

.poi-card__image-wrapper {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.poi-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.poi-card:hover .poi-card__image {
    transform: scale(1.1);
}

.poi-card__category-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--color-glass-strong);
    backdrop-filter: blur(10px);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-badge__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.poi-card__info {
    padding: var(--space-md);
}

.poi-card__name {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-light);
}

.poi-card__alley {
    font-size: var(--font-size-sm);
    color: var(--color-gray-light);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.alley-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.poi-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Rating Stars */
.star {
    font-size: var(--font-size-sm);
}

.star--full {
    color: var(--color-sun-yellow);
}

.star--half {
    color: var(--color-sun-yellow);
    position: relative;
}

.star--empty {
    color: var(--color-gray);
}

.rating-number {
    font-size: var(--font-size-xs);
    color: var(--color-gray-light);
    margin-left: var(--space-xs);
}

/* ===========================================
   MAP
   =========================================== */
.map-wrapper {
    flex: 1;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Custom Marker Styles */
.marker-icon {
    background: transparent !important;
    border: none !important;
    position: relative;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.marker-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    transform-origin: center bottom;
    opacity: 1 !important;
    visibility: visible !important;
}

.marker-icon:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 27, 141, 0.8));
}

.marker-icon--active {
    position: relative;
}

/* Leaflet marker container có class marker-icon--active */
.leaflet-marker-icon.marker-icon--active img,
.marker-icon--active img {
    transform: scale(1.2) !important;
    filter: drop-shadow(0 0 8px rgba(255, 0, 110, 0.8)) !important;
    border: 3px solid var(--color-magenta) !important;
    border-radius: 50% !important;
    padding: 4px !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.marker-hover img {
    transform: scale(1.3) !important;
    filter: drop-shadow(0 0 10px rgba(255, 190, 11, 0.9)) !important;
}

.marker-bounce {
    animation: markerJump 1s ease !important;
}

.marker-bounce img {
    animation: markerJump 1s ease !important;
}

@keyframes markerJump {
    0% { 
        transform: translateY(0px) !important; 
    }
    25% { 
        transform: translateY(-30px) !important; 
    }
    50% { 
        transform: translateY(0px) !important; 
    }
    75% { 
        transform: translateY(-15px) !important; 
    }
    100% { 
        transform: translateY(0px) !important; 
    }
}

/* Marker Label */
.marker-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-magenta);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    pointer-events: none;
    animation: labelFadeIn 0.3s ease;
}

.marker-label::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--color-magenta);
}

@keyframes labelFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Light Mode Marker Label */
body.light-mode .marker-label {
    background: var(--color-magenta);
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.3);
}

body.light-mode .marker-label::before {
    border-bottom-color: var(--color-magenta);
}

/* Marker Cluster Styles */
.marker-cluster-custom {
    background: transparent !important;
}

.cluster-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-family: var(--font-family);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.5);
    transition: transform var(--transition-normal);
}

.cluster-icon:hover {
    transform: scale(1.1);
}

.cluster-icon--small {
    width: 36px;
    height: 36px;
    font-size: 14px;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
}

.cluster-icon--medium {
    width: 44px;
    height: 44px;
    font-size: 16px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-deep-blue));
}

.cluster-icon--large {
    width: 52px;
    height: 52px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--color-deep-blue), var(--color-sun-yellow));
}

/* Light mode cluster */
body.light-mode .cluster-icon {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    background: var(--color-dark);
    color: var(--color-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.leaflet-popup-tip {
    background: var(--color-dark);
}

/* ===========================================
   PANORAMA OVERLAY
   =========================================== */
/* ===========================================
   PANORAMA - V2 (Split Panel)
   =========================================== */
.panorama-container {
    width: 100%;
    height: 100%;
}

.scene-transition {
    animation: sceneTransition 0.3s ease;
}

@keyframes sceneTransition {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1010;
    text-align: center;
    color: var(--color-light);
}

.loading-spinner.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-glass);
    border-top-color: var(--color-magenta);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    color: var(--color-light);
    text-align: center;
}

.error-message p {
    margin: var(--space-sm) 0;
}

/* Scene Info */
.scene-info {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1020;
    background: var(--color-glass-strong);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-glass-border);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Current POI Info - Hiển thị quán đang xem */
.current-poi-info {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 1020;
    background: var(--gradient-primary);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: 0 4px 15px rgba(224, 64, 251, 0.4);
    animation: poi-info-pulse 2s ease-in-out infinite;
    max-width: 280px;
}

.current-poi-info.hidden {
    display: none;
}

.current-poi-info__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.current-poi-info__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes poi-info-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(224, 64, 251, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(224, 64, 251, 0.6);
    }
}

/* ===========================================
   PANEL FULLSCREEN BUTTONS
   =========================================== */
.panel-fullscreen-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 1050;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--color-glass-strong);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.panel-fullscreen-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.05);
}

.panel-fullscreen-btn--map {
    right: auto;
    left: var(--space-md);
}

/* Icon states */
.fullscreen-icon {
    width: 20px;
    height: 20px;
}

.fullscreen-icon--collapse {
    display: none;
}

/* When panel is fullscreen */
.panel.is-fullscreen .fullscreen-icon--expand {
    display: none;
}

.panel.is-fullscreen .fullscreen-icon--collapse {
    display: block;
}

/* Fullscreen panel state */
.panel.is-fullscreen {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - var(--header-height)) !important;
    z-index: 1200 !important;
    flex: none !important;
}

/* Hide divider and other panel when one is fullscreen */
.split-container.has-fullscreen .divider {
    display: none;
}

.split-container.has-fullscreen .panel:not(.is-fullscreen) {
    display: none;
}

/* ===========================================
   FOV CONE + SCENE POSITION MARKER (Map 2D)
   =========================================== */
.scene-position-marker {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-magenta), var(--color-cyan));
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(224, 64, 251, 0.7);
    z-index: 1000;
}

.scene-position-marker.pulsing {
    animation: sceneMarkerPulse 2s ease-in-out infinite;
}

@keyframes sceneMarkerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 16px rgba(224, 64, 251, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 24px rgba(224, 64, 251, 0.95);
    }
}

/* FOV Cone Polygon - Leaflet SVG styles */
.fov-cone-polygon {
    filter: drop-shadow(0 0 8px rgba(224, 64, 251, 0.5));
}

/* ===========================================
   NAVIGATION ARROWS
   =========================================== */
.nav-arrow {
    cursor: pointer;
    /* Bỏ transition để ghim cố định như hotspot */
}

.nav-arrow-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    /* Bỏ animation để không bị delay khi kéo */
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.nav-arrow-inner svg {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    /* Bỏ transition để ghim cố định */
}

.nav-arrow-inner--hover svg,
.nav-arrow:hover .nav-arrow-inner svg {
    filter: drop-shadow(0 0 20px rgba(255, 190, 11, 0.9));
}

.nav-arrow-label {
    background: var(--color-glass-strong);
    backdrop-filter: blur(10px);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: white;
    white-space: nowrap;
    opacity: 1;
    /* Hiện luôn, không chờ hover */
}

.nav-arrow:hover .nav-arrow-label,
.nav-arrow-inner--hover .nav-arrow-label {
    opacity: 1;
}

/* ===========================================
   POI HOTSPOT
   =========================================== */
.poi-hotspot {
    cursor: pointer;
}

.poi-hotspot-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poi-hotspot-pin {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, var(--color-magenta), var(--color-purple));
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
    animation: hotspotPulse 1.5s infinite;
    transition: all var(--transition-normal);
}

@keyframes hotspotPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 0 25px rgba(255, 0, 110, 0.8);
    }
}

.poi-hotspot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--space-sm);
    background: var(--color-glass-strong);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-glass-border);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.poi-hotspot-inner--hover .poi-hotspot-tooltip,
.poi-hotspot:hover .poi-hotspot-tooltip {
    opacity: 1;
}

.poi-hotspot-inner--hover .poi-hotspot-pin,
.poi-hotspot:hover .poi-hotspot-pin {
    transform: scale(1.3);
    box-shadow: 0 0 30px rgba(255, 0, 110, 1);
}

.poi-hotspot-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: white;
}

/* ===========================================
   MODAL
   =========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal-overlay.hidden {
    display: none;
}

.modal-overlay.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.modal-overlay.fade-in .modal-card {
    animation: modalScaleIn 0.3s ease forwards;
}

.modal-overlay.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes modalScaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: var(--color-glass-strong);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--color-magenta);
    transform: scale(1.1);
}

.modal-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.modal-card__body {
    padding: var(--space-lg);
    overflow-y: auto;
}

.modal-card__category {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.modal-card__category--food {
    background: rgba(255, 0, 110, 0.2);
    color: var(--color-magenta);
}

.modal-card__category--cafe {
    background: rgba(131, 56, 236, 0.2);
    color: var(--color-purple);
}

.modal-card__category--art {
    background: rgba(58, 134, 255, 0.2);
    color: var(--color-deep-blue);
}

.modal-card__category--hotel {
    background: rgba(255, 190, 11, 0.2);
    color: var(--color-sun-yellow);
}

.modal-card__name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: white;
}

.modal-card__alley {
    font-size: var(--font-size-sm);
    color: var(--color-gray-light);
    margin-bottom: var(--space-sm);
}

.modal-card__rating {
    margin-bottom: var(--space-md);
}

.modal-card__description {
    font-size: var(--font-size-sm);
    color: var(--color-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.modal-card__hours {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-gray-light);
    margin-bottom: var(--space-lg);
}

.hours-icon {
    font-size: var(--font-size-base);
}

.modal-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--color-sun-yellow), var(--color-magenta));
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--transition-normal);
}

.modal-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 190, 11, 0.4);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

/* ===========================================
   SIDEBAR TOGGLE BUTTON (Mobile only)
   =========================================== */
.sidebar-toggle {
    display: none;
}

/* ===========================================
   SIDEBAR DRAG HANDLE (Mobile only)
   =========================================== */
.sidebar__drag-handle {
    display: none;
}

/* ===========================================
   TABLET (768px - 1024px)
   =========================================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 300px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .poi-card__image-wrapper {
        height: 100px;
    }
}

/* ===========================================
   MOBILE (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --sidebar-width: 100%;
    }
    
    /* Header Mobile */
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 var(--space-sm);
        gap: var(--space-sm);
    }
    
    .header__logo {
        flex-shrink: 0;
    }
    
    .header__tourism-logo {
        height: 32px;
    }
    
    .header__title {
        display: none;
    }
    
    .header__controls {
        gap: var(--space-sm);
    }
    
    .header__search {
        flex: 1;
        max-width: 200px;
    }
    
    .search-input {
        width: 100%;
        max-width: 200px;
        font-size: var(--font-size-sm);
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    /* Main Layout */
    .main-container {
        flex-direction: column;
        position: relative;
    }
    
    /* Map takes full space, sidebar overlays */
    .map-wrapper {
        position: absolute;
        inset: 0;
        height: 100%;
        z-index: 1;
    }
    
    /* ========== SIDEBAR TOGGLE BUTTON ========== */
    .sidebar-toggle {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
        position: absolute;
        bottom: var(--space-md);
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        padding: var(--space-sm) var(--space-lg);
        background: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
        border-radius: var(--radius-full);
        color: white;
        font-size: var(--font-size-sm);
        font-weight: 600;
        box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 0, 110, 0.4);
        transition: all var(--transition-normal);
    }
    
    .sidebar-toggle:active {
        transform: translateX(-50%) scale(0.95);
    }
    
    .sidebar-toggle__icon {
        width: 18px;
        height: 18px;
    }
    
    .sidebar-toggle.hidden {
        display: none;
    }
    
    /* ========== SIDEBAR AS BOTTOM SHEET ========== */
    .sidebar {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 50%;
        max-height: calc(100% - 60px);
        z-index: 50;
        border-right: none;
        border-top: none;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        background: var(--color-darker);
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s ease;
        overflow: hidden;
    }
    
    /* Sidebar states */
    .sidebar.sidebar--collapsed {
        transform: translateY(100%);
    }
    
    .sidebar.sidebar--expanded {
        height: calc(100% - 60px);
    }
    
    .sidebar.sidebar--half {
        height: 50%;
    }
    
    /* Drag Handle */
    .sidebar__drag-handle {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: var(--space-sm) 0;
        cursor: grab;
        touch-action: none;
        user-select: none;
    }
    
    .sidebar__drag-handle:active {
        cursor: grabbing;
    }
    
    .drag-bar {
        width: 40px;
        height: 5px;
        background: var(--color-glass-strong);
        border-radius: var(--radius-full);
        transition: background var(--transition-fast);
    }
    
    .sidebar__drag-handle:hover .drag-bar,
    .sidebar__drag-handle:active .drag-bar {
        background: var(--color-magenta);
    }
    
    /* Filter tabs */
    .filter-tabs {
        padding: var(--space-xs) var(--space-sm);
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: var(--space-xs);
        border-bottom: 1px solid var(--color-glass-border);
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tab {
        flex-shrink: 0;
        padding: var(--space-xs) var(--space-md);
        font-size: var(--font-size-sm);
        white-space: nowrap;
    }
    
    /* ========== POI LIST - 2 COLUMNS GRID ========== */
    .poi-list {
        padding: var(--space-sm);
        gap: var(--space-sm);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: min-content;
        align-content: start;
    }
    
    /* POI Card - Square style */
    .poi-card {
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-md);
        overflow: hidden;
        height: auto;
        min-height: 0;
    }
    
    .poi-card__image-wrapper {
        width: 100%;
        height: 0;
        padding-bottom: 75%; /* 4:3 aspect ratio */
        flex-shrink: 0;
        border-radius: 0;
        position: relative;
        overflow: hidden;
    }
    
    .poi-card__image {
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .poi-card__category-badge {
        top: var(--space-xs);
        right: var(--space-xs);
        left: auto;
        font-size: var(--font-size-sm);
        padding: 2px var(--space-xs);
    }
    
    .poi-card__info {
        padding: var(--space-xs);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .poi-card__name {
        font-size: var(--font-size-xs);
        line-height: 1.2;
        margin-bottom: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .poi-card__alley {
        font-size: 10px;
        margin-bottom: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .alley-icon {
        display: none;
    }
    
    .poi-card__rating {
        margin-top: var(--space-xxs);
    }
    
    .poi-card__rating .star {
        font-size: 10px;
    }
    
    .rating-number {
        font-size: 9px;
    }
    
    /* Panorama Mobile */
    .panorama-close-btn {
        top: var(--space-sm);
        right: var(--space-sm);
        width: 44px;
        height: 44px;
        font-size: var(--font-size-xl);
    }
    
    .scene-info {
        bottom: var(--space-md);
        font-size: var(--font-size-xs);
        padding: var(--space-xs) var(--space-md);
    }
    
    /* Modal Mobile */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-card {
        max-width: 100%;
        width: 100%;
        max-height: 85vh;
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        animation: modalSlideUp 0.3s ease forwards;
    }
    
    @keyframes modalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .modal-card__image {
        height: 180px;
    }
    
    .modal-card__body {
        padding: var(--space-md);
    }
    
    .modal-card__name {
        font-size: var(--font-size-lg);
    }
    
    .modal-card__description {
        font-size: var(--font-size-sm);
        line-height: 1.6;
    }
    
    .modal-card__cta {
        width: 100%;
        justify-content: center;
        padding: var(--space-md);
    }
    
    .modal-close {
        top: var(--space-sm);
        right: var(--space-sm);
    }
    
    /* Navigation Arrows Mobile */
    .nav-arrow-inner svg {
        width: 60px;
        height: 60px;
    }
    
    .nav-arrow-label {
        font-size: var(--font-size-sm);
        padding: var(--space-xs) var(--space-md);
    }
    
    /* POI Hotspot Mobile */
    .poi-hotspot-pin {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
}

/* ===========================================
   MOBILE SMALL (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {
    :root {
        --header-height: 50px;
    }
    
    .header {
        padding: 0 var(--space-xs);
    }
    
    .header__icon {
        font-size: var(--font-size-lg);
    }
    
    .search-input {
        max-width: 140px;
        padding: 6px var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    .search-btn {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-sm);
    }
    
    .sidebar-toggle {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--font-size-xs);
    }
    
    .filter-tab {
        padding: 4px var(--space-sm);
        font-size: var(--font-size-xs);
    }
    
    /* Modal smaller */
    .modal-card__image {
        height: 150px;
    }
    
    .modal-card__category {
        font-size: 10px;
    }
    
    .modal-card__name {
        font-size: var(--font-size-base);
    }
    
    .modal-card__description {
        font-size: var(--font-size-xs);
    }
    
    .modal-card__hours {
        font-size: var(--font-size-xs);
    }
    
    .modal-card__cta {
        font-size: var(--font-size-sm);
        padding: var(--space-sm) var(--space-md);
    }
}

/* ===========================================
   LANDSCAPE MOBILE
   =========================================== */
@media (max-height: 500px) and (orientation: landscape) {
    :root {
        --header-height: 44px;
    }
    
    .main-container {
        flex-direction: row;
    }
    
    .map-wrapper {
        position: relative;
        height: 100%;
        width: 60%;
    }
    
    .sidebar {
        position: relative;
        width: 380px;                    /* Fixed width thay vì 40% */
        min-width: 320px;                /* Minimum width */
        max-width: 450px;                /* Maximum width */
        height: 100%;
        border-radius: 0;
        transform: none !important;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar__drag-handle {
        display: none;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    /* Desktop POI List - Scrollable */
    .poi-list {
        flex: 1;
        overflow-y: auto;
        padding: var(--space-sm);
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Desktop POI Cards - Single column, horizontal layout */
    .poi-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        min-height: 80px;
        background: var(--color-glass);
        border: 1px solid var(--color-glass-border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        transition: all var(--transition-normal);
    }
    
    .poi-card:hover {
        background: var(--color-glass-strong);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 0, 110, 0.2);
    }
    
    .poi-card__image-wrapper {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }
    
    .poi-card__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .poi-card__category-badge {
        position: absolute;
        bottom: 4px;
        right: 4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .poi-card__category-badge {
        position: absolute;
        bottom: 4px;
        right: 4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .poi-card__info {
        flex: 1;
        padding: var(--space-sm);
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 80px;
    }
    
    .poi-card__name {
        font-size: var(--font-size-sm);
        font-weight: 600;
        color: var(--color-light);
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .poi-card__alley {
        font-size: var(--font-size-xs);
        color: var(--color-gray-light);
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .poi-card__rating {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: var(--font-size-xs);
    }
    
    /* Light mode desktop cards */
    body.light-mode .poi-card {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    body.light-mode .poi-card:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    body.light-mode .poi-card__name {
        color: var(--color-dark);
    }
    
    body.light-mode .poi-card__name {
        color: var(--color-dark);
    }
    
    /* Desktop Filter Tabs */
    .filter-tabs {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-xs);
        border-bottom: 2px solid var(--color-glass-border);
        flex-shrink: 0; /* Prevent shrinking */
    }
    
    .filter-tab {
        padding: 8px var(--space-sm);
        font-size: var(--font-size-xs);
        border-radius: var(--radius-md);
        white-space: nowrap;
    }
    
    .filter-tab i {
        font-size: 14px;
    }
    
    /* Scrollbar styling for desktop */
    .poi-list::-webkit-scrollbar {
        width: 6px;
    }
    
    .poi-list::-webkit-scrollbar-track {
        background: var(--color-darker);
    }
    
    .poi-list::-webkit-scrollbar-thumb {
        background: var(--color-glass-border);
        border-radius: 3px;
    }
    
    .poi-list::-webkit-scrollbar-thumb:hover {
        background: var(--color-gray-light);
    }
    
    .modal-card {
        max-height: 95vh;
        flex-direction: row;
        max-width: 90vw;
        border-radius: var(--radius-lg);
    }
    
    .modal-card__image {
        width: 40%;
        height: auto;
        min-height: 100%;
    }
    
    .modal-card__body {
        width: 60%;
        overflow-y: auto;
    }
}

/* ===========================================
   UTILITIES
   =========================================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .poi-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .filter-tab:active {
        transform: scale(0.95);
    }
    
    .marker-icon img {
        transform: none !important;
    }
    
    .marker-icon--active img {
        transform: scale(1.1) !important;
        filter: drop-shadow(0 0 8px rgba(255, 0, 110, 0.8));
    }
}

/* ===========================================
   DESKTOP (min-width: 1025px)
   =========================================== */
@media (min-width: 1025px) {
    .header {
        z-index: 1000 !important;
        position: fixed !important;
    }
    
    .main-container {
        flex-direction: row;
    }
    
    .map-wrapper {
        position: relative;
        height: 100%;
        flex: 1;
    }
    
    .sidebar {
        position: relative;
        width: 380px;
        min-width: 320px;
        max-width: 450px;
        height: 100%;
        border-radius: 0;
        transform: none !important;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar__drag-handle {
        display: none;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    /* Desktop POI List - Scrollable */
    .poi-list {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: var(--space-sm);
        display: flex !important;
        flex-direction: column !important;
        gap: var(--space-sm);
        max-height: none !important;
    }
    
    /* Desktop POI Cards - Single column, horizontal layout */
    .poi-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        width: 100%;
        min-height: 80px;
        background: var(--color-glass);
        border: 1px solid var(--color-glass-border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        transition: all var(--transition-normal);
        margin-bottom: 0;
    }
    
    .poi-card:hover {
        background: var(--color-glass-strong);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 0, 110, 0.2);
    }
    
    .poi-card__image-wrapper {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }
    
    .poi-card__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .poi-card__info {
        flex: 1;
        padding: var(--space-sm);
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 80px;
    }
    
    .poi-card__name {
        font-size: var(--font-size-sm);
        font-weight: 600;
        color: var(--color-light);
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .poi-card__alley {
        font-size: var(--font-size-xs);
        color: var(--color-gray-light);
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    /* Light mode desktop cards */
    body.light-mode .poi-card {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    body.light-mode .poi-card:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Desktop Filter Tabs */
    .filter-tabs {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-xs);
        border-bottom: 2px solid var(--color-glass-border);
        flex-shrink: 0;
    }
    
    .filter-tab {
        padding: 8px var(--space-sm);
        font-size: var(--font-size-xs);
        border-radius: var(--radius-md);
        white-space: nowrap;
    }
    
    .filter-tab i {
        font-size: 14px;
    }
}
