/* ========================================
   PROBAZY CATALOG - СТИЛИ КАТАЛОГА
   ======================================== */

:root {
    --brand: #0a3f5d;
    --bg: #f6f8fb;
    --text: #0f172a;
    --muted: #5b6b7a;
    --card: #ffffff;
    --line: #e6edf3;
    --shadow: 0 14px 40px rgba(2, 12, 27, .10);
    --radius: 18px;
}

/* ========================================
   КОНТЕЙНЕР - РАСШИРЕННЫЙ
   ======================================== */

.probazy-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   СЕТКА ФИЛЬТРОВ
   ======================================== */

.probazy-filters-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin-top: 20px;
}

/* ========================================
   САЙДБАР С ФИЛЬТРАМИ
   ======================================== */

.probazy-sidebar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.probazy-filter-box {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.probazy-filter-box:last-child {
    border-bottom: none;
}

.probazy-filter-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.probazy-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.probazy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand);
}

.probazy-checkbox small {
    color: var(--muted);
    font-size: 12px;
}

.probazy-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
}

.probazy-select-full {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    max-height: 200px;
    overflow-y: auto;
}

.probazy-select-full[multiple] {
    height: auto;
    padding: 4px;
}

.probazy-select-full[multiple] option {
    padding: 6px 10px;
    border-radius: 4px;
    margin: 2px 0;
}

.probazy-select-full[multiple] option:checked {
    background: var(--brand) !important;
    color: white;
}

.probazy-select-full[multiple] option:hover {
    background: rgba(10, 63, 93, 0.1);
}

/* ========================================
   ПАНЕЛЬ СОРТИРОВКИ
   ======================================== */

.probazy-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(2, 12, 27, .04);
}

.probazy-results-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.probazy-select {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.probazy-select:hover {
    border-color: var(--brand);
}

/* ========================================
   СЕТКА КАРТОЧЕК - 3 КОЛОНКИ
   ======================================== */

.probazy-cards-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

/* ========================================
   КАРТОЧКА БАЗЫ ОТДЫХА
   ======================================== */

.probazy-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(2, 12, 27, .06);
    transition: .2s transform ease, .2s box-shadow ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.probazy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* Изображение */
.probazy-card-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.probazy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Бейджи */
.probazy-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 1;
}

.probazy-card-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.badge-instant {
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.badge-discount {
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

/* Контент карточки */
.probazy-card-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Заголовок */
.probazy-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.probazy-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.probazy-card-title a:hover {
    color: var(--brand);
}

/* Мета-информация */
.probazy-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
}

/* Рейтинг */
.probazy-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 8px;
    background: #4caf50;
    color: white;
    font-weight: 700;
    border-radius: 6px;
    font-size: 14px;
}

.rating-text {
    font-size: 13px;
    color: var(--muted);
}

/* Локация */
.probazy-card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
}

/* Удобства */
.probazy-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
    font-size: 12px;
}

.amenity-tag {
    padding: 4px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    border: 1px solid #c8e6c9;
}

/* ========================================
   ЦЕНА - УЛУЧШЕННАЯ
   ======================================== */

.probazy-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.probazy-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.price-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

/* Кнопки */
.probazy-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.probazy-card-actions .probazy-btn {
    flex: 1;
    font-size: 13px;
    padding: 10px 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 650;
    transition: .15s all ease;
}

.probazy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-weight: 650;
    transition: .15s transform ease, .15s box-shadow ease;
}

.probazy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.probazy-btn-brand {
    border-color: transparent;
    background-color: var(--brand);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(10, 63, 93, .22);
}

.probazy-btn-brand:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(10, 63, 93, .28);
}

/* ========================================
   ПАГИНАЦИЯ
   ======================================== */

.probazy-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: .15s all ease;
}

.page-link:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 63, 93, .2);
}

.page-link.current {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

/* ========================================
   ЛОАДЕР
   ======================================== */

.probazy-loader {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid var(--line);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

/* Широкие экраны - 4 карточки */
@media (min-width: 1800px) {
    .probazy-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Десктоп - 3 карточки */
@media (min-width: 1200px) and (max-width: 1799px) {
    .probazy-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Планшеты горизонтально - 2 карточки */
@media (max-width: 1199px) {
    .probazy-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .probazy-filters-grid {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

/* Планшеты вертикально */
@media (max-width: 980px) {
    .probazy-filters-grid {
        grid-template-columns: 1fr;
    }

    .probazy-sidebar {
        position: static;
    }

    .probazy-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .probazy-card-image {
        height: 220px;
    }
}

/* Мобильные устройства - 1 карточка */
@media (max-width: 640px) {
    .probazy-wrap {
        padding: 0 14px;
    }

    .probazy-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .probazy-card-image {
        height: 200px;
    }

    .price-value {
        font-size: 22px;
    }

    .probazy-sort-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .probazy-select {
        width: 100%;
    }

    .page-link {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
    .probazy-card-actions {
        flex-direction: column;
    }

    .probazy-card-actions .probazy-btn {
        width: 100%;
    }
}
