/* Penempatan di sisi kanan header menu Cianjur Journey */
li.tcj-menu-item {
    display: inline-flex !important;
    align-items: center;
    margin-left: auto;
    padding-left: 12px;
    position: relative;
    list-style: none;
}

.tcj-translator-wrapper {
    position: relative;
    display: inline-block;
    font-family: inherit;
    z-index: 9999;
}

/* Tombol dropdown sederhana */
.tcj-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.tcj-dropdown-toggle:hover,
.tcj-dropdown-toggle:focus {
    border-color: #0f766e;
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.12);
    outline: none;
}

.tcj-current-flag,
.tcj-option-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.tcj-current-flag svg,
.tcj-option-flag svg {
    border-radius: 2px;
    display: block;
}

.tcj-chevron {
    transition: transform 0.2s ease;
    color: #64748b;
}

.tcj-translator-wrapper.is-open .tcj-chevron {
    transform: rotate(180deg);
}

/* Daftar opsi dropdown */
.tcj-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 165px;
    max-height: 310px;
    overflow-y: auto;
    margin: 0;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    list-style: none;
    display: none;
    z-index: 10000;
}

.tcj-translator-wrapper.is-open .tcj-dropdown-menu {
    display: block;
}

.tcj-dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tcj-lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 5px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tcj-lang-option:hover {
    background-color: #f1f5f9;
}

.tcj-lang-option.is-active {
    background-color: #f0fdfa;
    color: #0f766e;
    font-weight: 600;
}

/* Sembunyikan bilah atas bawaan Google Translate agar header tetap rapi */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
body > .skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    li.tcj-menu-item {
        margin-left: 0;
        padding-left: 0;
        margin-top: 8px;
    }

    .tcj-dropdown-menu {
        right: auto;
        left: 0;
    }
}