
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #101d32;
    --navy-light: #182a45;
    --gold: #c9a96e;
    --gold-light: #dfc38d;
    --ink: #17243a;
    --muted: #68758a;
    --line: #e6eaf0;
    --paper: #f7f8fa;
    --white: #ffffff;
    --green: #28795e;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
}

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER */

.topbar {
    min-height: 82px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px max(20px, calc((100% - 1160px) / 2));
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: .06em;
    font-size: 12px;
}

.brand-mark {
    background: var(--navy);
    color: var(--gold);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 18px;
}

.brand small {
    display: block;
    font: 500 9px 'DM Sans', sans-serif;
    color: #8490a0;
    letter-spacing: .18em;
    margin-top: 4px;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 13px;
    color: #536075;
}

.topbar nav a:hover {
    color: var(--gold);
}

.nav-cta {
    border: 1px solid var(--line);
    padding: 10px 15px;
    border-radius: 7px;
}

/* HERO */

.hero {
    min-height: 560px;
    background: var(--navy);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 65px max(35px, calc((100% - 1160px) / 2));
    overflow: hidden;
}

.hero-copy {
    max-width: 570px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .22em;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 17px;
}

.hero h1 {
    font: 800 clamp(46px, 6vw, 76px)/1.03 'Manrope', sans-serif;
    margin: 0 0 22px;
    letter-spacing: -.055em;
}

.hero h1 em {
    color: var(--gold);
    font-style: normal;
}

.hero-copy > p {
    color: #c0cad7;
    line-height: 1.8;
    max-width: 490px;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 44px;
    color: #8d9bad;
    font-size: 9px;
    letter-spacing: .15em;
}

/* BUTTONS */

.btn {
    border: 0;
    border-radius: 7px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 700 13px 'DM Sans', sans-serif;
    cursor: pointer;
    transition: .2s;
}

.btn.primary {
    background: var(--gold);
    color: #142238;
}

.btn.primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn.ghost {
    border: 1px solid #536176;
    color: var(--white);
    background: transparent;
}

.btn.small {
    padding: 9px 13px;
}

/* HERO GRAPHICS */

.hero-art {
    height: 390px;
    position: relative;
    display: grid;
    place-items: center;
}

.orbit {
    position: absolute;
    border: 1px solid #43516a;
    border-radius: 50%;
    transform: rotate(-22deg);
}

.orbit-one {
    width: 460px;
    height: 220px;
}

.orbit-two {
    width: 360px;
    height: 340px;
    transform: rotate(54deg);
}

.planet {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #405575, #1b2c45 58%, #101d32);
    box-shadow: 0 0 80px #c9a96e22, inset -20px -15px 35px #080f1d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #64728a;
}

.planet span {
    font: 800 42px 'Manrope', sans-serif;
    color: var(--gold);
    letter-spacing: .06em;
}

.planet small {
    font-size: 9px;
    letter-spacing: .3em;
    color: #cbd3dd;
}

.float-card {
    position: absolute;
    background: var(--white);
    color: var(--ink);
    border-radius: 9px;
    padding: 13px 16px;
    box-shadow: 0 14px 45px #0003;
    font-size: 13px;
}

.float-card span {
    margin-left: 7px;
}

.card-a {
    top: 56px;
    right: 2px;
}

.card-b {
    bottom: 55px;
    left: 0;
}

/* GENERAL SECTIONS */

.section {
    padding: 90px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 35px;
}

.section-head h2,
.closing h2 {
    font: 800 clamp(30px, 4vw, 43px)/1.1 'Manrope', sans-serif;
    margin: 0;
    letter-spacing: -.04em;
}

.section-head > p {
    max-width: 430px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    font-size: 14px;
}

/* COUNTRY CARDS */

.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-bottom: 35px;
}

.country-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 19px;
    display: grid;
    grid-template-columns: 12px 1fr;
    column-gap: 12px;
    align-items: center;
}

.country-dot {
    grid-row: span 2;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
}

.country-card b {
    font-size: 14px;
}

.country-card small {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

/* FORMS AND PANELS */

.form-panel,
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 30px;
    box-shadow: 0 10px 35px #17243a08;
}

.form-intro {
    margin-bottom: 25px;
}

.form-intro h3 {
    font: 700 24px 'Manrope', sans-serif;
    margin: 0 0 7px;
}

.form-intro p,
.login-wrap p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid label,
.login-wrap label,
.panel form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #35445a;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.login-wrap input,
.panel select,
.panel textarea {
    width: 100%;
    border: 1px solid #dce2ea;
    background: var(--white);
    border-radius: 7px;
    padding: 12px 13px;
    font: 400 13px 'DM Sans', sans-serif;
    color: var(--ink);
    outline: none;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.airport-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px #c9a96e22;
}

.full {
    grid-column: 1 / -1;
}

.consent {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    font-weight: 400 !important;
    color: var(--muted) !important;
    line-height: 1.5;
}

.consent input {
    width: auto;
    margin-top: 2px;
}

/* FLIGHT SECTION */

.flight-section {
    background: #edf1f5;
    margin: 0 calc((1160px - 100vw) / 2);
    padding-left: max(20px, calc((100vw - 1160px) / 2));
    padding-right: max(20px, calc((100vw - 1160px) / 2));
}

.trip-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.trip-tabs input {
    position: absolute;
    opacity: 0;
}

.trip-tabs span {
    display: block;
    border: 1px solid var(--line);
    padding: 10px 17px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.trip-tabs input:checked + span {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.leg {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
    margin-bottom: 14px;
}

.return-date {
    display: flex;
}

.airport-wrap {
    position: relative;
}

.airport-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px #101d3220;
    z-index: 10;
    max-height: 250px;
    overflow: auto;
}

.airport-results button {
    display: block;
    width: 100%;
    padding: 11px 13px;
    text-align: left;
    border: 0;
    background: var(--white);
    font: 12px 'DM Sans', sans-serif;
    cursor: pointer;
}

.airport-results button:hover {
    background: #f2f4f7;
}

.no-results {
    padding: 12px;
    color: var(--muted);
    font-size: 12px;
}

.leg-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    justify-content: space-between;
}

.remove-leg {
    border: 0;
    background: none;
    color: #a14a4a;
    cursor: pointer;
}

.leg-actions {
    margin: 10px 0 20px;
}

.passenger-grid {
    margin-top: 10px;
}

/* CLOSING SECTION */

.closing {
    text-align: center;
    background: var(--white);
    padding: 85px 20px;
    margin: 0 calc((1160px - 100vw) / 2);
}

.closing h2 {
    font-size: 42px;
}

.closing p {
    color: var(--muted);
}

/* FOOTER */

footer {
    background: #0c1728;
    color: #dce2ea;
    padding: 32px 0;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.foot p,
.foot small {
    font-size: 11px;
    color: #8794a7;
}

/* ALERTS */

.alert {
    padding: 14px 17px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 13px;
}

.success {
    background: #e8f4ee;
    color: #216447;
}

.error {
    background: #faeaea;
    color: #963f3f;
}

/* ADMIN LOGIN */

.login-wrap {
    max-width: 460px;
    margin: 70px auto;
}

.login-wrap .form-panel h1,
.admin-head h1 {
    font: 800 34px 'Manrope', sans-serif;
    margin: 0 0 8px;
}

.login-wrap form {
    display: grid;
    gap: 18px;
}

/* ADMIN DASHBOARD */

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 45px 0 28px;
}

.admin-head p {
    color: var(--muted);
    font-size: 13px;
}

.admin-user {
    font-size: 12px;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 21px;
}

.stat small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.stat b {
    display: block;
    font: 800 30px 'Manrope', sans-serif;
    margin-top: 10px;
}

.panel {
    margin-bottom: 25px;
}

.panel h2 {
    font: 700 19px 'Manrope', sans-serif;
    margin: 0 0 20px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-head h2 {
    margin: 0;
}

.panel-head a,
.table-wrap a {
    color: #98753e;
    font-weight: 700;
    font-size: 12px;
}

/* TABLES */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 650px;
}

th {
    text-align: left;
    color: #8390a0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #eef0f3;
}

tr:last-child td {
    border-bottom: 0;
}

.table-sub {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

/* STATUS BADGES */

.badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    background: #edf0f4;
    color: #566477;
}

.badge.new {
    background: #e8f2ff;
    color: #28619b;
}

.badge.review {
    background: #fff2dc;
    color: #9b6b20;
}

.badge.wait {
    background: #f0eaff;
    color: #7050a6;
}

.badge.quoted {
    background: #e6f4f5;
    color: #28717a;
}

.badge.confirmed,
.badge.done {
    background: #e7f4ed;
    color: #27724e;
}

.badge.closed {
    background: #f5e9e9;
    color: #955151;
}

/* ADMIN FILTERS AND DETAILS */

.empty {
    padding: 25px;
    color: var(--muted);
    font-size: 13px;
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.filter-row a {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 12px;
    color: var(--muted);
}

.filter-row a.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 20px;
}

.detail-grid dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 11px;
    margin: 0 0 25px;
    font-size: 13px;
}

.detail-grid dt {
    color: var(--muted);
}

.detail-grid dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.detail-grid .panel form {
    display: grid;
    gap: 17px;
}

.route-line {
    padding: 12px;
    background: #f5f7f9;
    border-radius: 7px;
    margin: 9px 0;
}

.route-line small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.preline {
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--muted);
    font-size: 13px;
}

/* TABLET AND MOBILE */

@media (max-width: 760px) {
    .topbar {
        height: auto;
        min-height: 72px;
        flex-wrap: wrap;
        padding: 13px 20px;
        gap: 12px;
    }

    .topbar nav {
        width: 100%;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 4px;
        font-size: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 25px 30px;
    }

    .hero-art {
        height: 280px;
    }

    .orbit-one {
        width: 320px;
        height: 160px;
    }

    .orbit-two {
        width: 260px;
        height: 240px;
    }

    .planet {
        width: 160px;
        height: 160px;
    }

    .planet span {
        font-size: 32px;
    }

    .card-a {
        right: 0;
        top: 20px;
    }

    .card-b {
        bottom: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head {
        display: block;
    }

    .section-head > p {
        margin-top: 17px;
    }

    .country-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-panel,
    .panel {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    .flight-section {
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-head {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .foot {
        display: block;
    }

    .closing h2 {
        font-size: 34px;
    }
}

@media (max-width: 420px) {
    .country-grid {
        grid-template-columns: 1fr;
    }

    .trip-tabs {
        gap: 5px;
    }

    .trip-tabs span {
        padding: 9px 11px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat {
        padding: 15px;
    }
}
