/* SnagAFlight — Design System
   Palette: Deep navy + sky blue + warm coral accent
   Font: Plus Jakarta Sans
*/

:root {
    --navy-950: #060d1a;
    --navy-900: #0a1628;
    --navy-800: #12203a;
    --navy-700: #1a2d4d;
    --navy-600: #243b63;
    --sky-500: #3b9eff;
    --sky-400: #5cb3ff;
    --sky-300: #8ecaff;
    --teal-500: #14b8a6;
    --coral-500: #ff6b4a;
    --coral-400: #ff8a70;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(6, 13, 26, 0.06);
    --shadow-md: 0 4px 20px rgba(6, 13, 26, 0.08);
    --shadow-lg: 0 12px 40px rgba(6, 13, 26, 0.12);
    --shadow-card: 0 8px 32px rgba(6, 13, 26, 0.1);
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.15rem;
}

.logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--sky-500), var(--teal-500));
    border-radius: var(--radius-sm);
    color: var(--white);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav__link:hover { color: var(--white); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all var(--transition);
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.header-auth {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all var(--transition);
}

.header-auth:hover {
    background: rgba(20, 184, 166, 0.25);
    border-color: var(--teal-500);
}

.header-auth--in {
    background: rgba(59, 158, 255, 0.15);
    border-color: rgba(59, 158, 255, 0.35);
}

.header-auth__label {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--navy-900);
    overflow: visible;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.02);
}

.hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 13, 26, 0.92) 0%, rgba(10, 22, 40, 0.75) 45%, rgba(10, 22, 40, 0.55) 100%);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: var(--sky-500);
    top: -10%;
    right: -5%;
    opacity: 0.25;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: var(--teal-500);
    bottom: 10%;
    left: -10%;
    opacity: 0.2;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: var(--coral-500);
    top: 40%;
    left: 40%;
    opacity: 0.12;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--sky-300);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero__badge-dot {
    width: 7px;
    height: 7px;
    background: var(--teal-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--sky-400), var(--teal-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 20px;
}

.hero__guides {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.hero__guides-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-right: 4px;
}

.hero__guide-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition);
}

.hero__guide-pill:hover {
    background: rgba(20, 184, 166, 0.35);
    border-color: var(--teal-500);
    transform: translateY(-1px);
}

.hero__guide-pill--all {
    background: rgba(59, 158, 255, 0.2);
    border-color: rgba(59, 158, 255, 0.4);
}

/* ── Search Card ── */
.search-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
    overflow: visible;
}

.search-hub .search-card {
    margin-bottom: 0;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.search-hub {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Mode tabs: Flights / Hotels / Cars */
.mode-tabs {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 6px 6px 0;
    backdrop-filter: blur(8px);
}

.mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all var(--transition);
}

.mode-tab:hover { color: var(--white); }

.mode-tab.active {
    background: var(--white);
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
}

.mode-tab.active svg { color: var(--sky-500); }

.search-panel { display: none; }
.search-panel.active { display: block; }

.search-card__grid--flights {
    grid-template-columns: 1fr auto 1fr 1fr 1fr auto;
}

.search-card__grid--hotels {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
}

.search-card__grid--cars {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.field--wide { grid-column: span 2; }

.field--checkbox {
    display: flex;
    align-items: flex-end;
    padding-bottom: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--sky-500);
}

.btn--hotels {
    background: linear-gradient(135deg, var(--teal-500), #0d9488);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.btn--hotels:hover { box-shadow: 0 6px 20px rgba(20, 184, 166, 0.45); }

.btn--cars {
    background: linear-gradient(135deg, var(--coral-500), #e85d3a);
    box-shadow: 0 4px 14px rgba(255, 107, 74, 0.35);
}

.btn--cars:hover { box-shadow: 0 6px 20px rgba(255, 107, 74, 0.45); }

/* Deals tabs */
.deals-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.deals-tab {
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    transition: all var(--transition);
}

.deals-tab.active,
.deals-tab:hover {
    color: var(--white);
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.deals-panel { display: none; }
.deals-panel.active { display: block; }

.dest-card__badge-live {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.92);
    color: #fff;
}

.dest-card__badge-live--partner {
    background: rgba(59, 130, 246, 0.92);
}

.dest-card__type {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 100px;
}

.dest-card__meta {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}

.dest-card--rome { background: linear-gradient(135deg, #8b4513, #c97b4a); }
.dest-card--amsterdam { background: linear-gradient(135deg, #e67e22, #f39c12); }
.dest-card--lisbon { background: linear-gradient(135deg, #16a085, #48c9b0); }
.dest-card--milan { background: linear-gradient(135deg, #5d4e6d, #8e7cc3); }

.step-card__icon--flights { color: var(--sky-500); }
.step-card__icon--hotels { color: var(--teal-500); }
.step-card__icon--cars { color: var(--coral-500); }

/* Results hero variants */
.results-hero__type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sky-300);
    margin-bottom: 8px;
}

.results-empty--inline {
    padding: 32px 0;
    text-align: center;
}

.results-empty--inline p {
    margin-bottom: 16px;
    color: var(--gray-500);
}

.results-hero__demo {
    margin-top: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    line-height: 1.5;
}

.results-hero--hotels .results-hero__type { color: #5eead4; }
.results-hero--cars .results-hero__type { color: #fdba74; }

.result-card__badge,
.flight-card__badge {
    position: absolute;
    top: -1px;
    left: 24px;
    background: linear-gradient(135deg, var(--coral-500), var(--coral-400));
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 2;
}

/* Hotel cards */
.hotel-card {
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr 160px;
    gap: 24px;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    overflow: hidden;
    transition: all var(--transition);
}

.hotel-card:hover {
    border-color: #5eead4;
    box-shadow: var(--shadow-md);
}

.hotel-card__visual {
    height: 120px;
    border-radius: var(--radius-md);
    background-color: var(--gray-200);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hotel-card__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.hotel-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
}

.hotel-card__chain {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: 2px;
}

.hotel-card__rating { text-align: right; }

.hotel-card__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 4px 8px;
    background: var(--navy-900);
    color: var(--white);
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
}

.hotel-card__reviews {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.hotel-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hotel-card__stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hotel-card__tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 100px;
}

.hotel-card__price { text-align: right; }

.hotel-card__amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
}

.hotel-card__per {
    font-size: 0.78rem;
    color: var(--gray-400);
}

/* Car cards */
.car-card {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr 160px;
    gap: 24px;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: all var(--transition);
}

.car-card:hover {
    border-color: #fdba74;
    box-shadow: var(--shadow-md);
}

.car-card__visual {
    color: var(--coral-500);
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-card__visual svg { width: 100%; max-width: 120px; }

.car-card__type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--coral-500);
}

.car-card__model {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
    margin: 4px 0;
}

.car-card__provider {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.car-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.car-card__specs span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 100px;
}

.car-card__price { text-align: right; }

.car-card__amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
}

.car-card__per {
    font-size: 0.78rem;
    color: var(--gray-400);
}


.search-card__tabs {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
    width: fit-content;
}

.search-card__tab {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-500);
    transition: all var(--transition);
}

.search-card__tab.active {
    background: var(--white);
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
}

.search-card__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    overflow: visible;
}

.field {
    position: relative;
    min-width: 0;
}

.field--ac-open {
    z-index: 250;
}

.field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.field__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.field__input-wrap--ac input {
    flex: 1;
    min-width: 0;
}

.field__input-wrap--ac {
    overflow: visible;
}

/* Autocomplete dropdown */
.ac-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: min(280px, 50vh);
    overflow-y: auto;
    overflow-x: hidden;
}

.ac-list--fixed {
    position: fixed;
    z-index: 1000;
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}

.ac-item:hover,
.ac-item--active {
    background: var(--gray-100);
}

.ac-item__code {
    flex-shrink: 0;
    min-width: 42px;
    padding: 4px 8px;
    background: var(--navy-900);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.ac-item__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ac-item__text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-900);
}

.ac-item__text small {
    font-size: 0.78rem;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

[data-theme="dark"] .ac-list {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .ac-item:hover,
[data-theme="dark"] .ac-item--active {
    background: #334155;
}

[data-theme="dark"] .ac-item__text strong { color: #f1f5f9; }
[data-theme="dark"] .ac-item__text small { color: #94a3b8; }

.field__icon {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
    pointer-events: none;
}

.field__input-wrap input,
.field__input-wrap select,
.field input,
.field select {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.field__input-wrap input:focus,
.field__input-wrap select:focus,
.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.15);
}

.field__input-wrap select,
.field select {
    appearance: none;
    cursor: pointer;
}

.swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    margin-bottom: 2px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.swap-btn:hover {
    background: var(--sky-500);
    color: var(--white);
    transform: rotate(180deg);
}

.search-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    gap: 16px;
    flex-wrap: wrap;
}

.search-card__note {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.btn--primary {
    background: linear-gradient(135deg, var(--sky-500), #2b7fd9);
    color: var(--white);
    padding: 14px 28px;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(59, 158, 255, 0.35);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 158, 255, 0.45);
}

.btn--search {
    padding: 14px 32px;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn--sm {
    padding: 10px 18px;
    font-size: 0.85rem;
    margin-top: 8px;
    width: 100%;
}

/* ── Stats ── */
.stats {
    display: flex;
    gap: 48px;
}

.stat__value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ── Sections ── */
.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--gray-50);
}

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

.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section__sub {
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* ── Steps ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
}

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

.step-card__num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
}

.step-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 158, 255, 0.1), rgba(20, 184, 166, 0.1));
    border-radius: var(--radius-md);
    color: var(--sky-500);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.step-card p {
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ── Destinations ── */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dest-card {
    position: relative;
    height: 240px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform var(--transition);
    background-size: cover;
    background-position: center;
}

.dest-card:hover { transform: scale(1.02); }

.dest-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 13, 26, 0.9) 0%, rgba(6, 13, 26, 0.25) 55%, rgba(6, 13, 26, 0.1) 100%);
    z-index: 1;
    transition: opacity var(--transition);
}

.dest-card:hover .dest-card__overlay {
    background: linear-gradient(to top, rgba(6, 13, 26, 0.95) 0%, rgba(20, 184, 166, 0.15) 100%);
}

.dest-card__content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: var(--white);
}

.dest-card__route {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.dest-card__price {
    font-size: 0.9rem;
    color: var(--sky-300);
    font-weight: 500;
}

.dest-card--barcelona { background: linear-gradient(135deg, #e85d3a, #f4a261); }
.dest-card--london { background: linear-gradient(135deg, #4a6fa5, #6b8cbe); }
.dest-card--paris { background: linear-gradient(135deg, #7b6ba5, #a894c4); }
.dest-card--newyork { background: linear-gradient(135deg, #2c3e6b, #4a6fa5); }
.dest-card--dubai { background: linear-gradient(135deg, #c9a227, #e8c547); }
.dest-card--athens { background: linear-gradient(135deg, #3d8b8b, #5cb3b3); }

/* ── Features ── */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 36px 28px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
}

.feature-card__icon--blue { background: rgba(59, 158, 255, 0.12); color: var(--sky-500); }
.feature-card__icon--teal { background: rgba(20, 184, 166, 0.12); color: var(--teal-500); }
.feature-card__icon--coral { background: rgba(255, 107, 74, 0.12); color: var(--coral-500); }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.92rem;
}

/* ── CTA ── */
.cta {
    position: relative;
    background: var(--navy-900);
    padding: 80px 0;
    background-size: cover;
    background-position: center;
}

.cta--photo .cta__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 13, 26, 0.88), rgba(10, 22, 40, 0.78));
}

.cta--photo .cta__inner {
    position: relative;
    z-index: 1;
}

.cta__inner {
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.cta p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* ── Results Page ── */
.results-hero {
    background: var(--navy-900);
    padding: 100px 0 32px;
    color: var(--white);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color var(--transition);
}

.back-link:hover { color: var(--white); }

.results-hero__title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.results-hero__route {
    font-size: 1.1rem;
    color: var(--sky-300);
    font-weight: 600;
}

.results-hero__meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 6px;
}

.results-toolbar {
    margin-bottom: 20px;
}

.sort-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-pill {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    border: 1.5px solid transparent;
    transition: all var(--transition);
}

.sort-pill.active,
.sort-pill:hover {
    background: var(--white);
    color: var(--sky-500);
    border-color: var(--sky-500);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flight-card {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    align-items: center;
    gap: 24px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: all var(--transition);
}

.flight-card:hover {
    border-color: var(--sky-300);
    box-shadow: var(--shadow-md);
}

.flight-card__badge {
    position: absolute;
    top: -1px;
    left: 24px;
    background: linear-gradient(135deg, var(--coral-500), var(--coral-400));
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.flight-card__airline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.flight-card__logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--navy-700);
}

.flight-card__route {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flight-card__time strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
}

.flight-card__time span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.flight-card__line {
    flex: 1;
    text-align: center;
}

.flight-card__stops,
.flight-card__duration {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.flight-card__bar {
    height: 2px;
    background: var(--gray-200);
    margin: 6px 0;
    position: relative;
}

.flight-card__bar span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--sky-500);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.flight-card__price {
    text-align: right;
}

.flight-card__amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
}

.flight-card__per {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.flight-card__fare-date {
    display: block;
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-top: 4px;
}

.result-card__badge--muted {
    background: rgba(100, 116, 139, 0.15);
    color: var(--gray-600);
}

.results-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--gray-200);
}

.results-empty h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.results-empty p {
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 auto 20px;
}

.results-disclaimer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.82rem;
    color: var(--gray-400);
}

/* ── Footer ── */
.footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo--footer { margin-bottom: 12px; }

.footer__note {
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer__heading {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer__bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
}

/* ── Auth pages ── */
.auth-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.auth-page__inner { max-width: 440px; }

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
}

.auth-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.auth-card__sub {
    color: var(--gray-500);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.auth-card__error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.auth-form .field { display: block; margin-bottom: 16px; }

.auth-form .field__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.auth-form .field__input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.auth-form .field__input:focus {
    outline: none;
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.15);
}

.auth-card__foot {
    margin-top: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--gray-500);
}

.auth-card__foot a { color: var(--sky-500); font-weight: 600; }

.account-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.account-panel__hello {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.account-panel h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.account-list { list-style: none; margin-bottom: 24px; }

.account-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.account-list li:last-child { border-bottom: none; }

.account-list strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }

.account-list span { font-size: 0.85rem; color: var(--gray-500); }

.account-actions { display: flex; flex-wrap: wrap; gap: 12px; }

[data-theme="dark"] .auth-page {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .account-panel {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .auth-card h1 { color: #f1f5f9; }

[data-theme="dark"] .auth-form .field__input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

/* ── Trust strip (vs competitors) ── */
.trust-strip {
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    padding: 48px 0 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-strip__title {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 28px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.trust-strip__item {
    text-align: center;
    padding: 20px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.trust-strip__icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 10px;
}

.trust-strip__item h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.trust-strip__item p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

/* ── Inspiration mosaic ── */
.section--inspo {
    padding-top: 72px;
}

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

.inspo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 200px;
}

.inspo-card--hero {
    grid-column: span 2;
    grid-row: span 2;
}

.inspo-card__link {
    display: block;
    height: 100%;
    position: relative;
}

.inspo-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
    transition: transform 0.45s ease;
}

.inspo-card:hover .inspo-card__img {
    transform: scale(1.06);
}

.inspo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 13, 26, 0.92) 0%, rgba(6, 13, 26, 0.15) 60%);
    z-index: 1;
}

.inspo-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px;
    color: var(--white);
}

.inspo-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(20, 184, 166, 0.85);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.inspo-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.inspo-card--hero .inspo-card__title {
    font-size: 1.35rem;
}

.inspo-card__cta {
    font-size: 0.82rem;
    color: var(--sky-300);
    font-weight: 600;
}

.inspo-card__book {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.inspo-card__book:hover {
    transform: scale(1.05);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .search-card__grid,
    .search-card__grid--flights,
    .search-card__grid--hotels,
    .search-card__grid--cars {
        grid-template-columns: 1fr 1fr;
    }
    .field--wide { grid-column: span 2; }
    .swap-btn { display: none; }
    .steps, .dest-grid, .features { grid-template-columns: 1fr 1fr; }
    .flight-card, .hotel-card, .car-card { grid-template-columns: 1fr; gap: 16px; }
    .flight-card__price, .hotel-card__price, .car-card__price {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    .btn--sm { width: auto; margin-top: 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .hotel-card__visual { height: 160px; }
    .trust-strip__grid { grid-template-columns: repeat(3, 1fr); }
    .inspo-grid { grid-template-columns: repeat(2, 1fr); }
    .inspo-card--hero { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--navy-900);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .menu-toggle { display: flex; }
    .mode-tab span { display: none; }
    .mode-tab { padding: 14px; }
    .search-card__grid,
    .search-card__grid--flights,
    .search-card__grid--hotels,
    .search-card__grid--cars { grid-template-columns: 1fr; }
    .field--wide { grid-column: span 1; }
    .stats { gap: 28px; flex-wrap: wrap; }
    .steps, .dest-grid, .features { grid-template-columns: 1fr; }
    .search-card__footer { flex-direction: column; align-items: stretch; }
    .btn--search { width: 100%; }
    .footer__grid { grid-template-columns: 1fr; }
    .flight-card__route { flex-direction: column; gap: 8px; }
    .flight-card__line { width: 100%; }
    .hotel-card__header { flex-direction: column; }
    .hotel-card__rating { text-align: left; }
    .trust-strip__grid { grid-template-columns: 1fr 1fr; }
    .inspo-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .inspo-card--hero { grid-column: span 1; }
    .hero__guides { gap: 6px; }
    .header-auth__label { display: none; }
}
