/* =========================================================
   KHK TOURS — top contact bar
   Slim strip above the main header: phone/email on the left,
   language switcher on the right.
   ========================================================= */

.khk-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(90deg, #023213, #0a5a29);
    color: #ffffff;
    padding: 8px 24px;
    font-size: 13px;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    transition: transform 0.3s ease;
}

.khk-topbar.khk-topbar-hidden {
    transform: translateY(-100%);
}

.header--sec1,
.header--sec2,
.header--sec3 {
    top: 40px !important;
    transition: top 0.3s ease;
}

body.khk-topbar-hidden .header--sec1,
body.khk-topbar-hidden .header--sec2,
body.khk-topbar-hidden .header--sec3 {
    top: 0 !important;
}

@media (max-width: 700px) {
    .header--sec1,
    .header--sec2,
    .header--sec3 {
        top: 34px !important;
    }

    body.khk-topbar-hidden .header--sec1,
    body.khk-topbar-hidden .header--sec2,
    body.khk-topbar-hidden .header--sec3 {
        top: 0 !important;
    }
}

.khk-topbar-contacts {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.khk-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.khk-topbar-item:hover {
    text-decoration: underline;
}

.khk-topbar-flag {
    font-size: 14px;
}

.khk-topbar-sep {
    opacity: 0.4;
}

.khk-topbar-lang .khk-lang-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 13px;
}

.khk-topbar-lang .khk-lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 700px) {
    .khk-topbar {
        padding: 6px 12px;
        font-size: 12px;
    }

    .khk-topbar-item span:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .khk-topbar-sep {
        display: none;
    }
}

/* =========================================================
   KHK TOURS — language switcher styling
   Works inside header--sec1 (desktop), header--sec3 (tablet)
   and header--sec2 (mobile) layouts.
   ========================================================= */

.khk-lang-switch {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

.khk-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: inherit;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.khk-lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.khk-lang-flag {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1;
}

.khk-lang-flag svg {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    display: block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.khk-lang-caret {
    font-size: 12px;
    margin-left: 2px;
    opacity: 0.8;
}

.khk-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 6px;
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 2001;
}

.khk-lang-menu.open {
    display: flex;
}

.khk-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    text-align: left;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #2b2b2b;
    cursor: pointer;
    transition: background 0.15s ease;
}

.khk-lang-item:hover {
    background: #f2f2f2;
}

.khk-lang-item.active {
    background: #eef6ee;
    color: #1a7a3c;
    font-weight: 700;
}

.khk-lang-item .khk-lang-flag {
    font-size: 17px;
}

/* ---- Desktop header (large screen) ---- */
.header--sec1 .khk-lang-switch {
    margin-left: 18px;
}

/* ---- Tablet header ---- */
.header--sec3 .khk-lang-switch {
    margin-left: 12px;
}

/* ---- Mobile header ---- */
.header--sec2 .khk-lang-switch {
    margin: 10px auto 4px;
}

.header--sec2 .khk-lang-btn {
    background: rgba(0, 0, 0, 0.06);
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.15);
    width: 100%;
    justify-content: center;
}

.header--sec2 .khk-lang-menu {
    left: 0;
    right: 0;
    width: 100%;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 1200px) {
    .khk-lang-btn .khk-lang-name {
        display: none;
    }

    .khk-lang-btn {
        padding: 8px;
    }

    .khk-lang-btn .khk-lang-caret {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .header--sec3 .khk-lang-btn .khk-lang-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .khk-lang-menu {
        min-width: 140px;
    }
}
