/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    --page-bg: #070b12;
    --page-text: #F4F1EA;
    --muted-text: rgba(244, 241, 234, 0.58);
    --panel-bg: rgba(255, 255, 255, 0.08);
    --panel-border: rgba(255, 255, 255, 0.14);
    --panel-solid: rgba(16, 20, 28, 0.94);
    --header-mark: 32px;
    --twin-gap: 1.5rem;
    --header-h: 4.6rem;
    --grain: url("assets/grain.svg");
    color-scheme: dark;
}

html[data-theme="day"] {
    --page-bg: var(--simple-sand);
    --page-text: var(--tech-black);
    --muted-text: var(--go-grey);
    --panel-bg: rgba(255, 255, 255, 0.82);
    --panel-border: rgba(255, 255, 255, 0.95);
    --panel-solid: rgba(255, 255, 255, 0.96);
    color-scheme: light;
}

html, body {
    background: var(--page-bg);
    color: var(--page-text);
    transition: background-color 1s ease-in-out, color 1s ease-in-out;
}

html[data-theme="night"],
html[data-theme="night"] body {
    height: 100%;
    overflow: hidden;
}

html[data-theme="day"],
html[data-theme="day"] body {
    height: 100%;
    overflow: hidden;
}

html[data-theme="day"],
html[data-theme="day"] body {
    background-color: #F3F1EC;
    background-image: var(--grain);
    background-size: 180px 180px;
    background-repeat: repeat;
}

html[data-theme="day"] body {
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 4rem 48px;
    min-height: 0;
    display: none;
    flex-direction: column;
}

html[data-theme="day"] .container {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    padding: 4px 4rem 10px;
    overflow: hidden;
}

html[data-theme="day"] .topbar {
    display: grid;
    align-items: baseline;
    padding: 1.1rem 4rem;
    position: relative;
    z-index: 9999;
    overflow: visible;
}

html[data-theme="day"] .footer {
    display: none;
}

.topbar {
    width: 100%;
    display: none;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 2000;
}

html[data-theme="day"] .topbar {
    display: grid;
}

.header-word {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--page-text);
    margin: 0;
    white-space: nowrap;
}

.header-getting {
    justify-self: start;
    animation: header-word-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.header-logo {
    --word-gap: 0.28em;
    --word-reveal: calc(var(--header-mark) * 591 / 307 + 6px);
    --word-w: calc(var(--word-reveal) + var(--word-gap) + 2px);
    justify-self: center;
    position: relative;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    height: var(--header-mark);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    overflow: visible;
    appearance: none;
    -webkit-appearance: none;
    animation: header-logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.header-logo:focus-visible {
    outline: 2px solid var(--go-green);
    outline-offset: 6px;
    border-radius: 4px;
}

.header-logo-mark {
    height: var(--header-mark);
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    border: 0;
    outline: 0;
    position: relative;
    z-index: 1;
}

.header-logo-word {
    display: block;
    max-width: 0;
    overflow: hidden;
    height: var(--header-mark);
    margin-left: 0;
    transition: max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-logo:hover .header-logo-word,
.header-logo:focus-visible .header-logo-word,
.header-logo:focus-within .header-logo-word {
    max-width: var(--word-w);
}

.header-logo-word-clip {
    display: block;
    height: var(--header-mark);
    width: var(--word-reveal);
    overflow: hidden;
    margin-left: var(--word-gap);
}

.header-logo-wordmark {
    display: block;
    height: var(--header-mark);
    width: calc(var(--header-mark) * 898 / 307);
    max-width: none;
    margin-left: calc(var(--header-mark) * -1);
    object-fit: contain;
    object-position: left center;
}

@media (hover: none) {
    .header-logo-word {
        max-width: var(--word-w);
    }
}

.header-aside {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    position: relative;
    z-index: 2;
    overflow: visible;
    animation: header-aside-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

.header-from {
    flex-shrink: 0;
}

@keyframes header-logo-in {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: none; }
}

@keyframes header-word-in {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: none; }
}

@keyframes header-aside-in {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .header-getting,
    .header-logo,
    .header-aside,
    .portal-getting,
    .portal-brand {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .header-logo-word {
        max-width: var(--word-w);
        transition: none;
    }

    #grain-flicker {
        display: none;
    }
}

.search-pill {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
    min-height: 48px;
    padding: 6px 10px 6px 16px;
    border-radius: 999px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: visible;
    z-index: 2;
    transition: background-color 1.2s ease, border-color 1.2s ease;
}

html[data-theme="day"] .topbar .search-pill {
    width: 168px;
    max-width: 168px;
    min-height: 0;
    height: 36px;
    padding: 0 10px 0 12px;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.06);
}

html[data-theme="day"] .topbar .search-icon {
    width: 15px;
    height: 15px;
}

html[data-theme="day"] .topbar #origin-search {
    min-height: 0;
    height: 100%;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--muted-text);
    flex-shrink: 0;
}

#origin-search {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--page-text);
    min-height: 40px;
    min-width: 0;
}

#origin-search:focus {
    outline: none;
}

#origin-search::placeholder {
    color: var(--muted-text);
}

.origin-results {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    z-index: 10000;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--panel-solid);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.14);
}

.origin-results li button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 12px;
    padding: 10px 12px;
    font: 500 0.92rem/1.3 Inter, sans-serif;
    color: var(--page-text);
    cursor: pointer;
}

.origin-results li button:hover,
.origin-results li button.active {
    background: #E6EBD8;
}

html[data-theme="night"] .origin-results li button:hover,
html[data-theme="night"] .origin-results li button.active {
    background: rgba(16, 154, 72, 0.22);
}

.origin-results .empty {
    padding: 12px;
    color: var(--go-grey);
    font-size: 0.9rem;
}



/* Controls Styles */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: end;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.control-group {
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    font-size: 0.95rem;
}

.icon {
    font-size: 1.2rem;
}

.control-select {
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    font-size: 1rem;
    font-weight: 500;
    color: var(--tech-black);
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-select:hover {
    border-color: var(--go-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--black-shadow-light);
}

.control-select:focus {
    outline: none;
    border-color: var(--go-green);
    box-shadow: 0 0 0 3px var(--green-light-opacity);
}

.control-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.clear-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    height: fit-content;
}

.clear-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238,90,36,0.4);
}

.clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Color Variables */
:root {
    /* ========================================
       MASTER COLOR CONTROL SYSTEM
       ========================================
       All app colors are controlled from here.
       Each color has 3 versions for consistency:
       - main: Dark version for text, borders, icons
       - light-opacity: Semi-transparent for map marker backgrounds
       - light-solid: Opaque light version for blocking backgrounds
    */

    /* Brand palette — Creative Direction 2026 */
    --tech-black: #1A1A1A;
    --simple-sand: #EADECB;
    --sovereign-green: #314D1A;
    --paradise-blue: #3A6663;
    --go-green: #109A48;
    --go-grey: #575757;
    --surface: #F7F3EC;
    --land-fill: #C5CEB8;

    /* DESTINATION COLORS (GO Green + Sovereign Green)
       Used for: Dominican Republic destinations, direct flight buttons,
       destination markers, volume bars in selected destination columns */
    --green-main: var(--go-green);
    --green-light-opacity: rgba(16, 154, 72, 0.14);
    --green-light-solid: #E6EBD8;
    --dark-green: var(--sovereign-green);

    /* ORIGIN COLORS (Paradise Blue)
       Used for: Origin city text, origin markers, origin dropdown styling */
    --blue-main: var(--paradise-blue);
    --blue-light-opacity: rgba(58, 102, 99, 0.16);
    --blue-light-solid: #E4EEED;

    /* TRANSFER COLORS (GO Grey)
       Used for: Transfer city buttons, transfer markers, connecting flights */
    --brown-main: var(--go-grey);
    --brown-light-opacity: rgba(87, 87, 87, 0.14);
    --brown-light-solid: #EDECEA;

    /* NEUTRAL COLORS */
    --grey-main: var(--go-grey);
    --grey-light-opacity: rgba(87, 87, 87, 0.28);
    --grey-light-solid: #F3F1EC;
    --grey-border: #D4C9B8;
    --grey-medium: var(--go-grey);

    /* BACKGROUND & UI COLORS */
    --white-main: var(--surface);
    --white-border: rgba(26, 26, 26, 0.08);
    --black-shadow: rgba(26, 26, 26, 0.12);
    --black-shadow-light: rgba(26, 26, 26, 0.06);
    --ocean-blue: #D5DDD8;
}

/* Night portal */
.night-portal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    gap: 1.35rem;
    padding: 1.5rem;
    position: relative;
    z-index: 3;
    overflow: visible;
}

html[data-theme="day"] .night-portal,
html[data-theme="day"] .locate-tip,
html[data-theme="day"] .starfield,
html[data-theme="day"] .warp-veil {
    display: none;
}

.starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.warp-veil {
    display: none !important;
}

.day-wash {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #F3F1EC;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    background-image: var(--grain);
    background-size: 180px 180px;
    background-repeat: repeat;
}

.day-shell {
    display: none;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    position: relative;
    isolation: isolate;
    background-color: #F3F1EC;
}

html[data-theme="day"] .day-shell {
    display: flex;
    background-color: #F3F1EC;
}

html[data-theme="day"] .day-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: #cbb89a;
    opacity: 0.38;
    mix-blend-mode: multiply;
    filter: url(#ui-grain);
}

.grain-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

html[data-theme="day"] .day-shell > .topbar {
    position: relative;
    z-index: 9999;
}

html[data-theme="day"] .day-shell > .container {
    position: relative;
    z-index: 1;
}

html.is-crossing,
html.is-crossing body,
html[data-theme="day"].is-crossing,
html[data-theme="day"].is-crossing body {
    background-color: #070b12;
    transition: none;
}

html.is-crossing .night-portal,
html[data-theme="day"].is-crossing .night-portal {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    overflow: visible;
}

html.is-crossing .starfield,
html[data-theme="day"].is-crossing .starfield {
    display: block;
    z-index: 9;
    opacity: 1;
}

html.is-crossing .day-wash {
    display: block;
}

html.is-washing,
html.is-washing body,
html[data-theme="day"].is-washing,
html[data-theme="day"].is-washing body {
    background-color: #F3F1EC;
    transition: none;
}

html.is-washing .day-wash {
    opacity: 1;
    transition: none;
}

html.is-crossing .portal-title,
html.is-crossing .portal-search,
html.is-crossing .locate-tip,
html[data-theme="day"].is-crossing .portal-title,
html[data-theme="day"].is-crossing .portal-search,
html[data-theme="day"].is-crossing .locate-tip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.is-crossing .night-portal,
html[data-theme="day"].is-crossing .night-portal {
    padding: 0;
    overflow: visible;
}

html.is-crossing .globe-button::after,
html[data-theme="day"].is-crossing .globe-button::after {
    opacity: 0;
}

html.is-crossing .globe-button,
html.is-crossing .globe-button[aria-busy="true"],
html[data-theme="day"].is-crossing .globe-button,
html[data-theme="day"].is-crossing .globe-button[aria-busy="true"] {
    margin: 0;
    border-radius: 50%;
    max-width: none;
    max-height: none;
    box-shadow: none !important;
    filter: none;
    z-index: 12;
    cursor: none;
    overflow: visible;
}

html.is-crossing .globe-stage,
html[data-theme="day"].is-crossing .globe-stage {
    display: block;
    opacity: 1;
    visibility: visible;
    border-radius: inherit;
}

html.is-crossing .portal-stage,
html[data-theme="day"].is-crossing .portal-stage,
html.is-crossing .night-portal.is-searching .portal-stage,
html[data-theme="day"].is-crossing .night-portal.is-searching .portal-stage {
    width: 100%;
    height: 100%;
    gap: 0;
}

html.is-crossing .day-shell,
html[data-theme="day"].is-crossing .day-shell {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20;
    opacity: 0;
    background-color: #F3F1EC;
    pointer-events: none;
}

html.is-revealing .day-shell,
html[data-theme="day"].is-crossing.is-revealing .day-shell {
    opacity: 1;
    pointer-events: auto;
    transition: none;
}

.portal-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    transition: gap 0.55s ease;
}

.night-portal.is-searching .portal-stage {
    flex-direction: row;
    gap: 4rem;
}

.night-portal.is-searching .globe-button {
    transform: scale(0.8);
}

.night-portal.is-searching .globe-button:hover {
    transform: scale(0.8);
}

.night-portal.is-searching .portal-search {
    align-self: flex-start;
    margin-top: 15%;
}

.portal-title {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.42em;
    margin: 0;
    margin-left: calc(50% - 50vw);
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    text-align: center;
    line-height: 1.1;
    overflow: visible;
    pointer-events: none;
    white-space: nowrap;
}

.portal-getting,
.portal-brand {
    display: inline-block;
    flex: 0 0 auto;
    will-change: transform, opacity;
}

.portal-getting {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(1.05rem, 2.6vw, 1.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F4F1EA;
    opacity: 0;
    transform: translate3d(-50vw, 0, 0);
}

.portal-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.05rem, 2.6vw, 1.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #F4F1EA;
    opacity: 0;
    transform: translate3d(50vw, 0, 0);
}

html.is-introducing .portal-getting,
html.is-introducing .portal-brand {
    will-change: transform, opacity;
}

.globe-button {
    position: relative;
    width: min(58vw, 52vh, 400px);
    height: min(58vw, 52vh, 400px);
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 50%;
    overflow: visible;
    cursor: none;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
}

.globe-button::after {
    content: "";
    position: absolute;
    inset: -26%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        circle,
        rgba(120, 176, 255, 0.14) 36%,
        rgba(80, 140, 255, 0.05) 56%,
        transparent 74%
    );
    filter: blur(22px);
}

.globe-button.is-settled {
    pointer-events: auto;
}

.globe-button canvas,
.globe-stage {
    position: relative;
    z-index: 1;
    cursor: none;
}

.globe-button:hover {
    transform: none;
    box-shadow: none;
}

.globe-button:focus {
    outline: none;
}

.globe-button:focus-visible {
    outline: 2px solid #F4F1EA;
    outline-offset: 6px;
}

.portal-search {
    min-height: 48px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.portal-search.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.night-portal .search-pill {
    width: min(320px, 86vw);
}

.night-portal.is-searching .origin-results {
    top: calc(100% + 8px);
    bottom: auto;
}

.night-portal .origin-results {
    top: auto;
    bottom: calc(100% + 8px);
}

.globe-button[aria-busy="true"] {
    cursor: none;
}

.locate-tip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(220, 220, 220, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    transition: opacity 0.22s ease;
    will-change: transform, opacity;
    transform-origin: 0 50%;
}

.locate-tip-mark {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.locate-tip.is-on {
    opacity: 1;
}

@property --null-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes null-orbit {
    to { --null-angle: 360deg; }
}

.search-pill.is-null::before,
.glass-switch.is-null::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--null-angle),
        transparent 0 36%,
        rgba(16, 154, 72, 0) 42%,
        rgba(16, 154, 72, 0.22) 56%,
        rgba(127, 201, 154, 0.95) 70%,
        rgba(16, 154, 72, 0.55) 84%,
        rgba(16, 154, 72, 0) 94%,
        transparent 100%
    );
    filter: drop-shadow(0 0 7px rgba(16, 154, 72, 0.35));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
    animation: null-orbit 4s linear infinite;
}

.search-pill.is-null::before {
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .search-pill.is-null::before,
    .glass-switch.is-null::before {
        animation: none;
        background: rgba(143, 203, 155, 0.7);
        padding: 1px;
        filter: none;
    }
}

@media (hover: none) {
    .locate-tip {
        display: none;
    }

    .globe-button,
    .globe-button[aria-busy="true"] {
        cursor: pointer;
    }
}

@media (max-width: 720px) {
    .night-portal.is-searching .portal-stage {
        flex-direction: column;
        gap: 1.5rem;
    }

    .night-portal.is-searching .globe-button,
    .night-portal.is-searching .globe-button:hover {
        transform: scale(0.88);
    }

    .night-portal.is-searching .portal-search {
        align-self: center;
        margin-top: 0;
    }
}

/* Maps Container */
.sunrise-veil {
    display: none;
}

.stage {
    position: relative;
    min-height: min(70vh, 640px);
    margin-bottom: 15px;
}

.globe-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border-radius: inherit;
}

.globe-stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

html[data-theme="day"] .globe-stage {
    display: none;
    pointer-events: none;
}

html[data-theme="day"] .stage {
    min-height: 0;
    flex: 0 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--twin-gap);
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
}

.dashboard-grid .map-section,
.dashboard-grid .journey-card {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.dashboard-grid .map-section,
.dashboard-grid .map-portal,
.dashboard-grid .map-container {
    z-index: 0;
}

.dashboard-grid .map-section {
    display: flex;
    flex-direction: column;
}

.dashboard-grid .map-portal,
.dashboard-grid .map-container {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.boot-overlay {
    z-index: 100000;
}

.scene-veil {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 241, 236, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

html.is-rerouting .scene-veil {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html[data-theme="night"] .scene-veil {
    background: rgba(7, 11, 18, 0.28);
}

.wire-globe {
    width: 52px;
    height: 52px;
    perspective: 160px;
    color: #109A48;
}

.wire-globe-ball {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: globe-spin 8s linear infinite;
}

.wire-globe-rim,
.wire-globe-m,
.wire-globe-p {
    position: absolute;
    inset: 0;
    border: 1.15px solid currentColor;
    border-radius: 50%;
    background: none;
}

.wire-globe-m {
    transform: rotateY(var(--a));
}

.wire-globe-p {
    transform: rotateX(70deg);
}

@keyframes globe-spin {
    from { transform: rotateX(-14deg) rotateY(0deg); }
    to { transform: rotateX(-14deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .wire-globe-ball {
        animation: none;
        transform: rotateX(-14deg) rotateY(28deg);
    }
}

.maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--twin-gap);
    margin-bottom: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transform: none;
    transition: opacity 1s ease-in-out;
}

html[data-theme="day"] .maps-container {
    display: contents;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    position: static;
    inset: auto;
}

.map-section {
    position: relative;
    background: transparent;
    border-radius: 18px;
    padding: 0;
    border: none;
    overflow: hidden;
}

.map-portal {
    position: relative;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border-radius: 18px;
}

.map-container, .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08);
    border: 0;
    padding: 0;
    flex: 1;
    height: 100%;
    isolation: isolate;
}

.map-container {
    background: #F3F1EC;
}

.map-container::after,
.map-container::before {
    display: none;
}

.map-link-btn {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 800;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    border: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4B5563;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.map-link-btn[hidden] {
    display: none;
}

.map-link-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1A1A1A;
    transform: translateY(-3px) scale(1.02);
}

.map-link-btn:focus-visible {
    outline: 2px solid var(--go-green);
    outline-offset: 2px;
}

.map {
    width: 100%;
    height: 100%; /* Fill container completely */
    transition: opacity 0.5s ease-in-out;
}

.map.fade-out {
    opacity: 0.3;
    transition: opacity 0s; /* Instant fade out */
}

/* Destination Image Styles */

.destination-image {
    width: 100%;
    height: 100%; /* Fill container completely */
    object-fit: cover;
    object-position: center top; /* Crop from bottom by positioning to top */
    transition: opacity 0.5s ease-in-out;
    transform: scale(1.05); /* Scale up slightly to crop bottom 5% */
}

.destination-image.fade-out {
    opacity: 0;
    transition: opacity 0s; /* Instant fade out */
}

.map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 11, 18, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.loading {
    text-align: center;
    color: inherit;
}

.loading-spinner {
    display: none;
}

/* Journey board — mirrors the twin maps */
.journey-board {
    display: none;
}

.journey-board.is-on {
    display: contents;
}

.journey-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 22px 18px;
    border: 0;
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08);
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 0;
    display: none;
    flex-direction: column;
}

.glass-switch {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 999px;
    background: rgba(247, 243, 236, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 22px rgba(26, 26, 26, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass-switch-thumb {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    height: auto;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 2px 12px rgba(26, 26, 26, 0.1);
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s ease, height 0.28s ease, opacity 0.2s ease;
}

.glass-switch-thumb.is-off {
    opacity: 0;
}

/* Flight Options */
.flight-options {
    margin: 0;
    min-height: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html[data-theme="day"] .flight-options {
    display: flex;
    flex-direction: column;
}

.flight-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    flex-shrink: 0;
}

.flight-card-head .options-title {
    margin: 0;
}

.quick-filters {
    display: none;
}

.quick-filter {
    position: relative;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    padding: 8px 14px;
    min-height: 32px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--go-grey);
    cursor: pointer;
    transition: color 0.2s ease;
}

.quick-filter[hidden] {
    display: none !important;
}

.quick-filter:hover,
.quick-filter.is-on {
    border: 0;
    color: var(--tech-black);
    background: transparent;
}

.quick-filter:focus-visible {
    outline: 2px solid var(--go-green);
    outline-offset: 2px;
}

.dest-switch {
    width: 100%;
    flex-wrap: nowrap;
    margin: 0 0 12px;
    flex-shrink: 0;
}

.dest-pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--go-grey);
}

.dest-pill:hover {
    color: var(--tech-black);
}

.dest-pill.is-on,
.dest-pill.is-on:hover {
    color: var(--go-green);
    font-weight: 600;
}

.dest-pill .via-prefix {
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    margin-right: 0.28em;
    opacity: 0.72;
}

.options-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    margin: 0 0 14px;
    text-align: left;
}

.journey-kicker {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.38em;
    overflow: visible;
    font-family: 'Poppins', sans-serif;
    color: var(--tech-black);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.journey-mark {
    height: 0.92em;
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.journey-detail {
    font-family: 'Poppins', sans-serif;
    color: var(--go-grey);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-align: left;
    width: 100%;
}

.journey-time {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: var(--tech-black);
}

.itinerary-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 14px;
    flex-shrink: 0;
    width: 100%;
}

.itinerary-total {
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
    font-family: 'Poppins', sans-serif;
    color: var(--tech-black);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.shuttle-star {
    margin-left: 0.15em;
    font-weight: 600;
}

.itinerary-note {
    margin: 0;
    flex: 0 1 auto;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--go-grey);
    opacity: 0.62;
    text-align: right;
}

.flight-details.is-idle .itinerary-foot {
    display: none;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-right: 0;
}

.destination-column {
    display: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
}

.destination-column.is-empty {
    display: none !important;
}

.destination-column.selected {
    display: flex;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    cursor: default;
    padding: 0;
}

.destination-column.unselected {
    display: none;
}

.flight-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    min-height: 0;
}

.destination-column.selected .flight-buttons {
    display: flex;
    flex-direction: column;
    align-content: start;
    align-items: stretch;
    gap: 4px;
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    opacity: 1;
    padding: 28px 14px 8px 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.destination-column.selected .flight-option-btn {
    min-width: 0;
    min-height: min-content;
    height: auto;
}

.flight-buttons::-webkit-scrollbar {
    width: 6px;
    height: 0;
}

.flight-buttons::-webkit-scrollbar-track {
    background: transparent;
}

.flight-buttons::-webkit-scrollbar-thumb {
    background: var(--grey-border);
    border-radius: 4px;
}

.flight-option-btn {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    border-radius: 12px;
    padding: 8px 16px 8px 12px;
    min-height: min-content;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--go-grey);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    box-shadow: none;
}

.flight-option-btn:hover {
    background: rgba(247, 243, 236, 0.72);
    color: var(--tech-black);
    transform: none;
    box-shadow: none;
}

.flight-option-btn.selected {
    background: #F7F3EC;
    color: var(--tech-black);
    border: 0;
    box-shadow: inset 0 0 0 1.5px var(--go-green);
    transform: none;
}

.flight-option-btn.transfer {
    border: 0;
    color: var(--go-grey);
}

.flight-option-btn.transfer:hover {
    background: rgba(247, 243, 236, 0.72);
    color: var(--tech-black);
    transform: none;
}

.flight-option-btn.transfer.selected {
    background: #F7F3EC;
    color: var(--tech-black);
    border: 0;
    box-shadow: inset 0 0 0 1.5px var(--go-green);
    transform: none;
}

.button-content {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.route-type {
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.flight-option-btn.selected .route-type {
    font-weight: 600;
    color: var(--go-green);
}

.route-metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 2px;
}

.duration {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.85;
    line-height: 1;
}

.volume-ring-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--go-grey);
    outline: none;
    overflow: visible;
    z-index: 3;
}

.volume-ring {
    display: block;
    width: 16px;
    height: 16px;
    overflow: visible;
}

.volume-ring-track {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    opacity: 0.18;
}

.volume-ring-value {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    opacity: 0.7;
}

.volume-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    z-index: 8;
    transform: translateX(-50%) translateY(4px);
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.86);
    color: #F7F3EC;
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(26, 26, 26, 0.16);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.volume-ring-wrap:hover .volume-tip,
.volume-ring-wrap:focus-visible .volume-tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.flight-option-btn.selected .volume-ring-wrap {
    color: var(--go-green);
}

/* Flight Details — boarding-pass card */
.flight-details {
    position: relative;
    margin: 0;
    overflow: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.flight-details:not(.is-idle) {
    padding-bottom: 18px;
}

.details-title {
    margin: 0 0 14px;
    flex-shrink: 0;
}

.flight-details.is-idle .details-title {
    margin-bottom: 0.2rem;
}

.flight-details.is-idle {
    justify-content: center;
    align-items: center;
}

.flight-details.is-idle .details-content {
    display: none;
}

.flight-details:not(.is-idle) .itinerary-empty {
    display: none;
}

.itinerary-empty {
    margin: 0;
    max-width: 16rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.45;
    color: var(--go-grey);
    opacity: 0.42;
    animation: empty-pulse 2.8s ease-in-out infinite;
}

.details-content {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
}

.travel-segments {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    min-height: 0;
}

.timeline-spine {
    position: absolute;
    left: 5.5px;
    width: 1px;
    background: #E5E7EB;
    z-index: 0;
    pointer-events: none;
}

.segment-column {
    display: grid;
    grid-template-columns: 12px 1fr;
    column-gap: 14px;
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 0 16px;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.segment-column:last-child {
    padding-bottom: 0;
}

.segment-column[hidden] {
    display: none !important;
}

.segment-rail {
    position: relative;
    width: 12px;
    z-index: 1;
}

.segment-dot {
    position: absolute;
    top: 5px;
    left: 50%;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #109A48;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(16, 154, 72, 0.35);
    transform: translateX(-50%);
}

.segment-body {
    min-width: 0;
}

.segment-header {
    font-family: 'Poppins', sans-serif;
    color: var(--tech-black);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: left;
    border-bottom: 0;
    padding-bottom: 0;
}

.route-line {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 0;
    margin-bottom: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--tech-black);
    width: 100%;
}

.route-city {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 46%;
    width: max-content;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 0;
    background: transparent;
    overflow: visible;
}

.route-city--origin {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-items: flex-start;
    text-align: left;
}

.route-city--dest {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-items: flex-end;
    text-align: right;
}

.city-hotspot {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    background: #ffffff;
    white-space: nowrap;
    cursor: default;
    outline: none;
    transition: color 0.2s ease;
}

.city-hotspot:hover,
.city-hotspot:focus-visible {
    color: var(--go-green);
}

.route-origin {
    text-align: left;
    padding: 0;
    margin-right: 8px;
}

.route-dest {
    text-align: right;
    padding: 0;
    margin-left: 8px;
}

.route-path {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: stretch;
    align-self: start;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    min-width: 0;
    height: 0.78rem;
    pointer-events: none;
}

.route-path::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-bottom: 1.5px dashed #C9CDD3;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.route-time {
    position: relative;
    z-index: 2;
    left: auto;
    top: auto;
    transform: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--go-grey);
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    background: #ffffff;
    padding: 0 7px;
    margin: 0;
    display: block;
    min-width: 4.2em;
    width: fit-content;
}

.inline-logo {
    height: 20px;
    vertical-align: middle;
}

/* Flight Options Title Logo - 20% larger than travel details header */
.options-title .inline-logo {
    height: 28px;
}

.options-title .via-text {
    color: var(--go-grey);
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-right: 0.2em;
}

/* Travel Details Header Logo - 100% increase */
.details-title .inline-logo {
    height: 28px;
}

/* Shuttle Segment Logo - 20% increase */
.segment-header .inline-logo {
    height: 24px;
}

.airlines-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 6px 0 0;
    padding: 0;
    width: max-content;
    max-width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, max-height 0.25s ease;
}

.route-city.is-open .airlines-list {
    max-height: 240px;
    opacity: 1;
}

.route-city.is-expandable .city-hotspot,
.route-city.has-airlines .city-hotspot {
    cursor: pointer;
}

.route-city.has-airlines .city-hotspot::after {
    content: "Click for airlines";
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: max-content;
    margin-inline: auto;
    z-index: 8;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.72);
    color: #F4F1EA;
    font-family: 'Poppins', sans-serif;
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.route-city.has-airlines .city-hotspot:hover::after,
.route-city.has-airlines .city-hotspot:focus-visible::after {
    opacity: 1;
    transform: none;
}

.route-city.has-airlines.is-open .city-hotspot::after {
    opacity: 0;
}

.route-line--drive .city-hotspot::after,
.route-line--shuttle .city-hotspot::after,
#shuttle-segment .city-hotspot::after {
    content: none !important;
    display: none !important;
}

.route-city--dest .airlines-list {
    align-items: flex-end;
}

.route-city--dest .airline-item {
    justify-content: flex-end;
}

.airline-item {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 0.65rem;
    line-height: 1.15;
    color: var(--tech-black);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.airline-name {
    text-align: left;
    font-weight: 600;
    font-size: 0.65rem;
    line-height: 1.15;
    min-width: 0;
}

.airline-season {
    display: none;
}

.airline-frequency {
    text-align: right;
    font-weight: 500;
    font-size: 0.65rem;
    line-height: 1.2;
    color: var(--go-grey);
    flex-shrink: 0;
}

.calendar-icon {
    font-size: 0.8rem;
}

.month-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Small Seasonal Arrow Styles */
.seasonal-arrow {
    display: inline-flex;
    align-items: center;
    margin: 0 4px;
}

.small-arrow-icon {
    width: 12px; /* 1/5 of original 60px */
    height: 12px;
    vertical-align: middle;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    color: var(--go-grey);
    font-size: 0.9rem;
}

/* Animations */
@keyframes empty-pulse {
    0%, 100% { opacity: 0.28; }
    50% { opacity: 0.55; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
    .topbar {
        padding: 1.5rem 2rem;
    }

    html[data-theme="day"] .topbar {
        padding: 1rem 2rem;
    }

    .container {
        padding: 8px 2rem 40px;
    }

    html[data-theme="day"] .container {
        padding: 4px 2rem 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 12px 1.25rem 32px;
    }

    .topbar {
        padding: 1.25rem 1.25rem;
    }

    html {
        --header-mark: 24px;
        --header-h: 4.2rem;
    }

    .search-pill {
        width: min(200px, 38vw);
        min-height: 40px;
        padding: 4px 8px 4px 12px;
    }

    html[data-theme="day"] .topbar .search-pill {
        width: min(148px, 36vw);
        max-width: 148px;
        min-height: 0;
        height: 34px;
        padding: 0 8px 0 10px;
    }

    .logo {
        margin: 0 5px;
    }

    .subtitle {
        font-size: 1rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        min-width: auto;
    }

    .maps-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    html[data-theme="day"] .maps-container {
        display: grid;
    }

    .journey-board.is-on {
        display: flex;
        flex-direction: column;
        gap: var(--twin-gap);
    }

    .flight-options,
    .flight-details {
        width: 100%;
    }

    .map-container {
        min-height: 0;
    }

    html[data-theme="day"],
    html[data-theme="day"] body {
        height: auto;
        overflow: auto;
    }

    html[data-theme="day"] .container {
        overflow: visible;
        padding: 8px 1.25rem 24px;
    }

    .map-portal {
        height: 32vh;
        max-height: none;
    }

    .destination-column.selected .flight-buttons {
        display: flex;
        flex-direction: column;
    }

    .travel-segments {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dest-switch {
        flex-wrap: wrap;
    }

    .dest-pill {
        flex: 1 1 calc(50% - 4px);
    }

    .options-grid {
        flex-direction: column;
    }

    .flight-details {
        padding: 16px;
    }

    .travel-segments {
        grid-template-columns: 1fr;
    }
}

/* Dominican Republic Map Markers */
.dr-destination-marker {
    background: transparent !important;
    border: none !important;
}

.dr-marker-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent; /* Removed background from entire marker */
    color: var(--go-green);
    padding: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dr-marker-content:hover .dr-marker-label {
    background: rgba(16, 154, 72, 0.1);
    transform: scale(1.05);
}

.dr-marker-content.selected .dr-marker-label {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    transform: scale(1.1);
}

.dr-marker-icon {
    margin-right: 8px;
    font-size: 1.1rem;
    background: transparent; /* No background for icon */
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

.dr-marker-label {
    background: rgba(255,255,255,0.9); /* Background only on text label */
    color: var(--go-green);
    border-radius: 4px;
    padding: 4px 8px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: 0;
    transition: all 0.3s ease;
}

/* Green Office Marker Styles */
.green-office-marker {
    background: transparent !important;
    border: none !important;
}

.office-marker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    width: 30px;
    height: 30px;
}

.office-logo {
    height: 30px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* Duration Arrow Styles */
.duration-arrow {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 8px;
}

.arrow-icon {
    width: 60px;
    height: 20px;
    vertical-align: middle;
    order: 2; /* Arrow appears below text */
}

.duration-text {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--tech-black);
    white-space: nowrap;
    order: 1;
    margin-bottom: -2px;
}

/* World Map Markers */
.custom-div-icon {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none !important;
}

.custom-marker {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border: none;
    padding: 0;
}

.custom-marker .marker-label,
.custom-marker.origin .marker-label,
.custom-marker.destination .marker-label,
.custom-marker.transfer .marker-label {
    background: transparent;
    color: #1A1A1A;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        -1px 0 0 #fff,
        1px 0 0 #fff,
        0 -1px 0 #fff,
        0 1px 0 #fff;
}

.marker-icon {
    display: none;
}

.marker-label {
    white-space: nowrap;
}

.city-dot {
    display: block;
    width: 16px;
    height: 16px;
    overflow: visible;
    filter: none;
    opacity: 1;
    box-shadow: none;
}

.city-dot circle {
    fill: #109A48;
    stroke: #ffffff;
    stroke-width: 3;
}

.go-map-mark {
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.14);
    display: grid;
    place-items: center;
    padding: 1px;
    overflow: visible;
}

.go-map-mark img {
    width: 20px;
    height: 20px;
    display: block;
    transform: none;
    filter: none;
}

.leaflet-container {
    background: #F3F1EC !important;
    border: none !important;
    outline: none !important;
    border-radius: 18px;
    overflow: hidden;
    font: inherit;
    cursor: grab;
}

.leaflet-container:active {
    cursor: grabbing;
}

.leaflet-overlay-pane {
    z-index: 400 !important;
}

.leaflet-overlay-pane svg,
.leaflet-overlay-pane canvas {
    z-index: 400 !important;
    overflow: visible !important;
}

.leaflet-marker-pane {
    z-index: 650 !important;
}

.glow-route-core,
.map-route-core {
    filter: none;
}

.glow-route-bloom,
.map-route-bloom {
    filter: none;
}

.city-dot-marker {
    fill: #109A48;
    stroke: #ffffff;
    stroke-width: 3;
    filter: none !important;
    opacity: 1 !important;
}

.map {
    border: none !important;
    outline: none !important;
    border-radius: 18px;
}

.leaflet-map-pane,
.leaflet-tile-pane {
    border-radius: 18px;
}

.leaflet-tile-pane {
    background: transparent;
}

.minimal-base {
    filter: sepia(0.5) hue-rotate(178deg) saturate(0.72) brightness(1.05) contrast(0.98);
}

.leaflet-tile-container img {
    image-rendering: auto;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.leaflet-control-zoom a {
    background: rgba(255,255,255,0.95) !important;
    color: var(--go-green) !important;
    border: none !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom a:hover {
    background: var(--go-green) !important;
    color: white !important;
    transform: scale(1.05);
}

/* Error Toast Styles */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--tech-black);
    color: white;
    padding: 16px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px var(--black-shadow);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

.error-icon {
    font-size: 1.2rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flight-option-btn:focus-visible {
    outline: 2px solid var(--go-green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .itinerary-empty {
        animation: none;
        opacity: 0.45;
    }
}

