/* ==========================================================================
   1. GLOBAL FRAME BACKGROUND (Change from Navy Blue to Light Slate #f8fafc)
   ========================================================================== */
body {
    background-color: #f8fafc !important; /* Changes the empty desktop screen padding space */
}

/* ==========================================================================
   2. CUSTOM MOBILE BOTTOM NAVIGATION BAR & SEPARATORS
   ========================================================================== */
.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #2D2D2D !important;
    border-top: 1px solid #1E1E1E;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 60px;
    padding: 0;
    margin: 0;
    z-index: 1200; /* Forces bottom bar to stay stacked on top of MudDrawer layers */
}

    .fixed-bottom-nav .nav-btn {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        cursor: pointer;
        margin: 0;
        padding: 8px 4px;
        position: relative;
    }

        /* Add thin separation lines between the buttons using #f8fafc */
        .fixed-bottom-nav .nav-btn:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 15%;
            height: 70%;
            width: 1px;
            background-color: #f8fafc !important;
            opacity: 0.3; /* Slight transparency to make the divider look elegant over the dark background */
        }

        .fixed-bottom-nav .nav-btn:nth-child(1) {
            background-color: #1d2e61 !important;
        }

        .fixed-bottom-nav .nav-btn:nth-child(2) {
            background-color: #2b2f36 !important;
        }

        .fixed-bottom-nav .nav-btn:nth-child(3) {
            background-color: #2b2f36 !important;
        }

        /* ==========================================================================
   3. MAKE BOTTOM TAB BUTTONS ICONS BIGGER
   ========================================================================== */
        .fixed-bottom-nav .nav-btn .mud-icon-root,
        .fixed-bottom-nav .nav-btn svg,
        .fixed-bottom-nav .nav-btn i {
            color: #FF9F43 !important;
            fill: #FF9F43 !important;
            font-size: 1.65rem !important; /* Increases MudIcon typography sizes */
            width: 1.65rem !important; /* Forces raw SVG scaling dimensions out */
            height: 1.65rem !important;
        }

        .fixed-bottom-nav .nav-btn span {
            font-size: 11px;
            font-weight: 500;
        }

        .fixed-bottom-nav .nav-btn:not(.active) span {
            color: #E0E0E0 !important;
        }

        .fixed-bottom-nav .nav-btn.active span {
            color: #FFFFFF !important;
        }

/* ==========================================================================
   4. SIDE DRAWER CONTAINER DEPTH OVERRIDES (Stop covering bottom bar)
   ========================================================================== */
/* Trims 60px out of the sliding sidebar tray so it does not block footer items */
.app-responsive-container .mud-drawer-temporary,
.mud-drawer-temporary {
    height: calc(100vh - 60px) !important;
    position: fixed !important;
    top: 0 !important;
}

/* Adjusts the backdrop blur panel height to stop at the navigation bar border */
.app-responsive-container .mud-drawer-overlay,
.mud-drawer-overlay {
    height: calc(100vh - 60px) !important;
    position: fixed !important;
    top: 0 !important;
}

/* Responsive Desktop Core Wrapper Alignment updates */
@media (min-width: 960px) {
    .app-responsive-container {
        max-width: 480px;
        margin: 0 auto;
        position: relative;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        background-color: #FFFFFF !important;
    }

        .app-responsive-container .mud-layout {
            position: relative;
            height: 100%;
            width: 100%;
        }

        .app-responsive-container .mud-appbar {
            position: absolute !important;
            width: 100% !important;
            left: 0 !important;
            right: 0 !important;
        }

        /* Absolute contextual mapping overrides for desktop viewports */
        .app-responsive-container .mud-drawer-temporary,
        .app-responsive-container .mud-drawer-overlay {
            position: absolute !important;
            height: calc(100% - 60px) !important;
        }

        .app-responsive-container .fixed-bottom-nav {
            position: absolute !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
        }
}

.city-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    width: 100%;
}

.city-icon {
    color: #757575;
}

.city-content {
    display: flex;
    flex-direction: column;
}

.city-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.city-country {
    font-size: 12px;
    color: #757575;
}

.custom-popover-menu {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

.custom-popover-menu .mud-list-item {
    min-height: 54px;
    padding: 0 !important;
    border-left: 3px solid transparent;
}

    .custom-popover-menu .mud-list-item:hover {
        background-color: #f5f5f5;
        border-left-color: #1d2e61;
    }

    .custom-popover-menu .mud-selected-item {
        background-color: #ececec !important;
        border-left-color: #1d2e61;
    }

/* Dropdown row content - plain list item look.
   !important + a compound selector to beat MudBlazor's own scoped rules,
   which otherwise win ties on load order or specificity. */
.custom-popover-menu .mud-list-item .custom-dropdown-item,
.custom-dropdown-item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 15px 16px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    color: #212121 !important;
    font-weight: 400 !important;
}

/* Selected-value chip shown inside the From/To fields (self-built, not MudChip) */
.selected-location-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1d2e61;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    border-radius: 9999px;
    padding: 4px 6px 4px 14px;
    max-width: 100%;
}

.selected-location-chip .chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-location-chip .chip-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    cursor: pointer;
    padding: 0;
}

    .selected-location-chip .chip-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }

    .selected-location-chip .chip-close-btn .mud-icon-root {
        color: #ffffff !important;
        fill: #ffffff !important;
        width: 14px !important;
        height: 14px !important;
        font-size: 14px !important;
    }