/* assets/css/style.css - Updated for Wakanow-like design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0078c1;       /* Wakanow-style sea blue */
    --primary-orange: #ff6600;     /* Vibrant orange accent */
    --primary-dark: #004a7c;
    --primary-light: #e6f4ff;
    --secondary: #5d6d7e;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #212529;
    --border: #dde2e7;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Header with Gradient */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: '✈';
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section with Background Image */
.hero {
    background: linear-gradient(rgba(0, 40, 80, 0.8), rgba(0, 40, 80, 0.9)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Prominent Search Form */
.search-form {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    transform: translateY(-50px);
    margin-top: -50px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    display: block;
    position: relative; /* Add this line */
}

.form-control {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 120, 193, 0.2);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-blue), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 193, 0.3);
}

.btn-block {
    width: 100%;
}

/* New Sections: Featured Deals & Why Choose Us */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.deal-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.deal-card:hover {
    transform: translateY(-8px);
}

.deal-img {
    height: 180px;
    background: #ddd;
    background-size: cover;
}

.deal-content {
    padding: 1.5rem;
}

.deal-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0.5rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.why-card {
    text-align: center;
    padding: 2rem;
    background: var(--primary-light);
    border-radius: var(--radius);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Add these autocomplete styles - they override any conflicting rules */
/*.form-group {*/
/*            position: relative !important;*/
/*        }*/
        
        /*.autocomplete-list {*/
        /*    position: absolute !important;*/
        /*    background: white !important;*/
        /*    border: 1px solid #dde2e7 !important;*/
        /*    border-radius: 8px !important;*/
        /*    max-height: 200px !important;*/
        /*    overflow-y: auto !important;*/
        /*    z-index: 9999 !important;*/
        /*    width: 100% !important;*/
        /*    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;*/
        /*    top: 100% !important;*/
        /*    left: 0 !important;*/
        /*    margin-top: 4px !important;*/
        /*}*/
        
        /*.autocomplete-item {*/
        /*    padding: 0.75rem 1rem !important;*/
        /*    cursor: pointer !important;*/
        /*    transition: background 0.2s !important;*/
        /*    font-size: 0.95rem !important;*/
        /*    border-bottom: 1px solid #f5f5f5 !important;*/
        /*}*/
        
        /*.autocomplete-item:hover {*/
        /*    background: #e6f4ff !important;*/
        /*}*/

/* Make sure form-group has relative positioning for absolute dropdown */
/*.form-group {*/
/*    position: relative !important;*/
/*}*/

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .search-form {
        padding: 1.5rem;
        transform: translateY(-30px);
        margin-top: -30px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* Consider a mobile hamburger menu later */
    }
}