/* =========================================
       1. VARIABLES & CONFIGURATION
       ========================================= */
        :root {
            --grab-green: #00B14F;
            --grab-green-hover: #009543;
            --grab-green-light: #e8faf0;
            --grab-green-subtle: #f0fdf4;
            --text-primary: #1a1a2e;
            --text-secondary: #64748b;
            --text-muted: #94a3b8;
            --bg-glass: rgba(255, 255, 255, 0.88);
            --bg-glass-strong: rgba(255, 255, 255, 0.95);
            --bg-surface: #ffffff;
            --bg-subtle: #f8fafc;
            --border-light: rgba(0, 0, 0, 0.06);
            --border-hover: rgba(0, 177, 79, 0.3);
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
            --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
            --shadow-green: 0 4px 14px rgba(0, 177, 79, 0.2);
            --radius-sm: 8px;
            --radius-md: 14px;
            --radius-lg: 20px;
            --radius-xl: 28px;
            --radius-full: 9999px;
            --header-max-width: 540px;
            --btn-size: 42px;
            --z-map: 1;
            --z-header: 1000;
            --z-panel: 1050;
            --z-toast: 9999;
            --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-bounce: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* =========================================
       1b. MAP MODE TOGGLE (Day/Night)
       ========================================= */
        .btn-map-mode {
            position: fixed;
            bottom: 28px;
            left: 16px;
            z-index: var(--z-header);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: var(--bg-glass-strong);
            backdrop-filter: blur(12px);
            box-shadow: var(--shadow-md);
            color: var(--text-primary);
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition-fast);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .btn-map-mode:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-lg);
        }

        /* Dark mode: invert map canvas + compensate hue */
        #map.dark-mode .maplibregl-canvas {
            filter: invert(1) hue-rotate(180deg);
        }
        /* Keep markers/popups/controls normal */
        #map.dark-mode .maplibregl-marker,
        #map.dark-mode .maplibregl-popup,
        #map.dark-mode .maplibregl-ctrl {
            filter: invert(1) hue-rotate(180deg);
        }

        /* Dark style for UI when map is dark */
        body.dark-mode-active .btn-map-mode {
            background: rgba(30, 30, 30, 0.9);
            color: #fbbf24;
        }

        /* =========================================
       2. BASE LAYOUT & MAP
       ========================================= */
        body {
            margin: 0;
            padding: 0;
            overflow: hidden;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        #map {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100%;
            height: 100vh;
            z-index: var(--z-map);
        }

        .maplibregl-ctrl-top-left {
            margin-top: 80px;
        }


        /* =========================================
       3. FLOATING HEADER (SEARCH BAR) - Modern Redesign
       ========================================= */
        .floating-header {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 96%;
            max-width: 680px; /* Increased max-width */
            z-index: var(--z-header);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 252, 250, 0.92) 100%);
            backdrop-filter: blur(24px) saturate(200%);
            -webkit-backdrop-filter: blur(24px) saturate(200%);
            border-radius: 16px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.9);
            padding: 10px 12px 10px 16px;
            display: flex;
            align-items: center;
            gap: 14px;
            transition: all var(--transition-smooth);
        }

        .floating-header:focus-within {
            box-shadow: 0 8px 32px rgba(0, 177, 79, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 2px rgba(0, 177, 79, 0.2);
            border-color: rgba(0, 177, 79, 0.25);
        }

        .logo-container {
            display: flex;
            align-items: center;
            padding-right: 14px;
            margin-right: 2px;
            border-right: 1px solid rgba(0, 0, 0, 0.08);
            flex-shrink: 0;
        }

        .grab-logo {
            height: 26px;
            width: auto;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
        }

        .partner-logo {
            height: 26px;
            width: auto;
            margin-left: 10px;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
        }

        .logo-x {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-left: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .search-wrapper {
            position: relative;
            flex-grow: 1;
            display: flex;
            align-items: center;
            min-width: 0;
        }

        .search-input-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 8px 12px;
            background: rgba(248, 250, 249, 0.8);
            border-radius: 10px;
            border: 1px solid transparent;
            transition: all var(--transition-fast);
        }

        .floating-header:focus-within .search-input-wrap {
            background: rgba(255, 255, 255, 0.95);
            border-color: rgba(0, 177, 79, 0.15);
        }

        .search-input-wrap .bi-search {
            color: var(--text-muted);
            font-size: 0.95rem;
            flex-shrink: 0;
            transition: color var(--transition-fast);
        }

        .floating-header:focus-within .search-input-wrap .bi-search {
            color: var(--grab-green);
        }

        .search-input {
            border: none;
            outline: none;
            background: transparent;
            width: 100%;
            font-size: 0.925rem;
            font-weight: 500;
            color: var(--text-primary);
            padding: 0;
            font-family: inherit;
            min-width: 0;
        }

        .search-input::placeholder {
            color: var(--text-muted);
            font-weight: 400;
        }

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

        .btn-search-main {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background: linear-gradient(145deg, var(--grab-green) 0%, #008c3d 100%);
            border: none;
            color: white;
            font-size: 1.05rem;
            cursor: pointer;
            transition: all var(--transition-smooth);
            box-shadow: 0 4px 14px rgba(0, 177, 79, 0.35);
        }

        .btn-search-main:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 177, 79, 0.4);
            background: linear-gradient(145deg, #00c257 0%, var(--grab-green) 100%);
        }

        .btn-search-main:active {
            transform: translateY(0);
        }

        .btn-header-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(248, 250, 249, 0.9);
            border: 1px solid rgba(0, 0, 0, 0.06);
            color: var(--text-secondary);
            font-size: 1rem;
            cursor: pointer;
            transition: all var(--transition-smooth);
            flex-shrink: 0;
            text-decoration: none;
        }

        .btn-header-link:hover {
            background: var(--grab-green-light);
            border-color: rgba(0, 177, 79, 0.2);
            color: var(--grab-green);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 177, 79, 0.15);
        }

        /* More Menu Dropdown */
        .more-menu-wrapper {
            position: relative;
        }

        .more-menu-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            min-width: 220px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-radius: 14px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(0, 0, 0, 0.06);
            padding: 6px;
            display: none;
            z-index: 1100;
            animation: dropdownIn 0.2s var(--transition-bounce);
        }

        .more-menu-dropdown.show {
            display: block;
        }

        .more-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 14px;
            border-radius: 10px;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all var(--transition-fast);
            cursor: pointer;
        }

        .more-menu-item:hover {
            background: var(--grab-green-light);
            color: var(--grab-green);
        }

        .more-menu-item .menu-icon {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
            transition: all var(--transition-fast);
        }

        .more-menu-item .menu-icon.icon-pricing {
            background: rgba(245, 158, 11, 0.1);
            color: #f59e0b;
        }

        .more-menu-item .menu-icon.icon-tester {
            background: rgba(99, 102, 241, 0.1);
            color: #6366f1;
        }

        .more-menu-item .menu-icon.icon-address {
            background: rgba(0, 177, 79, 0.1);
            color: var(--grab-green);
        }

        .more-menu-item:hover .menu-icon {
            transform: scale(1.05);
        }

        .more-menu-item .menu-label {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .more-menu-item .menu-label small {
            font-size: 0.72rem;
            font-weight: 400;
            color: var(--text-muted);
            transition: color var(--transition-fast);
        }

        .more-menu-item:hover .menu-label small {
            color: rgba(0, 177, 79, 0.7);
        }

        /* Language Switcher */
        .lang-switcher-wrapper {
            position: relative;
        }

        .lang-current-label {
            font-size: 0.7rem;
            font-weight: 700;
            margin-left: 4px;
            color: var(--text-secondary);
            letter-spacing: 0.5px;
        }

        .lang-menu-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 160px;
            background: #fff;
            border-radius: var(--radius-md);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
            border: 1px solid rgba(0, 0, 0, 0.06);
            padding: 6px;
            display: none;
            z-index: 1000;
            animation: dropdownIn 0.2s var(--transition-bounce);
        }

        .lang-menu-dropdown.show {
            display: block;
        }

        .lang-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            cursor: pointer;
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            color: var(--text-primary);
            transition: all var(--transition-fast);
        }

        .lang-menu-item:hover {
            background: var(--grab-green-light);
            color: var(--grab-green);
        }

        .lang-menu-item .lang-flag {
            font-size: 1.1rem;
        }

        .lang-menu-item .lang-name {
            flex: 1;
            font-weight: 500;
        }

        .lang-menu-item .lang-check {
            display: none;
            color: var(--grab-green);
            font-size: 1rem;
        }

        .lang-menu-item.active .lang-check {
            display: inline-block;
        }

        .lang-menu-item.active {
            background: var(--grab-green-light);
            color: var(--grab-green);
            font-weight: 600;
        }

        /* Suggestions Dropdown */
        .suggestions-list {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            right: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(16px);
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
            list-style: none;
            padding: 6px;
            margin: 0;
            display: none;
            max-height: 320px;
            overflow-y: auto;
            border: 1px solid rgba(0, 0, 0, 0.06);
        }

        .suggestions-list.show {
            display: block;
            animation: dropdownIn 0.2s var(--transition-bounce);
        }

        @keyframes dropdownIn {
            from {
                opacity: 0;
                transform: translateY(-6px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .suggestion-item {
            padding: 10px 14px;
            cursor: pointer;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            color: var(--text-primary);
            transition: all var(--transition-fast);
        }

        .suggestion-item i {
            color: var(--text-muted);
            font-size: 1rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .suggestion-item:hover {
            background-color: var(--grab-green-light);
            color: var(--grab-green);
        }

        .suggestion-item:hover i {
            color: var(--grab-green);
        }

        .suggestion-text {
            flex: 1;
            min-width: 0;
        }

        .suggestion-title {
            font-weight: 600;
            font-size: 0.88rem;
            line-height: 1.3;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .suggestion-address {
            font-size: 0.75rem;
            color: var(--text-muted);
            line-height: 1.3;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .suggestion-item:hover .suggestion-title {
            color: var(--grab-green);
        }

        /* =========================================
       4. PANEL LAYOUT (LEFT SIDEBAR)
       ========================================= */
        .locations-panel {
            position: fixed;
            top: 80px;
            left: 16px;
            width: 340px;
            max-height: calc(100vh - 100px);
            display: none;
            flex-direction: column;
            background: var(--bg-glass);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            z-index: var(--z-panel);
            overflow: hidden;
            animation: slideInPanel 0.4s var(--transition-bounce);
        }

        @keyframes slideInPanel {
            from {
                opacity: 0;
                transform: translateY(16px) scale(0.97);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .panel-header {
            flex-shrink: 0;
            padding: 20px 20px 0 20px;
            background: rgba(255, 255, 255, 0.6);
            z-index: 10;
            position: sticky;
            top: 0;
        }

        .panel-title-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .panel-title {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .panel-title h6 {
            margin: 0;
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .panel-body {
            flex: 1 1 auto;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 0 16px 16px 16px !important;
        }

        .panel-body::-webkit-scrollbar {
            width: 4px;
        }

        .panel-body::-webkit-scrollbar-track {
            background: transparent;
        }

        .panel-body::-webkit-scrollbar-thumb {
            background: #d4d4d8;
            border-radius: 10px;
        }

        .panel-body::-webkit-scrollbar-thumb:hover {
            background: #a1a1aa;
        }

        /* =========================================
       5. TABS NAVIGATION
       ========================================= */
        .panel-tabs {
            display: flex;
            background: var(--bg-subtle);
            border-radius: var(--radius-sm);
            padding: 3px;
            margin-bottom: 4px;
            flex-shrink: 0;
        }

        .tab-item {
            flex: 1;
            text-align: center;
            padding: 8px 8px;
            font-weight: 600;
            font-size: 0.8rem;
            color: var(--text-muted);
            cursor: pointer;
            border-radius: 6px;
            border-bottom: none;
            transition: all var(--transition-fast);
            user-select: none;
        }

        .tab-item:hover {
            color: var(--text-secondary);
            background: rgba(255, 255, 255, 0.5);
        }

        .tab-item.active {
            color: var(--grab-green);
            background: var(--bg-surface);
            box-shadow: var(--shadow-sm);
        }

        .tab-pane {
            display: none;
            animation: fadeInTab 0.2s ease;
        }

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

        @keyframes fadeInTab {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        /* =========================================
       6. SCROLLABLE LIST CONTAINERS
       ========================================= */
        #listContainer,
        #segmentListContainer {
            padding: 8px 2px;
        }

        /* =========================================
       7. LIST ITEMS & CARDS (COMPONENTS)
       ========================================= */

        /* A. Location Item (Tab 1) */
        .location-item {
            background: var(--bg-surface);
            border-radius: var(--radius-md);
            padding: 12px 14px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--shadow-sm);
            border: 1.5px solid transparent;
            transition: all var(--transition-smooth);
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .location-item.active {
            border-color: var(--grab-green);
            background: var(--grab-green-subtle);
            box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.08);
        }

        .location-item.active .loc-coord i {
            color: var(--grab-green);
        }

        .location-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--grab-green);
            opacity: 0;
            transition: opacity var(--transition-fast);
            border-radius: 0 3px 3px 0;
        }

        .location-item:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
            border-color: var(--border-hover);
        }

        .location-item:hover::before {
            opacity: 1;
        }

        .loc-info {
            flex-grow: 1;
            padding-left: 2px;
            padding-right: 10px;
            min-width: 0;
        }

        .loc-name {
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--text-primary);
            display: block;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .loc-address {
            display: block;
            font-size: 0.72rem;
            color: var(--text-muted);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
        }

        .loc-coord {
            font-size: 0.72rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
            font-variant-numeric: tabular-nums;
        }

        /* Marker Letter Badge (A / B) */
        .loc-marker-badge {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.78rem;
            flex-shrink: 0;
            margin-right: 10px;
            border: 2px solid currentColor;
            opacity: 0.9;
        }

        /* B. Segment Card (Tab 2 - Route Detail) */
        .segment-card {
            background: var(--bg-surface);
            border: 1.5px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 12px 12px 12px 18px;
            margin-bottom: 8px;
            position: relative;
            transition: all var(--transition-smooth);
            cursor: pointer;
        }

        .segment-card:hover {
            background: var(--bg-subtle);
            border-color: var(--border-hover);
            box-shadow: var(--shadow-sm);
        }

        .segment-card.active-card {
            background-color: var(--grab-green-subtle);
            border-color: var(--grab-green);
            box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.08);
        }

        .segment-color-bar {
            position: absolute;
            left: 0;
            top: 6px;
            bottom: 6px;
            width: 3px;
            border-radius: 0 3px 3px 0;
        }

        .segment-title {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 5px;
            display: flex;
            justify-content: space-between;
        }

        .segment-details {
            font-size: 0.74rem;
            color: var(--text-secondary);
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .segment-icon {
            font-size: 0.7rem;
            margin-right: 3px;
        }

        /* C. Result Summary Card */
        .route-result-card {
            background: linear-gradient(135deg, var(--grab-green-light) 0%, #dcfce7 100%);
            border: 1.5px solid rgba(0, 177, 79, 0.2);
            border-radius: var(--radius-md);
            padding: 16px;
            margin-top: 12px;
            display: none;
            animation: fadeInTab 0.3s ease;
        }

        .route-stat-box {
            text-align: center;
            flex: 1;
        }

        .route-label {
            font-size: 0.68rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .route-value {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--grab-green);
            letter-spacing: -0.02em;
        }

        .route-divider {
            width: 1.5px;
            background-color: rgba(0, 177, 79, 0.15);
            margin: 0 8px;
            align-self: stretch;
        }

        /* =========================================
       8. BUTTONS
       ========================================= */

        .btn-circle {
            width: var(--btn-size);
            height: var(--btn-size);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all var(--transition-fast);
        }

        .btn-grab {
            background-color: var(--grab-green);
            border-color: var(--grab-green);
            color: white;
        }

        .btn-grab:hover {
            background-color: var(--grab-green-hover);
            border-color: var(--grab-green-hover);
            color: white;
        }

        /* Primary Action */
        .btn-action-primary {
            background: linear-gradient(135deg, #00B14F 0%, #009543 100%);
            color: white;
            border: none;
            font-weight: 600;
            font-size: 0.85rem;
            letter-spacing: 0.02em;
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
            box-shadow: var(--shadow-green);
            position: relative;
            overflow: hidden;
        }

        .btn-action-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(0, 177, 79, 0.3);
            color: white;
        }

        .btn-action-primary:active {
            transform: translateY(1px);
            box-shadow: 0 2px 6px rgba(0, 177, 79, 0.2);
        }

        /* Secondary Action */
        .btn-action-secondary {
            background: var(--bg-surface);
            color: var(--grab-green);
            border: 1.5px solid rgba(0, 177, 79, 0.3);
            font-weight: 600;
            font-size: 0.85rem;
            letter-spacing: 0.02em;
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
        }

        .btn-action-secondary:hover {
            background: var(--grab-green-subtle);
            border-color: var(--grab-green);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 177, 79, 0.12);
        }

        .btn-action-secondary:active {
            transform: translateY(1px);
        }

        /* My Location Outline Button */
        .btn-outline-location {
            background: var(--bg-surface);
            color: #3b82f6;
            border: 1.5px solid rgba(59, 130, 246, 0.35);
            font-weight: 600;
            font-size: 0.82rem;
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
        }

        .btn-outline-location:hover {
            background: #eff6ff;
            border-color: #3b82f6;
            color: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
        }

        .btn-outline-location:active {
            transform: translateY(1px);
        }

        /* Reset Button */
        .btn-reset-minimal {
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--text-muted);
            background: var(--bg-subtle);
            border: 1px solid var(--border-light);
            padding: 5px 12px;
            border-radius: var(--radius-full);
            transition: all var(--transition-fast);
            cursor: pointer;
        }

        .btn-reset-minimal:hover {
            color: #ef4444;
            border-color: #fecaca;
            background: #fef2f2;
        }

        /* Help Button */
        .btn-help-minimal {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1rem;
            padding: 0;
            line-height: 1;
            transition: all var(--transition-fast);
            cursor: pointer;
        }

        .btn-help-minimal:hover {
            color: var(--grab-green);
            transform: scale(1.15);
        }

        /* Delete Item Button */
        .btn-delete-item {
            color: var(--text-muted);
            background: var(--bg-subtle);
            border: 1px solid var(--border-light);
            width: 30px;
            height: 30px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
            cursor: pointer;
            flex-shrink: 0;
            font-size: 0.75rem;
        }

        .btn-delete-item:hover {
            background: #ef4444;
            color: white;
            border-color: #ef4444;
            transform: scale(1.05);
        }

        /* Travel Mode Switch */
        .mode-switch-container {
            background-color: var(--bg-subtle);
            padding: 3px;
            border-radius: var(--radius-sm);
            display: flex;
            border: 1px solid var(--border-light);
        }

        .btn-mode-switch {
            background: transparent;
            color: var(--text-muted);
            font-weight: 600;
            font-size: 0.78rem;
            border: none;
            padding: 7px 8px;
            border-radius: 6px;
            transition: all var(--transition-smooth);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .btn-mode-switch:hover {
            color: var(--text-secondary);
        }

        .btn-check:checked+.btn-mode-switch {
            background-color: var(--bg-surface);
            color: var(--grab-green);
            box-shadow: var(--shadow-sm);
        }

        /* =========================================
       9. UTILITIES (Toast & Badges)
       ========================================= */
        .toast-container {
            z-index: var(--z-toast) !important;
        }

        .badge-count {
            background: var(--grab-green);
            color: white;
            min-width: 18px;
            height: 18px;
            border-radius: var(--radius-full);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.68rem;
            font-weight: 700;
            margin-left: 5px;
            line-height: 1;
        }

        /* =========================================
       10. MODAL & INFO STYLE
       ========================================= */
        .modal-content-pro {
            border: none;
            border-radius: var(--radius-lg);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }

        .modal-header-pro {
            background: linear-gradient(135deg, #00B14F 0%, #00963f 50%, #007a33 100%);
            color: white;
            padding: 24px 28px;
            border-bottom: none;
        }

        .modal-body-pro {
            padding: 24px;
            background: var(--bg-subtle);
        }

        .info-section {
            background: var(--bg-surface);
            border-radius: var(--radius-md);
            padding: 14px;
            margin-bottom: 10px;
            border: 1px solid var(--border-light);
            display: flex;
            gap: 14px;
            transition: all var(--transition-smooth);
        }

        .info-section:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
            border-color: var(--border-hover);
        }

        .info-icon-box {
            width: 38px;
            height: 38px;
            background: var(--grab-green-light);
            color: var(--grab-green);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .info-content h6 {
            margin: 0 0 3px 0;
            font-weight: 700;
            color: var(--text-primary);
            font-size: 0.9rem;
        }

        .info-content p {
            margin: 0;
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.45;
        }

        .modal-footer-pro {
            background: var(--bg-surface);
            padding: 16px 24px;
            border-top: 1px solid var(--border-light);
        }

        /* =========================================
       11. POI HIGHLIGHT MARKERS
       ========================================= */
        .poi-marker {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 800;
            font-size: 0.7rem;
            font-family: 'Inter', sans-serif;
            border: 3px solid white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            transition: transform var(--transition-fast);
            animation: poiBounce 0.4s var(--transition-bounce);
        }

        .poi-marker:hover {
            transform: scale(1.15);
        }

        @keyframes poiBounce {
            from {
                transform: scale(0) translateY(-10px);
                opacity: 0;
            }

            to {
                transform: scale(1) translateY(0);
                opacity: 1;
            }
        }

        /* =========================================
       12. RESPONSIVE
       ========================================= */
        @media (max-width: 768px) {
            .locations-panel {
                width: calc(100% - 32px);
                left: 16px;
                top: 76px;
                max-height: 50vh;
            }

            .floating-header {
                width: 96%;
                padding: 8px 10px 8px 14px;
                gap: 10px;
            }

            .btn-search-main,
            .btn-header-link {
                width: 40px;
                height: 40px;
            }

            .more-menu-dropdown {
                min-width: 200px;
                right: 0;
            }
        }