/* ============================================
   REVIEWS SECTION STYLES
   ============================================ */

/* Tour Reviews Link */
.tour-reviews-link {
    margin-left: auto;
}

.tour-reviews-link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.tour-reviews-link a:hover {
    text-decoration: underline;
}

/* Reviews Section */
.reviews-section {
    padding: 30px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    overflow: hidden;
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 992px) {
    .reviews-section {
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 15px 10px;
    }
}

.reviews-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.reviews-summary-left {
    display: flex;
    flex-direction: column;
}

.reviews-rating-main {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 8px;
}

.rating-score-large {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0;
}

.rating-score-large.rating-red {
    color: #dc3545;
}

.rating-score-large.rating-orange {
    color: #ff9800;
}

.rating-score-large.rating-green {
    color: #28a745;
}

.rating-text-large {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.reviews-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    margin-bottom: 0;
}

.reviews-count i {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.reviews-list-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.reviews-heading {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* Reviews Slider Styles */
.reviews-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    overflow: hidden;
    margin-bottom: 20px;
    z-index: 1;
}

.reviews-slider {
    width: 100% !important;
    position: relative;
    overflow: hidden !important;
}

.reviews-slider:not(.slick-initialized) {
    opacity: 0;
    visibility: hidden;
}

.reviews-slider.slick-initialized {
    opacity: 1;
    visibility: visible;
    display: block !important;
}

.reviews-slider .slick-list {
    margin: 0 !important;
    overflow: hidden !important;
    position: relative;
    z-index: 1;
}

.reviews-slider .slick-track {
    display: flex !important;
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

.reviews-slider .slick-track::before,
.reviews-slider .slick-track::after {
    display: none;
}

.reviews-slider .slick-slide[aria-hidden="true"] {
    visibility: hidden;
}

.reviews-slider .slick-dots {
    display: none !important;
}

.review-slide {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.reviews-slider .slick-slide {
    height: auto;
    width: 350px !important;
    min-width: 350px;
    padding: 0 6px;
    box-sizing: border-box;
    outline: none;
    flex-shrink: 0;
}

.reviews-slider .slick-slide > div {
    height: 100%;
    width: 100%;
}

.reviews-slider .slick-slide.slick-active {
    outline: none;
}

/* Old review card - keeping for backward compatibility */
.review-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
}

/* New Redesigned Review Cards */
.review-card-new {
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    height: 100% !important;
    min-height: 100%;
    transition: box-shadow 0.3s ease;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    width: 100% !important;
    box-sizing: border-box;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.review-card-new:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.review-card-header {
    padding: 20px 20px 16px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fff !important;
}

.review-rating-badge-new {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.review-rating-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.review-rating-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: capitalize;
}

/* Rating Color Classes for New Cards */
.review-card-new.rating-red .review-rating-number {
    color: #dc3545;
}

.review-card-new.rating-red .review-rating-label {
    color: #dc3545;
}

.review-card-new.rating-orange .review-rating-number {
    color: #ff9800;
}

.review-card-new.rating-orange .review-rating-label {
    color: #ff9800;
}

.review-card-new.rating-green .review-rating-number {
    color: #28a745;
}

.review-card-new.rating-green .review-rating-label {
    color: #28a745;
}

.review-card-body {
    padding: 16px 20px !important;
    flex: 1 1 auto !important;
    background: #fff !important;
    display: flex;
    flex-direction: column;
}

.review-text-new {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card-footer {
    padding: 16px 20px 20px 20px !important;
    border-top: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.review-date-new {
    font-size: 12px;
    color: #999;
}

/* Rating Color Classes - Applied to rating numbers only (old cards) */
.review-card.rating-red .review-rating {
    color: #dc3545;
}

.review-card.rating-red .review-rating strong {
    color: #dc3545;
}

.review-card.rating-orange .review-rating {
    color: #ff9800;
}

.review-card.rating-orange .review-rating strong {
    color: #ff9800;
}

.review-card.rating-green .review-rating {
    color: #28a745;
}

.review-card.rating-green .review-rating strong {
    color: #28a745;
}

/* Reviews Slider Navigation Buttons - Matching packages slider */
.review-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #fff !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    z-index: 100 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    pointer-events: auto !important;
}

.reviews-slider-wrapper:hover .review-nav-btn:not(.slick-disabled) {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.review-nav-btn.slick-disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.review-nav-btn:not(.slick-disabled) {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.reviews-slider-wrapper:hover .review-nav-btn:not(.slick-disabled) {
    opacity: 1;
    pointer-events: auto;
}

.review-nav-btn:hover:not(.slick-disabled) {
    background: #d4222d !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.review-nav-btn:hover:not(.slick-disabled) i {
    color: #fff !important;
}

.review-nav-btn i {
    color: #d4222d;
    font-size: 12px;
}

.review-prev {
    left: 10px;
}

.review-next {
    right: 10px;
}

@media (max-width: 768px) {
    .review-prev {
        left: 5px;
    }
    
    .review-next {
        right: 5px;
    }
}

.review-nav-btn:focus {
    outline: none;
}

.review-nav-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* Old review card styles - keeping for backward compatibility */
.review-rating {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.review-rating strong {
    font-weight: 600;
}

.review-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
    flex: 1;
    word-wrap: break-word;
}

.review-see-more {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    display: inline-block;
}

.review-see-more:hover {
    text-decoration: underline;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.see-all-reviews {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    clear: both;
}

.see-all-reviews .btn {
    padding: 12px 32px;
    background: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.see-all-reviews .btn:hover {
    background: #0066cc;
    color: #fff;
}

.see-all-reviews .btn-outline {
    background: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.see-all-reviews .btn-outline:hover {
    background: #0066cc;
    color: #fff;
}

/* ============================================
   REVIEWS MODAL STYLES
   ============================================ */

/* Reviews Modal */
.reviews-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.reviews-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-modal-content {
    background: #f5f5f5;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.reviews-modal-header {
    background: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
}

.reviews-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.reviews-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.reviews-modal-close:hover {
    color: #333;
}

.reviews-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Modal Summary */
.reviews-modal-summary {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.modal-rating-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-rating-score {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.modal-rating-score.rating-red {
    color: #dc3545;
}

.modal-rating-score.rating-orange {
    color: #ff9800;
}

.modal-rating-score.rating-green {
    color: #28a745;
}

.modal-rating-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-reviews-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.modal-reviews-count i {
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

/* Overall Ratings */
.reviews-overall-ratings {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-bar-item:last-child {
    margin-bottom: 0;
}

.rating-bar-label {
    min-width: 200px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.rating-bar-container {
    flex: 1;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #28a745;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-bar-score {
    min-width: 60px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Filters */
.reviews-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.filter-select:focus {
    outline: none;
    border-color: #0066cc;
}

.search-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #0066cc;
}

.search-btn {
    padding: 10px 20px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #0052a3;
}

/* Reviews List */
.reviews-modal-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-modal-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.review-modal-card.review-hidden {
    display: none;
}

.review-modal-card.review-visible {
    display: block;
}

.review-modal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-modal-card.rating-red {
    border-left: 4px solid #dc3545;
}

.review-modal-card.rating-orange {
    border-left: 4px solid #ff9800;
}

.review-modal-card.rating-green {
    border-left: 4px solid #28a745;
}

.review-modal-rating {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-modal-card.rating-red .review-modal-rating {
    color: #dc3545;
}

.review-modal-card.rating-orange .review-modal-rating {
    color: #ff9800;
}

.review-modal-card.rating-green .review-modal-rating {
    color: #28a745;
}

.review-modal-rating strong {
    font-weight: 700;
}

.review-modal-reviewer {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.review-modal-traveller-type {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.review-modal-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.review-modal-liked {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-modal-liked i {
    color: #28a745;
    font-size: 16px;
}

.review-modal-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.review-modal-stay {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.review-modal-response {
    background: #f8f9fa;
    border-left: 3px solid #0066cc;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.response-header {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.response-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.review-modal-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.report-review-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.report-review-link:hover {
    color: #333;
}

.report-review-link i {
    font-size: 12px;
}

/* Load More Button */
.reviews-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.reviews-load-more-wrapper .btn {
    padding: 12px 32px;
    background: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.reviews-load-more-wrapper .btn:hover {
    background: #0066cc;
    color: #fff;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
    .review-slide,
    .reviews-slider .slick-slide {
        width: calc(50% - 20px) !important;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .review-slide,
    .reviews-slider .slick-slide {
        width: calc(50% - 20px) !important;
        min-width: 280px;
    }
    
    .tour-reviews-link {
        margin-left: 0;
    }
    
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .reviews-list-right {
        flex-direction: column;
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }
    
    .review-card,
    .review-card-new {
        margin: 0 5px;
    }
    
    .reviews-slider-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 0;
        overflow: hidden;
        margin-bottom: 20px;
        z-index: 1;
    }
    
    .review-slide,
    .reviews-slider .slick-slide {
        width: 100% !important;
        padding: 0;
    }

    .see-all-reviews {
        text-align: center;
        margin-top: 0px;
        position: relative;
        z-index: 2;
        clear: both;
    }
    
    .review-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .review-prev {
        left: -20px;
    }
    
    .review-next {
        right: -20px;
    }
    
    .review-card-new {
        border-radius: 12px;
    }
    
    .review-card-header {
        padding: 16px 16px 12px 16px;
    }
    
    .review-rating-number {
        font-size: 24px;
    }
    
    .review-card-body {
        padding: 12px 16px;
    }
    
    .review-card-footer {
        padding: 12px 16px 16px 16px;
    }
    
    .reviews-summary-left {
        margin-bottom: 20px;
    }
    
    .rating-score-large {
        font-size: 36px;
    }
    
    .faq-section,
    .reviews-section {
        padding: 15px 10px;
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reviews-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .reviews-breakdown {
        grid-template-columns: 1fr;
    }
    
    /* Modal Responsive */
    .reviews-modal-content {
        width: 90%;
        max-width: 90%;
        max-height: 90vh;
        border-radius: 10px;
    }

    .reviews-slider .slick-track {
    margin-left:6px;
    }

    .response-text {
        font-size: 12px;
        color: #555;
        line-height: 1.6;
    }

    .review-modal-text {
        font-size: 12px;
        color: #555;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    .review-modal-response{
        background: #f8f9fa;
        border-left: 3px solid #0066cc;
        padding: 10px;
        border-radius: 3px;
        margin-bottom: 12px;
    }


    .review-modal-reviewer {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
    }

    .review-modal-card.rating-green{
        border-left: none;
    }
    .review-modal-card.rating-orange{
        border-left: none;
    }
    .review-modal-card.rating-red{
        border-left: none;
    }

    .review-modal-card {
        background: #fff;
        border: none;
        border-radius: 8px;
        padding: 10px;
        transition: box-shadow 0.3s ease;
    }
    
    .reviews-modal-header {
        padding: 15px 20px;
    }
    
    .reviews-modal-header h2 {
        font-size: 20px;
    }
    
    .reviews-modal-body {
        padding: 5px 7px;
    }
    
    .rating-bar-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .rating-bar-label {
        min-width: auto;
    }
    
    .rating-bar-container {
        width: 100%;
    }
    
    .rating-bar-score {
        min-width: auto;
        text-align: left;
    }
    
    .reviews-filters {
        flex-direction: column;
    }
    
    .filter-group,
    .search-group {
        min-width: 100%;
    }
}
