.calendar-promo-section {
    position: relative;
    margin-bottom: 28px;
}

.calendar-promo-header-row {
    display: flex;
    align-items: center;
    margin: 0 0 12px 0;
    padding: 4px 0;
}

.calendar-promo-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 14px 6px 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #6b7280;
}

.calendar-promo-header i {
    color: #6b7280;
    font-size: 14px;
}

.calendar-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.calendar-promo-grid > * {
    min-width: 0;
}

@media (max-width: 899.98px) {
    .calendar-promo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.calendar-promo-card {
    height: 100%;
    border: none;
    border-radius: 12px;
    background-color: #F0F3F7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-promo-card:hover {
    background-color: #E6EBF2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.calendar-promo-card-body {
    padding: 1rem;
}

.calendar-promo-card-inner {
    display: flex;
    align-items: flex-start;
}

.calendar-promo-avatar-wrap {
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.calendar-promo-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #e5e7eb;
}

.calendar-promo-card-content {
    min-width: 0;
    flex: 1;
}

.calendar-promo-name {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-promo-desc {
    margin: 0.25rem 0 0 0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-promo-stats {
    margin-top: 0.25rem;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    line-height: 1.2;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-promo-stats .calendar-community-events {
    color: #dc3545;
    display: inline;
    margin-top: 0;
}

/* Community map panel: always stack promo cards in the sidebar timeline */
#community-events-list .calendar-promo-grid {
    grid-template-columns: 1fr;
}

#community-events-list .calendar-promo-header-row {
    position: sticky;
    top: 8px;
    z-index: 10;
    margin: 0 0 14px 0;
    padding: 4px 0;
    background: transparent;
}

#community-events-list h2.calendar-promo-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 14px 6px 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: #6b7280;
}

#community-events-list h2.calendar-promo-header span {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    color: inherit;
}

#community-events-list h2.calendar-promo-header i {
    font-size: 14px;
    color: #6b7280;
}

#community-events-list .calendar-promo-header-row .events-date-bullet {
    position: absolute;
    left: calc(var(--timeline-x) - var(--timeline-indent));
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #d1d5db;
    box-sizing: border-box;
    z-index: 11;
    box-shadow: 0 0 0 2px #fff;
}
