:root {
    --primary-color: #610b8a;
    --secondary-color: #4A148C;
    --accent-color: #e74c3c;
    --text-primary: #243142;
    --text-secondary: #7f8c8d;
    --bg-light: #f6f7fb;
    --card-bg: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header is styled by home.css; keep only small tweaks here if needed */

.flights-page {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 20px 40px;
}

.flights-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 32px 32px 28px;
    color: #fff;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.flights-hero-content h1 {
    font-size: 2rem;
    margin: 8px 0 10px;
}

.flights-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.flights-lead {
    font-size: 0.98rem;
    max-width: 620px;
    opacity: 0.92;
}

.flights-search-card {
    margin-top: 18px;
    background: #ffffff;
    color: var(--text-primary);
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.flights-search-card .field-group {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.flights-search-card label {
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.flights-search-card input,
.flights-search-card select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d0d7e2;
    font-size: 0.9rem;
}

.flights-search-card input:focus,
.flights-search-card select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(97, 11, 138, 0.18);
}

.flights-search-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flights-search-btn:hover {
    background: #f3e9ff;
    transform: translateY(-1px);
}

.flights-hero-badges {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.flights-hero-badges span {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 6px 12px;
}

.flights-section {
    margin-bottom: 32px;
}

.flights-section h2 {
    font-size: 1.6rem;
    margin: 0 0 8px;
}

.section-subtitle {
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.flights-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.flights-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px 18px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flights-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.flights-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.route-meta {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.flights-card ul {
    padding-left: 18px;
    margin: 0;
    font-size: 0.9rem;
}

.flights-steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.flights-steps-list li {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Flight results grid (sample options) */

.flights-results {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 22px 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.flights-results-empty {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.flights-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.flight-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(97, 11, 138, 0.02), rgba(97, 11, 138, 0.09));
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.flight-card-main {
    flex: 1;
    padding-right: 10px;
}

.flight-route {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.flight-route .city {
    font-size: 0.98rem;
}

.flight-route .arrow {
    color: var(--primary-color);
}

.flight-meta {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flight-card-side {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}

.flight-card-side .price {
    font-weight: 700;
    font-size: 1rem;
}

.flight-card-side .tag {
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.12);
    color: #256029;
}

.flight-card-side .tag.alt {
    background: rgba(33, 150, 243, 0.14);
    color: #0b3c68;
}

/* Make individual sections more eye-catching with subtle backgrounds */

.flights-routes {
    background: radial-gradient(circle at top left, rgba(97, 11, 138, 0.06), transparent 60%),
        radial-gradient(circle at bottom right, rgba(233, 30, 99, 0.05), transparent 55%);
    padding: 26px 22px 28px;
    border-radius: 18px;
}

.flights-why {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 26px 22px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.flights-steps {
    background: linear-gradient(135deg, rgba(97, 11, 138, 0.04), rgba(106, 27, 154, 0.09));
    padding: 26px 22px 28px;
    border-radius: 18px;
}

.flights-faq {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 26px 22px 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Footer (reuse look from Travel/Sim) */

.footer {
    background-color: #111827;
    color: #e5e7eb;
    padding: 32px 20px;
    margin-top: 20px;
}

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

.footer-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #e5e7eb;
}

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

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: #1f2933;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-icon:hover {
    background-color: #4A148C;
}