
:root {
    --bg: #f5f7fb;
    --white: #ffffff;
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --dark: #172033;
    --text: #334155;
    --muted: #94a3b8;
    --border: #e8edf4;
    --red: #ef4444;
    --blue: #2563eb;
    --shadow: 0 8px 30px rgba(15, 23, 42, .045);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--dark);
}

button, input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
    width: 245px;
    background: #111c31;
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 55px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.brand-dot {
    color: #60a5fa;
}

.sidebar-label {
    color: #71819d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    margin: 0 0 15px 10px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    text-decoration: none;
    color: #a6b3c8;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 13px;
    border-radius: 9px;
    transition: .2s;
}

.nav-item span {
    font-size: 19px;
}

.nav-item:hover,
.nav-item.active {
    background: #23375a;
    color: white;
}

.nav-item.active {
    border-left: 3px solid #60a5fa;
}

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-bottom .sidebar-label {
    margin-top: 30px;
}

.sidebar-version {
    margin-top: 35px;
    padding: 15px 5px;
    border-top: 1px solid #26334b;
    color: #8290a8;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.sidebar-version span {
    margin-left: auto;
    font-size: 9px;
    background: #23375a;
    padding: 4px 6px;
    border-radius: 4px;
}

/* MAIN */

.main {
    width: calc(100% - 245px);
    max-width: 1600px;
    padding: 0 55px;
    margin: auto;
}

.topbar {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

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

.breadcrumb strong {
    color: var(--text);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.status {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 7px;
}

.status span,
.live-tag span {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--primary);
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.mobile-brand {
    display: none;
}

/* WELCOME */

.welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 38px 0 28px;
}

.eyebrow {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.welcome h1 {
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: -1.5px;
    font-weight: 800;
}

.welcome h1 span {
    color: var(--primary);
}

.welcome p,
.section-heading p {
    color: #8995a8;
    font-size: 13px;
    margin-top: 9px;
}

.welcome-icon {
    font-size: 48px;
    color: #cbdcf9;
    transform: rotate(-12deg);
}

/* SEARCH CARD */

.search-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 27px;
    box-shadow: var(--shadow);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search-header h2,
.section-heading h2 {
    font-size: 19px;
    letter-spacing: -.5px;
}

.search-header p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}

.live-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 9px;
    font-weight: 800;
    padding: 8px 11px;
    border-radius: 6px;
    letter-spacing: .5px;
}

.trip-options {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.trip-option {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #64748b;
    font-size: 12px;
    cursor: pointer;
}

.trip-option input {
    display: none;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
}

.trip-option input:checked + .custom-radio {
    border-color: var(--primary);
}

.trip-option input:checked + .custom-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--primary);
}

.route-grid {
    display: grid;
    grid-template-columns: 1fr 45px 1fr;
    align-items: end;
    gap: 15px;
}

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

.field > label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: #8190a5;
    letter-spacing: .9px;
    margin-bottom: 9px;
}

.input-box {
    height: 68px;
    border: 1px solid var(--border);
    border-radius: 9px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    gap: 12px;
    transition: .2s;
    background: white;
}

.input-box:focus-within {
    border-color: #93b7ff;
    box-shadow: 0 0 0 3px #eff6ff;
}

.airport-box {
    height: 78px;
}

.field-icon {
    font-size: 22px;
    color: #94a3b8;
}

.departure-icon {
    color: var(--red);
}

.arrival-icon {
    color: var(--blue);
}

.input-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.input-content input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    background: transparent;
}

.input-content small,
.input-box small {
    font-size: 10px;
    color: #a0aabb;
    margin-top: 5px;
}

.swap-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dbeafe;
    background: white;
    color: var(--primary);
    font-size: 21px;
    margin-bottom: 19px;
    transition: .2s;
}

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

/* DETAILS */

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 15px;
    margin-top: 24px;
}

.input-box input[type="date"] {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--dark);
    font-size: 12px;
    font-weight: 600;
}

.passenger-trigger {
    cursor: pointer;
}

.passenger-trigger strong {
    font-size: 12px;
}

.chevron {
    color: #94a3b8;
}

.passenger-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 1000;
    width: 270px;
    background: white;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 35px #17203320;
}

.passenger-dropdown.open {
    display: block;
}

.passenger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.passenger-row strong {
    display: block;
    font-size: 12px;
}

.passenger-row small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}

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

.counter button {
    width: 27px;
    height: 27px;
    border: 1px solid #dbeafe;
    background: white;
    color: var(--primary);
    border-radius: 7px;
    font-size: 17px;
}

.counter span {
    font-size: 13px;
    font-weight: 700;
}

.passenger-done {
    width: 100%;
    border: none;
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 7px;
    margin-top: 15px;
    font-size: 11px;
    font-weight: 700;
}

/* QUICK DATES */

.calendar-shortcuts {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.calendar-shortcuts > span {
    font-size: 9px;
    font-weight: 800;
    color: #94a3b8;
    margin-right: 5px;
    letter-spacing: .7px;
}

.calendar-shortcuts button {
    border: 1px solid var(--border);
    background: white;
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 10px;
    color: #64748b;
}

.calendar-shortcuts button:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #bfdbfe;
}

/* SEARCH BUTTON */

.search-button {
    width: 100%;
    height: 51px;
    margin-top: 24px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px #2563eb30;
    transition: .2s;
}

.search-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.search-button > span:first-child {
    font-size: 20px;
}

.button-arrow {
    margin-left: 5px;
}

.demo-note {
    text-align: center;
    font-size: 10px;
    color: #a0aabb;
    margin-top: 13px;
}

/* MAP */

.map-section {
    margin-top: 37px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 20px;
}

.map-legend {
    display: flex;
    gap: 18px;
    font-size: 10px;
    color: #64748b;
}

.map-legend div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.legend-dot,
.footer-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
}

.red {
    background: var(--red);
}

.blue {
    background: var(--blue);
}

.map-wrapper {
    height: 390px;
    position: relative;
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 1;
}

#map {
    height: 100%;
    width: 100%;
    background: #e8eef5;
}

.map-overlay {
    position: absolute;
    top: 17px;
    left: 17px;
    z-index: 500;
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 14px 17px;
    box-shadow: 0 5px 20px #17203315;
    pointer-events: none;
}

.map-overlay-label {
    font-size: 8px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 9px;
}

.map-route {
    display: flex;
    align-items: center;
    gap: 13px;
}

.map-route strong {
    font-size: 17px;
}

.map-route span {
    color: var(--primary);
}

.map-overlay small {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    margin-top: 6px;
}

.map-footer {
    display: flex;
    align-items: center;
    gap: 45px;
    padding: 17px 5px;
}

.map-footer > div:not(.map-provider) {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-footer small {
    display: block;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 800;
    margin-bottom: 4px;
}

.map-footer strong {
    font-size: 11px;
}

.map-provider {
    margin-left: auto;
    font-size: 8px;
    color: #a0aabb;
    letter-spacing: .5px;
}

/* FOOTER */

footer {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    margin-top: 15px;
    border-top: 1px solid var(--border);
    color: #a0aabb;
    font-size: 10px;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .sidebar {
        width: 205px;
    }

    .main {
        width: calc(100% - 205px);
        padding: 0 25px;
    }

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

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

@media (max-width: 700px) {
    .sidebar {
        display: none;
    }

    .main {
        width: 100%;
        padding: 0 17px;
    }

    .topbar {
        height: 65px;
    }

    .breadcrumb {
        display: none;
    }

    .mobile-brand {
        display: block;
        font-size: 21px;
        font-weight: 800;
        color: var(--primary);
    }

    .welcome {
        padding: 30px 0 23px;
    }

    .welcome h1 {
        font-size: 27px;
    }

    .welcome p {
        max-width: 290px;
        line-height: 1.6;
    }

    .welcome-icon {
        font-size: 30px;
    }

    .search-card {
        padding: 19px 15px;
    }

    .search-header h2 {
        font-size: 17px;
    }

    .live-tag {
        font-size: 8px;
        padding: 7px;
    }

    .route-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .swap-btn {
        position: absolute;
        right: 27px;
        margin-top: 87px;
        z-index: 5;
        background: white;
    }

    .airport-box {
        height: 68px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .passenger-field {
        grid-column: auto;
    }

    .passenger-dropdown {
        width: 100%;
    }

    .calendar-shortcuts {
        gap: 7px;
    }

    .calendar-shortcuts > span {
        width: 100%;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 14px;
    }

    .map-wrapper {
        height: 340px;
    }

    .map-footer {
        gap: 18px;
        flex-wrap: wrap;
    }

    .map-provider {
        width: 100%;
        margin-left: 0;
    }

    footer {
        gap: 10px;
        flex-direction: column;
    }
}
