/* =============================================================
   CP Localized Nav Menu — Base Structural CSS
   Loaded automatically by Elementor when the widget is used.
   Elementor Style tab controls (color, typography, gap)
   layer on top of these base rules.
   ============================================================= */

/* ── Outer nav wrapper ── */
.cp-nav-menu {
    display: block;
}

/* ── The <ul> list ── */
.cp-nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* ── Layout variants ── */
.cp-nav-horizontal {
    flex-direction: row;
}

.cp-nav-vertical {
    flex-direction: column;
    align-items: flex-start;
}

/* ── Each <li> item ── */
.cp-menu-item {
    position: relative;
    list-style: none;
}

/* ── Each <a> link ── */
.cp-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease;
}

/* ── Dropdown arrow ── */
.cp-nav-arrow {
    font-size: 9px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s ease;
}

.cp-menu-item-has-children:hover > .cp-nav-link .cp-nav-arrow {
    transform: rotate(180deg);
}

/* ── Active page item ── */
.cp-menu-item-active > .cp-nav-link {
    font-weight: 700;
}

/* ── Submenu ── */
.cp-sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    z-index: 9999;
}

/* Show submenu on hover */
.cp-menu-item-has-children:hover > .cp-sub-menu {
    display: block;
    animation: cpNavFadeIn 0.15s ease;
}

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

/* Submenu items */
.cp-sub-menu .cp-menu-item {
    display: block;
    width: 100%;
}

.cp-sub-menu .cp-nav-link {
    display: flex;
    padding: 9px 16px;
    color: #333333;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.cp-sub-menu .cp-menu-item:last-child .cp-nav-link {
    border-bottom: none;
}

.cp-sub-menu .cp-nav-link:hover {
    background: #f5f7fa;
    color: #0073aa;
}

/* ── Editor placeholder ── */
.cp-nav-placeholder {
    padding: 10px 14px;
    border: 1px dashed #e0a800;
    background: #fffbea;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
    font-family: sans-serif;
}
