.calendar-section {
    padding: 32px 0 48px;
}

.calendar-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.calendar-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.calendar-card-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #163a63;
}

.calendar-card-body {
    padding: 20px;
}

.calendar-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.calendar-filters select,
.calendar-filters input,
.calendar-filters button {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
    color: #0b0b0b;
}

.calendar-filters select,
.calendar-filters input {
    border: 1px solid #d0d5dd;
    padding: 0 14px;
    outline: none;
    background: #fff;
}

.calendar-filters button {
    border: none;
    background: #1d4f91;
    color: #fff;
    font-weight: 600;
}

.calendar-filters button:hover {
    background: #163a63;
}

#calendar {
    width: 100%;
    min-height: 760px;
}

.fc .fc-toolbar {
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.fc .fc-button {
    background: #1d4f91 !important;
    border: 1px solid #1d4f91 !important;
    color: #fff !important;
    border-radius: 10px;
    text-transform: none;
    box-shadow: none !important;
}

.fc .fc-day-today {
    background: #edf5ff !important;
}

.fc .fc-daygrid-day-frame {
    min-height: 110px;
}

.fc .fc-daygrid-event {
    white-space: normal !important;
    align-items: flex-start;
    margin-top: 2px;
}

.fc .fc-event {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.fc .fc-event-title {
    color: #222;
    font-size: 13px;
    font-weight: 500;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.fc .fc-event-title:hover {
    color: #1d4f91 !important;
}

.fc .fc-event-title::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.fc .event-type .fc-event-title::before {
    background: #1d4f91;
}

.fc .exhibition-type .fc-event-title::before {
    background: #b54708;
}

.fc .fc-daygrid-block-event .fc-event-main {
    white-space: normal !important;
    padding: 4px 6px;
}

.calendar-tooltip {
    position: fixed;
    display: none;
    width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    z-index: 9999;
    overflow: hidden;
}

.calendar-tooltip img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.calendar-tooltip-content {
    padding: 10px;
}

.calendar-tooltip-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.calendar-tooltip-summary {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .calendar-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .calendar-filters {
        grid-template-columns: 1fr;
    }

    .fc .fc-daygrid-day-frame {
        min-height: 70px;
    }
}
