.feedback-reviews-container { margin: 0 auto; }
/* Заголовок с статистикой и сортировкой */
.feedback-reviews-header { display: flex; flex-direction: column; gap: 20px; background: #ffffff; border-radius: 16px; padding: 25px; margin-bottom: 25px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); border: 1px solid #f0f0f0; }
.feedback-reviews-header h2 { margin: 0; }
.reviews-stats-summary { display: flex; flex-wrap: wrap; gap: 30px; }
/* Адаптивная раскладка для разных конфигураций */
.reviews-stats-summary:only-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.reviews-stats-summary:has(.stats-overall:only-child),
.reviews-stats-summary:has(.stars-distribution:only-child) { }
.stats-overall { display: flex; gap: 15px; flex-wrap: wrap; width: 100%; }
.stats-overall:only-child { justify-content: center; }
/* Когда только одна статистика - центрируем */
.stats-overall:has(.average-rating:only-child),
.stats-overall:has(.total-reviews:only-child) { width: 100%; justify-content: flex-start; margin: 0; }
.average-rating, .total-reviews { display: flex; align-items: center; gap: 20px; margin: 0; border: 1px solid #e9ecef; padding: 5px 20px 5px 20px; border-radius: 15px; }
.average-number { font-size: 28px; font-weight: 700; color: #2c3e50; }
.average-stars { display: flex; justify-content: center; gap: 5px; }
.average-stars .star { font-size: 24px; color: #ffc107; }
.average-stars .star.half-filled { position: relative; color: #e0e0e0; }
.average-stars .star.half-filled:before { content: "★"; position: absolute; left: 0; width: 50%; overflow: hidden; color: #ffc107; }
.average-text, .total-text { font-size: 14px; color: #7f8c8d; }
.total-number { font-size: 28px; font-weight: 700; color: #3498db; line-height: 1; }
.stars-distribution { width: 100%; padding: 5px 15px; }
.stars-distribution:only-child { max-width: 500px; margin: 0 auto; }
.stars-distribution h4 { margin: 0 0 15px 0; color: #2c3e50; font-size: 16px; font-weight: 600; text-align: center; }
.stars-distribution:only-child h4 { text-align: center; }
.distribution-bars { display: flex; flex-direction: column; gap: 10px; }
.distribution-row { display: flex; align-items: center; gap: 10px; }
.star-label { display: flex; align-items: center; gap: 5px; min-width: 60px; }
.star-count { font-weight: 600; color: #2c3e50; font-size: 16px; }
.star-number { font-size: 12px; color: #95a5a6; }
.progress-bar { flex: 1; height: 10px; background: #f0f0f0; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #ffc107, #ff9800); border-radius: 5px; transition: width 0.5s ease; }
.percentage { min-width: 40px; text-align: right; font-size: 14px; color: #7f8c8d; font-weight: 500; }
/* Простая сортировка стрелками */
.reviews-sorting-simple { margin-top: 10px; }
.sort-title { font-weight: 500; color: #2c3e50; font-size: 14px; }
.sort-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.sort-btn { display: flex; align-items: center; gap: 8px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 10px 16px; font-size: 14px; color: #495057; cursor: pointer; transition: all 0.3s ease; }
.sort-btn:hover { background: #e9ecef; border-color: #3498db; color: inherit; }
.sort-btn.active { background: #3498db; border-color: #3498db; color: white; }
.sort-arrows { display: flex; flex-direction: column; gap: 1px; margin-left: 5px; }
.arrow-up, .arrow-down { font-size: 10px; line-height: 1; opacity: 0.5; transition: opacity 0.3s ease; }
.arrow-up.active, .arrow-down.active { opacity: 1; color: inherit; }
.sort-btn:not(.active) .arrow-up.active,
.sort-btn:not(.active) .arrow-down.active { color: #3498db; }
.sort-btn.active .arrow-up.active,
.sort-btn.active .arrow-down.active { color: white; }
.feedback-reviews-stats { display: flex; justify-content: space-between; margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 12px; border: 1px solid #e9ecef; font-size: 14px; color: #495057; }
.stats-total, .stats-shown { padding: 5px 10px; }
.stats-total .total-count,
.stats-shown .shown-count { font-weight: 600; color: #3498db; }
.feedback-review-card { background: #ffffff; border-radius: 16px; padding: 25px; margin-bottom: 25px; border: 1px solid #dedede; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.6s ease forwards; }
.feedback-review-card a { line-height: 0; }
.feedback-review-card:nth-child(n) { animation-delay: calc(var(--animation-order) * 0.1s); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.review-header { display: flex; gap: 20px; margin-bottom: 20px; align-items: flex-start; }
.review-avatar { flex-shrink: 0; }
.review-avatar a,
.guide-card-avatar a { display: block; text-decoration: none; transition: transform 0.3s ease; }
.review-avatar a:hover,
.guide-card-avatar a:hover { transform: scale(1.05); }
.avatar-img { width: 80px; height: 80px; border-radius: 30%; object-fit: cover; border: 2px solid #e8e8e8; transition: border-color 0.3s ease; }
.review-avatar a:hover .avatar-img,
.guide-card-avatar a:hover .avatar-img { border-color: #3498db; }
.avatar-placeholder { width: 70px; height: 70px; border: 1px solid #e8e8e8; border-radius: 30%; background: #f8f9fa; }
.review-info { flex: 1; min-width: 0; }
.review-title { margin: 0 0 10px 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.review-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 8px; color: #7f8c8d; font-size: 14px; }
.review-author { font-weight: 500; color: inherit; }
.review-date { color: #95a5a6; }
.review-rating { display: flex; align-items: center; gap: 12px; }
.stars { display: flex; gap: 4px; }
.star { font-size: 24px; line-height: 1; color: #e0e0e0; }
.star.filled { color: #ffc107; text-shadow: 0 0 1px rgba(255, 193, 7, 0.5); }
.rating-text { font-size: 14px; font-weight: 600; color: #34495e; background: #f8f9fa; padding: 4px 10px; border-radius: 20px; }
.review-text { font-size: 16px; line-height: 1.7; padding-top: 15px; border-top: 1px solid #dedede; margin-bottom: 20px; }
.review-text p { margin: 0; }
/* Стили для карточки гида */
.review-guides {display: flex;gap: 10px;flex-wrap: wrap;margin-top: 20px;}

.guide-card { background: #f8f9fa; border-radius: 12px; padding: 10px 20px 10px 10px; }
.guide-card-title { margin: 0 0 15px 0; color: #2c3e50; font-size: 16px; font-weight: 600; }
.guide-card-content { display: flex; align-items: center; gap: 15px; }
.guide-card-avatar { flex-shrink: 0; }
.guide-card-avatar .avatar-img { width: 50px; height: 50px; border-radius: 30%; }
.guide-card-avatar .avatar-placeholder { width: 60px; height: 60px; border-radius: 8px; }
.guide-card-info { flex: 1; min-width: 0; }
.guide-name { font-size: 14px;font-weight: 600;display: flex;flex-direction: column;gap: 10px; }
.guide-name span { font-weight: 400; font-size: 12px;}
.guide-name a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.guide-position { margin: 0 0 8px 0; color: #7f8c8d; font-size: 14px; font-weight: 500; }
.guide-experience { display: flex; align-items: center; gap: 5px; color: #95a5a6; font-size: 13px; }
.guide-experience i { color: #3498db; }
.guide-link-btn { margin-top: 10px; display: inline-block; background: #3498db; color: white; text-decoration: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; }
.guide-link-btn:hover { background: #2980b9; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3); }
.no-reviews { text-align: center; padding: 40px; color: #7f8c8d; font-size: 18px; background: #f8f9fa; border-radius: 12px; border: 2px dashed #dee2e6; }
.feedback-reviews-load-more { text-align: center; margin: 30px 0; padding: 20px; background: #f8f9fa; border-radius: 12px; border: 1px solid #e9ecef; }
.load-more-button { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; border: none; padding: 14px 28px; font-size: 15px; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); }
.load-more-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4); background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%); color: white; }
.load-more-button:disabled { background: #95a5a6; cursor: not-allowed; transform: none; box-shadow: none; }
.load-more-button .spinner { width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: white; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-more-info { margin-top: 10px; font-size: 14px; color: #7f8c8d; }
.current-count { font-weight: 600; color: #3498db; }
.total-count { font-weight: 600; color: #2c3e50; }
.loading-more { text-align: center; padding: 20px; color: #7f8c8d; font-style: italic; }
.all-reviews-loaded { padding: 15px; background: #e8f5e9; border-radius: 10px; border: 1px solid #c8e6c9; color: #2e7d32; font-weight: 500; font-size: 16px; text-align: center; animation: fadeIn 0.5s ease; }
.all-reviews-loaded p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.all-reviews-loaded p:before { content: "✓"; font-size: 20px; font-weight: bold; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
/* Адаптивность */
@media (max-width: 992px) {
    .reviews-stats-summary { flex-direction: column; gap: 25px; align-items: center; }
    .total-number { font-size: 20px; }
    .average-number { font-size: 20px; }
    .stats-overall { gap: 10px; }
    .stars-distribution { width: 100%; }
    .load-more-button { font-size: 14px; }
}
@media (max-width: 768px) {
    .feedback-review-card { padding: 20px; margin-bottom: 20px; }
    .feedback-reviews-stats { flex-direction: column; gap: 10px; text-align: center; }
    .feedback-reviews-header { padding: 20px; }
    .stats-overall { gap: 10px; }
    .average-rating, .total-reviews { min-width: 150px; }
    .sort-buttons { flex-direction: column; align-items: stretch; }
    .sort-btn { justify-content: space-between; }
    .review-header { gap: 15px; }
    .avatar-img, .avatar-placeholder { width: 70px; height: 70px; }
    .review-title { font-size: 18px; }
    .star { font-size: 22px; }
    .review-text { font-size: 15px; }
    .guide-card { padding: 15px; }
    .guide-card-content { gap: 12px; }
    .guide-name { font-size: 13px; }
    .load-more-button { padding: 12px 24px; font-size: 13px; }
    .all-reviews-loaded { padding: 12px; font-size: 15px; }
    .review-info { margin: 0 auto; }
}
@media (max-width: 480px) {
    .feedback-reviews-container { padding: 10px; }
    .feedback-review-card { padding: 15px; border-radius: 12px; }
    .feedback-reviews-header { padding: 15px; border-radius: 12px; }
    .distribution-row { flex-wrap: wrap; }
    .percentage { min-width: 35px; }
    .sort-btn { padding: 8px 12px; font-size: 13px; }
    .avatar-img, .avatar-placeholder { width: 60px; height: 60px; }
    .review-title { font-size: 17px; }
    .review-meta { flex-direction: column; gap: 8px; }
    .star { font-size: 20px; }
    .rating-text { font-size: 14px; }
    .review-text { font-size: 14px; line-height: 1.6; }
    .guide-card { padding: 7px 15px 7px 7px; }
    .guide-card-avatar .avatar-img,
    .guide-card-avatar .avatar-placeholder { width: 50px; height: 50px; }
    .guide-position { font-size: 13px; }
    .all-reviews-loaded { padding: 10px; font-size: 14px; }
    .average-rating, .total-reviews { gap: 10px; }
    .average-text, .total-text { font-size: 12px; }
}
.review-text iframe { max-width: 540px; max-height: 400px; width: 100%; height: auto; aspect-ratio: 710/400; }