/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #003580; /* CVC inspired Deep Blue */
    --primary-light: #005eb8;
    --secondary-color: #FFB300; /* Vibrant Yellow */
    --accent-color: #FF5A00; /* Action Orange */
    
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --text-light: #f5f5f5;
    
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
button, .btn-primary, .btn-outline, .btn-card {
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 10px 24px;
}

.btn-primary:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 24px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

.logo i {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--bg-white);
    font-weight: 500;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.navbar:not(.scrolled) .btn-outline {
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.navbar:not(.scrolled) .btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    color: var(--bg-white);
    font-size: 1.5rem;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 53, 128, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    text-align: center;
    width: 100%;
    padding-top: 60px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 50px;
    opacity: 0.9;
    animation: fadeInUp 1s ease forwards;
}

/* ==========================================================================
   Search Widget (Glassmorphism)
   ========================================================================== */
.search-widget {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-glass);
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 1.2s ease forwards;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow-md);
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    text-align: left;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-group label i {
    color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.input-group input, 
.input-group select {
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: var(--font-body);
    width: 100%;
    background: transparent;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-divider {
    width: 1px;
    height: 40px;
    background-color: #e0e0e0;
}

.btn-search {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1rem;
    height: 100%;
}

.btn-search:hover {
    background: var(--primary-light);
}

/* ==========================================================================
   Destinations Section
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.dest-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.dest-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 1;
}

.badge-discount {
    background: #e53935;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 1;
    padding: 0;
}

.favorite-btn:hover {
    color: #e53935;
    background: var(--bg-white);
}

.favorite-btn i {
    width: 18px;
    height: 18px;
}

.card-content {
    padding: 20px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.card-location i {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.card-rating i {
    color: var(--secondary-color);
    width: 14px;
    height: 14px;
    fill: var(--secondary-color);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.price {
    display: flex;
    flex-direction: column;
}

.price-from {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

.btn-card {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 8px 16px;
}

.dest-card:hover .btn-card {
    background: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Promo Section
   ========================================================================== */
.promo-section {
    position: relative;
    padding: 100px 0;
    color: var(--bg-white);
}

.promo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.promo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 53, 128, 0.7);
}

.promo-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
}

.promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: var(--bg-white);
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-brand p {
    color: #b3cce6;
    margin-bottom: 20px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b3cce6;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #b3cce6;
}

.footer-contact ul li i {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3cce6;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .search-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 10px;
    }
    
    .input-group, .btn-search {
        width: 100%;
        background: var(--bg-white);
        border-radius: 8px;
        padding: 15px;
    }
    
    .input-divider {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none; /* Simplification for mobile, usually needs a toggle menu */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
