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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    padding: 100px 2rem 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    max-width: 600px;
    z-index: 1;
    margin-left: 5%;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 .highlight {
    background: var(--secondary);
    padding: 0 15px;
    border-radius: 8px;
    display: inline-block;
}

.hero > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-content > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Budget Selector */
.budget-selector {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.budget-selector label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.budget-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.budget-input-wrapper .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray);
}

.budget-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    padding: 0.5rem;
    outline: none;
    font-family: inherit;
}

.budget-presets {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.preset {
    padding: 0.5rem 1rem;
    border: 2px solid var(--light);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-family: inherit;
}

.preset:hover,
.preset.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.cta-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Floating Cards */
.hero-image {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.floating-card {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
}

.floating-card .icon {
    font-size: 1.5rem;
}

.card-1 {
    position: relative;
    animation-delay: 0s;
}

.card-2 {
    position: relative;
    left: 50px;
    margin-top: 20px;
    animation-delay: 0.5s;
}

.card-3 {
    position: relative;
    left: -30px;
    margin-top: 20px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Results Section */
.results {
    display: none;
    padding: 80px 2rem;
    background: var(--light);
}

.results.active {
    display: block;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.results-header h2 span {
    color: var(--primary);
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Trip Card */
.trip-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.trip-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.trip-card-content {
    padding: 1.5rem;
}

.trip-card-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.trip-card-content .duration {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.trip-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trip-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.trip-detail .icon {
    font-size: 1.2rem;
}

.trip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.trip-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.trip-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray);
}

.btn-book {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-book:hover {
    background: var(--primary-dark);
}

/* How it Works */
.how-it-works {
    padding: 100px 2rem;
    text-align: center;
    background: var(--white);
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 4rem;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--gray);
}

/* Destinations */
.destinations {
    padding: 100px 2rem;
    background: var(--light);
    text-align: center;
}

.destinations h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 3rem;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.destination-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    text-align: left;
}

.destination-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.destination-info p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 2rem 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-2, .card-3 {
        left: 0;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .budget-selector {
        padding: 1.5rem;
    }

    .budget-input-wrapper input {
        font-size: 1.5rem;
    }

    .trips-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }
}

/* Preferences Input */
.preferences-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.preferences-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
}

.button-group .cta-button {
    flex: 1;
}

.ai-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ai-button:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: var(--gray);
    color: var(--white);
}

/* AI Loading */
.ai-loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-loading h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.ai-loading p {
    color: var(--gray);
}

/* AI Itinerary */
.ai-itinerary {
    text-align: left;
}

.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ai-itinerary h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.duration-tag {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.itinerary-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
}

.breakdown-item .icon {
    font-size: 1.5rem;
}

.breakdown-item strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.breakdown-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

.breakdown-item .cost {
    color: var(--primary);
    font-weight: 600;
}

.breakdown-item ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}

.breakdown-item li {
    color: var(--gray);
    font-size: 0.9rem;
}

.highlights-section {
    margin-bottom: 1.5rem;
}

.highlights-section h4 {
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.highlights-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight-tag {
    background: var(--light);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tips-section {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.tips-section h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.tips-section p {
    color: var(--gray);
    margin: 0;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gradient);
    border-radius: 12px;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--light);
    color: var(--dark);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
}

.modal-actions .btn-book {
    flex: 1;
}

/* AI Error */
.ai-error {
    text-align: center;
    padding: 2rem;
}

.ai-error h3 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.ai-error p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}
