/* ── MONTH CALENDAR ───────────────────────────────────────── */
.dc-calendar {
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* Loading state during AJAX */
.dc-calendar.dc-loading .dc-grid-wrap {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* Header */
.dc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dc-header-title {
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.dc-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d0d7de;
    background: transparent;
    color: #374151;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0;
}
.dc-nav-btn:hover {
    background: #1a3c2e;
    color: #fff;
    border-color: #1a3c2e;
}
/* CSS fallback arrows when no icon is chosen */
.dc-nav-btn.dc-prev:empty::before { content: '←'; }
.dc-nav-btn.dc-next:empty::before { content: '→'; }


.dc-nav-btn svg,
.dc-nav-btn i,
.dc-nav-btn span.eicon,
.dc-nav-btn .elementor-icon {
    pointer-events: none;
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* Grid */
.dc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.dc-grid-wrap {
    position: relative;
    transition: opacity 0.2s;
}

/* Grid lines — opt-in via .dc-has-grid-lines class on .dc-calendar */
.dc-calendar.dc-has-grid-lines .dc-grid {
    gap: 0;
    border-top: 1px solid var(--dc-grid-line-color, #e5e7eb);
    border-left: 1px solid var(--dc-grid-line-color, #e5e7eb);
}
.dc-calendar.dc-has-grid-lines .dc-day,
.dc-calendar.dc-has-grid-lines .dc-weekday,
.dc-calendar.dc-has-grid-lines .dc-empty {
    border-right: 1px solid var(--dc-grid-line-color, #e5e7eb);
    border-bottom: 1px solid var(--dc-grid-line-color, #e5e7eb);
    border-radius: 0;
}

/* Weekday labels */
.dc-weekday {
    text-align: center;
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    padding: 4px 0 8px;
}

/* Day cells */
.dc-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    padding: 6px 4px 4px;
    border-radius: 6px;
    box-sizing: border-box;
}
.dc-day.dc-empty { background: transparent !important; }

.dc-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.88em;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
    z-index: 1;
}
.dc-day-number[href="#"] { pointer-events: none; }

/* Today */
.dc-day.is-today .dc-day-number {
    background: #1a3c2e;
    color: #fff;
    font-weight: 700;
}

/* Event days */
.dc-day.has-events { cursor: pointer; }
.dc-day.has-events .dc-day-number:hover {
    background: rgba(26,60,46,0.12);
}

/* Event dot */
.dc-event-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1a3c2e;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ── TOOLTIP CARD ─────────────────────────────────────────── */
.dc-tooltip-card {
    display: none;
    position: absolute;
    z-index: 9999;
    left: 50%;
    transform: translateX(-50%);
    background: #1a3c2e;
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    text-align: left;
    pointer-events: auto;
}
.dc-day.has-events:hover .dc-tooltip-card,
.dc-day.has-events:focus-within .dc-tooltip-card {
    display: block;
}
.dc-tooltip-event { margin-bottom: 10px; }
.dc-tooltip-event:last-child { margin-bottom: 0; }
.dc-tooltip-event-title {
    display: block;
    font-weight: 700;
    font-size: 0.9em;
    color: #fff;
    text-decoration: none;
    margin-bottom: 3px;
}
.dc-tooltip-event-title:hover { text-decoration: underline; }
.dc-tooltip-event-meta { font-size: 0.78em; color: #a8c5b8; margin-bottom: 3px; }
.dc-tooltip-event-desc { font-size: 0.75em; color: #d4e8e0; line-height: 1.45; }
.dc-tooltip-divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 8px 0; }

/* ── LIST VIEW ────────────────────────────────────────────── */
.dc-list-wrap {
    /* Default to desktop columns, overridden by media queries below */
    --dc-columns-desktop: 1;
    --dc-columns-tablet: 2;
    --dc-columns-mobile: 1;
}

.dc-list {
    display: grid;
    /* Use CSS custom property for desktop columns */
    grid-template-columns: repeat(var(--dc-columns-desktop, 1), 1fr);
    gap: 20px;
}

/* Tablet breakpoint (Elementor default: 768px - 1024px) */
@media (max-width: 1024px) {
    .dc-list {
        grid-template-columns: repeat(var(--dc-columns-tablet, 2), 1fr);
    }
}

/* Mobile breakpoint (Elementor default: below 768px) */
@media (max-width: 767px) {
    .dc-list {
        grid-template-columns: repeat(var(--dc-columns-mobile, 1), 1fr);
    }
}

.dc-list-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* No default shadow — add via Elementor controls */
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
    width: 100%;
}

/* Featured Image — full width at TOP */
.dc-list-image {
    width: 100%;
    flex-shrink: 0;
}
.dc-list-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.dc-image-placeholder {
    width: 100%;
    height: 160px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9em;
    gap: 6px;
}

/* Body below image */
.dc-list-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    flex: 1;
}

/* Date Badge */
.dc-list-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a3c2e;
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 60px;
    flex-shrink: 0;
    text-align: center;
}
.dc-list-date-month {
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a8c5b8;
    line-height: 1;
    margin-bottom: 2px;
}
.dc-list-date-day {
    font-size: 1.8em;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.dc-list-date-time {
    font-size: 0.65em;
    color: #a8c5b8;
    margin-top: 4px;
    line-height: 1.3;
    text-align: center;
}

/* Card content */
.dc-list-content { flex: 1; min-width: 0; }

.dc-list-title { margin: 0 0 8px; font-size: 1.05em; line-height: 1.35; }
.dc-list-title a { color: inherit; text-decoration: none; font-weight: 700; }
.dc-list-title a:hover { text-decoration: underline; }

.dc-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82em;
    color: #6b7280;
    margin-bottom: 5px;
}
.dc-list-meta i,
.dc-list-meta svg,
.dc-meta-icon {
    font-size: 0.9em;
    width: 14px;
    flex-shrink: 0;
    color: #6b7280;
}

.dc-list-desc {
    font-size: 0.85em;
    color: #6b7280;
    margin: 8px 0 0;
    line-height: 1.55;
}

.dc-no-events { color: #9ca3af; font-style: italic; padding: 20px 0; }

/* ── LIST PAGINATION ──────────────────────────────────────── */
.dc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.dc-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    background: #1a3c2e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, opacity 0.2s;
    line-height: 1;
}
.dc-page-btn:hover { background: #2a5c46; color: #fff; }
.dc-page-btn:disabled,
.dc-page-btn.dc-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
.dc-page-btn svg,
.dc-page-btn i {
    font-size: 0.85em;
    line-height: 1;
}
.dc-page-info {
    font-size: 0.85em;
    color: #6b7280;
    white-space: nowrap;
}

/* ── ADD TO CALENDAR BUTTON ───────────────────────────────── */
.dc-add-cal-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
/* Remove Elementor's default block display so wrapper hugs the button */
.elementor-widget-dropin_add_to_calendar {
    display: inline-block;
    width: auto;
}
.dc-add-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a3c2e;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.dc-add-cal-btn:hover { background: #2a5c46; color: #fff; }
.dc-add-cal-btn i, .dc-add-cal-btn svg { font-size: 1em; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .dc-tooltip-card { width: 200px; font-size: 0.88em; }
}
@media (max-width: 480px) {
    .dc-weekday { font-size: 0.6em; letter-spacing: 0; }
    .dc-day { min-height: 36px; padding: 4px 2px; }
    .dc-day-number { width: 26px; height: 26px; font-size: 0.8em; }
    .dc-list-body { gap: 10px; padding: 12px; }
    .dc-list-date-badge { min-width: 50px; padding: 8px; }
    .dc-list-date-day { font-size: 1.5em; }
}

