/* ==============================
БЛОКИ ПОД КАТАЛОГОМ
============================== */

.gc-bottom-blocks {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 16px;
}

.gc-block {
    margin-bottom: 48px;
}

.gc-block__title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f5e9;
}

/* ---- РЕЙТИНГ ТАБЛИЦА (старая, backward compat) ---- */
.gc-rating-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.gc-rating-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}

.gc-rating-table thead {
    background: #f0f7f0;
}

.gc-rating-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.gc-rating-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.gc-rt__row:hover {
    background: #fafffe;
}

.gc-rt__pos {
    width: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
}

.gc-rt__name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.gc-rt__name a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
}

.gc-rt__name a:hover {
    text-decoration: underline;
}

.gc-rt__thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.gc-rt__score {
    font-weight: 700;
    font-size: 17px;
    color: #1a1a2e;
    margin-right: 6px;
}

.gc-rt__reviews {
    white-space: nowrap;
    color: #777;
}

.gc-rt__price {
    font-weight: 600;
    white-space: nowrap;
    color: #2e7d32;
}

.gc-rt__badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.gc-rt__btn {
    display: inline-block;
    padding: 8px 18px;
    background: #43a047;
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    min-width: 90px;
    text-align: center;
    box-sizing: border-box;
}

.gc-rt__btn:hover {
    background: #2e7d32;
}

/* ---- СТАТИСТИКА ---- */
.gc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.gc-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.gc-stat-card:hover {
    transform: translateY(-2px);
}

.gc-stat-card__icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.gc-stat-card__value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.gc-stat-card__label {
    display: block;
    font-size: 13px;
    color: #888;
}

/* ---- ЦЕНОВОЙ ДИАПАЗОН ---- */
.gc-price-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.gc-price-bar {
    display: grid;
    grid-template-columns: 160px 1fr 50px;
    align-items: center;
    gap: 16px;
}

.gc-price-bar__label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.gc-price-bar__label small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: #999;
}

.gc-price-bar__track {
    height: 28px;
    background: #f0f0f0;
    border-radius: 14px;
    overflow: hidden;
}

.gc-price-bar__fill {
    height: 100%;
    border-radius: 14px;
    transition: width 0.8s ease;
    min-width: 4px;
}

.gc-price-bar__count {
    font-weight: 700;
    color: #333;
    text-align: right;
}

/* ---- КАРТА ---- */
.gc-map-block #gc-region-map {
    border: 1px solid #e0e0e0;
}

/* ---- FAQ ---- */
.gc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-faq-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.gc-faq-item__q {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a1a2e;
    transition: background 0.2s;
}

.gc-faq-item__q:hover {
    background: #f8fdf8;
}

.gc-faq-item__q::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: #43a047;
    transition: transform 0.3s;
}

.gc-faq-item[open] .gc-faq-item__q::after {
    content: "\2212";
}

.gc-faq-item__q::-webkit-details-marker {
    display: none;
}

.gc-faq-item__a {
    padding: 0 20px 16px;
    color: #555;
    line-height: 1.6;
}

/* ---- ПЕРЕЛИНКОВКА РЕГИОНОВ ---- */
.gc-regions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gc-region-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.gc-region-chip:hover {
    background: #e8f5e9;
    border-color: #43a047;
    color: #2e7d32;
}

.gc-region-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: #f0f0f0;
    color: #666;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 600;
}

.gc-region-chip:hover .gc-region-chip__count {
    background: #c8e6c9;
    color: #2e7d32;
}

/* ---- STARS ---- */
.gc-stars {
    white-space: nowrap;
}

.gc-star {
    font-size: 16px;
}

.gc-star--full {
    color: #ffc107;
}

.gc-star--half {
    color: #ffc107;
    opacity: 0.6;
}

.gc-star--empty {
    color: #ddd;
}

/* ---- MOBILE (old table) ---- */
@media (max-width: 768px) {
    .gc-block__title {
        font-size: 20px;
    }

    .gc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gc-price-bar {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .gc-price-bar__count {
        text-align: left;
    }

    .gc-rating-table {
        font-size: 13px;
    }

    .gc-rating-table th,
    .gc-rating-table td {
        padding: 10px 8px;
    }

    .gc-rt__type,
    .gc-rt__link {
        display: none;
    }
}

@media (max-width: 480px) {
    .gc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gc-stat-card {
        padding: 14px;
    }

    .gc-stat-card__value {
        font-size: 18px;
    }
}

/* ==============================
   РЕЙТИНГ: Аккордеон-таблица
   ============================== */
.gc-rating-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

/* Строка */
.gc-rt-row {
    border-bottom: 1px solid #f0f0f0;
}

.gc-rt-row:last-child {
    border-bottom: none;
}

/* Head (кликабельная часть) */
.gc-rt-head {
    display: grid;
    grid-template-columns: 40px 2fr 1.2fr 0.8fr 0.8fr 0.8fr 1.5fr;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
    transition: background 0.15s;
}

.gc-rt-row--expandable .gc-rt-head {
    cursor: pointer;
}

.gc-rt-row--expandable .gc-rt-head:hover {
    background: #f7fafc;
}

/* Колонки */
.gc-rt-c {
    font-size: 0.88rem;
}

.gc-rt-c--pos {
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

.gc-rt-c--name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.gc-rt-c--name a {
    color: #1a202c;
    text-decoration: none;
}

.gc-rt-c--name a:hover {
    color: #2b6cb0;
}

.gc-rt-c--rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gc-rt-c--reviews {
    color: #718096;
    font-size: 0.82rem;
}

.gc-rt-c--price {
    font-weight: 700;
    color: #e53e3e;
    white-space: nowrap;
}

.gc-rt-c--type {}

.gc-rt-c--actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

/* Кнопки в аккордеоне */
.gc-rt__btn--book {
    background: #48bb78;
    color: #fff;
    min-width: 110px;
    text-align: center;
    box-sizing: border-box;
}

.gc-rt__btn--book:hover {
    background: #38a169;
    color: #fff;
}

/* Спейсер когда нет кнопки Забронировать — сохраняет ширину колонки */
.gc-rt__btn-spacer {
    display: inline-block;
    min-width: 110px;
}


/* Шапка рейтинга */
.gc-rt-row--header {
    background: #f0f7f0;
    border-bottom: 2px solid #e2e8f0;
}

.gc-rt-head--header {
    cursor: default !important;
}

.gc-rt-head--header .gc-rt-c {
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gc-rt-row--header:hover .gc-rt-head {
    background: transparent !important;
}
/* Стрелка */
.gc-rt-arrow {
    font-size: 0.7rem;
    color: #a0aec0;
    transition: transform 0.2s;
    margin-left: 4px;
}

.gc-rt-row.open .gc-rt-arrow {
    transform: rotate(180deg);
}

/* Раскрывающийся блок */
.gc-rt-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 16px;
    background: #fafbfc;
}

.gc-rt-row.open .gc-rt-expand {
    max-height: 3000px;
    padding: 0 16px 16px;
    border-top: 1px solid #edf2f7;
}

/* Мета: типы + удобства */
.gc-rt-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 12px;
}

.gc-rt-meta__group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gc-rt-meta__label {
    font-size: 0.78rem;
    color: #718096;
    font-weight: 600;
    white-space: nowrap;
}

.gc-rt-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.gc-rt-tag--type {
    background: #ebf4ff;
    color: #2b6cb0;
}

.gc-rt-tag--amenity {
    background: #f0fff4;
    color: #276749;
}

/* Отзывы в expand */
.gc-rt-reviews {
    padding-top: 4px;
}

.gc-rt-reviews__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.gc-rt-rev {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.gc-rt-rev:last-child {
    margin-bottom: 0;
}

.gc-rt-rev__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.gc-rt-rev__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #4a5568;
    flex-shrink: 0;
}

.gc-rt-rev__author {
    font-weight: 600;
    font-size: 0.82rem;
    color: #2d3748;
}

.gc-rt-rev__stars {
    display: flex;
    gap: 1px;
}

.gc-rt-rev__stars .gc-star {
    color: #ddd;
    font-size: 0.7rem;
}

.gc-rt-rev__stars .gc-star--full {
    color: #f5a623;
}

.gc-rt-rev__date {
    font-size: 0.72rem;
    color: #a0aec0;
    margin-left: auto;
}

.gc-rt-rev__text {
    font-size: 0.82rem;
    color: #4a5568;
    line-height: 1.5;
}

/* ---- АККОРДЕОН: Мобильная адаптация ---- */
@media (max-width: 900px) {
    .gc-rt-head {
        grid-template-columns: 30px 1.5fr 1fr 0.6fr 0.6fr 1fr;
    }

    .gc-rt-c--type {
        display: none;
    }
}

@media (max-width: 600px) {
    .gc-rt-head {
        grid-template-columns: 28px 1fr;
        gap: 4px;
    }

    .gc-rt-c--rating,
    .gc-rt-c--reviews,
    .gc-rt-c--price,
    .gc-rt-c--type {
        display: none;
    }

    .gc-rt-c--actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 6px;
    }

    .gc-rt-c--name {
        font-size: 0.85rem;
    }

    /* На мобилке spacer не нужен */
    .gc-rt__btn-spacer {
        display: none;
    }

    .gc-rt-rev__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .gc-rt-rev__date {
        margin-left: 0;
    }
}
