/* User Menu in Navbar */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-menu-container .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-sky), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-menu-container .user-name {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    display: none;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-dropdown.visible {
    display: block;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Trigger Button */
#my-trips-btn,
#my-trips-btn-welcome {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    position: relative;
}

#my-trips-btn {
    width: 50px;
    height: 50px;
    font-size: 1.15rem;
}

#my-trips-btn-welcome {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

#my-trips-btn:hover,
#my-trips-btn-welcome:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.55);
}

#my-trips-btn:active,
#my-trips-btn-welcome:active {
    transform: scale(0.95);
}

/* The dropdown panel — anchored above the input bar (fixed to viewport) */
.my-trips-panel {
    position: fixed;
    bottom: 80px;
    left: 40px;
    width: 320px;
    max-height: 420px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 200;
    display: flex;
    flex-direction: column;
    animation: panelSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.my-trips-panel.hidden {
    display: none !important;
}

#my-trips-btn.hidden,
#my-trips-btn-welcome.hidden {
    display: none !important;
}

@keyframes panelSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Panel Header */
.my-trips-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
    background: rgba(14, 165, 233, 0.1);
    flex-shrink: 0;
}

.my-trips-panel-header i {
    color: #38bdf8;
    margin-right: 4px;
}

.my-trips-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.my-trips-close-btn:hover {
    color: #e2e8f0;
}

/* Scrollable list */
.my-trips-list {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.3) transparent;
}

/* Loading / Empty states */
.my-trips-loading,
.my-trips-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.9rem;
    padding: 30px 20px;
}

/* Individual trip card */
.my-trips-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: default;
    transition: all 0.2s ease;
}

.my-trips-item:hover {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateX(3px);
}

/* City image thumbnail */
.my-trips-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Trip info text */
.my-trips-item-info {
    flex: 1;
    min-width: 0;
}

.my-trips-item-dest {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-trips-item-dates {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

/* Load button */
.my-trips-load-btn {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    white-space: nowrap;
}

.my-trips-load-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.45);
}

/* prompt-guide-container must be positioned relatively so the panel anchors correctly */
.prompt-guide-container {
    position: relative;
}