/* Tipushaz nav menü */
.tipushaz-nav {
    width: 100%;
    background: transparent;
       font-family: "Poppins", Sans-serif;
    position: relative;
    z-index: 100;
    transition: background .35s ease, box-shadow .35s ease;
}

.tipushaz-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease;
}

.tipushaz-nav.is-sticky.is-scrolled {
    background: #11b981;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Helykitöltő, hogy a tartalom ne ugorjon a fixed nav alá */
.tipushaz-nav-spacer {
    width: 100%;
    /* magasságot JS állítja a nav tényleges magasságához */
}

.tipushaz-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 14px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: padding .25s ease;
}

.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-inner {
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Logo */
.tipushaz-nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    position: relative;
}

.tipushaz-nav-logo-img {
    display: block;
    width: 170px;
    height: auto;
    transition: width .25s ease, opacity .35s ease;
}

/* Default és sticky logo egymásra rakva (a szülő .tipushaz-nav-logo relatív) */
.tipushaz-nav-logo-img--default {
    position: relative;
    z-index: 2;
}
.tipushaz-nav-logo-img--sticky {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-logo-img--default {
    opacity: 0;
}
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-logo-img--sticky {
    opacity: 1;
}

.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-logo-img {
    width: 120px;
}

.tipushaz-nav-logo-szoveg {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: color .35s ease;
}
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-logo-szoveg {
    color: #fff;
}

/* Desktop menü – kettéosztva (bal / jobb a logo két oldalán) */
.tipushaz-nav-desktop {
    display: flex;
    min-width: 0;
}

.tipushaz-nav-desktop--left {
    flex: 1 1 0;
    justify-content: flex-end;
}

.tipushaz-nav-desktop--right {
    flex: 0 0 auto;
    justify-content: flex-start;
}

.tipushaz-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.tipushaz-nav-menu li {
    position: relative;
}

.tipushaz-nav-menu a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
        letter-spacing: -0.2px;
    font-size: 0.98rem;
    border-radius: 6px;
    transition: background .2s ease, color .35s ease;
}

.tipushaz-nav-menu a:hover,
.tipushaz-nav-menu .current-menu-item > a,
.tipushaz-nav-menu .current_page_item > a {
    color: #c5a56f;
    font-weight: 500;
    border: 1px solid #c5a56f;
}

/* Sticky scrolled állapotban fehér menüszöveg */
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-menu a {
    color: #fff;
}
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-menu a:hover,
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-menu .current-menu-item > a,
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-menu .current_page_item > a {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Almenük (desktop dropdown) */
.tipushaz-nav-menu .sub-menu {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.tipushaz-nav-menu li:hover > .sub-menu,
.tipushaz-nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tipushaz-nav-menu .sub-menu a {
    border-radius: 0;
    padding: 8px 16px;
}

/* CTA gomb */
.tipushaz-nav-cta {
    flex: 0 0 auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Polylang nyelvváltó */
.tipushaz-nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tipushaz-nav-lang-item {
    display: inline-block;
    padding: 4px 2px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: color .25s ease, opacity .25s ease;
}

.tipushaz-nav-lang-item.is-active {
    font-weight: 700;
    color: #ffffff;
}

.tipushaz-nav-lang-item:hover,
.tipushaz-nav-lang-item:focus {
    color: #11b981;
    text-decoration: none;
}

.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-lang-item {
    color: #fff;
}
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-lang-item:hover,
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-lang-item:focus {
    color: #fff;
    opacity: 0.8;
}
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-lang-item.is-active {
    color: #fff;
}

/* Off-canvas nyelvváltó */
.tipushaz-nav-offcanvas-lang {
    padding: 14px 22px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

.tipushaz-nav-offcanvas-lang .tipushaz-nav-lang {
    gap: 14px;
}

.tipushaz-nav-offcanvas-lang .tipushaz-nav-lang-item {
    font-size: 15px;
}

.tipushaz-nav-gomb {
    display: inline-block;
    padding: 11px 20px;
    background: #343935;
    border: 1px solid #343935;
    color: #EDEAE5 !important;
    text-decoration: none;
        font-family: "Poppins", Sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: background .35s ease, color .35s ease, border-color .35s ease, transform .15s ease, padding .25s ease, font-size .25s ease;
}

.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-cta .tipushaz-nav-gomb {
    padding: 8px 14px;
    font-size: 13px;
    background: #fff;
    border-color: #fff;
    color: #11b981 !important;
}
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-cta .tipushaz-nav-gomb:hover,
.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-cta .tipushaz-nav-gomb:focus {
    background: transparent;
    border-color: #fff;
    color: #fff !important;
}

.tipushaz-nav-gomb:hover,
.tipushaz-nav-gomb:focus {
    background: transparent;
        border: 1px solid #11b981;
    color: #11b981 !important;
    text-decoration: none;
}

/* Hamburger */
.tipushaz-nav-hamburger {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.tipushaz-nav-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease, background .35s ease;
}

.tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-hamburger span {
    background: #fff;
}

/* Off-canvas */
.tipushaz-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 998;
}

.tipushaz-nav-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.tipushaz-nav.is-open .tipushaz-nav-overlay {
    opacity: 1;
    visibility: visible;
}

.tipushaz-nav.is-open .tipushaz-nav-offcanvas {
    transform: translateX(0);
}

.tipushaz-nav-offcanvas-fejlec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.tipushaz-nav-bezar {
    background: transparent;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0 6px;
}

.tipushaz-nav-mobil {
    flex: 1;
    padding: 12px 0;
}

.tipushaz-nav-mobil .tipushaz-nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.tipushaz-nav-mobil .tipushaz-nav-menu a {
    border-radius: 0;
    padding: 14px 22px;
    border-bottom: 1px solid #f3f4f6;
}

.tipushaz-nav-mobil .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f8fafc;
    padding: 0;
    border-radius: 0;
    min-width: 0;
}

.tipushaz-nav-mobil .sub-menu a {
    padding-left: 38px;
    font-size: 0.95rem;
}

.tipushaz-nav-offcanvas-cta {
    padding: 18px 22px;
    border-top: 1px solid #eee;
}

.tipushaz-nav-offcanvas-cta .tipushaz-nav-gomb {
    display: block;
    text-align: center;
    width: 100%;
}

/* Reszponzív kapcsolás */
@media (max-width: 992px) {
    .tipushaz-nav-desktop,
    .tipushaz-nav-cta {
        display: none;
    }
    .tipushaz-nav-hamburger {
        display: flex;
    }
}

/* Body scroll lezárás amikor nyitva az off-canvas */
body.tipushaz-nav-open {
    overflow: hidden;
}


@media (max-width: 767px) {
    .tipushaz-nav.is-sticky.is-scrolled .tipushaz-nav-inner {
    padding: 5px 15px;
}
}