/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Carousel - Optimized */
.background-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* High-quality gradient fallback */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    /* GPU acceleration */
    transform: translateZ(0);
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* GPU acceleration for better performance */
    will-change: opacity;
    transform: translateZ(0);
    /* Optimize for compositing */
    backface-visibility: hidden;
}

.bg-image.active {
    opacity: 1;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 20px 0;
}

/* Header */
.brand-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.brand-title h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: -1px;
}

.logo-image {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4)) brightness(1.5) contrast(1.2);
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .brand-title {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .logo-image {
        height: 180px !important;
        margin-right: 0 !important;
        margin-bottom: 0;
    }
    
    .brand-title h1 {
        font-size: 2.2rem;
        margin-left: 0 !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 140px !important;
    }
    
    .brand-title h1 {
        font-size: 1.8rem;
    }
}

/* Enhanced Insights Panel */
.insights-panel {
    animation: slideUp 0.6s ease-out;
}

.insights-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.insight-item {
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.insight-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.insight-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.insight-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Suggestion Controls */
.suggestion-controls {
    display: flex;
    gap: 0.5rem;
}

.suggestion-controls .btn {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.suggestion-controls .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Card Animations */
.card-enter {
    animation: cardEnter 0.6s ease-out;
}

.card-exit-left {
    animation: cardExitLeft 0.4s ease-in forwards;
}

.card-exit-right {
    animation: cardExitRight 0.4s ease-in forwards;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardExitLeft {
    to {
        opacity: 0;
        transform: translateX(-100%) rotate(-10deg);
    }
}

@keyframes cardExitRight {
    to {
        opacity: 0;
        transform: translateX(100%) rotate(10deg);
    }
}

/* Floating Action Button */
.floating-insights-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;
}

.floating-insights-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.floating-insights-btn.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* User Interests Button */
.floating-interests-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-interests-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

/* Interest Cards in Modal */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.interest-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.interest-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.interest-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.interest-category {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.interest-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.interest-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.interest-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interest-actions {
    display: flex;
    gap: 0.5rem;
}

/* Travel Stats Modal */
.stat-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Nearby Destinations */
.nearby-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.nearby-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.nearby-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nearby-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.nearby-distance {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.nearby-highlight {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #e9ecef;
}

/* Travel Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #007bff, #28a745);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    margin-left: 1rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #007bff, #28a745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-quarter {
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-theme {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-destinations {
    margin-bottom: 1rem;
}

.destination-tag {
    display: inline-block;
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.timeline-reasoning {
    color: #e9ecef;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.timeline-budget {
    color: #28a745;
    font-weight: 600;
    font-size: 1rem;
}

/* Advanced Features */
.advanced-features {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.advanced-features .btn {
    font-size: 0.85rem;
}

.brand-title i {
    color: #007bff;
}

.brand-logo-main {
    height: 360px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4));
    background: transparent;
    /* Clean display with proper transparency */
    padding: 15px;
    border-radius: 12px;
    /* Ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 45px;
    }
}

@media (max-width: 576px) {
    .brand-logo {
        height: 35px;
    }
}

/* Mobile Search Improvements */
@media (max-width: 768px) {
    .search-container {
        margin: 0 15px;
        max-width: calc(100% - 30px);
    }
    
    .search-container .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        min-height: 48px;
    }
    
    .search-container .btn {
        padding: 14px 20px;
        min-height: 48px;
        font-size: 0.9rem;
    }
    
    .search-container .input-group-text {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .search-container {
        margin: 0 10px;
        max-width: calc(100% - 20px);
        padding: 6px;
    }
    
    .search-container .form-control {
        font-size: 16px;
        padding: 12px 14px;
        min-height: 44px;
    }
    
    .search-container .btn {
        padding: 12px 16px;
        min-height: 44px;
        font-size: 0.85rem;
    }
    
    .search-container .input-group-text {
        padding: 10px 12px;
        font-size: 1.1rem;
    }
    
    /* Email Section Mobile */
    .email-card {
        padding: 1rem 0.75rem;
        margin: 0 15px;
        max-width: 100%;
    }
    
    .email-card .form-control,
    .email-card .btn-success {
        font-size: 13px;
        min-height: 32px;
        padding: 6px 10px;
    }
    
    .email-card .input-group-text {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .email-subscription-section {
        padding: 20px 0;
        margin-top: 15px;
    }
}

/* Email Subscription Section - Minimized to 50% */
.email-subscription-section {
    padding: 25px 0;
    margin-top: 20px;
}

.email-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    max-width: 380px;
    margin: 0 auto;
}

.email-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.email-card .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.email-card .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #28a745;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 50px 0 0 50px;
}

.email-card .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    line-height: 1.4;
    height: auto;
    min-height: 36px;
    border-radius: 0;
}

.email-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.email-card .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
    border: none;
    outline: none;
}

.email-card .btn-success {
    border-radius: 0 20px 20px 0;
    padding: 8px 16px;
    font-weight: 600;
    border: none;
    background: linear-gradient(45deg, #28a745, #20c997);
    transition: all 0.3s ease;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.email-card .btn-success:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.email-card .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.email-card .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

/* Login Section Styles */
.login-section .btn-outline-light {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.login-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Close Button Styles for Email Card */
.email-card .btn-close {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.email-card .btn-close:hover {
    opacity: 1;
}

/* Login Modal Enhancements */
.modal-content.bg-dark {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content.bg-dark .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #007bff;
}

.modal-content.bg-dark .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-content.bg-dark .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Discovery Carousel Styles */
.discovery-carousel-section {
    padding: 2rem 0;
}

.discovery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.destination-card {
    flex: 0 0 300px;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.destination-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.destination-card.active {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

.destination-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a; /* Add fallback background color */
    min-height: 200px; /* Ensure minimum height */
}

.destination-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.destination-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.destination-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.destination-location {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.destination-location i {
    margin-right: 0.5rem;
    color: #007bff;
}

.destination-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.destination-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.destination-tag {
    background: rgba(0, 123, 255, 0.2);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #007bff;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Swipe Hint */
.swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.swipe-hint.hidden {
    opacity: 0;
}

.swipe-arrow {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.swipe-arrow.left {
    animation-delay: 0s;
}

.swipe-arrow.right {
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-controls .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.carousel-controls .btn:hover {
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .destination-card {
        flex: 0 0 280px;
        margin-right: 15px;
    }
    
    .discovery-carousel {
        padding: 1.5rem;
    }
    
    .destination-content {
        padding: 1rem;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .carousel-controls .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Touch and Drag Feedback */
.carousel-track.dragging {
    transition: none;
}

.carousel-track.dragging .destination-card {
    pointer-events: none;
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    max-width: 600px;
    margin: 0 auto;
}

.search-container .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.search-container .input-group-text {
    background: transparent;
    border: none;
    color: #007bff;
    font-size: 1.2rem;
    padding: 12px 15px;
    border-radius: 50px 0 0 50px;
}

.search-container .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 16px 20px;
    line-height: 1.4;
    height: auto;
    min-height: 50px;
    border-radius: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.search-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    overflow: visible;
    text-overflow: ellipsis;
}

.search-container .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    border: none;
    outline: none;
}

.search-container .btn {
    padding: 16px 18px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

.search-container .btn-outline-primary {
    border-radius: 0 !important;
    background: rgba(0, 123, 255, 0.15) !important;
    color: #007bff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.search-container .btn-outline-primary:hover {
    background: rgba(0, 123, 255, 0.3) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.search-container .btn-primary {
    border-radius: 0 25px 25px 0 !important;
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
    color: #fff !important;
    border: none !important;
}

.search-container .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(45deg, #0056b3, #007bff) !important;
}

/* Mobile responsive adjustments for search container */
@media (max-width: 768px) {
    .search-container .btn {
        padding: 12px 14px !important;
        font-size: 0.75rem !important;
        min-height: 46px !important;
    }
    
    .search-container .form-control {
        font-size: 1rem !important;
        padding: 14px 16px !important;
        min-height: 46px !important;
    }
    
    .search-container .input-group-text {
        padding: 10px 12px !important;
        font-size: 1rem !important;
    }
    
    .search-container {
        padding: 6px !important;
    }
}

@media (max-width: 480px) {
    .search-container .btn {
        padding: 10px 12px !important;
        font-size: 0.7rem !important;
        min-height: 42px !important;
    }
    
    .search-container .form-control {
        font-size: 0.9rem !important;
        padding: 12px 14px !important;
        min-height: 42px !important;
    }
}

/* New Search Container Structure */
.search-input-wrapper {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    border-radius: 17px !important;
    overflow: hidden !important;
}

.search-icon {
    position: absolute !important;
    left: 20px !important;
    z-index: 2 !important;
    color: #007bff !important;
    font-size: 1.2rem !important;
}

.search-input {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    padding: 16px 20px 16px 55px !important;
    min-height: 50px !important;
    outline: none !important;
    line-height: 1.4 !important;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 400 !important;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25) !important;
}

.search-buttons {
    display: flex !important;
    align-items: stretch !important;
}

.btn-explore {
    padding: 16px 24px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    border-radius: 0 17px 17px 0 !important;
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
    color: #fff !important;
}

.btn-explore:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(45deg, #0056b3, #007bff) !important;
}

/* Mobile responsiveness for new structure */
@media (max-width: 768px) {
    .search-input {
        font-size: 1rem !important;
        padding: 14px 16px 14px 50px !important;
        min-height: 46px !important;
    }
    
    .search-icon {
        font-size: 1rem !important;
        left: 16px !important;
    }
    
    .btn-explore {
        padding: 12px 18px !important;
        font-size: 0.8rem !important;
        min-height: 46px !important;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 0.9rem !important;
        padding: 12px 14px 12px 45px !important;
        min-height: 42px !important;
    }
    
    .search-icon {
        font-size: 0.9rem !important;
        left: 14px !important;
    }
    
    .btn-explore {
        padding: 10px 16px !important;
        font-size: 0.75rem !important;
        min-height: 42px !important;
    }
}

/* Destination Card Image Fallback */
.destination-image.fallback .image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.destination-image:not(.loaded) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.destination-image:not(.loaded)::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 50px 0;
}

.loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Weather Card */
.weather-section {
    margin-bottom: 40px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.weather-location {
    color: #fff;
    font-weight: 600;
}

.current-weather .temperature {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.weather-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: capitalize;
}

.weather-details {
    color: rgba(255, 255, 255, 0.7);
}

.forecast h6 {
    color: #fff;
    font-weight: 600;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-item:last-child {
    border-bottom: none;
}

.forecast-day {
    font-weight: 500;
    min-width: 80px;
}

.forecast-temps {
    font-weight: 600;
    color: #007bff;
}

/* Card Stack */
.suggestions-section {
    margin-bottom: 40px;
}

.card-stack {
    position: relative;
    height: 500px;
    margin: 30px auto;
    perspective: 1000px;
}

.suggestion-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    height: 450px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    z-index: 10;
}

.suggestion-card:nth-child(2) {
    transform: translateX(-50%) scale(0.95) translateY(10px);
    z-index: 9;
    opacity: 0.8;
}

.suggestion-card:nth-child(3) {
    transform: translateX(-50%) scale(0.9) translateY(20px);
    z-index: 8;
    opacity: 0.6;
}

.suggestion-card.dragging {
    cursor: grabbing;
    z-index: 100;
}

.suggestion-card.swipe-left {
    transform: translateX(-150%) rotate(-30deg);
    opacity: 0;
}

.suggestion-card.swipe-right {
    transform: translateX(150%) rotate(30deg);
    opacity: 0;
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.card-content {
    padding: 25px;
    color: #333;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.card-meta span {
    display: flex;
    align-items: center;
}

.card-meta i {
    margin-right: 5px;
    color: #007bff;
}

/* Clean, minimal card styling */

/* Action Buttons */
.action-buttons {
    text-align: center;
}

.action-buttons .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    min-width: 140px;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
}

#dismissBtn:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

#saveBtn:hover {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Saved Suggestions */
/* Professional Saved Section */
.saved-section {
    margin-top: 30px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.saved-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.saved-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.saved-content::-webkit-scrollbar {
    width: 6px;
}

.saved-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.saved-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.saved-suggestion {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.saved-suggestion:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.saved-suggestion h6 {
    color: #17a2b8;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.saved-suggestion p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.saved-suggestion small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.saved-actions {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.empty-saved {
    color: rgba(255, 255, 255, 0.6);
}

/* Header Actions */
.header-actions {
    gap: 15px !important;
}

/* Empty State */
.empty-state {
    padding: 100px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.2rem;
    }
    
    .search-container {
        margin: 0 15px;
    }
    
    .weather-card {
        margin: 0 15px 30px;
        padding: 20px;
    }
    
    .current-weather .temperature {
        font-size: 2rem;
    }
    
    .suggestion-card {
        max-width: 350px;
        height: 420px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .action-buttons .btn {
        min-width: 120px;
        padding: 10px 20px;
    }
    
    .saved-suggestion {
        margin: 0 15px 15px;
    }
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 1.8rem;
    }
    
    .search-container .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .suggestion-card {
        max-width: 320px;
        height: 400px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .action-buttons .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mood Board Styles */
.mood-board-suggestions-list {
    max-height: 400px;
    overflow-y: auto;
}

.mood-board-suggestion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

.mood-board-suggestion-item:hover {
    background: #e9ecef;
}

.mood-board-suggestion-item .form-check-input {
    margin-top: 0.25em;
}

.suggestion-preview h6 {
    color: #495057;
    font-weight: 600;
}

.suggestion-preview small {
    color: #6c757d;
}

.category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: white;
}

.category-food { background-color: #dc3545; }
.category-culture { background-color: #20c997; }
.category-adventure { background-color: #007bff; }
.category-relaxation { background-color: #28a745; }
.category-sightseeing { background-color: #ffc107; color: #000; }
.category-entertainment { background-color: #e83e8c; }

/* Mood Board Template Styles */
.mood-board-container {
    background: #fff;
    color: #333;
    min-height: 100vh;
}

.mood-board-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.mood-board-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mood-board-destination {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.mood-board-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.mood-board-content {
    padding: 3rem 0;
}

.mood-board-suggestion {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-board-suggestion:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mood-board-suggestion-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mood-board-suggestion-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mood-board-suggestion-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.detail-item i {
    color: #007bff;
    width: 16px;
}

.mood-board-cta {
    text-align: center;
    padding: 3rem 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.mood-board-cta h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.mood-board-cta p {
    color: #6c757d;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .mood-board-title {
        font-size: 2rem;
    }
    
    .mood-board-suggestion {
        padding: 1.5rem;
    }
    
    .mood-board-suggestion-title {
        font-size: 1.3rem;
    }
    
    .mood-board-suggestion-details {
        grid-template-columns: 1fr;
    }
}
