/* General Review Section Styling */
/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.3)), url('../images/reviewbg.jpg') no-repeat center;
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    margin-bottom: 0;
    color: #fff;
    text-align: center;
    z-index: 1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumb {
    display: inline-flex;
    background: transparent;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #f8f9fa;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
}

/* Review Filters Section */
.review-filters-section {
    padding: 50px 0 30px;
    background-color: #f8f9fa;
}

.filter-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.filter-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 20px;
}

.reset-btn {
    background: none;
    border: none;
    color: #3498db;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.reset-btn i {
    margin-right: 5px;
    font-size: 12px;
}

.reset-btn:hover {
    color: #3498db;
    text-decoration: underline;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
}

.custom-select {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    appearance: none;
    background-color: #fff;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.active-filters {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filter-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5f3;
    color: #3498db;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
}

.filter-tag i {
    margin-left: 6px;
    font-size: 10px;
    cursor: pointer;
}

.filter-tag:hover i {
    color: #e74c3c;
}

/* Reviews Overview Styling */
.reviews-overview {
    padding: 50px 0;
    background-color: #fff;
}

.overall-rating {
    text-align: center;
    margin-bottom: 30px;
}

.rating-number {
    font-size: 60px;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
    margin-bottom: 10px;
}

.reviews-summary .rating-stars {
    font-size: 24px;
    margin-bottom: 10px;
    color: #f1c40f;
}

.rating-count {
    color: #6c757d;
    font-size: 15px;
}

.rating-breakdown {
    margin-top: 30px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 50px 1fr 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rating-label {
    color: #6c757d;
    font-size: 14px;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.progress-bar {
    background-color: #3498db;
    border-radius: 4px;
}

.rating-percentage {
    color: #6c757d;
    font-size: 14px;
    text-align: right;
}

/* Service Ratings Styling */
.service-ratings {
    padding: 20px;
    border-radius: 10px;
    background-color: #f8fcfb;
}

.service-ratings h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    font-size: 22px;
}

.service-rating-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-rating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #e8f5f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.service-icon i {
    font-size: 24px;
    color: #3498db;
}

.service-rating-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}

.service-rating-card .rating-stars {
    color: #f1c40f;
    font-size: 18px;
    margin-bottom: 10px;
}

.rating-score {
    font-size: 20px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.review-count {
    font-size: 14px;
    color: #6c757d;
}

/* Featured Reviews Styling */
.featured-reviews {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: 700;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

.featured-review-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.3s ease;
}

.featured-review-card:hover {
    transform: translateY(-8px);
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-image {
    width: 70px;
    flex-shrink: 0;
    margin-right: 15px;
}

.reviewer-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8f5f3;
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-info h4 {
    margin: 0 0 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

.reviewer-info h4 span {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.reviewer-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8f5f3;
}

.service-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.service-badge.real-estate {
    background-color: #e74c3c;
}

.service-badge.air-tickets {
    background-color: #3498db;
}

.service-badge.visa {
    background-color: #f39c12;
}

.review-rating {
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
}

.review-rating .rating-stars {
    color: #f1c40f;
    margin-bottom: 5px;
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: #6c757d;
}

.review-content {
    margin-bottom: 20px;
    color: #505050;
    line-height: 1.6;
}

.review-content p {
    margin-bottom: 15px;
}

.review-content p:last-child {
    margin-bottom: 0;
}

.review-response {
    background-color: #f8fcfb;
    border-left: 3px solid #3498db;
    padding: 15px;
    border-radius: 4px;
}

.review-response h5 {
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.review-response h5 i {
    margin-right: 6px;
}

.response-author {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    font-style: italic;
}

/* All Reviews Section */
.all-reviews {
    padding: 60px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.review-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.613);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.review-content {
    flex-grow: 1;
}

.reviews-pagination {
    margin-top: 50px;
}

.pagination {
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    border: 1px solid #dee2e6;
    margin: 0 5px;
    border-radius: 50%;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #3498db;
    border-color: #3498db;
}

.pagination .page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.review-item {
    display: none;
    /* Initially hide all reviews */
}

.review-item.active {
    display: block;
}


/* Responsive Adjustments */
@media (max-width: 991px) {
    .filter-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 767px) {
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-options {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
    }

    .review-rating {
        margin-top: 15px;
        margin-left: 0;
        text-align: left;
    }

    .service-rating-card {
        margin-bottom: 20px;
    }
}