/* ── Booking Reviews Display - Frontend ── */

:root {
    --brd-blue: #003580;
    --brd-blue-light: #0071c2;
    --brd-blue-bg: #f0f6ff;
    --brd-green: #008009;
    --brd-green-bg: #e8f5e9;
    --brd-red: #c62828;
    --brd-red-bg: #fef2f2;
    --brd-orange: #e65100;
    --brd-gray-50: #fafbfc;
    --brd-gray-100: #f1f3f5;
    --brd-gray-200: #e2e6ea;
    --brd-gray-400: #929aa3;
    --brd-gray-600: #5a6370;
    --brd-gray-800: #1a2029;
    --brd-radius: 10px;
    --brd-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.04);
    --brd-shadow-hover: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    --brd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.brd-reviews-wrapper {
    font-family: var(--brd-font);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ── Summary Bar ── */

.brd-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--brd-blue);
    color: #fff;
    padding: 20px 28px;
    border-radius: var(--brd-radius);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.brd-summary-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.brd-summary-number {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.brd-summary-max {
    font-size: 18px;
    opacity: 0.55;
    font-weight: 400;
}

.brd-summary-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brd-summary-label {
    font-size: 18px;
    font-weight: 700;
}

.brd-summary-count {
    font-size: 14px;
    opacity: 0.7;
}

.brd-summary-link {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.brd-summary-link:hover {
    opacity: 1;
    color: #fff;
    text-decoration: underline;
}

/* ── Card Grid ── */

.brd-cards {
    display: grid;
    grid-template-columns: repeat(var(--brd-cols, 2), 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .brd-cards { grid-template-columns: 1fr !important; }
    .brd-summary { flex-direction: column; align-items: flex-start; }
    .brd-summary-link { margin-left: 0; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .brd-cards[style*="--brd-cols: 3"] { grid-template-columns: repeat(2, 1fr); }
}

/* ── Review Card ── */

.brd-card {
    background: #fff;
    border: 1px solid var(--brd-gray-200);
    border-radius: var(--brd-radius);
    padding: 22px;
    box-shadow: var(--brd-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.brd-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.brd-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.brd-card-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.brd-card-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--brd-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brd-card-country {
    font-size: 12px;
    color: var(--brd-gray-400);
}

/* Score badge */
.brd-card-score {
    width: 40px;
    height: 40px;
    border-radius: 8px 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.brd-score-high { background: var(--brd-blue); }
.brd-score-mid { background: var(--brd-blue-light); }
.brd-score-avg { background: var(--brd-orange); }
.brd-score-low { background: var(--brd-red); }

/* Title */
.brd-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--brd-gray-800);
    margin: 0 0 12px;
    line-height: 1.4;
}

/* Body (positive / negative) */
.brd-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.brd-card-sentiment {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
}

.brd-card-sentiment p {
    margin: 0;
    color: var(--brd-gray-800);
}

.brd-sentiment-icon {
    flex-shrink: 0;
    font-size: 15px;
    margin-top: 1px;
}

.brd-positive {
    background: var(--brd-green-bg);
    border-left: 3px solid var(--brd-green);
}

.brd-negative {
    background: var(--brd-red-bg);
    border-left: 3px solid var(--brd-red);
}

/* Footer */
.brd-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--brd-gray-100);
}

.brd-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--brd-gray-100);
    border-radius: 20px;
    font-size: 11px;
    color: var(--brd-gray-600);
    font-weight: 500;
    white-space: nowrap;
}

.brd-card-date {
    font-size: 11px;
    color: var(--brd-gray-400);
    margin-left: auto;
}

/* ── Empty state ── */
.brd-empty {
    text-align: center;
    padding: 40px;
    color: var(--brd-gray-400);
    font-family: var(--brd-font);
}

/* ── Stagger animation on load ── */
.brd-card {
    opacity: 0;
    animation: brdFadeUp 0.4s ease forwards;
}

.brd-card:nth-child(1)  { animation-delay: 0.05s; }
.brd-card:nth-child(2)  { animation-delay: 0.10s; }
.brd-card:nth-child(3)  { animation-delay: 0.15s; }
.brd-card:nth-child(4)  { animation-delay: 0.20s; }
.brd-card:nth-child(5)  { animation-delay: 0.25s; }
.brd-card:nth-child(6)  { animation-delay: 0.30s; }
.brd-card:nth-child(7)  { animation-delay: 0.35s; }
.brd-card:nth-child(8)  { animation-delay: 0.40s; }
.brd-card:nth-child(9)  { animation-delay: 0.45s; }
.brd-card:nth-child(10) { animation-delay: 0.50s; }
.brd-card:nth-child(n+11) { animation-delay: 0.55s; }

@keyframes brdFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brd-summary {
    animation: brdFadeUp 0.35s ease forwards;
}
