/*

 Theme Name:  Randevu Plovdiv

 Theme URI:    https://randevu-plovdiv.bg

 Description:  Child Theme for Divi

 Author:       AN Digital Studio

 Author URI:   https://andigital.bg

 Template:     Divi

 Version:      1.0.0

*/
/*****Add any custom CSS below this line*****/

/* Translate press menu item*/
/* --- DESKTOP ONLY targeting --- */
@media (min-width: 981px) {
    /* ✅ Divi switches to hamburger under 980px, so this excludes mobile */
    /* FIX: force submenu alignment to the right, not center */
    .trp-language-switcher-container ul.sub-menu {
        right: 0 !important;
        transform: none !important;
        min-width: 0 !important;
        width: 80px !important;
        text-align: left !important;
        position: absolute !important;
    }

    .et_pb_menu .nav li.trp-language-switcher-container ul.sub-menu {
        background: transparent !important;
        padding: 0px;
    }

    /* FIX: remove ALL white backgrounds and shadows */
    .trp-language-switcher-container ul.sub-menu,
    .trp-language-switcher-container .sub-menu li,
    .trp-language-switcher-container .sub-menu li a {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Fix spacing + flag alignment */
    .trp-language-switcher-container .sub-menu li a {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 5px 8px !important;
    }

    /* Fix flag size */
    .trp-language-switcher-container .trp-flag-image {
        width: 20px !important;
        height: 14px !important;
        border-radius: 3px !important;
        object-fit: cover !important;
    }

    /* Hide Divi default arrow */
    .trp-language-switcher-container.menu-item-has-children>a:after {
        display: none !important;
    }

    /* Optional small arrow */
    .trp-language-switcher-container>a .trp-menu-ls-label:after {
        content: "▾";
        font-size: 12px;
        margin-left: 2px;
        opacity: 0.6;
    }
}

/* 1. FORCE HIDE THE CUSTOM HAMBURGER ICON */
/* We use !important to override the plugin styles */
.text-only-burger .mobile_menu_bar .dipi_hamburger,
.text-only-burger .mobile_menu_bar .hamburger-box,
.text-only-burger .mobile_menu_bar .hamburger-inner,
.text-only-burger .mobile_menu_bar::before {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 2. STYLE THE CONTAINER AS A BUTTON */

.text-only-burger .mobile_menu_bar {
    position: relative;
    display: inline-block !important;
    /* Shrink to fit text */
    width: auto !important;
    padding: 12px 25px;
    border-radius: 5px;
    margin: 0 auto;
    /* Centers the button */
    float: none !important;
    /* Removes default left/right float */
    cursor: pointer;
}

/* 3. ADD THE TEXT "РЕЗЕРВИРАЙ МАСА" */

.text-only-burger .mobile_menu_bar::after {
    /* Text with Down Arrow */
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    line-height: 1.2em;
    display: block;
}

/* Bulgarian Text */
html[lang*="bg"] .text-only-burger .mobile_menu_bar::after {
    content: "Резервирай маса \25BC";
}

/* English Text */
html[lang*="en"] .text-only-burger .mobile_menu_bar::after {
    content: "Book a Table \25BC";
}

/* 4. OPTIONAL: CLEAN UP THE DROPDOWN LIST */
/* This hides the top "Резервирай маса" text INSIDE the list so you don't see it twice */
.text-only-burger .et_mobile_menu>li:first-child>a {
    display: none;
}

/* 5. FORCE SUBMENU OPEN (If necessary) */
/* Ensures the phone numbers show immediately when you click the button */
.text-only-burger .et_mobile_menu .sub-menu {
    display: block !important;
    visibility: visible !important;
    padding-left: 0 !important;

}

.ketaring-images .dipi-image-wrap img {
    width: 100% !important;
    height: 450px !important;
    object-fit: cover !important;
}

.home-page-images .dipi-image-wrap img {
    width: 100% !important;
    height: 420px !important;
    object-fit: cover !important;
}