/* SnagAFlight — Unique features styles */

.results-hero__live {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
}

/* Dark mode */
[data-theme="dark"] {
    --white: #0f172a;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-800: #f1f5f9;
    --gray-700: #e2e8f0;
    --gray-500: #94a3b8;
    --navy-900: #f8fafc;
}

[data-theme="dark"] body {
    background: #0a1628;
    color: #e2e8f0;
}

[data-theme="dark"] .search-card,
[data-theme="dark"] .step-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .flight-card,
[data-theme="dark"] .hotel-card,
[data-theme="dark"] .car-card,
[data-theme="dark"] .unique-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .section--alt {
    background: #0f172a;
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field select {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}

/* Header extras */
.header-select, .icon-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.icon-btn { padding: 8px 12px; line-height: 1; }

/* Flash deal banner */
.flash-deal {
    display: block;
    background: linear-gradient(90deg, #ff6b4a, #f59e0b);
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    position: relative;
    z-index: 90;
}

.flash-deal__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.flash-deal__label { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
.flash-deal__route { font-weight: 700; }
.flash-deal__price { font-size: 1.2rem; font-weight: 800; }
.flash-deal__cta { font-weight: 600; opacity: 0.9; }

/* Snag Score */
.flight-card {
    grid-template-columns: 140px 1fr 180px;
    grid-template-areas:
        "extras extras extras"
        "airline route price";
    align-items: center;
}

.flight-card__extras { grid-area: extras; width: auto; margin-bottom: 0; }
.flight-card__airline { grid-area: airline; }
.flight-card__route { grid-area: route; }
.flight-card__price { grid-area: price; }

.flight-card__extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 4px;
}

.snag-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
}

.snag-score--high { background: rgba(20,184,166,0.15); color: #0d9488; }
.snag-score--mid { background: rgba(59,158,255,0.15); color: #2563eb; }
.snag-score--low { background: rgba(148,163,184,0.2); color: #64748b; }

.snag-score__val {
    font-size: 1rem;
    font-weight: 800;
    min-width: 28px;
    text-align: center;
}

.insight-badge {
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(255,107,74,0.12);
    color: #e85d3a;
    font-size: 0.75rem;
    font-weight: 700;
}

.eco-badge {
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(34,197,94,0.12);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
}

.flight-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn--ghost {
    background: transparent;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    padding: 10px 14px;
}

.btn--ghost:hover { border-color: var(--sky-500); color: var(--sky-500); }
.btn--block { width: 100%; }

/* Toolbar */
.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-chips, .results-toolbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-chip, .toolbar-btn {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.filter-chip.active, .filter-chip:hover {
    border-color: var(--sky-500);
    color: var(--sky-500);
    background: rgba(59,158,255,0.08);
}

.toolbar-btn--alert { border-color: var(--coral-500); color: var(--coral-500); }

.deals-toolbar__selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.deals-toolbar__select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
}

.deals-toolbar__select select {
    padding: 8px 12px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-size: 0.82rem;
    color: var(--gray-700);
    cursor: pointer;
}

.deals-filter-count {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0 0 12px;
}

.deals-sort-pills { margin-bottom: 16px; }

.deals-origin-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.deals-origin-picker__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
}

.dest-card-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dest-card-wrap .dest-card {
    flex: 1;
}

.dest-card__alert {
    align-self: flex-start;
    margin-left: 4px;
}

.flex-dates-wrap {
    margin-bottom: 20px;
}

.flex-dates__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--gray-800);
}

.flex-dates__sub {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0 0 12px;
}

.search-card__options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 4px 0 12px;
    padding-top: 4px;
    border-top: 1px solid var(--gray-100);
}

.search-card__options .checkbox-label {
    font-size: 0.88rem;
    color: var(--gray-600);
}

/* Flexible dates */
.flex-dates {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.flex-dates__day {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    text-align: center;
    min-width: 72px;
}

.flex-dates__day span { display: block; font-size: 0.75rem; opacity: 0.7; }
.flex-dates__day strong { display: block; font-size: 0.95rem; margin-top: 4px; }
.flex-dates__day.active { background: var(--sky-500); border-color: var(--sky-500); }

.search-flexible { margin-right: auto; }

.search-card__footer--flights {
    flex-wrap: wrap;
    align-items: center;
}

/* Unique features grid */
.unique-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.unique-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.unique-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.unique-card__icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.unique-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--navy-900); }
.unique-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

/* Trip bundle */
.bundle-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: var(--navy-900);
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    padding: 48px;
    color: #fff;
    overflow: hidden;
}

.bundle-box__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(6, 13, 26, 0.94) 0%, rgba(10, 22, 40, 0.82) 55%, rgba(10, 22, 40, 0.45) 100%);
    z-index: 0;
}

.bundle-box__content,
.bundle-box__visual {
    position: relative;
    z-index: 1;
}

.bundle-box h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.bundle-box p { opacity: 0.75; margin-bottom: 20px; }

.bundle-steps {
    margin: 0 0 24px 20px;
    line-height: 2;
    opacity: 0.9;
}

.bundle-box .btn--ghost {
    margin-left: 12px;
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.bundle-box__visual {
    position: relative;
    height: 200px;
}

.bundle-pill {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.bundle-pill--flight { top: 20%; left: 10%; }
.bundle-pill--hotel { top: 40%; right: 15%; }
.bundle-pill--car { bottom: 10%; left: 35%; }

/* Recent searches */
.recent-searches { margin-top: 24px; }
.recent-searches__title { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 10px; font-weight: 600; }
.recent-searches__list { display: flex; gap: 8px; flex-wrap: wrap; }

.recent-chip {
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.recent-chip:hover { background: rgba(255,255,255,0.18); }

/* Explore page */
.explore-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    padding: 24px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    margin-bottom: 20px;
}

.explore-picker__field {
    flex: 1 1 280px;
}

.explore-picker__field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.explore-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.explore-popular__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
}

.explore-popular__pill {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--navy-800);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.explore-popular__pill:hover,
.explore-popular__pill.active {
    background: var(--sky-500);
    border-color: var(--sky-500);
    color: #fff;
}

.explore-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.explore-meta__route {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

.explore-meta__note {
    font-size: 0.82rem;
    color: var(--gray-500);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.explore-grid--deals {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.explore-deal-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    transition: box-shadow 0.2s, transform 0.2s;
}

.explore-deal-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.explore-deal-card__photo {
    display: block;
    position: relative;
    min-height: 160px;
    padding: 20px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
}

.explore-deal-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 26, 0.15) 0%, rgba(6, 13, 26, 0.75) 100%);
}

.explore-deal-card__tag,
.explore-deal-card__city,
.explore-deal-card__price {
    position: relative;
    z-index: 1;
}

.explore-deal-card__live {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.92);
    color: #fff;
}

.explore-deal-card__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.explore-deal-card__city {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 10px 0 4px;
}

.explore-deal-card__price {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #a7f3d0;
}

.explore-deal-card__body {
    padding: 16px 18px 18px;
}

.explore-deal-card__airline,
.explore-deal-card__dates {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0 0 6px;
}

.explore-deal-card__dates span {
    font-weight: 600;
    color: var(--gray-600);
}

.explore-deal-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.explore-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.explore-card:hover {
    border-color: var(--sky-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.explore-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sky-500);
}

.explore-card__city { font-size: 1.2rem; font-weight: 800; margin: 8px 0 4px; color: var(--navy-900); }
.explore-card__price { color: var(--teal-500); font-weight: 700; }
.explore-card__cta { display: block; margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--gray-500); }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.alert-summary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-800);
    background: var(--gray-50);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.modal__backdrop { position: absolute; inset: 0; background: rgba(6,13,26,0.6); backdrop-filter: blur(4px); }
.modal__box {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal__box--wide { max-width: 720px; }
.modal__close { position: absolute; top: 16px; right: 20px; font-size: 1.5rem; color: var(--gray-400); background: none; border: none; cursor: pointer; }
.modal__box h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.modal__sub { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 20px; }
.modal__form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-500); margin: 12px 0 6px; }
.modal__form input { width: 100%; padding: 12px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 0.95rem; }
.modal__form .btn { margin-top: 16px; }
.modal__msg { margin-top: 12px; font-size: 0.9rem; font-weight: 600; }
.modal__msg--ok { color: #16a34a; }
.modal__msg--err { color: #dc2626; }

/* Compare tray */
.compare-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    background: var(--navy-900);
    color: #fff;
    padding: 14px 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
}

.compare-tray[hidden] { display: none; }

.compare-tray__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.compare-tray__title { font-weight: 700; font-size: 0.9rem; }
.compare-tray__items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }

.compare-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    font-size: 0.8rem;
}

.compare-chip button { background: none; border: none; color: #fff; cursor: pointer; font-size: 1rem; opacity: 0.7; }
.compare-tray__clear { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 0.85rem; cursor: pointer; text-decoration: underline; }

.compare-table table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.compare-table th, .compare-table td { padding: 12px; border-bottom: 1px solid var(--gray-200); text-align: left; font-size: 0.9rem; }
.compare-table th { font-weight: 700; background: var(--gray-50); }

@media (max-width: 1024px) {
    .unique-grid { grid-template-columns: 1fr 1fr; }
    .bundle-box { grid-template-columns: 1fr; }
    .explore-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .unique-grid, .explore-grid { grid-template-columns: 1fr; }
    .header-select { display: none; }
    .flight-card__extras { order: -1; }
}

/* Legal pages */
.legal-hero {
    background: var(--navy-900);
    color: #fff;
    padding: 100px 0 40px;
}

.legal-hero h1 { font-size: 2rem; font-weight: 800; }
.legal-hero__updated { opacity: 0.6; margin-top: 8px; font-size: 0.9rem; }

.container--narrow { max-width: 720px; }

.legal-intro {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-block { margin-bottom: 28px; }
.legal-block h2 { font-size: 1.1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.legal-block p { color: var(--gray-600); line-height: 1.75; font-size: 0.95rem; }
.legal-back { margin-top: 40px; }
.legal-back a { color: var(--sky-500); font-weight: 600; }

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
    padding: 20px 0;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__text h2 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cookie-banner__text p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.5; max-width: 640px; }
.cookie-banner__text a { color: var(--sky-500); font-weight: 600; }

.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cookie-modal { position: fixed; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal[hidden] { display: none; }

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cookie-option strong { display: block; margin-bottom: 4px; }
.cookie-option p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }

[data-theme="dark"] .cookie-banner { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .legal-block h2 { color: #f1f5f9; }
[data-theme="dark"] .legal-block p, [data-theme="dark"] .legal-intro { color: #94a3b8; }

@media (max-width: 768px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; }
    .cookie-banner__actions { flex-direction: column; }
    .cookie-banner__actions .btn { width: 100%; }
}
