.apt-86386773-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    width: 100%; /* Ensure wrapper is 100% */
}

/* ── Nav Common ── */
.apt-86386773-nav-container {
    position: relative;
    width: 100%;
}

.apt-86386773-nav-container.is-sticky-top {
    position: sticky;
    top: 0; /* Fallback, overridden by Elementor control if set */
    z-index: 99;
}

/* Base admin bar variables handled by calc() in the PHP template widget settings now */

.apt-86386773-nav-container.is-sticky-bottom {
    position: sticky;
    bottom: 0; /* Fallback, overridden by Elementor control if set */
    z-index: 99;
}


.apt-86386773-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apt-86386773-nav-item {
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid transparent;
    transition: color .2s, background-color .2s, border-color .2s;
    user-select: none;
    outline: none;
}

.apt-86386773-nav-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Layout: Horizontal Scroll ── */
.apt-86386773-layout-horizontal .apt-86386773-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    border-bottom: 2px solid #e0e0e0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.apt-86386773-layout-horizontal .apt-86386773-nav::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.apt-86386773-layout-horizontal .apt-86386773-nav-item {
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.apt-86386773-layout-horizontal .apt-86386773-nav-item.is-active {
    font-weight: 600;
    border-bottom-color: #000;
}

/* ── Trigger Button (Dropdown & Popup) ── */
.apt-86386773-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s;
}

/* ── Layout: Dropdown ── */
.apt-86386773-dropdown-wrapper {
    position: relative;
    z-index: 10;
}

.apt-86386773-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    max-height: 300px;
    overflow-y: auto;
}

.apt-86386773-dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.apt-86386773-layout-dropdown .apt-86386773-nav {
    display: block;
}

.apt-86386773-layout-dropdown .apt-86386773-nav-item {
    border-bottom: 1px solid #f5f5f5;
}

.apt-86386773-layout-dropdown .apt-86386773-nav-item:last-child {
    border-bottom: none;
}

.apt-86386773-layout-dropdown .apt-86386773-nav-item.is-active {
    background: #f9f9f9;
    font-weight: 600;
}

/* ── Layout: Popup Modal ── */
.apt-86386773-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.apt-86386773-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.apt-86386773-popup-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: all 0.3s;
}

.apt-86386773-popup-overlay.is-open .apt-86386773-popup-content {
    transform: translateY(0);
}

.apt-86386773-popup-title {
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

.apt-86386773-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    color: #666;
}

.apt-86386773-layout-popup .apt-86386773-nav {
    display: block;
    overflow-y: auto;
    padding: 10px 0;
}

.apt-86386773-layout-popup .apt-86386773-nav-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.apt-86386773-layout-popup .apt-86386773-nav-item.is-active {
    background: #f9f9f9;
    font-weight: 600;
}

/* ── Content ── */
.apt-86386773-content-area {
    min-height: 120px;
    width: 100%; /* Ensure content area is 100% */
    transition: opacity .2s;
}

.apt-86386773-content-area.apt-86386773-is-loading {
    opacity: .4;
    pointer-events: none;
}

/* ── Grid ── */
.apt-86386773-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%; /* Ensure grid is 100% */
}

/* ── Loader dots ── */
.apt-86386773-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 40px 0;
}

.apt-86386773-loading span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .3;
    animation: apt86386773Pulse 1.2s ease-in-out infinite;
}

.apt-86386773-loading span:nth-child(2) { animation-delay: .2s; }
.apt-86386773-loading span:nth-child(3) { animation-delay: .4s; }

@keyframes apt86386773Pulse {
    0%, 80%, 100% { opacity: .3; transform: scale(.8); }
    40%            { opacity: 1;  transform: scale(1); }
}

.apt-86386773-error {
    text-align: center;
    opacity: .6;
    padding: 20px;
}

.apt-86386773-no-results {
    text-align: center;
    opacity: .6;
    padding: 20px;
}
