/**
 * review.css - giao diện trang single review / địa điểm.
 * Trọng tâm: thư viện ảnh dạng lưới thumbnail + lightbox, và các khối thông tin.
 */

:root {
    --rv-primary: #2f6fed;
    --rv-primary-dark: #1f57c6;
    --rv-border: #e6e8eb;
    --rv-bg-soft: #f6f8fb;
    --rv-text: #2a2f36;
    --rv-muted: #6b7280;
    --rv-star: #fbbf24;
    --rv-radius: 12px;
}

.content-detail-post { color: var(--rv-text); }

/* ============================= Nav trái ============================= */
.bussiness-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 90px;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    overflow: hidden;
    background: #fff;
}
.bussiness-nav li { margin: 0; border-bottom: 1px solid var(--rv-border); }
.bussiness-nav li:last-child { border-bottom: 0; }
.bussiness-nav a {
    display: block;
    padding: 11px 16px;
    color: var(--rv-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.bussiness-nav a:hover { background: var(--rv-bg-soft); color: var(--rv-primary); }

/* ============================= Card chung ============================= */
.info-card, .hours-card, .gallery-card, .faqs-card, .ratings-card, .widget-google {
    background: #fff;
    border: 1px solid var(--rv-border);
    border-radius: var(--rv-radius);
    margin-bottom: 22px;
    overflow: hidden;
}
.info-header, .hours-header, .gallery-header, .faqs-header,
.ratings-header, .widget-header {
    padding: 13px 18px;
    font-weight: 700;
    font-size: 15px;
    background: var(--rv-bg-soft);
    border-bottom: 1px solid var(--rv-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.uppercase { text-transform: uppercase; letter-spacing: .3px; }
.info-body, .hours-body, .gallery-body, .faqs-body, .ratings-body, .widget-body { padding: 18px; }

/* ============================= Tổng quan ============================= */
.biz-header { display: flex; gap: 16px; align-items: flex-start; }
.biz-avatar {
    flex: 0 0 96px;
    width: 96px; height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--rv-bg-soft);
    border: 1px solid var(--rv-border);
}
.biz-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-content { flex: 1; min-width: 0; }
.content-detail-post h1.biz-title {
        width: 100%;
        margin: 0 0 4px;
        text-align: left;
        font-size: 22px;
        font-weight: 800;
        line-height: 1.25;
    }
.kk-rating { display: flex; align-items: center; gap: 6px; }

.info-grid { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.info-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--rv-text); }
.info-icon { color: var(--rv-primary); margin-top: 3px; }
.info-website { color: var(--rv-muted); }

.biz-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.biz-actions .btn { border-radius: 8px; font-weight: 600; padding: 8px 16px; }
.btn-direction { background: var(--rv-primary); border-color: var(--rv-primary); color: #fff; }
.btn-direction:hover { background: var(--rv-primary-dark); border-color: var(--rv-primary-dark); color: #fff; }
.btn-booking { background: #10b981; border-color: #10b981; color: #fff; }
.btn-booking:hover { background: #0e9f72; border-color: #0e9f72; color: #fff; }

/* ============================= Giờ hoạt động ============================= */
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 9px 2px;
    border-bottom: 1px dashed var(--rv-border);
    font-size: 14px;
}
.hours-item:last-child { border-bottom: 0; }
.hours-day { font-weight: 600; }
.hours-time { color: var(--rv-muted); }

/* ============================= THƯ VIỆN ẢNH (điểm chính) ============================= */
.gallery-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--rv-primary);
    text-decoration: none;
}
.gallery-view-all:hover { text-decoration: underline; }

.gallery-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

/* Ghi đè style mặc định .gallery-item{width:100%} của WordPress */
.gallery-list .gallery-item {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--rv-bg-soft);
    cursor: zoom-in;
}
.gallery-list .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.gallery-list .gallery-item:hover img { transform: scale(1.08); }

/* Overlay kính lúp khi hover */
.gallery-list .gallery-item::after {
    content: "\f00e"; /* fa-search-plus */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-list .gallery-item:hover::after { opacity: 1; }

@media (max-width: 991px) { .gallery-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px)  { .gallery-list { grid-template-columns: repeat(3, 1fr); gap: 6px; } }

/* ============================= FAQ ============================= */
.faq-item { border-bottom: 1px solid var(--rv-border); }
.faq-item:last-child { border-bottom: 0; }
.faq-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 14px 30px 14px 2px;
    font-weight: 600;
    font-size: 15px;
    color: var(--rv-text);
    cursor: pointer;
    position: relative;
}
.faq-toggle::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--rv-muted);
    transition: transform .25s;
}
.faq-toggle.collapsed::after { transform: translateY(-50%) rotate(-90deg); }
.faq-content { padding: 0 2px 16px; color: var(--rv-muted); font-size: 14px; line-height: 1.6; }

/* ============================= Đánh giá ============================= */
.ratings-card .nav-tabs { border-bottom: 1px solid var(--rv-border); padding: 0 12px; }
.ratings-card .nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--rv-muted);
    font-weight: 600;
    padding: 12px 14px;
}
.ratings-card .nav-tabs .nav-link.active {
    color: var(--rv-primary);
    border-bottom-color: var(--rv-primary);
    background: none;
}

.rating-item, .rating-item-default {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rv-border);
    align-items: flex-start;
}
.rating-item:last-child { border-bottom: 0; }

/* Thu nhỏ avatar (trước đây là vòng tròn xám khổng lồ) */
.rating-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--rv-bg-soft);
}
.rating-avatar img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.rating-content { flex: 1; min-width: 0; }
.rating-author { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.rating-text { font-size: 14px; color: var(--rv-muted); line-height: 1.6; }
.rating-stars { flex: 0 0 auto; color: var(--rv-star); font-size: 13px; white-space: nowrap; }
.rating-stars .far { color: #d8dde3; }

/* ============================= Sidebar Gợi ý Google ============================= */
.widget-google { position: sticky; top: 90px; }
.amenity-group { margin-bottom: 16px; }
.amenity-group:last-child { margin-bottom: 0; }
.group-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.amenities-widget { display: flex; flex-direction: column; gap: 6px; }
.amenity { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--rv-text); }
.amenity .check {
    flex: 0 0 16px;
    width: 16px; height: 16px;
    border-radius: 50%;
    margin-top: 2px;
    background: #10b981;
    position: relative;
}
.amenity .check::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 8px;
    color: #fff;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================= Magnific Popup tinh chỉnh ============================= */
.mfp-counter { font-size: 14px; }
.mfp-arrow { opacity: .85; }
.mfp-arrow:hover { opacity: 1; }
img.mfp-img { border-radius: 6px; }
.mfp-title { font-size: 13px; color: #ccc; }
