.travel-dashboard {
    display: flex;
    width: 100%;
    padding-top: 80px;
    height: 100vh;
    overflow: hidden;
}

.travel-sidebar {
    width: 400px;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255,255,255,0.1);
    z-index: 10;
}

.travel-map-area { 
    min-height: 50vh; 
    width: 100%;
    height: 100%;
    flex: 1;
    position: relative;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #222;
    z-index: 1;
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.glass-card h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #818cf8;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.input-group label {
    font-size: 0.85rem;
    color: #94a3b8;
}

.input-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 1rem;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: 0.3s;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Budget Section */
.budget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.budget-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.budget-item span:first-child {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.budget-item span:last-child {
    font-weight: bold;
    font-size: 1.1rem;
    color: #f8fafc;
}

.budget-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    color: #34d399;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: 0.2s;
}

.timeline-item:hover {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #818cf8;
    border: 3px solid var(--card-bg);
}

.tl-time {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.tl-title {
    font-weight: bold;
    color: white;
    margin-bottom: 0.3rem;
}

.tl-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Map Popups */
.leaflet-popup-content-wrapper {
    background: rgba(30, 41, 59, 0.95);
    color: white;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.leaflet-popup-tip {
    background: rgba(30, 41, 59, 0.95);
}
.custom-popup h3 {
    margin: 0 0 0.5rem 0;
    color: #818cf8;
    font-size: 1rem;
}
.custom-popup p {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5e1;
}

@media (max-width: 950px) {
    .travel-dashboard {
        flex-direction: column;
        height: auto;
        overflow-y: visible;
    }
    .travel-sidebar {
        width: 100%;
        height: auto;
        min-height: 50vh;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        overflow-y: visible;
    }
    .travel-map-area { 
        min-height: 50vh; 
        width: 100%;
        height: 50vh;
    }
    .timeline-item {
        padding: 1.5rem 1rem;
        margin-bottom: 0.5rem;
    }
    .tl-title { font-size: 1.1rem; }
    .tl-desc { font-size: 1rem; line-height: 1.4; }
}
