/* =====================================
   LANGUAGE SWITCHER
===================================== */

.language-switcher {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: max-content;
    background: #fff;
    z-index: 99999;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.language-switcher.active {
    min-width: 130px;
}

/* Main Button */

.language-btn {
    width: 100%;
    padding: 10px 10px;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

#selectedLanguage {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-btn i {
    font-size: 11px;
    transition: 0.3s;
}

.language-switcher.active .language-btn i {
    transform: rotate(180deg);
}

/* Dropdown */

.language-dropdown {
    display: none;
    background: #fff;
    width: 100%;
    border-top: 1px solid #eee;
}

.language-switcher.active .language-dropdown {
    display: block;
}

/* Language Options */

.language-dropdown button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: none;
    background: #fff;
    color: #444;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.language-dropdown button:hover {
    background: #f1f3f5;
}

/* Hide active language from list */
.language-dropdown button.is-active {
    display: none;
}

/* Flags */

.language-btn img,
.language-dropdown button img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    display: block;
}


/* =====================================
   GOOGLE MAP ICON
===================================== */

.map-icon {
    position: fixed;
    right: 15px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    background: #012759;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    z-index: 99998;
    transition: 0.3s ease;
}

.map-icon:hover {
    background: #bf9a41;
    color: #fff;
    transform: scale(1.08);
}


/* =====================================
   GOOGLE TRANSLATE OVERRIDE
===================================== */

#google_translate_element,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.goog-tooltip,
.goog-tooltip:hover,
#goog-gt-tt {
    display: none !important;
}

html,
body {
    top: 0 !important;
    position: static !important;
}

/* ===== NEW: fix horizontal scroll after translation ===== */

/* Stop translated (longer) text from creating a horizontal scrollbar.
   "clip" does not break the sticky header the way "hidden" can. */
html {
    overflow-x: hidden;   /* fallback for old browsers */
}

@supports (overflow-x: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* Google adds .translated-ltr to <html> when a page is translated.
   French / Japanese menu labels are longer, so let them fit. */
html.translated-ltr .nav-list {
    gap: 22px;
}

html.translated-ltr .nav-list li > a {
    white-space: normal;
}

html.translated-ltr .header-container {
    width: 90%;
}

html.translated-ltr .footer-flex,
html.translated-ltr .footer-flex-btm {
    flex-wrap: wrap;
}

/* ===== END NEW ===== */

.goog-text-highlight,
font[style*="background-color"] {
    background: transparent !important;
    box-shadow: none !important;
}


/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 576px) {

    .language-switcher.active {
        min-width: 120px;
    }

    .language-btn {
        font-size: 12px;
        padding: 9px 8px;
    }

    .language-dropdown button {
        font-size: 13px;
        padding: 8px;
    }

    .language-btn img,
    .language-dropdown button img {
        width: 18px;
        height: 13px;
    }

    .map-icon {
        width: 40px;
        height: 40px;
        right: 12px;
        bottom: 20px;
        font-size: 18px;
    }

}