
/* =========================================
   FINMORE TRAVEL - PREMIUM HEADER
   CLEAN FINAL VERSION
========================================= */

.fm-header,
.fm-header *,
.fm-header *::before,
.fm-header *::after {
    box-sizing: border-box;
}

.fm-header {
    width: 100%;
    background: #ffffff;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #edf1f7;
    font-family: "DM Sans", Arial, sans-serif;
}

.fm-header-container {
    width: 100%;
    max-width: 1800px;
    min-height: 96px;
    margin: 0 auto;
    padding: 10px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* =========================================
   LOGO
========================================= */

.fm-header-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 185px;
    width: 185px;
    max-width: 185px;
    text-decoration: none;
}

.fm-header-brand img {
    display: block;
    width: 185px !important;
    max-width: 185px !important;
    height: 75px !important;
    max-height: 75px !important;
    object-fit: contain;
}

/* =========================================
   DESKTOP NAVIGATION
========================================= */

.fm-header-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.2vw, 23px);
    min-width: 0;
}

.fm-header-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #071b4a;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.fm-header-nav a:hover,
.fm-header-nav a.active {
    color: #0754d7;
}

.fm-header-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 3px;
    background: #ffad23;
}

/* =========================================
   RIGHT SIDE
========================================= */

.fm-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================================
   WALLET
========================================= */

.fm-header-wallet {
    min-height: 55px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #c7d7f2;
    border-radius: 16px;
    color: #071b4a;
    cursor: default;
}

.fm-wallet-icon {
    color: #0756d8;
    font-size: 23px;
    font-weight: 800;
}

.fm-wallet-text {
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.fm-wallet-text small {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* =========================================
   LOGIN / SIGNUP
========================================= */

.fm-login-btn,
.fm-signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 11px 19px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s ease;
}

.fm-login-btn {
    color: #0754d7;
    background: #ffffff;
    border: 1.5px solid #c7d7f2;
}

.fm-login-btn:hover {
    background: #eff6ff;
}

.fm-signup-btn {
    color: #ffffff;
    background: linear-gradient(110deg, #0754d7, #081b78);
    border: 1.5px solid transparent;
}

.fm-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(7,84,215,.2);
}

/* =========================================
   MY ACCOUNT
========================================= */

.fm-account-menu {
    position: relative;
}

.fm-header-account {
    min-height: 55px;
    padding: 11px 16px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(110deg, #0754d7, #081b78);
    color: #ffffff;

    display: flex;
    align-items: center;
    gap: 10px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.fm-account-avatar {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #ffffff;
    color: #0754d7;
}

.fm-account-label {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fm-account-arrow {
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease;
}

.fm-header-account[aria-expanded="true"] .fm-account-arrow {
    transform: rotate(180deg);
}

/* =========================================
   ACCOUNT DROPDOWN
========================================= */

.fm-account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 245px;
    padding: 9px;
    background: #ffffff;
    border: 1px solid #e1e9f5;
    border-radius: 17px;
    box-shadow: 0 18px 45px rgba(7,27,74,.16);
    z-index: 2000;
}

.fm-account-dropdown[hidden] {
    display: none !important;
}

.fm-dropdown-user {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
}

.fm-dropdown-user strong {
    color: #071b4a;
    font-size: 15px;
}

.fm-dropdown-user small {
    color: #687b96;
    font-size: 12px;
}

.fm-account-dropdown a,
.fm-logout-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #071b4a;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.fm-account-dropdown a:hover,
.fm-logout-button:hover {
    background: #f0f6ff;
}

.fm-dropdown-divider {
    height: 1px;
    background: #e6edf7;
    margin: 6px 0;
}

.fm-logout-button {
    color: #d62839;
}

.fm-account-dropdown form {
    margin: 0;
}

/* =========================================
   MOBILE MENU BUTTON
========================================= */

.fm-mobile-menu-btn {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #d9e4f3;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
}

.fm-mobile-menu-btn span {
    display: block;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background: #071b4a;
}

/* =========================================
   SMALL DESKTOP
========================================= */

@media (max-width: 1500px) {

    .fm-header-container {
        padding: 10px 18px;
        gap: 14px;
    }

    .fm-header-brand {
        flex-basis: 160px;
        width: 160px;
    }

    .fm-header-brand img {
        width: 160px !important;
        max-width: 160px !important;
    }

    .fm-header-nav {
        gap: 12px;
    }

    .fm-header-nav a {
        font-size: 14px;
    }

    .fm-header-wallet {
        display: none;
    }
}

/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 1250px) {

    .fm-header-container {
        min-height: 82px;
    }

    .fm-header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        box-shadow: 0 15px 30px rgba(7,27,74,.12);
    }

    .fm-header-nav.is-open {
        display: flex;
    }

    .fm-header-nav a {
        padding: 10px 15px;
        font-size: 17px;
    }

    .fm-header-nav a.active::after {
        display: none;
    }

    .fm-header-actions {
        margin-left: auto;
    }

    .fm-mobile-menu-btn {
        display: block;
    }
}

/* =========================================
   PHONE
========================================= */

@media (max-width: 650px) {

    .fm-header-container {
        min-height: 72px;
        padding: 8px 12px;
        gap: 8px;
    }

    .fm-header-brand {
        flex: 0 0 120px;
        width: 120px;
        max-width: 120px;
    }

    .fm-header-brand img {
        width: 120px !important;
        max-width: 120px !important;
        height: 55px !important;
        max-height: 55px !important;
    }

    .fm-login-btn,
    .fm-signup-btn {
        min-height: 42px;
        padding: 9px 11px;
        font-size: 13px;
    }

    .fm-header-account {
        min-height: 43px;
        padding: 8px 11px;
        font-size: 13px;
    }

    .fm-account-dropdown {
        width: 220px;
    }

    .fm-header-nav {
        max-height: calc(100vh - 72px);
    }
}

@media (max-width: 390px) {

    .fm-header-brand {
        flex-basis: 100px;
        width: 100px;
    }

    .fm-header-brand img {
        width: 100px !important;
        max-width: 100px !important;
    }

    .fm-account-label {
        display: none;
    }

    .fm-login-btn,
    .fm-signup-btn {
        padding: 8px;
    }
}
