/* TravelGuardian 2026 - Main Stylesheet */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #ef4444;
    --danger-light: #f87171;

    /* Background */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-overlay: rgba(15, 23, 42, 0.8);

    /* Surface */
    --surface: rgba(30, 41, 59, 0.7);
    --surface-light: rgba(51, 65, 85, 0.5);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Gradients */
    --gradient-primary: transparent;
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Glass Card */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.glass-inset {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(12px);
    padding: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 28px;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo .year {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.current-datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.status-badge.active {
    background: var(--gradient-success);
    color: white;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--glass);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

/* Trip Progress (Header) */
.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.trip-progress {
    margin-top: var(--space-sm);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.trip-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.trip-days {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Main Content */
.main-content {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Dashboard Section */
.dashboard-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Next Step Card */
.next-step-card {
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.next-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.card-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.weather-icon {
    font-size: 1.25rem;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

/* Dashboard Card Elements */
.card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-footer {
    margin-top: var(--space-md);
    display: flex;
    justify-content: center;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.step-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.step-countdown {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.current-location .label,
.next-action .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.current-location .value {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Progress Track */
.progress-track {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
}

.progress-node {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.progress-node .node-icon {
    font-size: 1.5rem;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    position: relative;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-indicator {
    position: absolute;
    top: -24px;
    transform: translateX(-50%);
    transition: left var(--transition-slow);
}

.time-remaining {
    font-size: 0.7rem;
    color: var(--primary-light);
    white-space: nowrap;
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.next-action .action-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.next-action .action-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Ticket Info */
.ticket-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    margin-top: var(--space-sm);
}

.ticket-icon {
    font-size: 1.5rem;
}

.ticket-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ticket-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ticket-value {
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-view {
    padding: 8px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.stat-card {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* World Clock Section */
.world-clock-section {
    margin-top: var(--space-md);
}

.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.world-clock-card {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.clock-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.clock-flag {
    font-size: 1.25rem;
}

.clock-city {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.clock-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.clock-event {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.7rem;
    color: var(--text-muted);
    min-height: 20px;
}

.clock-event .event-date {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.clock-event .event-icon {
    font-size: 0.9rem;
}

.clock-event .event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.clock-event .no-event {
    color: var(--text-muted);
    font-style: italic;
}

/* Notifications */
.notifications-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.notification-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-card.warning {
    border-left: 3px solid var(--warning);
}

.notification-card.danger {
    border-left: 3px solid var(--danger);
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* City Tabs */
.city-tabs {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.city-tab {
    flex: 1;
    min-width: 80px;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.city-tab:hover {
    background: var(--glass);
}

.city-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.city-flag {
    font-size: 1.25rem;
}

.city-name {
    font-size: 0.75rem;
    font-weight: 500;
}

/* City Guide */
.city-guide-section {
    min-height: 200px;
}

.city-guide {
    display: none;
    animation: fadeIn 0.3s ease;
}

.city-guide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.guide-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.date-range {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.guide-tips {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tip-card {
    padding: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: flex-start;
}

.tip-card.highlight {
    border: 1px solid var(--accent);
    background: rgba(236, 72, 153, 0.1);
}

.tip-card.alert {
    border: 1px solid var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-card h4 {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 150px;
}

.tip-card p {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.tip-action {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-xs);
}

.tip-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.tip-tag.secret {
    background: var(--gradient-accent);
    color: white;
}

.tip-tag.warning {
    background: var(--gradient-warm);
    color: var(--bg-primary);
}

.tip-tag.highlight {
    background: var(--gradient-primary);
    color: white;
}

.btn-map {
    padding: 6px 12px;
    background: var(--surface-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-map:hover {
    background: var(--primary);
}

/* Timeline Section */
.timeline-section {
    margin-top: var(--space-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-filters {
    display: flex;
    gap: var(--space-xs);
}

.filter-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Date-Grouped Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Timeline Day Group */
.timeline-day {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.timeline-day.past {
    opacity: 0.6;
}

.timeline-day.today {
    border: 2px solid var(--success);
}

.timeline-day-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--surface);
    border-bottom: 1px solid var(--glass-border);
}

.day-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.day-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex: 1;
}

.today-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    background: var(--success);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.timeline-day-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--bg-secondary);
}

/* Timeline Item */
.timeline-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timeline-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.timeline-item.active-now {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

.timeline-item.upcoming {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.timeline-item.completed {
    opacity: 0.5;
}

.timeline-time-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    min-width: 50px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-meta {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.timeline-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.timeline-tag.flight {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.timeline-tag.tour {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-light);
}

.timeline-tag.show {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent);
}

.time-status {
    font-size: 0.7rem;
    font-weight: 600;
}

.time-status.active-now {
    color: var(--danger);
}

.time-status.upcoming {
    color: var(--warning);
}

/* Timeline Location with Maps Link */
.timeline-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.timeline-location:hover {
    color: var(--primary-light);
}

.maps-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.timeline-location:hover .maps-icon {
    opacity: 1;
}

/* Event Modal Map Styles */
.event-map {
    margin: var(--space-md) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-maps:hover {
    background: var(--success-light);
    transform: translateY(-2px);
}

/* Event Warnings (for FC Barcelona etc) */
.event-warnings {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
}

.event-warnings h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--danger);
    font-size: 0.9rem;
}

.event-warnings ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.event-warnings li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

/* Transfer Steps Container */
.transfer-steps-container {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
}

.transfer-steps-container h4 {
    margin: 0 0 var(--space-md) 0;
    color: var(--primary-light);
    font-size: 0.95rem;
}

.transfer-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.transfer-step {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.step-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.step-instruction {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.step-ticket {
    font-size: 0.8rem;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: 4px 0;
}

.step-walk {
    font-size: 0.75rem;
    color: var(--warning);
}

.step-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Ticket Summary */
.ticket-summary {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
}

.ticket-summary h4 {
    margin: 0 0 var(--space-sm) 0;
    color: var(--success);
    font-size: 0.95rem;
}

.ticket-info p {
    margin: 4px 0;
    font-size: 0.85rem;
}

/* Simple Steps */
.simple-steps {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.simple-steps h4 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 0.95rem;
}

.simple-steps ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.simple-steps li {
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.timeline-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-location {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: var(--space-xs);
}

.timeline-tag.flight {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.timeline-tag.tour {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-light);
}

.timeline-tag.show {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent);
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all var(--transition-fast);
}

.fab-main:hover {
    transform: scale(1.05);
}

.fab-main.active {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.fab-item:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.fab-icon {
    font-size: 1.25rem;
}

.fab-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-lg);
    position: relative;
    transform: scale(0.9);
    transition: all var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    padding: var(--space-lg);
    z-index: 250;
    transition: right var(--transition-normal);
}

.settings-panel.active {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.settings-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.close-settings {
    color: var(--text-muted);
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-item label:first-child {
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

.setting-select {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Weather Forecast Section */
.weather-section {
    margin-top: var(--space-md);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.weather-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.weather-update {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.weather-loading {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.weather-scroll {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.weather-scroll::-webkit-scrollbar {
    height: 4px;
}

.weather-scroll::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.weather-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

.weather-card {
    min-width: 120px;
    padding: var(--space-md);
    text-align: center;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.weather-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-city {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.weather-icon-large {
    font-size: 2rem;
    margin: var(--space-xs) 0;
}

.weather-temp {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 600;
}

.temp-max {
    color: var(--danger);
}

.temp-min {
    color: var(--primary-light);
}

.weather-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.weather-precip {
    font-size: 0.65rem;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: var(--space-xs);
}

/* Location Detail Modal */
.location-detail {
    text-align: left;
}

.location-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.location-icon {
    font-size: 2rem;
}

.location-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.location-info p strong {
    color: var(--text-primary);
}

.location-actions a.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Map Placeholder */
.map-placeholder {
    background: var(--bg-tertiary);
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: var(--space-md) 0;
}

/* Checklist Section */
.checklist-section {
    margin-top: var(--space-lg);
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.checklist-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.checklist-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.checklist-progress .progress-bar {
    width: 100px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.checklist-progress .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.checklist-progress .progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Checklist Tabs */
.checklist-tabs {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
}

.checklist-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    min-width: 60px;
}

.checklist-tab:hover {
    background: var(--bg-tertiary);
}

.checklist-tab.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.checklist-tab .tab-icon {
    font-size: 1.25rem;
}

/* Checklist Content */
.checklist-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.category-header .category-icon {
    font-size: 1.5rem;
}

.category-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* Checklist Items */
.checklist-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checklist-item:hover {
    border-color: var(--primary);
}

.checklist-item.checked {
    opacity: 0.6;
}

.checklist-item.checked .item-name {
    text-decoration: line-through;
}

.checklist-item.priority-critical {
    border-left: 3px solid var(--danger);
}

.checklist-item.priority-high {
    border-left: 3px solid var(--warning);
}

/* Checkbox */
.item-checkbox {
    flex-shrink: 0;
    position: relative;
}

.item-checkbox input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Item Content */
.item-content {
    flex: 1;
    min-width: 0;
}

.item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: 4px;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.item-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 500;
    text-transform: uppercase;
}

.item-badge.critical {
    background: var(--danger);
    color: white;
}

.item-badge.warning {
    background: var(--warning);
    color: var(--bg-primary);
}

.item-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: var(--space-xs);
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Item Status */
.item-status {
    flex-shrink: 0;
}

.status-icon {
    font-size: 1.25rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
}

/* ============================================
   Transport Section
   ============================================ */
.transport-section {
    margin-top: var(--space-lg);
}

.transport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.transport-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.transit-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.green {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.yellow {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-dot.red {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Transit Alerts */
.transit-alerts {
    margin-bottom: var(--space-md);
}

.transit-alert {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    margin-bottom: var(--space-xs);
}

.transit-alert.info {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.transit-alert.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.transit-alert .alert-line {
    font-weight: 600;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.transit-alert .alert-delay {
    color: var(--danger);
    font-weight: 600;
    margin-left: auto;
}

/* City Tabs for Transport */
.transport-city-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.transport-city-tab {
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.transport-city-tab:hover {
    background: var(--bg-tertiary);
}

.transport-city-tab.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

/* Transport App Info */
.transport-app-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.8rem;
}

.transport-app-info p {
    color: var(--text-secondary);
}

.app-links {
    display: flex;
    gap: var(--space-sm);
}

.app-link {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
}

.app-link:hover {
    background: var(--primary);
    color: white;
}

/* Route Cards */
.route-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.route-card {
    padding: var(--space-md);
}

.route-header {
    margin-bottom: var(--space-sm);
}

.route-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.route-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.route-note {
    font-size: 0.8rem;
    color: var(--warning);
    margin-bottom: var(--space-sm);
}

.btn-view-route {
    width: 100%;
    padding: var(--space-sm);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.btn-view-route:hover {
    opacity: 0.9;
}

/* Route Detail (Modal) */
.route-detail {
    max-height: 70vh;
    overflow-y: auto;
}

.route-detail-header {
    margin-bottom: var(--space-lg);
}

.route-detail-header h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}

.route-detail-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Route Steps */
.route-steps {
    margin-bottom: var(--space-lg);
}

.route-step {
    display: flex;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

.step-line {
    width: 2px;
    flex: 1;
    min-height: 20px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    margin-top: var(--space-xs);
}

.step-content {
    flex: 1;
    padding-bottom: var(--space-sm);
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.step-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    white-space: pre-line;
}

.step-line-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.step-direction,
.step-platform,
.step-getoff,
.step-duration,
.step-walk-dist,
.step-cost {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.step-getoff strong {
    color: var(--primary);
}

/* Step Tips */
.step-tips {
    background: rgba(var(--primary-rgb), 0.1);
    border-left: 3px solid var(--primary);
    padding: var(--space-sm);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: var(--space-sm);
}

.step-tip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.step-tip:last-child {
    margin-bottom: 0;
}

.step-map-link {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
}

.step-map-link:hover {
    background: var(--primary);
    color: white;
}

/* Step Types */
.route-step.step-info .step-icon {
    border-color: var(--warning);
    background: rgba(255, 193, 7, 0.1);
}

.route-step.step-train .step-icon {
    border-color: var(--primary);
}

.route-step.step-walk .step-icon {
    border-color: var(--success);
}

.route-step.step-transfer .step-icon {
    border-color: var(--secondary);
}

/* Route Actions */
.route-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.route-actions .btn-view {
    text-align: center;
    text-decoration: none;
}

/* ============================================
   FAB (Floating Action Button)
   ============================================ */
.fab-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--space-sm);
}

.fab-main {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all var(--transition-normal);
    z-index: 1001;
}

.fab-main:hover {
    transform: scale(1.05);
}

.fab-main.active {
    transform: rotate(45deg);
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.fab-item:hover {
    background: var(--surface-light);
    transform: translateX(-5px);
}

.fab-icon {
    font-size: 1.25rem;
}

.fab-label {
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--glass);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.modal-body {
    margin-top: var(--space-md);
}

.modal-body h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.modal-body li:last-child {
    border-bottom: none;
}

/* ============================================
   Settings Panel
   ============================================ */
.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    z-index: 1500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.settings-panel.active {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    width: 100%;
    max-width: 360px;
    padding: var(--space-lg);
    transform: translateY(-20px);
    transition: transform var(--transition-normal);
}

.settings-panel.active .settings-content {
    transform: translateY(0);
}

.settings-content h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--glass-border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label:first-child {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle input:checked+.toggle-slider {
    background: var(--gradient-primary);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

.setting-select {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* Responsive */
@media (min-width: 768px) {
    .app-container {
        max-width: 600px;
    }

    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 360px) {
    .logo h1 {
        font-size: 1rem;
    }

    .next-action .action-title {
        font-size: 1.25rem;
    }
}

/* Route Map Section */
.route-map-section {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.route-map-section .section-header h3 {
    margin: 0 0 var(--space-md) 0;
    font-size: 1.1rem;
}

.route-map-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.route-map-container iframe {
    border-radius: var(--radius-md);
    min-height: 250px;
}

.route-cities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.route-city {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.route-arrow {
    color: var(--primary);
    font-weight: bold;
}

/* Timeline Past Days Styling */
.timeline-day.past {
    opacity: 0.7;
}

.timeline-day.past .timeline-day-header {
    background: var(--bg-tertiary);
}

.timeline-day.today {
    scroll-margin-top: 80px;
}

.timeline-day.today .timeline-day-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border: 1px solid var(--primary);
}

/* Destination Time Display */
.card-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* Clickable Route Cities */
.route-city.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 12px;
}

.route-city.clickable:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.route-city.clickable:active {
    transform: scale(0.98);
}

/* Map Labels */
.map-label-text {
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    white-space: nowrap;
    margin-left: 8px;
}

/* Timeline Highlight Animation */
@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px 0 rgba(99, 102, 241, 0.4);
        transform: scale(1.02);
        background: rgba(99, 102, 241, 0.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
        transform: scale(1);
    }
}


.highlight-pulse {
    animation: pulse-highlight 2s ease-in-out;
}

/* AI Assistant & Header UI */
.btn-ai-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
    transition: all 0.3s ease;
}

.btn-ai-header:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.header-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.current-location-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trip-status-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.header-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    width: 0%;
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.ai-chat-modal {
    position: fixed;
    top: 80px;
    right: 24px;
    bottom: auto;
    width: 360px;
    height: 600px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    overflow: hidden;
}

.ai-chat-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-header {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 90%;
}

.chat-message.ai {
    align-self: flex-start;
}

.chat-message.ai.loading {
    opacity: 0.7;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-icon {
    font-size: 1.5rem;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.chat-message.user .message-content {
    background: var(--primary);
    color: white;
    border-radius: 12px 12px 0 12px;
}

.chat-message.ai .message-content {
    border-radius: 0 12px 12px 12px;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    border-radius: 20px;
    color: var(--text-primary);
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.1);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}