:root {
    --primary-color: #0B5280;        /* brand-deep-ocean - main brand identity */
    --secondary-color: #2A9D8F;      /* brand-ocean-teal - complementary ocean theme */
    --accent-color: #D4A574;         /* brand-sunset-gold - luxury accent for CTAs */
    --dark-color: #111827;           /* brand-text - text and dark elements */
    --light-color: #FFFFFF;          /* brand-cloud-white - backgrounds */
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, var(--light-color), var(--white));
            color: var(--dark-color);
            line-height: 1.5;
            overflow-x: hidden;
            font-weight: 400;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Enhanced Header */
        .app-header {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-bottom: 1px solid rgba(203, 213, 225, 0.3);
            color: var(--dark-color);
            padding: 1.5rem 1rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .app-title {
            font-size: 1.75rem;
            font-weight: 300;
            margin: 0;
            letter-spacing: -0.025em;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .app-title::before {
            content: '🌍';
            font-size: 1.5rem;
            animation: float 3s ease-in-out infinite;
            background: none;
            -webkit-text-fill-color: initial;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-3px) rotate(2deg); }
        }

        .header-stats {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.7);
            padding: 0.75rem 1rem;
            border-radius: 50px;
            font-size: 0.875rem;
            font-weight: 500;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(203, 213, 225, 0.3);
            transition: var(--transition);
            box-shadow: var(--shadow);
        }

        .stat-item:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .navbar-budget {
            background: linear-gradient(135deg, var(--accent-color), #fbbf24);
            color: var(--dark-color);
            padding: 0.75rem 1rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.875rem;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }

        /* Enhanced Itinerary Section */
        .navbar-itinerary {
            background: rgba(255, 255, 255, 0.6);
            border-radius: 16px;
            padding: 0.5rem;
            backdrop-filter: blur(15px);
            border: 1px solid rgba(203, 213, 225, 0.3);
        }

        .navbar-itinerary-title {
            font-size: 0.95rem;
            font-weight: 500;
            opacity: 0.9;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .navbar-itinerary-title::before {
            content: '🗺️';
            font-size: 1rem;
        }

        .itinerary-rows {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            max-height: 100px;
            overflow-y: auto;
            scrollbar-width: none;
        }

        .itinerary-row {
            display: contents;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .navbar-city-card {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.8);
            color: var(--dark-color);
            padding: 0.25rem 0.25rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
            border: 1px solid rgba(203, 213, 225, 0.3);
            transition: var(--transition);
            box-shadow: var(--shadow);
            cursor: pointer;
        }

        .navbar-city-card:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        .navbar-city-avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .navbar-city-name {
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-weight: 500;
        }

        .navbar-city-nights {
            background: linear-gradient(135deg, var(--accent-color), #fbbf24);
            color: var(--dark-color);
            padding: 0.25rem 0.5rem;
            border-radius: 8px;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .navbar-remove-city {
            background: var(--danger-color);
            color: var(--white);
            border: none;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 0.7rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .navbar-remove-city:hover {
            transform: scale(1.1);
            background: #dc2626;
        }

        .navbar-empty-state {
            padding: 1rem;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 12px;
            text-align: center;
            font-style: italic;
            opacity: 0.8;
            font-size: 0.875rem;
            border: 1px dashed rgba(203, 213, 225, 0.5);
        }

        /* Enhanced Tab Navigation */
        .tab-navigation {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(203, 213, 225, 0.3);
            padding: 0 1rem;
            position: sticky;
            top: 0;
            z-index: 999;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .tab-nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            gap: 0;
            overflow-x: auto;
            scrollbar-width: none;
            position: relative;
        }

        .tab-nav-container::-webkit-scrollbar { 
            display: none; 
        }

        .tab-button {
            padding: 1rem 1.5rem;
            border: none;
            background: transparent;
            color: var(--gray-500);
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            border-bottom: 2px solid transparent;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            position: relative;
            min-width: auto;
        }

        .tab-button:hover {
            color: var(--primary-color);
            transform: translateY(-1px);
        }

        .tab-button.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
            font-weight: 600;
            background: rgba(59, 130, 246, 0.05);
        }

        .tab-button i {
            font-size: 1rem;
            transition: transform 0.3s ease;
        }

        .tab-button:hover i {
            transform: scale(1.1);
        }

        /* Container */
        .container {
            max-width: 1400px;
            padding: 0 1rem;
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.3s ease;
            margin: 1rem 0 0 0;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }


/* Compact City Selection Layout */
.selection-layout {
    display: grid;
    margin: 2px 0 0 0;
    grid-template-columns: 1fr 360px;
    gap: 8px;
    height: calc(100vh - 120px);
}

.map-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.search-container {
    position: absolute;
    top: 12px;
    width:300px;
    right: 12px;
    z-index: 500;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 13px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 14px;
}

.map-controls {
    position: absolute;
    top: 56px;
    left: 12px;
    display: flex;
    gap: 4px;
    z-index: 50;
    flex-wrap: wrap;
    max-width: 200px;
}

.control-btn {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}

.control-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.map-container {
    flex: 1;
    background: var(--light-color);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    min-height: 300px;
    touch-action: none;
    margin-top: 4px;
}

.map-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: 0 0;
    transition: transform 0.2s ease;
}

.city-sidebar {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.city-list {
    flex: 1;
    max-height:400px;
    overflow-y: auto;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--white);
}

.city-item {
    padding: 6px 8px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.city-item:hover {
    background: var(--gray-100);
}

.city-item.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.city-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 11px;
}

.city-item.selected .city-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.city-info {
    flex: 1;
}

.city-name {
    font-weight: 600;
    margin-bottom: 1px;
    font-size: 12px;
}

.city-country {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Ultra Compact Table Styles */
.tab-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
	margin: 20px 0 0 0;
    margin-bottom: 8px;
}

.tab-card-header {
    background: linear-gradient(135deg, #6ee7b7, #25ab80);
    color: var(--white);
    padding: 8px 12px;
}

.tab-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-card-body {
    padding: 8px;
}

.itinerary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.itinerary-table th {
    background: linear-gradient(135deg, #1a888c, #69978a);
    color: var(--white);
    padding: 8px;
    font-weight: 600;
    text-align: left;
    font-size: 12px;
}

.itinerary-table td {
    padding: 8px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--white);
    font-size: 12px;
}

.nights-control {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.nights-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.nights-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.nights-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.nights-display {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 12px;
}

.action-btn {
    background: #ffd23f;
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 11px;
    float: right;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: #c82333;
}

/* Compact Cost Breakdown */
.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.85rem;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-label {
    font-weight: 500;
    color: var(--gray-700);
}

.cost-value {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.total-cost {
    background: linear-gradient(135deg, #4b7d9d, #0a7c48);
    color: var(--white);
    padding: 8px;
    border-radius: var(--border-radius);
    margin: 8px -8px -8px -8px;
    font-weight: 700;
    font-size: 1rem;
}

/* Compact Circuit Cards */
.circuits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1em;
}

.travel-card {
    height: 360px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    cursor: pointer;
    transition: var(--transition);
}

.travel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.travel-card__left {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.travel-card__left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.travel-card:hover .travel-card__left img {
    transform: scale(1.03);
}

.travel-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), transparent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
}

.travel-card__price {
    background: rgba(255, 107, 53, 0.95);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    align-self: flex-start;
}

.travel-card__duration {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    padding: 2px 4px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    align-self: flex-end;
}

.travel-card__right {
    width: 60%;
    padding: 12px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.travel-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}


.city-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 3px;
    margin-bottom: 3px;
    display: inline-block;
}

.select-circuit-btn {
    background: linear-gradient(135deg, #f09675, #ffc700);
    color: var(--dark-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
    font-size: 12px;
}

.select-circuit-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.travel-card.is-hidden { display: none !important; }


/* Compact Map Elements */
.city-marker {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 2px var(--white);
    z-index: 40;
    transition: var(--transition);
}

.city-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.city-marker.selected {
    background: var(--danger-color);
    transform: translate(-50%, -50%) scale(1.3);
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--danger-color);
}

.city-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    padding: 1px 1px;
    border-radius: var(--border-radius);
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(6px, -50%);
    box-shadow: var(--shadow);
    pointer-events: none;
    z-index: 4;
    transition: var(--transition);
}

.city-label.selected {
    background: var(--primary-color);
    color: var(--white);
}

.route-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform-origin: 0 50%;
    z-index: 5;
    border-radius: 1px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.btn-primary {
    background: var(--success-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Compact Empty State */
.empty-state {
    text-align: center;
    padding: 24px 12px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.empty-state p {
    font-size: 0.8rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Compact Zoom Controls - Inside Map */
.zoom-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
}

.zoom-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 107, 53, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.zoom-btn:hover {
    transform: scale(1.05);
    background: var(--primary-color);
}

/* Ultra Compact Responsive */
@media (max-width: 768px) {
    .container {
        padding: 6px;
    }
    
    .selection-layout {
        grid-template-columns: 1fr;
     /* grid-template-rows: 200px 1fr;*/
        height: auto;
        gap: 6px;
    }
    
    .map-section {
        padding: 6px;
    }
    
    .city-sidebar {
        max-height: 300px;
    }
    
    .circuits-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .travel-card {
        height: auto;
        flex-direction: column;
    }
    
    .travel-card__left,
    .travel-card__right {
        width: 100%;
    }
    
    .travel-card__left {
        height: 140px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .header-stats {
        align-self: flex-end;
    }
    
    .tab-nav-container {
        padding: 0 6px;
    }
    
    .tab-button {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .app-header {
        padding: 6px 8px;
    }
    
    .tab-navigation {
        padding: 0 8px;
    }
    
    .search-container {
        top: 8px;
        left: 8px;
        right: 8px;
    }
    
    .map-controls {
        top: 44px;
        left: 8px;
        max-width: 150px;
    }
    
    .control-btn {
        padding: 3px 6px;
        font-size: 10px;
    }
    

    .zoom-controls {
        bottom: 8px;
        right: 8px;
    }
    
    .zoom-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .city-item {
        padding: 4px 6px;
    }
    
    .city-avatar {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .city-name {
        font-size: 11px;
    }
    
    .city-country {
        font-size: 0.65rem;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--danger-color); }
    50% { box-shadow: 0 0 0 2px var(--white), 0 0 0 5px rgba(220, 53, 69, 0.3); }
    100% { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--danger-color); }
}

#no-cities-row td {
    text-align: center;
    color: var(--gray-500);
    padding: 10px;
    font-style: italic;
    font-size: 12px;
}




/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    width: 7em;
    height: 2em;
    border: none;
    outline: none;
    margin: 1em;
    color: rgb(0 0 0 / 53%);
    background: rgb(255 255 255 / 90%);
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.filter-tab:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

/* Visual feedback for active filter */
.animate,.filter-tab.active {
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15) inset;
  filter: saturate(1.05);
   animation: glowing 20s linear infinite;
}

/* Smooth hide/show */
#circuitsGrid .travel-card {
  transition: transform 0.18s ease, opacity 0.18s ease;
}
#circuitsGrid .travel-card[aria-hidden="true"] {
  opacity: 0;
  transform: scale(0.98);
}


.filter-tab:hover:before {
    opacity: 1;
}

.filter-tab:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.08);
    left: 0;
    top: 0;
    border-radius: 4px;
}

/* Modern City Card Design */
.city-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f5;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

/* Header Section - Gradient Background */
.city-header {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.city-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.city-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.city-flag {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.city-main-info {
    flex: 1;
}

.city-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.city-country {
    font-size: 0.7rem;
    opacity: 0.9;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.city-visitors {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.city-nights {
    background: #FFD23F;
    color: #2E3440;
    padding: 16px 20px;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(255,210,63,0.3);
    text-align: center;
    min-width: 80px;
}

/* Content Area */
.city-content {
    padding: 24px;
}

/* Description */
.city-description {
    background: linear-gradient(135deg, #fef7f0 0%, #fff4e6 100%);
    border: 1px solid #ffe8cc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    color: #8b4513;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}

.city-description::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 10px;
    font-size: 3rem;
    color: #FF6B35;
    opacity: 0.3;
    font-family: serif;
}

/* Cultural Center - Hero Section */
.cultural-center {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin: 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cultural-center::after {
    content: '🎭';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 6rem;
    opacity: 0.1;
}

.cultural-center-title {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cultural-center-name {
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Two Column Layout for Main Sections */
.city-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.highlight-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.highlight-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.highlight-section.attractions {
    --accent-color: #FF6B35;
}

.highlight-section.cuisine {
    --accent-color: #28A745;
}

.highlight-section h4 {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-list {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}

.highlight-list div {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 20px;
}

.highlight-list div:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.highlight-list div::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Transportation - Horizontal Pills */
.transport-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e1bee7;
}

.transport-title {
    color: #4a148c;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transport-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.transport-item {
    background: white;
    padding: 12px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.transport-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    background: #f8f9ff;
}

.transport-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.transport-name {
    color: #2e3440;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Tips Section - Modern Alert Style */
.city-tips {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #fed136;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    position: relative;
}

.tips-title {
    color: #b45309;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-text {
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Day Trips - Pill Tags */
.day-trips {
    margin: 24px 0;
}

.day-trips-title {
    color: #0f766e;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.day-trip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.day-trip-tag {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #6ee7b7;
    transition: all 0.3s ease;
}

 .day-trip-tag:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Nightlife Section - Dark Theme */
.nightlife-section {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    border-radius: 16px;
    padding: 28px;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}

.nightlife-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #f59e0b);
}

.nightlife-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.nightlife-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.nightlife-category h5 {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.nightlife-venues {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.venue-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.venue-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Cost Indicator - Modern Badge */
.cost-indicator {
    background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
    border: 2px solid #f59e0b;
    border-radius: 30px;
    padding: 12px 20px;
    margin: 24px 0 0 0;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #92400e;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
}

.cost-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.cost-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .city-highlights {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .city-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .transport-grid {
        justify-content: center;
    }
    
    .nightlife-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .day-trip-tags {
        justify-content: center;
    }
    
    .city-content {
        padding: 20px;
    }
    
    .city-header {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .city-flag {
        font-size: 1.5rem;
    }
    
    .city-name {
        font-size: 0.9rem;
    }
    
    .transport-grid {
        flex-direction: column;
    }
    
    .transport-item {
        justify-content: center;
    }
}


/* Animations */
@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--danger); }
    50% { box-shadow: 0 0 0 2px var(--white), 0 0 0 5px rgba(220, 53, 69, 0.3); }
    100% { box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--danger); }
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
    .app-header {
        padding: 8px 10px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .app-title {
        font-size: 1.75rem;
    }
    
    .header-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .stat-item {
        min-width: 40px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .navbar-itinerary {
        padding: 6px 8px;
    }
    
    .navbar-itinerary-title {
        font-size: 0.75rem;
    }
    
    
    .tab-button {
        padding: 10px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .navbar-city-card {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .navbar-city-name {
        max-width: 45px;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 1.75rem;
    }
    
    .tab-button {
        flex-direction: column;
        gap: 2px;
        padding: 8px 10px;
        min-width: 80px;
    }
    
    .tab-button span:not(.badge) {
        font-size: 0.7rem;
    }
    
    .header-stats {
        width: 100%;
        justify-content: space-around;
    }
}

.route-line { pointer-events: none; }
.city-label { pointer-events: none; }
.city-marker { pointer-events: auto; }

	   /* Touch-friendly improvements */
    @media (pointer: coarse) {
      .city-marker {
        width: 6px;
        height: 6px;
      }
      
      .city-marker.selected {
        width: 3px;
        height: 3px;
      }
      
      .city-item {
        padding: 14px 16px; /* Larger touch targets */
      }
      
      /* Add pinch-zoom support */
      .map-inner {
        touch-action: manipulation;
        -ms-touch-action: manipulation;
      }
      
      /* Disable animations on mobile for better performance */
      .city-marker, .city-label, .city-item {
        transition: none;
      }
    }
	
/* Tooltip Workflow Styles */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    transition: opacity 0.3s ease;
}

.tooltip-container {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    min-width: 280px;
    z-index: 10001;
    border: 2px solid #4f46e5;
    animation: tooltipPulse 0.3s ease-out;
}

@keyframes tooltipPulse {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.tooltip-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #4f46e5;
    font-weight: 600;
    font-size: 16px;
}

.tooltip-icon {
    margin-right: 8px;
    font-size: 18px;
}

.tooltip-content {
    color: #374151;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 14px;
}

.tooltip-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.tooltip-progress {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.tooltip-buttons {
    display: flex;
    gap: 10px;
}

.tooltip-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tooltip-btn-skip {
    background: #f3f4f6;
    color: #6b7280;
}

.tooltip-btn-skip:hover {
    background: #e5e7eb;
    color: #374151;
}

.tooltip-btn-next {
    background: #4f46e5;
    color: white;
}

.tooltip-btn-next:hover {
    background: #4338ca;
}

.tooltip-btn-finish {
    background: #10b981;
    color: white;
}

.tooltip-btn-finish:hover {
    background: #059669;
}

.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.tooltip-arrow.top {
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: white;
}

.tooltip-arrow.bottom {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: white;
}

.tooltip-arrow.left {
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: white;
}

.tooltip-arrow.right {
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: white;
}

.highlighted-element {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.tooltip-progress-bar {
    width: 60px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-right: 8px;
    overflow: hidden;
}

.tooltip-progress-fill {
    height: 100%;
    background: #4f46e5;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tooltip-container {
        max-width: 280px;
        min-width: 260px;
        padding: 16px;
    }
    
    .tooltip-header {
        font-size: 15px;
    }
    
    .tooltip-content {
        font-size: 13px;
    }
}

/* Floating Tutorial Button */
.floating-tutorial-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIn 0.6s ease-out;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-tutorial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.floating-tutorial-btn:active {
    transform: translateY(0);
}

.floating-tutorial-btn.fade-out {
    animation: floatOut 0.5s ease-in forwards;
}

.floating-tutorial-btn .tutorial-icon {
    font-size: 16px;
    animation: bounce 2s infinite;
}

.floating-tutorial-btn .tutorial-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
        visibility: hidden;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-tutorial-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .floating-tutorial-btn .tutorial-icon {
        font-size: 14px;
    }
}
