.naml-events-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Filter ─────────────────────────────────────────────────────────────── */

.naml-filter-wrapper {
    margin-bottom: 24px;
}

#naml-region-filter {
    padding: 9px 38px 9px 16px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    color: #07072D;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2307072D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color .15s;
}
#naml-region-filter:focus {
    outline: none;
    border-color: #FFC500;
}

/* ── Event Cards ─────────────────────────────────────────────────────────── */

.naml-events-list {
    transition: opacity .2s;
}

.naml-event-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(7,7,45,0.05);
    transition: box-shadow .2s, transform .2s;
}
.naml-event-card:hover {
    box-shadow: 0 6px 24px rgba(7,7,45,0.12);
    transform: translateY(-2px);
}

.naml-event-content {
    flex: 1;
    min-width: 0;
}

.naml-event-title {
    font-size: 20px;
    font-weight: 700;
    color: #07072D;
    margin: 0 0 8px;
    line-height: 1.3;
}
.naml-event-title a {
    color: #07072D;
    text-decoration: none;
}
.naml-event-title a:hover {
    color: #6699CC;
}

.naml-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.naml-event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #555;
}
.naml-event-meta-item svg {
    color: #AA8E6F;
    flex-shrink: 0;
}

.naml-event-excerpt {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.naml-event-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.naml-pill {
    display: inline-flex;
    align-items: center;
    background: #D3E5EF;
    color: #07072D;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Action Button ───────────────────────────────────────────────────────── */

.naml-event-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.naml-event-btn {
    display: inline-flex;
    align-items: center;
    background: #FFC500;
    color: #07072D;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}
.naml-event-btn:hover {
    opacity: .88;
    color: #07072D;
}

/* ── Loader ──────────────────────────────────────────────────────────────── */

#naml-events-loader {
    display: none;
    text-align: center;
    padding: 16px;
    font-size: 15px;
    color: #888;
}

/* ── Load More ───────────────────────────────────────────────────────────── */

.naml-load-more-wrapper {
    text-align: center;
    margin-top: 24px;
}
.naml-load-more-button {
    background: transparent;
    color: #07072D;
    border: 2px solid #FFC500;
    padding: 11px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.naml-load-more-button:hover {
    background: #FFC500;
    color: #07072D;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .naml-event-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .naml-event-action {
        width: 100%;
    }
    .naml-event-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Empty State ─────────────────────────────────────────────────────────── */

.naml-no-events {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 17px;
}

/* ═══ Full-page list view ([naml_events_full]) ═══════════════════════════════ */

.naml-full-events-container {
    /*max-width: 1100px;*/
    margin: 0 auto;
}

.naml-full-events{
    margin-top:48px;
}

.naml-events-loader {
    display: none;
    text-align: center;
    padding: 16px;
    font-size: 15px;
    color: #888;
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */

.naml-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(7,7,45,0.06);
    box-sizing: border-box;
}

.naml-fb-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 6px;
}

/* Search */
.naml-fb-search {
    flex: 1 1 200px;
    min-width: 150px;
}
.naml-fb-search-field {
    position: relative;
}
.naml-fb-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa2ad;
    pointer-events: none;
}
.naml-fb-search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: #07072D;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.naml-fb-search-input::placeholder { color: #9aa2ad; }
.naml-fb-search-input:focus {
    outline: none;
    border-color: #FFC500;
    box-shadow: 0 0 0 3px rgba(255,197,0,0.2);
}

/* Group + dividers */
.naml-fb-group {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    padding-left: 16px;
}
.naml-fb-group::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: #E5E7EB;
}
.naml-fb-controls-row {
    display: flex;
    gap: 10px;
}

/* Segmented status control */
.naml-fb-segmented {
    display: inline-flex;
    height: 40px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 3px;
    background: #fff;
}
.naml-fb-seg-btn {
    border: none;
    background: transparent;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #07072D;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.naml-fb-seg-btn.is-active {
    background: #FFC500;
    color: #07072D;
}

/* Selects + date button share the control look */
.naml-fb-select {
    box-sizing: border-box;
    height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    color: #07072D;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2307072D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color .15s, box-shadow .15s;
}
.naml-fb-select:focus {
    outline: none;
    border-color: #FFC500;
    box-shadow: 0 0 0 3px rgba(255,197,0,0.2);
}

/* Date preset dropdown */
.naml-fb-date { position: relative; }
.naml-fb-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.naml-fb-date-btn svg { color: #6B7280; flex-shrink: 0; }

.naml-fb-date-pop {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    padding: 8px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(7,7,45,0.16);
}
.naml-fb-date-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #07072D;
    cursor: pointer;
}
.naml-fb-date-opt:hover { background: #F9F3ED; }
.naml-fb-date-opt input { accent-color: #6699CC; margin: 0; }

.naml-fb-custom {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.naml-fb-custom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6B7280;
}
.naml-fb-custom-row input {
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    color: #07072D;
}
.naml-fb-apply {
    width: 100%;
    border: none;
    background: #6699CC;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 9px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .15s;
}
.naml-fb-apply:hover { opacity: .9; }

/* Reset */
.naml-fb-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #6699CC;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px 8px;
}
.naml-fb-reset:hover { text-decoration: underline; }
.naml-fb-reset svg { flex-shrink: 0; }

/* ── Active filter chips ─────────────────────────────────────────────────── */

.naml-fb-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 4px;
}
.naml-fb-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D3E5EF;
    color: #07072D;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 16px;
}
.naml-fb-chip-x {
    border: none;
    background: transparent;
    color: #5b6b7a;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.naml-fb-chip-x:hover { color: #07072D; }
.naml-fb-clear-all {
    border: none;
    background: transparent;
    color: #6699CC;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
}
.naml-fb-clear-all:hover { text-decoration: underline; }

/* ── Filter bar responsive ───────────────────────────────────────────────── */

/* Tablet: search full width on top; then Status; then Region+Category; then Date+Sort */
@media (max-width: 1024px) {
    .naml-filterbar {
        flex-wrap: wrap;
        align-items: stretch;
    }
    .naml-fb-search { flex: 1 1 100%; }
    .naml-fb-group,
    .naml-fb-reset { padding-left: 0; }
    .naml-fb-group::before { display: none; }
    .naml-fb-group--status { flex: 1 1 100%; }
    .naml-fb-group--filters { flex: 1 1 100%; }
    .naml-fb-group--sort { flex: 1 1 auto; }
    .naml-fb-controls-row { flex-wrap: wrap; }
    .naml-fb-controls-row > * { flex: 1 1 45%; }
    .naml-fb-reset { align-self: center; }
}

/* Mobile: everything stacked — Status, Region, Category, Date, Sort */
@media (max-width: 767px) {
    .naml-filterbar {
        flex-direction: column;
        gap: 14px;
    }
    .naml-fb-group { width: 100%; }
    .naml-fb-segmented { width: 100%; }
    .naml-fb-seg-btn { flex: 1 1 50%; }
    .naml-fb-controls-row { flex-direction: column; }
    /* Don't set flex-basis on the main (vertical) axis — it would override the
       40px height and collapse the selects. Keep natural height, full width. */
    .naml-fb-controls-row > * { flex: 0 0 auto; }
    .naml-fb-select,
    .naml-fb-date { width: 100%; }
    .naml-fb-date-btn { width: 100%; justify-content: flex-start; }
    .naml-fb-date-pop { left: 0; right: auto; width: 100%; }
    .naml-fb-reset { justify-content: center; }
}

/* ── Month group ─────────────────────────────────────────────────────────── */

.naml-full-month {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #07072D;
    margin: 36px 0 8px;
}
.naml-full-month::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}
.naml-full-month-group:first-child .naml-full-month {
    margin-top: 0;
}

/* ── Event row ───────────────────────────────────────────────────────────── */

.naml-full-event {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid #eee;
}
.naml-full-list .naml-full-event:last-child {
    border-bottom: none;
}

/* Date block */
.naml-full-date {
    flex: 0 0 52px;
    text-align: center;
    padding-top: 4px;
}
.naml-full-dow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    color: #888;
    text-transform: uppercase;
}
.naml-full-day {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: #07072D;
}

/* Body */
.naml-full-body {
    flex: 1 1 auto;
    min-width: 0;
}
.naml-full-daterange {
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
}
.naml-full-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
    color: #07072D;
}
.naml-full-title a {
    color: #07072D;
    text-decoration: none;
}
.naml-full-title a:hover {
    color: #6699CC;
}
.naml-full-venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}
.naml-full-venue svg {
    color: #AA8E6F;
    flex-shrink: 0;
}
.naml-full-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category / tag pills */
.naml-full-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.naml-pill--tag {
    background: transparent;
    border: 1px solid #D3E5EF;
    color: #5b6b7a;
}

/* Thumbnail */
.naml-full-thumb {
    flex: 0 0 300px;
    display: block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
}
.naml-full-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 782px) {
    .naml-full-event {
        flex-wrap: wrap;
        gap: 16px 20px;
    }
    .naml-full-thumb {
        flex: 1 1 100%;
        order: 3;
    }
    .naml-full-thumb img {
        aspect-ratio: 16 / 9;
    }
    .naml-full-title {
        font-size: 22px;
    }
}
