/* =============================================================
   Two-panel flyout nav + unified dropdown design
   css/hg-menu-two-panel.css
   ============================================================= */

/* ══════════════════════════════════════════════════════════════
   STANDARD DROPDOWNS  (top-level items with only 2 levels)
   Overrides the plain GoodLayers/Superfish default styles so
   all dropdowns share the same look as the two-panel menu.
   ══════════════════════════════════════════════════════════════ */

/* Dropdown container */
.traveltour-navigation .sf-menu > .traveltour-normal-menu > ul.sub-menu:not(.hg-mp-menu) {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    padding: 8px 0 !important;
    margin-left: 0 !important;
    min-width: 220px;
    border: none;
}
.traveltour-navigation .sf-menu > .traveltour-normal-menu li:first-child{padding-top:0px!important} 

/* Individual items */
.traveltour-navigation .sf-menu > .traveltour-normal-menu > ul.sub-menu:not(.hg-mp-menu) li {
    padding: 0 !important;
}

/* Links */
.traveltour-navigation .sf-menu > .traveltour-normal-menu > ul.sub-menu:not(.hg-mp-menu) li > a {
    display: block;
    padding: 10px 20px !important;
    font-size: 1.8rem !important;
    font-weight: 500;
    color: #3b3020;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s, padding-left 0.12s;
    line-height: 1.3;
    white-space: nowrap;
}

.traveltour-navigation .sf-menu > .traveltour-normal-menu > ul.sub-menu:not(.hg-mp-menu) li > a:hover {
    background: rgba(200, 148, 42, 0.09);
    color: #8b6810 !important;
    text-decoration: none !important;
    padding-left: 26px !important;
}

.traveltour-navigation .sf-menu > .traveltour-normal-menu > ul.sub-menu:not(.hg-mp-menu) li.current-menu-item > a {
    color: #c8942a;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   TWO-PANEL DROPDOWNS  (top-level items with 3 levels)
   ══════════════════════════════════════════════════════════════ */

/* Outer dropdown: remove Superfish min-width, add shared panel styling */
.sf-menu > .traveltour-normal-menu > ul.sub-menu.hg-mp-menu {
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    background: #fff;
    margin-left: 0 !important;
}

/* The single <li> wrapper inside hg-mp-menu */
.sf-menu > .traveltour-normal-menu ul.hg-mp-menu > li.hg-mp-wrapper {
    position: static !important;
    display: block;
    white-space: normal;
    padding: 0;
}

/* Two-column flex row */
.hg-mp-inner {
    display: flex;
    align-items: stretch;
    min-height: 260px;
    padding-top:6px;
}

/* ──────────────────────────────────────────
   Left column  –  depth-1 (2nd level) items
   ────────────────────────────────────────── */

/* Override Superfish's "all nested <ul> are absolute + hidden" */
.sf-menu > .traveltour-normal-menu ul.hg-mp-left {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    min-width: 0 !important;
    z-index: auto !important;
    /* Layout */
    flex: 0 0 220px;
    margin: 0;
    padding: 8px 0;
    border-right: 1px solid rgba(200, 148, 42, 0.15);
    background: #fffdf8;
    list-style: none;
    box-sizing: border-box;
}

.hg-mp-left .hg-mp-item {
    display: block;
    list-style: none;
    position: static !important;
    white-space: nowrap;
}

.hg-mp-left .hg-mp-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    color: #3b3020;
    font-size: 1.8rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s;
    line-height: 1.3;
}

.sf-menu > li > .sub-menu a:hover{background: rgba(200, 148, 42, 0.09)!important;
    color: #8b6810 !important;}

/* Arrow for items that have a right panel */
.hg-mp-left .hg-mp-item.hg-mp-has-sub > a::after {
    content: '›';
    flex-shrink: 0;
    font-size: 1.8rem;
    line-height: 1;
    color: #c8942a;
    opacity: 0.45;
    transition: opacity 0.12s;
}

/* Hover / active */
.hg-mp-left .hg-mp-item:hover > a,
.hg-mp-left .hg-mp-item.hg-mp-active > a {
    background: rgba(200, 148, 42, 0.09);
    color: #8b6810 !important;
    text-decoration: none !important;
}

.hg-mp-left .hg-mp-item.hg-mp-active.hg-mp-has-sub > a::after {
    opacity: 1;
}

/* ──────────────────────────────────────────
   Right column  –  depth-2 (3rd level) panels
   Panel visibility is controlled by JS inline
   styles (display:grid / display:none).
   ────────────────────────────────────────── */
.hg-mp-right {
    flex: 1;
    min-width: 420px;
    padding: 8px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Base panel state – JS sets display:grid on the active one */
.sf-menu > .traveltour-normal-menu ul.hg-mp-panel {
    position: static !important;
    top: auto !important;
    left: auto !important;
    min-width: 0 !important;
    z-index: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
}

.hg-mp-panel > li {
    display: block;
    list-style: none;
    white-space: nowrap;
}

.hg-mp-panel > li > a {
    display: block;
    padding: 10px 20px;
    color: #3b3020;
    font-size: 1.8rem;
    font-weight: 400;
    text-decoration: none !important;
    transition: color 0.12s, padding-left 0.12s;
}

.hg-mp-panel > li > a:hover {
    color: #c8942a !important;
    text-decoration: none !important;
    padding-left: 26px;
}

.hg-mp-panel > li.current-menu-item > a {
    color: #c8942a;
    font-weight: 500;
}

/* ──────────────────────────────────────────
   Mobile guard
   ────────────────────────────────────────── */
@media (max-width: 900px) {
    .hg-mp-inner        { display: block; }
    .hg-mp-left         { flex: none !important; border-right: none !important; }
    .hg-mp-right        { min-width: 0; }
    .sf-menu > .traveltour-normal-menu ul.hg-mp-panel { grid-template-columns: 1fr !important; }
    .hg-mp-left .hg-mp-item.hg-mp-has-sub > a::after { display: none; }
}
