/*
Theme Name:  Listeo ChildTheme
Theme URI: http://listeo.pro
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: Directory WordPress Theme by Purethemes
Version: 1.0
License: ThemeForest
License URI: http://themeforest.net/licenses
Text Domain: listeo
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template:  listeo
*/



/* -------------------------------
   Make the "Bookings" submenu always open
   Paste this at the end of your theme (child) style.css
   ------------------------------- */

/* 1) Preferential: target the <li> that contains the Bookings icon (fa-calendar-check).
   Uses :has() — supported in modern Chrome/Edge/Safari/Firefox versions.
*/
li:has(> a > i.fa-calendar-check) > ul,
nav li:has(> a > i.fa-calendar-check) > ul,
.sidebar li:has(> a > i.fa-calendar-check) > ul {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
}

/* optional: hide any caret/arrow on that parent link (uncomment if your theme shows an arrow)
li:has(> a > i.fa-calendar-check) > a:after {
    display: none !important;
}
*/

/* optional: prevent the parent "Bookings" anchor from collapsing the menu when clicked
   (uncomment if you want to disable the parent link)
li:has(> a > i.fa-calendar-check) > a {
    pointer-events: none !important;
    cursor: default !important;
}
*/

/* ===========================================================
   2) FALLBACK (uncomment if the :has() block above does NOT work)
   This will force all submenus (every li > ul) to be always open.
   Use only if you can't target Bookings specifically.
   =========================================================== */

/*
li > ul,
nav li > ul,
.sidebar li > ul,
.main-navigation li > ul,
.user-menu li > ul {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    -webkit-transform: none !important;
    transition: none !important;
}
*/

/* Small tweak: if the theme hides children with height/max-height animations, force them open */
li > ul[style] {
    height: auto !important;
    max-height: none !important;
}

