header,
.site-header,
#site-header,
.elementor-header,
[data-elementor-type="header"],
.elementor-location-header {
    z-index: 99999 !important;
}

.site-header {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
}

.site-header--no-hero {
    position: relative !important;
    top: 0 !important;
    background-color: #F5F5F5 !important;
    padding-top: 55px !important; /* Increased to match absolute top offset */
    padding-bottom: 32px !important;
}

body.mototravel-mi-cuenta .site-header--no-hero {
    background-color: #F9FAFC !important;
}

/* Compensate page content padding when header is in document flow (no hero active) */
.site-header--no-hero ~ #main-content .page-content {
    padding: 0 !important;
}

.site-header__inner {
    width: var(--hero-menu-width);
    max-width: var(--hero-menu-max-width);
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 8vw, 155px);
    border-radius: 82px;
    background: rgb(165 165 165); /* Solid gray background when hero is not active */
    backdrop-filter: blur(10px);
}

.site-header--has-hero .site-header__inner {
    background: rgb(53 53 53 / 20%);
}

.site-header__logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header__logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.site-header__logo img,
.site-header__logo .custom-logo {
    height: 48px;
    max-height: 48px;
    width: auto;
    max-width: none;
    display: block;
}

.site-header__logo-text {
    color: var(--color-white);
    font-weight: 700;
    font-size: 20px;
}

.site-header__nav {
    flex: 0 0 auto;
    min-width: 0;
}

/* Hidden on desktop — only rendered inside the open mobile drawer */
.site-header__nav-extras {
    display: none;
}

.site-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 32px);
}

.site-menu a,
.site-header__lang,
.site-header__user {
    position: relative;
    color: var(--color-white);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 25px;
    letter-spacing: 0;
    vertical-align: middle;
}

.site-menu .current-menu-item > a,
.site-menu a:hover {
    color: var(--color-primary);
}

.site-menu .current-menu-item > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: translateX(-50%);
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2vw, 32px);
    color: var(--color-white);
    flex: 0 0 auto;
    min-width: 0;
}

.site-header__lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.site-header__lang-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-header__lang-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.site-header__lang-wrapper.is-open .site-header__lang-arrow {
    transform: rotate(180deg);
}

.site-header__lang-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 160px;
    background: #001E3B;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.site-header__lang-wrapper.is-open .site-header__lang-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__lang-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #001E3B;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
}

.site-header__lang-popover ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header__lang-popover li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header__lang-popover li::before,
.site-header__lang-popover li::after {
    content: none !important;
}

.site-header__lang-popover a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.site-header__lang-popover a:hover,
.site-header__lang-popover a:focus-visible {
    background-color: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    outline: none;
}

.site-header__user-icon {
    width: 28px;
    height: 28px;
    display: block;
    color: var(--color-white);
    font-size: 28px;
    line-height: 1;
}

.site-header__toggle {
    display: none !important;
    visibility: hidden;
    flex: 0 0 0;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.site-header__toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px auto;
    background: var(--color-white);
}

/* === User account login dropdown popover === */
.site-header__user-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-header__user--unlogged {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.site-header__user--unlogged .site-header__user-icon {
    color: #E41B25 !important; /* Red color requested for unlogged users */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__user--unlogged:hover .site-header__user-icon {
    transform: scale(1.08);
}

.site-header__user--logged .site-header__user-icon {
    color: #ffffff !important; /* White color for logged in users */
    transition: transform 0.2s ease;
}

.site-header__user--logged:hover .site-header__user-icon {
    transform: scale(1.08);
}

.site-header__login-popover {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 200px;
    background-color: #001E3B; /* Matches header! */
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

/* Show on wrapper hover or when active class is added by JS */
.site-header__user-wrapper:hover .site-header__login-popover,
.site-header__login-popover.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Little tail arrow at top of popover */
.site-header__login-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background-color: #001E3B;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
}

.site-header__popover-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    text-align: left;
    transition: background-color 0.2s ease;
}

.site-header__popover-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.site-header__popover-btn iconify-icon {
    font-size: 20px;
    color: #ffffff;
    line-height: 1;
}

.site-header__popover-btn span {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: -0.022em; /* -2.2% */
    color: #ffffff;
}

/* === Global Premium Login Overlay Modal === */
/* === Global Premium Login Overlay Modal === */
.mototravel-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 8, 20, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.mototravel-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mototravel-modal-container {
    width: 90%;
    max-width: 580px;
    background-color: #ffffff; /* Mockup pure white background! */
    border: 1px solid rgba(228, 230, 236, 0.5);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
    position: relative;
    box-sizing: border-box;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mototravel-modal-overlay.is-active .mototravel-modal-container {
    transform: scale(1) translateY(0);
}

.mototravel-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 10;
}

.mototravel-modal-close iconify-icon {
    font-size: 26px;
    color: #001450; /* Close X in dark blue! */
}

.mototravel-modal-close:hover {
    transform: scale(1.1);
}

/* Modal View Management */
.mototravel-modal-view {
    display: none;
    flex-direction: column;
    animation: mototravelFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mototravel-modal-view.is-active {
    display: flex;
}

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

.mototravel-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.mototravel-modal-header h2 {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 45px; /* Specified! */
    font-weight: 800; /* ExtraBold */
    color: #001450; /* Specified! */
    margin: 0 0 12px;
    line-height: 114%; /* line-height: 113.99999999999999% */
    letter-spacing: 0;
    text-transform: none;
}

.mototravel-modal-header p {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px; /* Specified! */
    font-weight: 400; /* Regular */
    line-height: 100%; /* Specified! */
    color: #969AB8; /* Specified! */
    margin: 0 auto;
    max-width: 440px;
    letter-spacing: 0;
}

.mototravel-form-group {
    margin-bottom: 16px;
}

.mototravel-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mototravel-input-icon {
    position: absolute;
    left: 20px;
    font-size: 20px;
    color: #61708F; /* Specified! */
    pointer-events: none;
    display: flex;
    align-items: center;
}

.mototravel-form-control {
    width: 100%;
    height: 54px;
    padding: 0 20px 0 54px;
    background-color: #F0F8FF; /* Specified soft light blue field background! */
    border: 1px solid transparent;
    border-radius: 100px; /* Pill input fields! */
    box-sizing: border-box;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 14px; /* Specified! */
    font-weight: 400;
    color: #001450;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.mototravel-form-control::placeholder {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.1px;
    color: #61708F; /* Specified! */
}

.mototravel-form-control:focus {
    border-color: #001450;
    background-color: #f7fbff;
    box-shadow: 0 0 0 4px rgba(0, 20, 80, 0.06);
}

.mototravel-form-actions-forgot {
    display: flex;
    justify-content: flex-end;
    margin: -8px 8px 20px;
}

.mototravel-lost-password-link {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 16px; /* Specified! */
    line-height: 100%;
    letter-spacing: 0;
    color: #001450; /* Specified! */
    transition: color 0.2s ease;
}

.mototravel-lost-password-link:hover {
    color: #FF0000;
    text-decoration: underline;
}

.mototravel-login-submit-btn {
    width: 100%;
    height: 54px;
    background-color: #001450; /* Specified background! */
    color: #ffffff;
    border: 0;
    border-radius: 100px; /* Pill button! */
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 18px; /* Specified! */
    font-weight: 800; /* ExtraBold */
    line-height: 19.5px; /* Specified! */
    letter-spacing: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 20, 80, 0.15);
}

.mototravel-login-submit-btn:hover {
    background-color: #000c30;
    box-shadow: 0 10px 28px rgba(0, 20, 80, 0.25);
    transform: translateY(-2px);
}

.mototravel-login-submit-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Verification screen resend text */
.mototravel-verify-resend {
    text-align: center;
    margin: -4px 0 20px;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    color: #61708F;
}

.mototravel-verify-resend button.mototravel-resend-link {
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: 4px;
    cursor: pointer;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: 700;
    color: #001450;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.mototravel-verify-resend button.mototravel-resend-link:hover {
    color: #FF0000;
}

/* Modal "o" Divider with lines */
.mototravel-modal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
    width: 100%;
}

.mototravel-modal-divider::before,
.mototravel-modal-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #E4E6EC; /* Specified line color! */
}

.mototravel-modal-divider span {
    padding: 0 16px;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #969AB8; /* Specified "o" color! */
}

/* Google & Facebook columns side-by-side buttons */
.mototravel-modal-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.mototravel-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid #E4E6EC; /* Specified social border! */
    border-radius: 100px; /* Pill button! */
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none !important;
}

.mototravel-social-btn:hover {
    border-color: #b0b8c6;
    background-color: #fafbfc;
    transform: translateY(-1px);
}

.mototravel-social-btn:active {
    transform: translateY(0);
}

.mototravel-social-btn iconify-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
}

.mototravel-social-btn span {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #001450;
}

.mototravel-modal-footer {
    text-align: center;
    margin-top: 24px;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 14px;
    color: #969AB8;
}

.mototravel-modal-footer p {
    margin: 0;
}

.mototravel-modal-footer button,
.mototravel-back-to-login {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 14px;
    color: #001450;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.mototravel-back-to-login {
    font-size: 16px; /* Match forgotten back layout */
    margin: 0 auto;
    display: inline-block;
}

.mototravel-modal-footer button:hover,
.mototravel-back-to-login:hover {
    color: #FF0000;
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden !important;
}

/* Form Alerts inside modal */
.mototravel-form-alert {
    display: none;
    position: relative;
    padding: 14px 18px 14px 50px;
    border-radius: 14px;
    border-left-width: 4px;
    border-left-style: solid;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: left;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(15, 30, 55, 0.06);
    animation: mototravel-alert-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mototravel-form-alert::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.mototravel-form-alert--error {
    display: block;
    background-color: #FFF5F5;
    color: #B91C1C;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-left-color: #DC2626;
}

.mototravel-form-alert--error::before {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

.mototravel-form-alert--success {
    display: block;
    background-color: #F0FDF4;
    color: #15803D;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-left-color: #22C55E;
}

.mototravel-form-alert--success::before {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

@keyframes mototravel-alert-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive Modal View Scaling === */
@media (max-width: 600px) {
    .mototravel-modal-container {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .mototravel-modal-header h2 {
        font-size: 28px !important; /* Scale down on mobile to prevent overflow */
    }

    .mototravel-modal-header p {
        font-size: 14px !important;
    }
    
    .mototravel-modal-socials {
        grid-template-columns: 1fr; /* Stack social buttons on narrow viewports */
        gap: 12px;
    }
}
