/* Основные стили афиши */
.page-afisha {
    padding: 30px 0;
}
.afisha-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 30px 0;
}
/* Фильтр */
.afisha-filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.quick-search .input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-search .btn-primary {
    background: #007bff;
    border-color: #007bff;
}

/* Горизонтальный фильтр */
.afisha-filter-horizontal .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 -7.5px;
}

.afisha-filter-horizontal .filter-col {
    flex: 1;
    min-width: 180px;
    padding: 0 7.5px;
}

.afisha-filter-horizontal .form-group {
    margin-bottom: 0;
}

.afisha-filter-horizontal label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    text-transform: uppercase;
}

.afisha-filter-horizontal .form-control {
    height: 38px;
    font-size: 14px;
}

.afisha-filter-horizontal .filter-buttons {
    display: flex;
    align-items: flex-end;
}

.afisha-filter-horizontal .btn-group {
    width: 100%;
}

/* Карточки мероприятий */
.afisha-grid .event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.afisha-grid .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.event-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.event-badge.free {
    background: #28a745;
}

.event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
}

.event-day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-time {
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.8;
}

.event-content {
    padding: 20px;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.event-title a {
    color: #212529;
    text-decoration: none;
}

.event-title a:hover {
    color: #007bff;
}
.event-date-range{
    margin: 10px 0;
}
.event-meta {
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 13px;
    color: #6c757d;
}

.meta-item i {
    width: 16px;
    margin-right: 8px;
    color: #adb5bd;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.event-category {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.event-price .price {
    font-weight: 600;
    color: #212529;
}

.price-free {
    color: #28a745;
    font-weight: 600;
}

/* Сообщение об отсутствии мероприятий */
.no-events {
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.no-events i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Пагинация */
.afisha-pager {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Адаптивность */
@media (max-width: 992px) {
    .afisha-filter-horizontal .filter-col {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .afisha-filter-horizontal .filter-col {
        min-width: 100%;
    }
    
    .event-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .afisha-grid .col-md-6 {
        width: 100%;
    }
    
    .event-content {
        padding: 15px;
    }
}