/* Language Switcher Custom Styles */

/* Hide Google Translate original UI elements & top banner popups */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight,
.VIpgJd-yDnbfe-BNfsl-i5W1Bu,
.VIpgJd-yDnbfe-e222ad,
.VIpgJd-yDnbfe-O34t2b,
.VIpgJd-yDnbfe-pt7Wfc,
iframe[id^=":"][id$=".container"],
iframe[src*="translate.google"],
iframe[id*="goog"],
body > .skiptranslate,
div.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    max-height: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    pointer-events: none !important;
}

body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

html {
    top: 0px !important;
    position: static !important;
}

.goog-tooltip, 
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#google_translate_element {
    display: none !important;
}

/* Custom Flag Dropdown Menu */
.lang-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none !important;
}

.lang-switcher-btn:hover,
.lang-switcher-btn:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: #01d28e;
    color: #01d28e !important;
    box-shadow: 0 4px 12px rgba(1, 210, 142, 0.2);
}

.lang-flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    vertical-align: middle;
}

.lang-dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    margin-top: 8px;
    animation: fadeInDown 0.2s ease;
    background: #ffffff;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: #333333;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.lang-dropdown-item:hover,
.lang-dropdown-item.active {
    background-color: #f0fdf4;
    color: #01d28e;
}

.lang-dropdown-item.active {
    font-weight: 700;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Guarantee visibility & standard layout for all carousel items & cards */
.owl-carousel .ftco-animate,
.owl-carousel .car-wrap,
.owl-carousel .testimony-wrap,
.owl-carousel .item,
.carousel-car .item,
.carousel-car .car-wrap {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Footer Social Icons Font Awesome Alignment */
.ftco-footer-social li a i {
    position: absolute;
    font-size: 20px;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #ffffff;
}

/* Card Responsive Action Buttons Alignment */
.car-card-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.car-card-actions .btn-card-action {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 8px 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.2 !important;
    transition: all 0.25s ease !important;
    text-transform: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06) !important;
}

.car-card-actions .btn-card-action i {
    font-size: 13px !important;
}

.car-card-actions .btn-card-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 576px) {
    .car-card-actions {
        gap: 4px !important;
    }

    .car-card-actions .btn-card-action {
        font-size: 11px !important;
        padding: 7px 2px !important;
    }

    .car-card-actions .btn-card-action i {
        font-size: 11px !important;
    }
}