/* ── Demki Events Calendar ── */
#demki-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a18;
    max-width: 900px;
    margin: 0 auto;
}

/* ── TOOLBAR ── */
.dc-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.dc-month-title {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    min-width: 160px;
}
.dc-nav-btn,
.dc-today-btn,
.dc-view-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    transition: background .15s, border-color .15s;
    line-height: 1;
}
.dc-nav-btn { font-size: 18px; padding: 4px 12px; }
.dc-nav-btn:hover,
.dc-today-btn:hover,
.dc-view-btn:hover { background: #f5f4f0; border-color: #aaa; }
.dc-view-toggle { display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.dc-view-btn { border: none; border-radius: 0; padding: 6px 12px; }
.dc-view-btn + .dc-view-btn { border-left: 1px solid #ddd; }
.dc-view-btn.active { background: #1a1a18; color: #fff; border-color: #1a1a18; }

/* ── MONTH GRID ── */
.dc-month-wrap { width: 100%; }
.dc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.dc-day-headers { margin-bottom: 4px; }
.dc-day-name {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    padding: 4px 0;
}
.dc-day {
    min-height: 80px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px;
    vertical-align: top;
    transition: border-color .1s;
}
.dc-day:hover { border-color: #ccc; }
.dc-day-empty { background: transparent; border-color: transparent; }
.dc-day-num {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
    line-height: 1;
}
.dc-today { border-color: #1a1a18; }
.dc-today .dc-day-num { color: #1a1a18; }
.dc-event-dot {
    font-size: 10px;
    line-height: 1.3;
    padding: 2px 5px;
    border-radius: 4px;
    margin-top: 2px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    transition: opacity .1s;
}
.dc-event-dot:hover { opacity: .85; }

/* ── LIST VIEW ── */
.dc-list-wrap { display: flex; flex-direction: column; gap: 10px; }
.dc-list-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid #1a1a18;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
    position: relative;
}
.dc-list-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.dc-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    flex-shrink: 0;
}
.dc-list-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a18;
}
.dc-list-month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #999;
    margin-top: 2px;
}
.dc-list-content { flex: 1; min-width: 0; }
.dc-list-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.dc-list-meta { font-size: 12px; color: #777; margin-top: 3px; }
.dc-list-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 10px;
    margin-top: 6px;
}
.dc-list-excerpt {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dc-list-link {
    align-self: center;
    margin-left: auto;
    font-size: 13px;
    color: #1a1a18;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding-left: 12px;
    font-weight: 500;
}
.dc-list-link:hover { text-decoration: underline; }

/* ── MODAL ── */
.dc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.dc-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 0 0 24px;
}
.dc-modal-accent {
    height: 6px;
    border-radius: 14px 14px 0 0;
    background: #1a1a18;
}
.dc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,.08);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background .1s;
}
.dc-modal-close:hover { background: rgba(0,0,0,.15); }
.dc-modal-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.dc-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 24px 8px;
    line-height: 1.3;
}
.dc-modal-meta { padding: 0 24px 12px; }
.dc-modal-row {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.5;
}
.dc-modal-body {
    font-size: 14px;
    line-height: 1.65;
    color: #444;
    padding: 0 24px 16px;
    border-top: 1px solid #f0efeb;
    margin-top: 8px;
    padding-top: 14px;
}
.dc-modal-btn {
    display: inline-block;
    margin: 0 24px;
    padding: 9px 22px;
    background: #1a1a18;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s;
}
.dc-modal-btn:hover { background: #333; }

/* ── MISC ── */
.dc-loader { text-align: center; padding: 3rem; color: #aaa; font-size: 14px; }
.dc-empty   { text-align: center; padding: 3rem; color: #aaa; font-size: 14px; }

/* ── RESPONSIVE ── */
@media ( max-width: 600px ) {
    .dc-day { min-height: 54px; padding: 4px; }
    .dc-event-dot { font-size: 9px; padding: 1px 3px; }
    .dc-list-day { font-size: 22px; }
    .dc-modal { margin: 10px; }
}

/* ── EGYSÉG SZŰRŐ ── */
.dc-toolbar { gap: 10px; }
.dc-nav { display: flex; align-items: center; gap: 6px; }
.dc-unit-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.dc-unit-select:focus { outline: none; border-color: #aaa; }

/* ── EGYSÉG BADGE-EK ── */
.dc-unit-badges { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.dc-unit-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0efeb;
    color: #555;
    font-weight: 500;
}
.dc-modal-row .dc-unit-badge { background: none; padding: 0; }

/* ── TÖBBNAPOS ESEMÉNY ── */
.dc-event-multi { border-radius: 0; margin-left: -6px; margin-right: -6px; padding-left: 6px; }
.dc-event-multi-start { border-radius: 4px 0 0 4px; margin-left: 0; }
.dc-event-multi-end   { border-radius: 0 4px 4px 0; margin-right: 0; }
.dc-event-multi-start.dc-event-multi-end { border-radius: 4px; }

/* ── LISTA THUMBNAIL ── */
.dc-list-card { position: relative; overflow: hidden; }
.dc-list-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-right: 4px;
}
.dc-list-card { align-items: flex-start; }
.dc-list-date-range { font-size: 10px; color: #aaa; display: block; margin-top: 2px; white-space: nowrap; }

/* ── LISTA LINKEK ── */
.dc-list-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dc-list-link { font-size: 12px; padding: 3px 10px; border: 1px solid #e0e0e0; border-radius: 10px; background: #f9f9f7; color: #333; text-decoration: none; transition: background .1s; white-space: nowrap; }
.dc-list-link:hover { background: #eee; }
.dc-link-ticket { background: #fff8e1; border-color: #ffe082; color: #7a5c00; }
.dc-link-ticket:hover { background: #fff3cd; }
.dc-link-fb { background: #e8f0fe; border-color: #c5d8fc; color: #1a57cc; }
.dc-link-fb:hover { background: #dce8fd; }

/* ── MODAL GOMBOK ── */
.dc-modal-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; }
.dc-modal-btn { display: inline-block; padding: 9px 18px; background: #1a1a18; color: #fff; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 500; transition: background .15s; white-space: nowrap; }
.dc-modal-btn:hover { background: #333; }
.dc-btn-ticket { background: #f59e0b; color: #fff; }
.dc-btn-ticket:hover { background: #d97706; }
.dc-btn-fb { background: #1877f2; color: #fff; }
.dc-btn-fb:hover { background: #1464d8; }

/* ── AKCIÓ GOMBOK (lista kártya) ── */
.dc-list-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; grid-column: 1/-1; }
.dc-action-btn {
    font-size: 12px; padding: 4px 11px;
    border: 1px solid #e0e0de; border-radius: 10px;
    background: #f9f9f7; color: #333;
    text-decoration: none; transition: background .1s;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 3px;
}
.dc-action-btn:hover { background: #eee; }
.dc-action-btn span { font-size: 12px; }
.dc-btn-map  { background: #e8f5e9; border-color: #c8e6c9; color: #2e7d32; }
.dc-btn-map:hover  { background: #dcedc8; }
.dc-btn-tel  { background: #e3f2fd; border-color: #bbdefb; color: #1565c0; }
.dc-btn-tel:hover  { background: #bbdefb; }
.dc-btn-ticket { background: #fff8e1; border-color: #ffe082; color: #7a5c00; }
.dc-btn-ticket:hover { background: #fff3cd; }
.dc-btn-fb { background: #e8f0fe; border-color: #c5d8fc; color: #1a57cc; }
.dc-btn-fb:hover { background: #dce8fd; }

/* ── TÁRSSZERVEZŐ BADGE ── */
.dc-coorg-badge { background: #f3e5f5; color: #6a1b9a; border: 1px solid #e1bee7; }

/* ── MODAL CONTACT ROW ── */
.dc-modal-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dc-contact-btn {
    font-size: 13px; padding: 7px 14px; border-radius: 8px;
    text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 5px;
    transition: background .15s;
}
.dc-modal-contact .dc-btn-map { background: #e8f5e9; color: #2e7d32; }
.dc-modal-contact .dc-btn-map:hover { background: #c8e6c9; }
.dc-modal-contact .dc-btn-tel { background: #e3f2fd; color: #1565c0; }
.dc-modal-contact .dc-btn-tel:hover { background: #bbdefb; }
