/* FlyUnified Styles */
:root {
    --primary-color: #0078D7;
    --secondary-color: #003366;
    --accent-color: #FF9900;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    padding: 8px 12px;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
}

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

.user-actions {
    display: flex;
    gap: 20px;
}

.user-actions a {
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
}

.user-actions a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1920x500?text=Travel+Background');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 40px 0;
}

/* Search Panel */
.search-panel {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
}

.trip-type {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.trip-type label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 16px;
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

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

/* Results Container */
.results-container {
    display: none;
    margin-top: 30px;
}

.flight-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.flight-info {
    flex: 2;
    min-width: 300px;
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.flight-time {
    font-size: 20px;
    font-weight: bold;
}

.flight-airports {
    font-size: 14px;
    color: #666;
}

.flight-duration {
    text-align: center;
    position: relative;
}

.flight-duration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    right: -15px;
    height: 1px;
    background-color: var(--medium-gray);
    z-index: 1;
}

.duration-time {
    background-color: var(--white);
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.flight-icon {
    color: var(--primary-color);
    transform: rotate(90deg);
    font-size: 24px;
    margin: 0 10px;
}

.flight-details {
    display: flex;
    gap: 20px;
}

.flight-details-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.flight-details-item i {
    color: var(--primary-color);
}

.flight-price {
    flex: 1;
    min-width: 150px;
    text-align: right;
}

.price-amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.select-flight-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.select-flight-btn:hover {
    background-color: #e08800;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Booking Details */
.booking-summary {
    margin-bottom: 30px;
}

.booking-summary h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.flight-summary {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.flight-summary-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.flight-summary-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.flight-summary-segment {
    flex: 1;
    min-width: 300px;
}

.segment-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.segment-route {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.passenger-details h3 {
    margin-bottom: 15px;
}

.passenger-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.payment-details h3 {
    margin-bottom: 15px;
}

.payment-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.booking-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.total-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.confirm-booking-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.confirm-booking-btn:hover {
    background-color: #e08800;
}

/* Featured Destinations */
.featured-destinations {
    padding: 60px 0;
    background-color: var(--white);
}

.featured-destinations h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

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

.destination-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-info {
    padding: 20px;
}

.destination-info h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.destination-info p {
    color: #666;
    margin-bottom: 15px;
}

.btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

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

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    transition: color 0.3s;
}

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

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

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

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

.newsletter {
    display: flex;
    margin-top: 10px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: var(--accent-color);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-actions {
        margin-top: 10px;
    }
    
    .flight-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .flight-price {
        width: 100%;
        text-align: left;
    }
}

/* Autocomplete Styles */
.autocomplete-container {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.autocomplete-option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.4;
}

.autocomplete-option:last-child {
    border-bottom: none;
}

.autocomplete-option:hover {
    background-color: #f9f9f9;
}
