/* Premium site header — loaded on every page when the premium theme is active */

.pm-header,
.pm-drawer {
    --pmh-primary: #0f6b45;
    --pmh-dark: #0a2e22;
    --pmh-tint: #e8f4ee;
    --pmh-gold: #d4af37;
    --pmh-ink: #111111;
    --pmh-text: #1a1a1a;
    --pmh-line: #e5e9ef;
    --pmh-font: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    font-family: var(--pmh-font);
    color: var(--pmh-text);
    -webkit-font-smoothing: antialiased;
}

.pm-header a,
.pm-drawer a {
    text-decoration: none;
}

.pm-header ul,
.pm-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pm-header li,
.pm-drawer li {
    margin: 0;
    list-style: none;
}

/* Header is in the page flow, so the old fixed-header spacing is not needed */
body.pm-theme main.mafuz_top_margin {
    margin-top: 0;
}

.pm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--pmh-line);
    transition: box-shadow .2s;
}

.pm-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
}

.pm-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 76px;
}

.pm-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.pm-header__logo img {
    display: block;
    height: 36px;
    width: auto;
}

/* ---------- Desktop navigation ---------- */

.pm-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.pm-header__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--pmh-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.pm-header__link .fa {
    font-size: 18px;
    transition: transform .2s;
}

.pm-header__link:hover,
.pm-header__link.is-current,
.pm-header__menu.is-open > .pm-header__link {
    background: var(--pmh-tint);
    color: var(--pmh-primary);
}

.pm-header__menu.is-open > .pm-header__link .fa {
    transform: rotate(180deg);
}

.pm-header__link:focus-visible,
.pm-header__account:focus-visible,
.pm-header__btn:focus-visible,
.pm-header__burger:focus-visible,
.pm-header__cat:focus-visible {
    outline: 3px solid rgba(15, 107, 69, .35);
    outline-offset: 2px;
}

/* Menus stretch to the full bar height and their panels anchor to the bar,
   so wide panels never overflow the viewport and the pointer never crosses a gap */
.pm-header__nav,
.pm-header__actions,
.pm-header__menu {
    align-self: stretch;
}

.pm-header__menu {
    display: flex;
    align-items: center;
}

.pm-header__panel {
    --pm-panel-x: -50%;
    position: absolute;
    top: calc(100% - 4px);
    left: 50%;
    z-index: 5;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--pmh-line);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
    opacity: 0;
    visibility: hidden;
    transform: translate(var(--pm-panel-x), 6px);
    transition: opacity .18s, transform .18s, visibility 0s .18s;
}

.pm-header__menu.is-open > .pm-header__panel {
    opacity: 1;
    visibility: visible;
    transform: translate(var(--pm-panel-x), 0);
    transition: opacity .18s, transform .18s;
}

@media (hover: hover) and (min-width: 992px) {
    .pm-header__menu:hover > .pm-header__link {
        background: var(--pmh-tint);
        color: var(--pmh-primary);
    }

    .pm-header__menu:hover > .pm-header__link .fa {
        transform: rotate(180deg);
    }

    .pm-header__menu:hover > .pm-header__panel {
        opacity: 1;
        visibility: visible;
        transform: translate(var(--pm-panel-x), 0);
        transition: opacity .18s, transform .18s;
    }
}

.pm-header__panel-title {
    margin: 0 0 14px;
    color: var(--pmh-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}

.pm-header__panel-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--pmh-primary);
    font-size: 15px;
    font-weight: 700;
}

.pm-header__panel-more:hover {
    color: var(--pmh-dark);
}

/* Destinations */

.pm-header__panel--destinations {
    width: min(680px, 90vw);
}

.pm-header__dest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 12px;
    max-height: min(420px, 60vh);
    overflow-y: auto;
}

.pm-header__dest-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--pmh-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.pm-header__dest-grid a .fa {
    color: var(--pmh-primary);
    font-size: 16px;
}

.pm-header__dest-grid a:hover {
    background: var(--pmh-tint);
    color: var(--pmh-primary);
}

/* Activities */

.pm-header__panel--activities {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    width: min(800px, 92vw);
    padding: 18px;
}

.pm-header__cats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 18px;
    border-right: 1px solid var(--pmh-line);
}

.pm-header__cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pmh-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.pm-header__cat .fa {
    font-size: 16px;
    opacity: .5;
}

.pm-header__cat.is-active {
    background: var(--pmh-tint);
    color: var(--pmh-primary);
}

.pm-header__cat.is-active .fa {
    opacity: 1;
}

.pm-header__cat-panes {
    padding: 6px 6px 6px 0;
}

.pm-header__cat-pane {
    display: none;
}

.pm-header__cat-pane.is-active {
    display: block;
}

.pm-header__tour-list {
    max-height: min(340px, 50vh);
    overflow-y: auto;
}

.pm-header__tour-list a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--pmh-text);
    font-size: 15px;
    line-height: 1.4;
}

.pm-header__tour-list a:hover {
    background: #f6f8f7;
    color: var(--pmh-primary);
}

/* ---------- Right-side actions ---------- */

.pm-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}

.pm-header__btn--primary {
    background: var(--pmh-primary);
    color: #fff;
}

.pm-header__btn--primary:hover {
    background: var(--pmh-dark);
    color: #fff;
}

.pm-header__btn--ghost {
    border-color: var(--pmh-line);
    color: var(--pmh-ink);
}

.pm-header__btn--ghost:hover {
    border-color: var(--pmh-primary);
    color: var(--pmh-primary);
}

.pm-header__account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--pmh-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pmh-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s;
}

.pm-header__account:hover,
.pm-header__menu--account.is-open .pm-header__account {
    border-color: var(--pmh-primary);
}

.pm-header__avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pmh-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
}

.pm-header__panel--account {
    --pm-panel-x: 0;
    left: auto;
    right: 12px;
    width: 220px;
    padding: 10px;
}

.pm-header__panel--account a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--pmh-text);
    font-size: 15px;
    font-weight: 500;
}

.pm-header__panel--account a .fa {
    width: 18px;
    color: var(--pmh-primary);
    font-size: 16px;
    text-align: center;
}

.pm-header__panel--account a:hover {
    background: var(--pmh-tint);
    color: var(--pmh-primary);
}

.pm-header__panel--account hr {
    margin: 6px 0;
    border-color: var(--pmh-line);
    opacity: 1;
}

.pm-header__burger {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--pmh-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pmh-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.pm-header__burger .fa {
    font-size: 18px;
}

/* ---------- Mobile drawer ---------- */

html.pm-no-scroll,
html.pm-no-scroll body {
    overflow: hidden;
}

.pm-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    transition: visibility 0s .25s;
}

.pm-drawer.is-open {
    visibility: visible;
    transition: none;
}

.pm-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 46, 34, .45);
    opacity: 0;
    transition: opacity .25s;
}

.pm-drawer.is-open .pm-drawer__backdrop {
    opacity: 1;
}

.pm-drawer__sheet {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(380px, 88vw);
    background: #fff;
    box-shadow: -12px 0 40px rgba(15, 23, 42, .18);
    transform: translateX(100%);
    transition: transform .25s ease;
}

.pm-drawer.is-open .pm-drawer__sheet {
    transform: translateX(0);
}

.pm-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--pmh-line);
}

.pm-drawer__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pmh-line);
    border-radius: 50%;
    background: #fff;
    color: var(--pmh-ink);
    font-size: 20px;
    cursor: pointer;
}

.pm-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 20px;
}

.pm-drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 12px;
    color: var(--pmh-ink);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.pm-drawer__link::-webkit-details-marker {
    display: none;
}

.pm-drawer__link > .fa:first-child {
    width: 22px;
    color: var(--pmh-primary);
    font-size: 19px;
    text-align: center;
}

.pm-drawer__link:hover {
    background: var(--pmh-tint);
    color: var(--pmh-primary);
}

.pm-drawer__caret {
    margin-left: auto;
    font-size: 20px;
    transition: transform .2s;
}

.pm-drawer__group[open] .pm-drawer__caret {
    transform: rotate(180deg);
}

.pm-drawer__sub {
    margin: 2px 0 8px 48px !important;
    border-left: 2px solid var(--pmh-tint);
}

.pm-drawer__sub a {
    display: block;
    padding: 10px 14px;
    color: var(--pmh-text);
    font-size: 16px;
    line-height: 1.35;
}

.pm-drawer__sub a:hover {
    color: var(--pmh-primary);
}

.pm-drawer__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px 22px;
    border-top: 1px solid var(--pmh-line);
}

.pm-drawer__foot .pm-header__btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
}

.pm-drawer__foot .pm-drawer__link {
    flex-basis: 100%;
    padding: 12px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .pm-header__bar {
        gap: 20px;
    }

    .pm-header__link {
        padding: 10px 12px;
    }

    .pm-header__account-name {
        display: none;
    }
}

@media (max-width: 991px) {
    .pm-header__nav {
        display: none;
    }

    .pm-header__actions {
        margin-left: auto;
    }

    .pm-header__burger {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .pm-header__bar {
        gap: 12px;
        height: 64px;
    }

    .pm-header__logo img {
        height: 30px;
    }

    .pm-header__actions > .pm-header__btn {
        display: none;
    }

    .pm-header__account {
        padding: 4px;
    }

    .pm-header__account > .fa {
        display: none;
    }

    body.pm-theme .mt-header,
    body.pm-theme .mt-mb-header {
        margin-top: 24px !important;
    }

    body.pm-theme .pageHeader.-type-3 {
        margin-top: 0;
    }
}

@media (max-width: 380px) {
    .pm-header__burger span {
        display: none;
    }
}
