/* ============================================================
   Brown County Events Calendar v2.1
   ============================================================ */

/* ── Event rows ── */
.bc-events-rows { width: 100%; }

.bc-event-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #ede5db;
    align-items: start;
}
.bc-event-row:last-child  { border-bottom: none; padding-bottom: 4px; }
.bc-event-row:first-child { padding-top: 8px; }

/* ── Date badge ── */
.bc-event-date-badge { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 3px; }
.bc-date-num   { font-size: 1.55em; font-weight: 700; line-height: 1; color: #2a1a0a; }
.bc-date-month { font-size: 0.72em; color: #6b5a48; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.bc-date-year  { font-size: 0.68em; color: #9b8a78; margin-top: 1px; }

/* ── Event details ── */
.bc-event-main { min-width: 0; }
.bc-event-name-wrap { margin-bottom: 3px; }
a.bc-event-name   { font-weight: 700; font-size: 1em; color: #8b4513; text-decoration: none; line-height: 1.4; }
a.bc-event-name:hover { text-decoration: underline; color: #6b3410; }
span.bc-event-name { font-weight: 700; font-size: 1em; color: #2a1a0a; line-height: 1.4; }
.bc-event-time-inline { font-size: 0.88em; font-weight: 600; color: #5a4a3a; margin-bottom: 5px; }
.bc-event-desc { margin: 0 0 6px; font-size: 0.9em; color: #5a4a3a; line-height: 1.55; }
.bc-event-location-row { font-size: 0.88em; margin-top: 4px; }
.bc-location-label { font-weight: 700; font-style: italic; color: #3a2a1a; }
a.bc-event-location-link { font-weight: 700; font-style: italic; color: #8b4513; text-decoration: none; }
a.bc-event-location-link:hover { text-decoration: underline; }
span.bc-event-location-text { font-weight: 700; font-style: italic; color: #3a2a1a; }

/* ── Tag badges ── */
.bc-event-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.bc-tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 0.75em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.bc-tag--free            { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.bc-tag--featured-event  { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }

/* ── No events ── */
.bc-no-events { padding: 16px 0; color: #6b5a48; font-style: italic; font-size: 0.95em; }

/* ── Day group headers (flat mode) ── */
.bc-day-group-header { font-weight: 700; color: #fff; background: #5c2d0a; padding: 8px 14px; margin-top: 16px; border-radius: 4px; }
.bc-day-group-header:first-child { margin-top: 0; }

/* ── Day accordion wrappers ── */
.bc-events-accordion-wrap { width: 100%; }
.bc-events-accordion-days { width: 100%; }

.bc-day-accordion-wrap { margin-bottom: 6px; border-radius: 4px; overflow: hidden; border: 1px solid #e0d5c8; }

.bc-day-acc-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f2ece4; cursor: pointer; user-select: none; transition: background 0.15s; }
.bc-day-acc-header:hover { background: #e8ddd0; }
.bc-day-accordion-wrap.bc-day-acc-open .bc-day-acc-header { background: #5c2d0a; }
.bc-day-accordion-wrap.bc-day-acc-open .bc-day-acc-title  { color: #fff; }
.bc-day-accordion-wrap.bc-day-acc-open .bc-day-acc-icon   { color: rgba(255,255,255,0.8); }

.bc-day-acc-title { font-weight: 700; font-size: 0.97em; color: #2a1a0a; flex: 1; }
.bc-day-acc-today { font-size: 0.72em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: #8b4513; color: #fff; padding: 2px 8px; border-radius: 20px; }
.bc-day-accordion-wrap.bc-day-acc-open .bc-day-acc-today { background: rgba(255,255,255,0.25); }
.bc-day-acc-icon  { font-size: 1.1em; color: #6b5a48; min-width: 16px; text-align: center; }

.bc-day-acc-body { background: #fff; padding: 0 4px; }
.bc-day-acc-body .bc-event-row:first-child { padding-top: 12px; }

/* ── Weekly filter ── */
.bc-acc-filter { margin-bottom: 10px; padding: 10px 12px; background: #f9f5f0; border: 1px solid #e0d5c8; border-radius: 6px; }
.bc-acc-filter-row { margin-bottom: 8px; }
.bc-acc-filter-toggles { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

/* Category dropdown */
.bc-acc-filter .bc-cat-dropdown { position: relative; }
.bc-acc-filter .bc-cat-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 7px 12px; background: #fff; border: 1px solid #c9b99a; border-radius: 5px; font-family: inherit; font-size: 0.88em; color: #3a2a1a; cursor: pointer; text-align: left; }
.bc-acc-filter .bc-cat-toggle:hover { border-color: #8b4513; }
.bc-acc-filter .bc-cat-toggle[aria-expanded="true"] { border-color: #8b4513; border-radius: 5px 5px 0 0; }
.bc-acc-filter .bc-cat-toggle-label { flex: 1; }
.bc-acc-filter .bc-cat-toggle-icon  { font-size: 0.8em; color: #6b5a48; margin-left: 6px; }

.bc-acc-filter .bc-cat-panel { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #8b4513; border-top: none; border-radius: 0 0 6px 6px; z-index: 200; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.bc-acc-filter .bc-cat-panel-inner { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; padding: 8px; max-height: 220px; overflow-y: auto; }
.bc-acc-filter .bc-cat-option { display: flex; align-items: center; gap: 7px; padding: 5px 7px; font-size: 0.87em; color: #2a1a0a; cursor: pointer; border-radius: 3px; }
.bc-acc-filter .bc-cat-option:hover { background: #faf5ef; }
.bc-acc-filter .bc-cat-option input { accent-color: #8b4513; width: 13px; height: 13px; flex-shrink: 0; }
.bc-acc-filter .bc-cat-panel-footer { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-top: 1px solid #e0d5c8; background: #faf5ef; border-radius: 0 0 6px 6px; }
.bc-acc-filter .bc-cat-clear-btn { font-size: 0.8em; color: #8b7a68; background: none; border: none; cursor: pointer; font-family: inherit; text-decoration: underline; }
.bc-acc-filter .bc-cat-done-btn  { padding: 4px 14px; background: #8b4513; color: #fff; border: none; border-radius: 4px; font-size: 0.84em; font-family: inherit; font-weight: 700; cursor: pointer; }

.bc-acc-cat-selected { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* Selected category tags */
.bc-cat-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: #8b4513; color: #fff; border-radius: 20px; font-size: 0.8em; font-weight: 600; }
.bc-cat-tag-remove { background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; font-size: 1em; line-height: 1; padding: 0; display: flex; align-items: center; }
.bc-cat-tag-remove:hover { color: #fff; }

/* ── Featured / Free toggle pills ── */
.bc-search-pill {
    display: flex; align-items: center; gap: 8px; padding: 7px 12px;
    background: #fff; border: 1px solid #d8cfc4; border-radius: 20px;
    font-size: 0.88em; color: #3a2a1a; cursor: pointer; transition: all 0.15s;
    user-select: none; text-transform: none; letter-spacing: 0;
}
.bc-search-pill:hover { border-color: #8b4513; background: #fdf5ed; }
.bc-search-pill input[type="checkbox"] { accent-color: #8b4513; width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
.bc-search-pill.bc-pill-active { background: #8b4513; border-color: #8b4513; color: #fff; }

/* Featured pill — white background, brown border */
.bc-search-pill--featured {
    align-items: flex-start;
    border-radius: 8px;
    padding: 8px 12px;
}
.bc-search-pill--featured.bc-pill-active { background: #5c2d0a; border-color: #5c2d0a; }

.bc-search-featured-wrap { display: flex; flex-direction: column; gap: 2px; }
.bc-search-featured-title { font-weight: 700; font-size: 0.92em; text-transform: uppercase; letter-spacing: 0.04em; }
.bc-search-featured-note  { font-size: 0.8em; opacity: 0.8; text-transform: none !important; letter-spacing: 0 !important; }

/* ── Mobile ── */
@media (max-width: 520px) {
    .bc-event-row { grid-template-columns: 44px 1fr; gap: 8px 12px; padding: 14px 0; }
    .bc-date-num  { font-size: 1.3em; }
    a.bc-event-name, span.bc-event-name { font-size: 0.97em; }
    .bc-event-time-inline { font-size: 0.85em; }
    .bc-event-desc { font-size: 0.88em; }
    .bc-acc-filter .bc-cat-panel-inner { grid-template-columns: 1fr; }
    .bc-acc-filter-toggles { flex-direction: column; }
}
