/* ============================================
   Enrichery My Location - Nav Menu Item
   Matches the "Learn More" / head-btn style
   ============================================ */

/* The parent menu item — matches head-btn styling */
.eml-menu-item > a {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-family: 'Montserrat', sans-serif !important;
    background: #f5e663 !important;
    padding: 2% 5% !important;
    border-radius: 2px;
    color: #444444 !important;
    font-weight: 600 !important;
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: background 0.25s, color 0.25s;
}

.eml-menu-item > a:hover {
    color: #fff !important;
    background: #444444 !important;
}

.eml-menu-item > a:hover .eml-pin {
    stroke: #fff;
}

/* Pin icon */
.eml-pin {
    display: inline-block;
    vertical-align: middle;
    stroke: #444444;
    transition: stroke 0.25s;
    flex-shrink: 0;
}

/* ---- Sub-menu / dropdown ---- */
.eml-menu-item .eml-sub,
.eml-menu-item ul.sub-menu.eml-sub,
ul.eml-sub {
    display: none;
    position: absolute;
    left: 0;
    right: auto;
    top: 100%;
    min-width: 220px;
    background: #fff !important;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.14) !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    z-index: 99999;
    list-style: none !important;
    border: none !important;
    text-align: left !important;
}

/* Override ALL Elementor sub-menu defaults */
.eml-menu-item .eml-sub,
.eml-menu-item .eml-sub li,
.eml-menu-item .eml-sub ul,
.eml-menu-item .eml-sub * {
    list-style: none !important;
    list-style-type: none !important;
}

.eml-menu-item:hover > .eml-sub,
.eml-menu-item.eml-open > .eml-sub {
    display: block !important;
}

/* Sub-menu items */
.eml-sub-item,
.eml-menu-item .eml-sub > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    text-indent: 0 !important;
}

.eml-sub-item a,
.eml-menu-item .eml-sub > li > a {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 9px 18px !important;
    margin: 0 !important;
    color: #444 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    background: transparent !important;
    text-indent: 0 !important;
}

.eml-sub-item a:hover,
.eml-menu-item .eml-sub > li > a:hover {
    background: #ebebeb !important;
    color: #111111 !important;
}

/* Visit Location item — bold with bottom border */
.eml-visit-item a {
    font-weight: 700 !important;
    color: #1B998C !important;
    border-bottom: 1px solid #ccc;
}

/* Change My Location link */
.eml-change-item a {
    color: #888 !important;
    font-size: 12px !important;
    border-bottom: 1px solid #ccc;
}

.eml-change-item a:hover {
    color: #444 !important;
}

/* Hide Elementor's default sub-menu indicator/arrow on our dropdown */
.eml-menu-item .eml-sub .sub-arrow,
.eml-menu-item .eml-sub .elementor-nav-menu--indicator,
.eml-menu-item .eml-sub::before,
.eml-menu-item .eml-sub::after,
.eml-menu-item .eml-sub li::before,
.eml-menu-item .eml-sub li::after,
.eml-menu-item .eml-sub li::marker {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Location list items — hidden when a location is already saved */
.eml-loc-hidden {
    display: none !important;
}

/* Active / saved location highlight */
.eml-active a {
    color: #1B998C !important;
    font-weight: 700 !important;
}

/* Spacing between Learn More and My Location */
.eml-menu-item {
    margin-left: 15px !important;
}

/* Keep both buttons on the same line — prevent wrapping */
.elementor-nav-menu--layout-horizontal .elementor-nav-menu {
    flex-wrap: nowrap !important;
}

/* Mobile — make sure dropdown is usable */
@media screen and (max-width: 767px) {
    .eml-menu-item .eml-sub {
        position: relative;
        box-shadow: none;
        border-top: 1px solid #eee;
    }
}
