/* =========================================================
   ESPAGLOBAL - HEADER 6
   SSC-LIKE TWO ROW HEADER
   Cleaned: legacy Header 3 / Header 4 / Travel Desk overrides removed.
========================================================= */


/* =========================================================
   SIMPLE DROPDOWN
========================================================= */

.espa-menu-parent--simple {
    position: relative;
}


.espa-simple-dropdown {
    position: absolute;

    top: calc(100% - 1px);
    left: 0;

    z-index: 1060;

    min-width: 230px;
    max-width: 340px;

    padding: 8px;

    border:
            1px solid
            var(--espa-border);

    border-radius: 10px;

    background: #ffffff;

    box-shadow:
            0 14px 32px
            rgba(
                    15,
                    23,
                    42,
                    .12
            );

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
            translateY(7px);

    transition:
            opacity .17s ease,
            visibility .17s ease,
            transform .17s ease;
}


.espa-menu-parent--simple:hover
> .espa-simple-dropdown,
.espa-menu-parent--simple:focus-within
> .espa-simple-dropdown {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
            translateY(0);
}


/* SIMPLE LEVEL 2 */

.espa-simple-dropdown__link {
    width: 100%;
    min-height: 39px;

    padding:
            8px 10px;

    display: flex;
    align-items: center;

    border-radius: 7px;

    color: #102a43;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.3;
}


.espa-simple-dropdown__link:hover {
    color:
            var(--espa-primary);

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 7%,
                    #ffffff
            );
}


/* SIMPLE GROUP */

.espa-simple-dropdown__group {
    padding:
            5px 3px 8px;
}


.espa-simple-dropdown__group
+ .espa-simple-dropdown__group {
    border-top:
            1px solid
            var(--espa-border);
}


.espa-simple-dropdown__group-title {
    min-height: 36px;

    padding:
            6px 8px;

    display: flex;
    align-items: center;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 700;
}


.espa-simple-dropdown__group-title:hover {
    color:
            var(--espa-primary);
}


.espa-simple-dropdown__group-links {
    display: flex;
    flex-direction: column;
}


.espa-simple-dropdown__group-links a {
    min-height: 34px;

    padding:
            5px 12px;

    display: flex;
    align-items: center;

    border-radius: 6px;

    color:
            var(--espa-muted);

    font-family:
            var(--font-family-base);

    font-size: 12px;
    font-weight: 500;
}


.espa-simple-dropdown__group-links a:hover {
    color:
            var(--espa-primary);

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 5%,
                    #ffffff
            );
}


/* =========================================================
   MEGA MENU ROOT
========================================================= */

.espa-menu-parent--mega {
    position: static;
}


.espa-mega {
    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    z-index: 1050;

    width: 100%;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform:
            translateY(8px);

    transition:
            opacity .17s ease,
            visibility .17s ease,
            transform .17s ease;
}


.espa-menu-parent--mega:hover
> .espa-mega,
.espa-menu-parent--mega:focus-within
> .espa-mega {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform:
            translateY(0);
}


.espa-mega
> .container-xxl {
    position: relative;
}


/* =========================================================
   MEGA SURFACE
========================================================= */

.espa-mega__surface {
    overflow: hidden;

    min-height: 250px;

    padding:
            34px 40px;

    border:
            1px solid
            var(--espa-border);

    border-top: 0;

    border-radius:
            0 0 20px 20px;

    background: #ffffff;

    box-shadow:
            0 20px 45px
            rgba(
                    15,
                    23,
                    42,
                    .10
            );
}


/* =========================================================
   MEGA COLUMNS
========================================================= */

.espa-mega-columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px 28px;
    align-items: start;
}


.espa-mega-column {
    min-width: 0;
}


.espa-mega-column__title {
    display: inline-flex;
    align-items: center;

    margin-bottom: 10px;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 14px;
    font-weight: 700;

    line-height: 1.3;
}


.espa-mega-column__title:hover {
    color:
            var(--espa-primary);
}


.espa-mega-column__links {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 3px;
}


.espa-mega-column__links a {
    min-height: 30px;

    display: inline-flex;
    align-items: center;

    padding:
            4px 0;

    color: #27364a;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 400;

    line-height: 1.35;
}


.espa-mega-column__links a:hover {
    color:
            var(--espa-primary);
}


/* =========================================================
   MEGA COLUMNS + IMAGE
========================================================= */

.espa-mega-columns-image {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 42px;

    align-items: start;
}


.espa-mega-columns-image__links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}


.espa-mega-columns-image__media {
    min-width: 0;
}


.espa-mega-image {
    display: block;

    overflow: hidden;

    border-radius: 16px;

    background:
            var(--espa-surface-secondary);
}


.espa-mega-image img {
    width: 100%;

    aspect-ratio:
            16 / 9;

    object-fit: cover;

    transition:
            transform .3s ease;
}


.espa-mega-image:hover img {
    transform:
            scale(1.025);
}


/* =========================================================
   MEGA SIDEBAR
========================================================= */

.espa-mega--sidebar
.espa-mega__surface {
    padding: 18px;
}


/* =========================================================
   SIDEBAR LAYOUT
========================================================= */

.espa-sidebar-layout {
    display: grid;

    grid-template-columns:
        260px
        minmax(0, 1fr);

    min-height: 270px;
}


.espa-sidebar-layout.has-media {
    grid-template-columns:
        260px
        minmax(0, 1fr)
        340px;
}


/* =========================================================
   SIDEBAR LEFT
   LEVEL 2
========================================================= */

.espa-sidebar-layout__categories {
    padding-right: 18px;

    border-right:
            1px solid
            var(--espa-border);
}


.espa-sidebar-category {
    width: 100%;
    min-height: 54px;

    padding:
            8px 12px;

    display: grid;

    grid-template-columns:
        36px
        minmax(0, 1fr)
        18px;

    align-items: center;

    gap: 10px;

    border: 0;

    border-radius: 12px;

    background: transparent;

    color: #41506a;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;

    text-align: left;

    transition:
            color .15s ease,
            background-color .15s ease;
}


.espa-sidebar-category:hover,
.espa-sidebar-category.is-active {
    color:
            var(--espa-primary);

    background:
            color-mix(
                    in srgb,
                    var(--espa-primary) 7%,
                    #ffffff
            );
}


.espa-sidebar-category__icon {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
            #f4f6f8;

    color: inherit;
}


.espa-sidebar-category__icon
iconify-icon {
    font-size: 18px;
}


.espa-sidebar-category__title {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: normal;
}


.espa-sidebar-category__arrow {
    font-size: 16px;
}


/* =========================================================
   SIDEBAR CONTENT
========================================================= */

.espa-sidebar-layout__content {
    position: relative;

    min-width: 0;

    padding:
            4px 30px;
}


.espa-sidebar-pane {
    display: none;
}


.espa-sidebar-pane.is-active {
    display: block;
}


/* =========================================================
   LEVEL 2 CONTENT TITLE
========================================================= */

.espa-sidebar-pane__header {
    margin-bottom: 18px;
}


.espa-sidebar-pane__title {
    display: inline-flex;
    align-items: center;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 16px;
    font-weight: 700;

    line-height: 1.3;
}


.espa-sidebar-pane__title:hover {
    color:
            var(--espa-primary);
}

/* =========================================================
   LEVEL 3 GROUPS
========================================================= */

.espa-sidebar-groups {
    display: grid;
    gap: 20px;
    align-items: start;
}

/* mega_sidebar: 4 sütun */
.espa-sidebar-layout:not(.has-media) .espa-sidebar-groups {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* mega_sidebar_images: 3 sütun */
.espa-sidebar-layout.has-media .espa-sidebar-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.espa-sidebar-group {
    min-width: 0;
}


/* =========================================================
   LEVEL 3 IMAGE
========================================================= */

.espa-sidebar-group__image {
    display: block;

    width: 100%;

    margin-bottom: 11px;

    overflow: hidden;

    border-radius: 12px;

    background:
            var(
                    --espa-surface-secondary,
                    #f3f4f6
            );
}


.espa-sidebar-group__image img {
    display: block;

    width: 100%;

    aspect-ratio:
            16 / 9;

    object-fit: cover;

    transition:
            transform .25s ease;
}


.espa-sidebar-group__image:hover img {
    transform:
            scale(1.04);
}


/* =========================================================
   LEVEL 3 TITLE
========================================================= */

.espa-sidebar-group__title {
    display: inline-flex;
    align-items: center;

    margin-bottom: 8px;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 14px;
    font-weight: 700;

    line-height: 1.35;
}


.espa-sidebar-group__title:hover {
    color:
            var(--espa-primary);
}


/* =========================================================
   LEVEL 4 LINKS
========================================================= */

.espa-sidebar-group__links {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 2px;
}


.espa-sidebar-group__links a {
    width: 100%;
    min-height: 31px;

    padding:
            4px 0;

    display: flex;
    align-items: center;

    color: #41506a;

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 400;

    line-height: 1.35;
}


.espa-sidebar-group__links a:hover {
    color:
            var(--espa-primary);
}


/* =========================================================
   SIDEBAR EMPTY
========================================================= */

.espa-sidebar-pane__empty {
    padding:
            8px 0;
}


.espa-sidebar-pane__empty a {
    display: inline-flex;

    color:
            var(--espa-primary);

    font-family:
            var(--font-family-base);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   SIDEBAR MEDIA
========================================================= */

.espa-sidebar-layout__media {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 14px;
}


.espa-sidebar-media-card {
    display: block;

    overflow: hidden;

    border-radius: 15px;

    background:
            var(--espa-surface-secondary);
}


.espa-sidebar-media-card img {
    width: 100%;

    aspect-ratio:
            16 / 5.8;

    object-fit: cover;

    transition:
            transform .3s ease;
}


.espa-sidebar-media-card:hover
img {
    transform:
            scale(1.025);
}



/* =========================================================
   MOBILE OFFCANVAS
========================================================= */

.espa-header-6__mobile-menu {
    width: 100% !important;

    max-width: 430px;

    border: 0 !important;

    background: #ffffff;

    font-family:
            var(--font-family-base);
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.espa-header-6__mobile-head {
    min-height:
            calc(
                    64px
                    + env(safe-area-inset-top)
            );

    padding:
            calc(
                    10px
                    + env(safe-area-inset-top)
            )
            14px
            10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    border-bottom:
            1px solid
            var(--espa-border);

    background: #ffffff;
}


.espa-header-6__mobile-logo {
    min-width: 0;

    display: flex;
    align-items: center;
}


.espa-header-6__mobile-logo img {
    display: block;

    width: auto;

    max-width: 150px;
    max-height: 42px;

    object-fit: contain;
}


.espa-header-6__mobile-close {
    width: 44px;
    height: 44px;

    flex:
            0 0 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 12px;

    background:
            var(--espa-surface-secondary);

    color:
            var(--espa-heading);
}


.espa-header-6__mobile-close
iconify-icon {
    font-size: 24px;
}


/* =========================================================
   MOBILE BODY
========================================================= */

.espa-header-6__mobile-body {
    height:
            calc(
                    100dvh
                    - 64px
                    - env(safe-area-inset-top)
            );

    padding:
            8px
            14px
            calc(
                    22px
                    + env(safe-area-inset-bottom)
            );

    overflow-y: auto;

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   MOBILE RECURSIVE MENU
========================================================= */

.espa-mobile-menu-item {
    width: 100%;
}


.espa-mobile-menu-link {
    width: 100%;
    min-height: 52px;

    padding:
            0 6px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border: 0;

    border-bottom:
            1px solid
            var(--espa-border);

    background: transparent;

    color:
            var(--espa-heading);

    font-family:
            var(--font-family-base);

    font-size: 15px;
    font-weight: 600;

    line-height: 1.3;

    text-align: left;
}


.espa-mobile-menu-link:hover,
.espa-mobile-menu-link:active {
    color:
            var(--espa-primary);
}


.espa-mobile-menu-link__content {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}


.espa-mobile-menu-link__content
span:last-child {
    overflow: hidden;

    text-overflow: ellipsis;
}


.espa-mobile-menu-link__icon {
    flex:
            0 0 auto;

    font-size: 18px;
}


.espa-mobile-menu-link__arrow,
.espa-mobile-menu-link__toggle {
    flex:
            0 0 auto;

    color:
            var(--espa-muted);

    font-size: 17px;

    transition:
            transform .2s ease;
}


.espa-mobile-menu-link[
    aria-expanded="true"
]
.espa-mobile-menu-link__toggle {
    transform:
            rotate(45deg);
}


/* =========================================================
   MOBILE LEVEL 2
========================================================= */

.espa-mobile-submenu {
    padding-left: 14px;
}


.espa-mobile-submenu
.espa-mobile-menu-link {
    min-height: 47px;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   MOBILE LEVEL 3
========================================================= */

.espa-mobile-submenu
.espa-mobile-submenu {
    padding-left: 16px;
}


.espa-mobile-submenu
.espa-mobile-submenu
.espa-mobile-menu-link {
    min-height: 45px;

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   MOBILE LEVEL 4
========================================================= */

.espa-mobile-submenu
.espa-mobile-submenu
.espa-mobile-submenu {
    padding-left: 18px;
}


.espa-mobile-submenu
.espa-mobile-submenu
.espa-mobile-submenu
.espa-mobile-menu-link {
    min-height: 44px;

    color:
            var(--espa-muted);

    font-size: 13px;
    font-weight: 400;
}


/* =========================================================
   MOBILE ACTIONS
========================================================= */

.espa-header-6__mobile-actions {
    margin-top: 22px;

    display: grid;

    gap: 10px;
}


.espa-mobile-action-card {
    min-height: 54px;

    padding:
            10px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border:
            1px solid
            var(--espa-border);

    border-radius: 13px;

    color:
            var(--espa-heading);

    background: #ffffff;

    font-family:
            var(--font-family-base);

    font-size: 13px;
}


.espa-mobile-action-card
span {
    display: flex;
    align-items: center;

    gap: 8px;
}


.espa-mobile-action-card
iconify-icon {
    font-size: 19px;
}


.espa-mobile-action-card--whatsapp {
    justify-content: center;

    border-color:
            #22c55e;

    background:
            #22c55e;

    color: #ffffff;

    font-weight: 600;
}


.espa-mobile-action-card--whatsapp:hover {
    color: #ffffff;

    background:
            #16a34a;

    border-color:
            #16a34a;
}


/* =========================================================
   MOBILE SOCIALS
========================================================= */

.espa-header-6__mobile-socials {
    margin-top: 20px;

    padding-top: 18px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    border-top:
            1px solid
            var(--espa-border);
}


.espa-header-6__mobile-socials
a {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
            1px solid
            var(--espa-border);

    border-radius: 50%;

    color:
            var(--espa-heading);

    background: #ffffff;
}


.espa-header-6__mobile-socials
a:hover {
    color: #ffffff;

    border-color:
            var(--espa-primary);

    background:
            var(--espa-primary);
}


.espa-header-6__mobile-socials
iconify-icon {
    font-size: 18px;
}



.espa-header-6__account-menu {
    min-width: 245px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid var(--espa-border);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .13);
}

.espa-header-6__account-menu-head {
    display: flex;
    flex-direction: column;
    padding: 10px 11px 12px;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--espa-border);
}

.espa-header-6__account-menu-head strong {
    color: var(--espa-heading);
    font-size: 13px;
    font-weight: 700;
}

.espa-header-6__account-menu-head span {
    max-width: 205px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--espa-text-muted, #64748b);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.espa-header-6__account-menu-link {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--espa-text, #334155);
    font-size: 12px;
    font-weight: 600;
}

.espa-header-6__account-menu-link iconify-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    font-size: 17px;
}

.espa-header-6__account-menu-link:hover {
    background: var(--espa-surface-secondary, #f8fafc);
    color: var(--espa-primary);
}

.espa-header-6__account-menu-link--logout,
.espa-header-6__account-menu-link--logout:hover {
    color: #dc2626;
}


/* =========================================================
   MOBILE ACCOUNT
========================================================= */

.espa-header-6__mobile-account {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--espa-border);
}

.espa-header-6__mobile-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid var(--espa-border);
    border-radius: 14px;
    background: var(--espa-surface-secondary, #f8fafc);
}

.espa-header-6__mobile-user-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--espa-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.espa-header-6__mobile-user-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.espa-header-6__mobile-user-copy strong {
    overflow: hidden;
    color: var(--espa-heading);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.espa-header-6__mobile-user-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--espa-text-muted, #64748b);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.espa-header-6__mobile-user-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.espa-header-6__mobile-user-links a,
.espa-header-6__mobile-auth-buttons a {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--espa-border);
    border-radius: 11px;
    background: #ffffff;
    color: var(--espa-text, #334155);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.espa-header-6__mobile-user-links a iconify-icon,
.espa-header-6__mobile-auth-buttons a iconify-icon {
    flex: 0 0 auto;
    font-size: 16px;
}

.espa-header-6__mobile-user-links a:hover {
    border-color: color-mix(in srgb, var(--espa-primary) 28%, var(--espa-border));
    color: var(--espa-primary);
}

.espa-header-6__mobile-user-links .is-logout {
    border-color: #fee2e2;
    background: #fff7f7;
    color: #dc2626;
}

.espa-header-6__mobile-auth-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.espa-header-6__mobile-auth-buttons .espa-header-6__mobile-auth-register {
    border-color: var(--espa-primary);
    background: var(--espa-primary);
    color: #ffffff;
}

.espa-header-6__mobile-auth-buttons .espa-header-6__mobile-auth-register:hover {
    background: var(--espa-primary-hover);
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .espa-header-6__mobile-user-links {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ROOT / CONTAINERS
========================================================= */

.espa-header-6 {
    position: relative;
    z-index: 1040;
    width: 100%;
    background: #fff;
    color: var(--espa-heading);
    font-family: var(--font-family-base);
}

.espa-header-6__container {
    width: 100%;
    margin-inline: auto;
}

.espa-header-6__container--wide {
    max-width: none;
    padding-inline: clamp(24px, 3vw, 56px);
}

/* Boxed uses Bootstrap container-xxl from markup. */

/* =========================================================
   OPTIONAL TOP BAR
========================================================= */

.espa-header-6__top {
    width: 100%;
    min-height: 30px;
    background: var(--espa-secondary);
    color: #fff;
}

.espa-header-6__top-inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

/* SSC reference does not use desktop socials in the header. */
.espa-header-6__top .espa-header-6__socials {
    display: none;
}

.espa-header-6__top-contact {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.espa-header-6__top-contact-link {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.88);
    font-size: 11px;
    font-weight: 600;
}

.espa-header-6__top-contact-link:hover {
    color: #fff;
}

/* =========================================================
   MAIN HEADER
========================================================= */

.espa-header-6__main {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--espa-border);
    overflow: visible;
}

.espa-header-6__utility-row {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.espa-header-6__navigation-row {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--espa-border);
    overflow: visible;
}

.espa-header-6__navigation-container {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: stretch;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   LOGO
========================================================= */

.espa-header-6__logo {
    flex: 0 0 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.espa-header-6__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 90px;
    object-fit: contain;
}

.espa-header-6__logo strong {
    color: var(--espa-heading);
    font-family: var(--font-family-heading);
    font-size: 22px;
    font-weight: 700;
}

/* =========================================================
   DESKTOP NAV
========================================================= */

.espa-header-6__nav {
    position: static;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow: visible;
}

.espa-header-6--wide .espa-header-6__nav {
    justify-content: flex-start;
}

.espa-header-6--wide .espa-header-6__navigation-container,
.espa-header-6--boxed .espa-header-6__navigation-container {
    margin-left: auto;
    margin-right: auto;
}

.espa-header-6__nav-link {
    position: relative;
    min-height: 58px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--espa-heading);
    font-family: var(--font-family-menu, var(--font-family-base));
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease;
}

.espa-header-6__nav-link > iconify-icon:not(.espa-header-6__nav-caret) {
    font-size: 16px;
}

.espa-header-6__nav-link:hover,
.espa-header-6__nav-link:focus-visible,
.espa-menu-parent:hover > .espa-header-6__nav-link,
.espa-menu-parent:focus-within > .espa-header-6__nav-link,
.espa-menu-parent.is-menu-open > .espa-header-6__nav-link,
.espa-header-6__nav-link[aria-current="page"] {
    color: var(--espa-primary);
}

.espa-header-6__nav-link::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--espa-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.espa-header-6__nav-link:hover::before,
.espa-header-6__nav-link:focus-visible::before,
.espa-menu-parent:hover > .espa-header-6__nav-link::before,
.espa-menu-parent:focus-within > .espa-header-6__nav-link::before,
.espa-menu-parent.is-menu-open > .espa-header-6__nav-link::before,
.espa-header-6__nav-link[aria-current="page"]::before {
    transform: scaleX(1);
}

.espa-header-6__nav-caret {
    flex: 0 0 auto;
    margin-left: 1px;
    color: var(--espa-muted);
    font-size: 11px;
    transition: transform .18s ease;
}

.espa-menu-parent:hover > .espa-header-6__nav-link .espa-header-6__nav-caret,
.espa-menu-parent:focus-within > .espa-header-6__nav-link .espa-header-6__nav-caret,
.espa-menu-parent.is-menu-open > .espa-header-6__nav-link .espa-header-6__nav-caret {
    transform: rotate(180deg);
}

.espa-menu-parent {
    position: static;
    display: flex;
    align-items: stretch;
}

.espa-menu-parent--simple {
    position: relative;
}

/* =========================================================
   ACTIONS
========================================================= */

.espa-header-6__actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.espa-header-6__phone,
.espa-header-6__whatsapp {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--espa-heading);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.espa-header-6__phone iconify-icon,
.espa-header-6__whatsapp iconify-icon {
    color: var(--espa-primary);
    font-size: 20px;
}

.espa-header-6__phone:hover,
.espa-header-6__whatsapp:hover {
    color: var(--espa-primary);
}

/* SSC style: login and register live inside one shared pill. */
.espa-header-6__auth-box {
    min-height: 56px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--espa-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .025);
}

.espa-header-6__auth-link {
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--espa-heading);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease, background .18s ease;
}

.espa-header-6__auth-link iconify-icon {
    color: var(--espa-primary);
    font-size: 19px;
}

.espa-header-6__auth-link:hover,
.espa-header-6__auth-link:focus-visible {
    color: var(--espa-primary);
    background: color-mix(in srgb, var(--espa-primary) 4%, #fff);
}

.espa-header-6__auth-box .espa-header-6__auth-link--register {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--espa-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .025);
}

.espa-header-6__mobile-trigger {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--espa-border);
    border-radius: 10px;
    background: #fff;
    color: var(--espa-heading);
}

.espa-header-6__mobile-trigger iconify-icon {
    font-size: 25px;
}

/* Header 6 SSC reference intentionally has no desktop call-me action. */
.espa-header-6__callme,
.espa-header-6__call-me {
    display: none !important;
}

/* =========================================================
   ACCOUNT
========================================================= */

.espa-header-6__account {
    position: relative;
    flex: 0 0 auto;
}

.espa-header-6__account-trigger {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 13px 4px 5px;
    border: 1px solid var(--espa-border);
    border-radius: 999px;
    background: #fff;
    color: var(--espa-heading);
    box-shadow: 0 3px 12px rgba(15,23,42,.04);
}

.espa-header-6__account-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--espa-primary) 10%, #fff);
    color: var(--espa-primary);
    font-size: 12px;
    font-weight: 800;
}

.espa-header-6__account-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.espa-header-6__account-copy strong {
    max-width: 140px;
    overflow: hidden;
    color: var(--espa-heading);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.espa-header-6__account-copy small {
    display: none;
}

/* =========================================================
   SIMPLE DROPDOWN / MEGA VISIBILITY
========================================================= */

.espa-simple-dropdown {
    top: calc(100% - 1px);
    margin-top: 0;
}

.espa-menu-parent--simple.is-menu-open > .espa-simple-dropdown,
.espa-menu-parent--simple:hover > .espa-simple-dropdown,
.espa-menu-parent--simple:focus-within > .espa-simple-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.espa-menu-parent--mega {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.espa-mega {
    top: calc(100% - 1px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.espa-menu-parent--mega.is-menu-open > .espa-mega,
.espa-menu-parent--mega:hover > .espa-mega,
.espa-menu-parent--mega:focus-within > .espa-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.espa-mega > .container-xxl,
.espa-mega > .espa-header-6__container {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.espa-mega__surface {
    min-height: 250px;
    padding: 34px 40px;
    overflow: hidden;
    border: 1px solid var(--espa-border);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(15,23,42,.10);
}

/* Makes the nav -> mega transition forgiving without drawing a visible box. */
.espa-menu-parent--mega::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
    background: transparent;
    pointer-events: none;
}

/* =========================================================
   MEGA COLUMNS TOP IMAGE
========================================================= */

.espa-mega-top-image {
    display: block;
    width: 100%;
    margin-bottom: 26px;
    overflow: hidden;
    border-radius: 15px;
    background: var(--espa-surface-secondary);
}

.espa-mega-top-image img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform .3s ease;
}

.espa-mega-top-image:hover img {
    transform: scale(1.02);
}

.espa-mega-columns--top-image {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* =========================================================
   MOBILE ACCOUNT / CALL ME
========================================================= */

.espa-header-6__mobile-callme {
    min-height: 50px;
    margin-top: 12px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--espa-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.espa-header-6__mobile-callme iconify-icon:last-child {
    margin-left: auto;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.espa-header-6 a:focus-visible,
.espa-header-6 button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--espa-primary) 38%, transparent);
    outline-offset: 3px;
}

/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1199.98px) and (min-width: 992px) {
    .espa-header-6__utility-row {
        gap: 18px;
    }

    .espa-header-6__actions {
        gap: 10px;
    }

    .espa-header-6__logo img {
        max-width: 180px;
    }

    .espa-header-6__phone,
    .espa-header-6__whatsapp {
        font-size: 12px;
    }

    .espa-header-6__nav-link {
        padding: 0 10px;
        font-size: 12px;
    }

    .espa-mega__surface {
        padding: 28px;
    }

    .espa-sidebar-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .espa-sidebar-layout.has-media {
        grid-template-columns: 220px minmax(0, 1fr) 290px;
    }

    .espa-sidebar-layout:not(.has-media) .espa-sidebar-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .espa-sidebar-layout.has-media .espa-sidebar-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 991.98px) {
    .espa-header-6 {
        position: sticky;
        top: 0;
        z-index: 1045;
    }

    .espa-header-6__top {
        display: none;
    }

    .espa-header-6__main {
        background: #fff;
    }

    .espa-header-6__utility-row {
        min-height: 68px;
        gap: 12px;
    }

    .espa-header-6__navigation-row {
        display: none;
    }

    .espa-header-6__logo {
        max-width: calc(100% - 60px);
    }

    .espa-header-6__logo img {
        max-width: 155px;
        max-height: 44px;
    }

    .espa-header-6__phone,
    .espa-header-6__whatsapp,
    .espa-header-6__auth-box,
    .espa-header-6__account {
        display: none !important;
    }

    .espa-header-6__actions {
        margin-left: auto;
        gap: 0;
    }

    .espa-header-6__mobile-trigger {
        display: inline-flex;
    }

    .espa-mega,
    .espa-simple-dropdown {
        display: none !important;
    }

    .espa-header-6__mobile-menu {
        width: min(92vw, 430px) !important;
        max-width: none;
        border-left: 1px solid var(--espa-border) !important;
        background: #fff;
    }
}

@media (max-width: 575.98px) {
    .espa-header-6__utility-row {
        min-height: 62px;
    }

    .espa-header-6__logo img {
        max-width: 140px;
        max-height: 39px;
    }

    .espa-header-6__mobile-body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .espa-mobile-menu-link {
        min-height: 50px;
    }

    .espa-header-6__mobile-user-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .espa-header-6__logo img {
        max-width: 120px;
    }

    .espa-header-6__mobile-trigger {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .espa-header-6 *,
    .espa-header-6 *::before,
    .espa-header-6 *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

