/* ClickUpLocal — Community Events archive styles */

/* Hello Elementor caps .site-main at 1140px on non-Elementor archives.
   Hold the events content area at 1280px and let the hero break out
   edge-to-edge via the calc(50% - 50vw) trick below. */
body.post-type-archive-cul_event .cul-events-main,
body.tax-cul_event_category .cul-events-main {
    max-width: 1280px !important;
    margin-inline-start: auto !important;
    margin-inline-end: auto !important;
    padding: 0 24px;
    box-sizing: border-box;
    width: 100%;
}
body.post-type-archive-cul_event,
body.tax-cul_event_category {
    background: #EEF4FB;
}

/* ── Hero (full-bleed navy band, inner content capped at 1280px) ───────── */
.cul-events-archive-hero {
    background: #1B3A5C;
    color: #ffffff;
    padding: 56px 0 48px;
    margin-top: 0;
    margin-bottom: 32px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
}
.cul-events-archive-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.cul-events-archive-eyebrow {
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #EEF4FB;
    margin: 0 0 12px;
}
.cul-events-archive-headline {
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.4px;
    color: #ffffff;
    margin: 0 0 14px;
}
.cul-events-archive-subhead {
    font-family: var(--cul-font, 'DM Sans', sans-serif);
    font-size: 16px;
    line-height: 1.55;
    color: #EEF4FB;
    max-width: none;
    margin: 0 0 24px;
}
.cul-events-archive-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cul-events-archive-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: #E87722;
    color: #ffffff;
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    line-height: 1;
    transition: background .15s ease, transform .15s ease;
}
.cul-events-archive-btn-primary:hover {
    background: #d16a1a;
    color: #ffffff;
    transform: translateY(-1px);
}
.cul-events-archive-count {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #EEF4FB;
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    line-height: 1;
}
@media (max-width: 600px) {
    .cul-events-archive-hero { padding: 40px 0 36px; }
    .cul-events-archive-headline { font-size: 28px; }
}

/* ── Calendar strip + category filter ───────────────────────────────────── */
.cul-events-cal {
    background: #ffffff;
    border: 0.5px solid #d0dce8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.cul-events-cal-inner { width: 100%; }

.cul-events-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cul-events-cal-month {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.2px;
}
.cul-events-cal-nav {
    display: flex;
    gap: 8px;
}
.cul-events-cal-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #EEF4FB;
    border: 0.5px solid #d0dce8;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.cul-events-cal-arrow:hover { background: #dbe6f3; border-color: #1B3A5C; }
.cul-events-cal-arrow.is-disabled {
    cursor: not-allowed;
    background: #f6f8fb;
    border-color: #e6ecf2;
}
.cul-events-cal-arrow.is-disabled:hover {
    background: #f6f8fb;
    border-color: #e6ecf2;
}

.cul-events-cal-days {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.cul-events-cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 4px 10px;
    background: #EEF4FB;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a2e;
    transition: background .15s ease, color .15s ease;
    position: relative;
    min-height: 76px;
}
.cul-events-cal-day:hover {
    background: #dbe6f3;
    color: #1a1a2e;
}
.cul-events-cal-day.is-today {
    background: #ffffff;
    border: 1.5px solid #1B3A5C;
}
.cul-events-cal-day.is-selected {
    background: #1B3A5C;
    color: #ffffff;
    border: 0;
}
.cul-events-cal-day.is-selected:hover {
    background: #152d47;
    color: #ffffff;
}
.cul-events-cal-dow {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
}
.cul-events-cal-day.is-selected .cul-events-cal-dow { opacity: 0.85; }
.cul-events-cal-num {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}
.cul-events-cal-dots {
    display: inline-flex;
    gap: 3px;
    margin-top: 2px;
    height: 6px;
}
.cul-events-cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #E87722;
    display: inline-block;
}
.cul-events-cal-day.is-selected .cul-events-cal-dot { background: #ffffff; }

.cul-events-cal-day--all { justify-content: center; }
.cul-events-cal-all-label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
}

@media (max-width: 900px) {
    .cul-events-cal-days {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    .cul-events-cal-day {
        flex: 0 0 64px;
        scroll-snap-align: start;
    }
}

.cul-events-cal-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #EEF4FB;
}
.cul-events-cal-filter-label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7a8c;
}
.cul-events-cal-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    user-select: none;
}
.cul-events-cal-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1B3A5C;
    margin: 0;
    cursor: pointer;
}

/* ── Grid ───────────────────────────────────────────────────────────────── */
.cul-events-grid-wrap {
    padding-bottom: 48px;
}
.cul-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .cul-events-grid { grid-template-columns: 1fr; }
}

/* ── Event card ─────────────────────────────────────────────────────────── */
.cul-event-card {
    position: relative;
    display: flex;
    background: #ffffff;
    border: 1px solid #d0dce8;
    border-left: 4px solid #1B3A5C;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cul-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(27, 58, 92, 0.08);
}
/* Stretched-link overlay: whole card → event permalink, while allowing
   the hosting-business name below to remain its own sibling link. */
.cul-event-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
    background: transparent;
}
.cul-event-card-link-overlay:focus-visible {
    outline: 2px solid #1B3A5C;
    outline-offset: -2px;
}

.cul-event-card-date {
    width: 92px;
    flex: 0 0 92px;
    background: #EEF4FB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    gap: 2px;
}
.cul-event-card-dow {
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}
.cul-event-card-day {
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    color: #1B3A5C;
}
.cul-event-card-month {
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1B3A5C;
    line-height: 1;
}

.cul-event-card-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.cul-event-card-pill {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 10px;
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}
.cul-event-card-title {
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: #1B3A5C;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cul-event-card-time,
.cul-event-card-meta {
    font-family: var(--cul-font, 'DM Sans', sans-serif);
    font-size: 13px;
    color: #5a6475;
    margin: 0;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cul-event-card-time-sep,
.cul-event-card-meta-sep {
    margin: 0 6px;
    color: #9aa8bb;
}
.cul-event-card-venue {
    color: #5a6475;
    font-weight: 500;
}
.cul-event-card-recurs {
    color: #E87722;
    font-weight: 600;
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.cul-events-empty {
    background: #ffffff;
    border: 1px solid #d0dce8;
    border-radius: 12px;
    padding: 64px 32px;
    text-align: center;
}
.cul-events-empty h2 {
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 22px;
    font-weight: 600;
    color: #1B3A5C;
    margin: 0 0 8px;
}
.cul-events-empty p {
    font-family: var(--cul-font, 'DM Sans', sans-serif);
    font-size: 15px;
    color: #5a6475;
    margin: 0 0 20px;
}

/* "No events on this day" header above the fallback grid */
.cul-events-empty-day {
    margin-bottom: 20px;
    padding: 4px 0;
}
.cul-events-empty-day h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}
.cul-events-empty-day p {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 15px;
    color: #5a6475;
    margin: 0;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.cul-events-pagination {
    margin-top: 32px;
    text-align: center;
}
.cul-events-pagination .nav-links {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.cul-events-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: var(--cul-font-display, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #1B3A5C;
    text-decoration: none;
    background: transparent;
}
.cul-events-pagination .page-numbers:hover {
    background: #EEF4FB;
}
.cul-events-pagination .page-numbers.current {
    background: #1B3A5C;
    color: #ffffff;
}
.cul-events-pagination .page-numbers.dots {
    background: transparent;
    color: #9aa8bb;
}
