/* Tour Review System Styles */

.tour-review-form-container {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.tour-review-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.tour-review-criteria {
    margin-bottom: 25px;
}

.review-criteria-item {
    margin-bottom: 15px;
}

.criteria-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star:hover,
.star.hovered {
    color: #ffd700;
}

.star.selected {
    color: #ffd700;
}

.tour-review-comment {
    margin-bottom: 20px;
}

.tour-review-comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.tour-review-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.tour-review-comment textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.tour-review-submit-btn {
    background: linear-gradient(135deg, #c9a227 0%, #8b6914 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tour-review-submit-btn:hover {
    background: linear-gradient(135deg, #d4b32c 0%, #9c7a19 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.tour-review-submit-btn:active {
    transform: translateY(0);
}

.tour-review-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.tour-review-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tour-review-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tour-review-login-notice,
.tour-review-already-submitted {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

/* Reviews Display Styles */
.tour-reviews-display {
    margin: 30px 0;
}

.tour-reviews-summary {
    background: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
}

.overall-rating {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: #c9a227;
}

.rating-label {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

.criteria-ratings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.criteria-rating-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.criteria-name {
    min-width: 150px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a227 0%, #ffd700 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-percent {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #c9a227;
    font-size: 14px;
}

/* Reviews List */
.tour-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-review-item {
    background: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

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

.review-author {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.review-date {
    color: #999;
    font-size: 14px;
}

.review-criteria-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.review-criteria-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-criteria-rating .criteria-name {
    min-width: auto;
    font-size: 13px;
    color: #666;
}

.mini-stars {
    display: flex;
    gap: 2px;
}

.mini-star {
    font-size: 16px;
    color: #ccc;
}

.mini-star.filled {
    color: #ffd700;
}

.review-content {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.no-reviews {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .criteria-rating-item {
        flex-wrap: wrap;
    }
    
    .criteria-name {
        min-width: 100%;
        margin-bottom: 5px;
    }
    
    .rating-bar {
        width: 100%;
    }
    
    .rating-percent {
        min-width: auto;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .review-criteria-ratings {
        flex-direction: column;
    }
}
