/* Основные стили */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Специальные стили для бильярдной тематики */
.billiard-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.billiard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.table-status-available {
    color: #28a745;
    font-weight: 500;
}

.table-status-booked {
    color: #dc3545;
    font-weight: 500;
}

/* Кастомизация кнопок */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

/* Стили для временных слотов */
.time-slot {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot.available {
    background-color: #e8f5e9;
}

.time-slot.available:hover {
    background-color: #c8e6c9;
    border-color: #81c784;
}

.time-slot.booked {
    background-color: #ffebee;
    color: #b71c1c;
    cursor: not-allowed;
}

/* Адаптивность изображений */
.club-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

@media (min-width: 768px) {
    .club-image {
        height: 250px;
    }
}

/* Стили для popover с расписанием */
.schedule-popover {
    max-width: 300px;
}

.schedule-popover .popover-header {
    background-color: #0d6efd;
    color: white;
    font-weight: 500;
    border-bottom: none;
}

.schedule-popover .popover-body {
    padding: 1rem;
}

.club-schedule {
    font-size: 0.9rem;
}

.club-schedule>div {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.club-schedule>div:last-child {
    border-bottom: none;
}

/* Иконка часов в карточке */
.schedule-badge {
    cursor: pointer;
    transition: all 0.3s;
}

.schedule-badge:hover {
    background-color: #0b5ed7 !important;
    transform: rotate(15deg);
}

/* Стили для фильтров */
.card-header.bg-primary {
    font-weight: 600;
}

/* Анимация для расширяемых фильтров */
.collapse {
    transition: all 0.3s ease;
}

/* Стили для чекбоксов и селектов */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Стили для фильтра метро */
.metro-filter-container {
    position: relative;
}

.metro-filter {
    width: 100%;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.metro-tag {
    background-color: #e0f0ff;
    color: #0d6efd;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metro-tag-remove {
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
}

.metro-filter-input {
    flex-grow: 1;
    min-width: 100px;
    border: none;
    outline: none;
    padding: 4px 0;
}

.metro-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.metro-dropdown.visible {
    display: block;
}

.metro-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.metro-option:hover {
    background-color: #f8f9fa;
}

.metro-option.selected {
    background-color: #e0f0ff;
}

/* Стили для отображения метро в карточке */
.metro-stations {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.metro-badge {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.metro-badge.moscow {
    background-color: #d4edff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.metro-badge.autozavodskaya {
    background-color: #d1f0d9;
    border-color: #28a745;
    color: #28a745;
}

/* Цвета для линий метро */
.metro-color-moscow { background-color: #d4edff; border-color: #0d6efd; color: #0d6efd; }
.metro-color-autozavodskaya { background-color: #d1f0d9; border-color: #28a745; color: #28a745; }

/* Иконка метро */
.metro-icon {
    font-size: 0.9em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .card-body .row>div {
        margin-bottom: 1rem;
    }
    
    .metro-filter {
        min-height: 44px;
    }
}

/* Улучшения для мобильного вида */
@media (max-width: 576px) {
    .metro-filter-container {
        margin-bottom: 15px;
    }
}

/* Стили для разделителя */
.filter-divider {
    border-top: 1px solid #e9ecef;
    margin: 1rem 0;
    padding-top: 1rem;
}


/* Стили для индикатора в теге */
.metro-tag-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* Стили для самого тега */
.metro-tag {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.metro-line-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Стили для выбранной станции */
.metro-option.selected .metro-line-indicator {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #007bff;
}

/* Специфические цвета для линий (если не используем inline-стили) */
.metro-line-blue {
    background-color: #007bff;
}

.metro-line-red {
    background-color: #dc3545;
}

.metro-line-green {
    background-color: #28a745;
}   

.menu-item {
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Стили для рейтинга */
.rating-input {
    transition: all 0.3s ease;
}

.rating-option {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.rating-option:hover {
    transform: scale(1.1);
}

.rating-option i {
    transition: all 0.2s ease;
}

.navbar-brand:hover .logo-icon {
    transform: rotate(20deg);
    background: rgba(255, 255, 255, 0.3);
}

.navbar-brand:hover .brand-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 992px) {
    .dropdown-menu {
        border: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        margin: 2px 0;
    }
}

.amenity-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    border-radius: 50%;
    background-color: #e9ecef;
}

/* Специфические цвета для значков */
.amenity-parking {
    background-color: #d4edff;
    color: #0d6efd;
}

.amenity-wifi {
    background-color: #e0f0ff;
    color: #0d6efd;
}

.amenity-student {
    background-color: #fff3cd;
    color: #856404;
}

.amenity-cue {
    background-color: #d1f0d9;
    color: #28a745;
}

.amenities {
    padding: 4px 0;
}

.amenity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f0f5ff;
    color: #0d6efd;
    font-size: 0.9rem;
    cursor: default;
    transition: all 0.2s;
}

.amenity-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Цвета для разных иконок (опционально) */
.amenity-badge[title="Парковка"] {
    background-color: #e0f7fa;
    color: #0097a7;
}

.amenity-badge[title="Wi-Fi"] {
    background-color: #e3f2fd;
    color: #1565c0;
}

.amenity-badge[title="Скидки для студентов"] {
    background-color: #fff8e1;
    color: #ff8f00;
}

.amenity-badge[title="Прокат кия"] {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.amenities-section {
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.amenity-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #e9f7fe;
    border-radius: 50%;
    font-size: 14px;
    color: #0d6efd;
    cursor: default;
    transition: all 0.2s;
    border: 1px solid #dee2e6;
}

.amenity-item:hover {
    background-color: #e9f7fe;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Цвета для разных удобств */
.amenity-item[title="Парковка"] {
    background-color: #e0f7fa;
    color: #0097a7;
}

.amenity-item[title="Wi-Fi"] {
    background-color: #e3f2fd;
    color: #1565c0;
}

.amenity-item[title="Скидки студентам"] {
    background-color: #fff8e1;
    color: #ff8f00;
}

.amenity-item[title="Прокат кия"] {
    background-color: #e8f5e9;
    color: #2e7d32;
}