/* ============================================ */
/* PROFESSIONAL REVIEW SYSTEM                  */
/* TripAdvisor & Booking.com Inspired Design   */
/* ============================================ */

/* Override old review CSS to prevent conflicts */
.star-rating label::before,
.star-rating label::after,
.reviews-section .star-rating label::before,
.reviews-section .star-rating label::after,
#reviewForm .star-rating label::before,
#reviewForm .star-rating label::after,
#questionForm .star-rating label::before,
#questionForm .star-rating label::after {
    content: none !important;
    display: none !important;
}

/* Fix body overflow when modal is open - prevent body scroll */
body.modal-open,
body.ta-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

:root {
    --review-primary: #00aa6c;
    --review-primary-dark: #008c59;
    --review-primary-light: #e6f7f0;
    --review-excellent: #00aa6c;
    --review-very-good: #5cb85c;
    --review-average: #f0ad4e;
    --review-poor: #d9534f;
    --review-text-primary: #1a1a1a;
    --review-text-secondary: #4a5568;
    --review-text-muted: #718096;
    --review-border: #e2e8f0;
    --review-bg-white: #ffffff;
    --review-bg-light: #f8fafc;
    --review-bg-highlight: #f1f5f9;
    --review-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --review-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --review-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --review-rating-star: #fbbf24;
    --review-verified-badge: #0891b2;
    --review-radius-sm: 4px;
    --review-radius-md: 8px;
    --review-radius-lg: 12px;
    --review-radius-xl: 16px;
}

/* ============================================ */
/* SECTION LAYOUT                              */
/* ============================================ */

.reviews-section {
    background: var(--review-bg-white);
    padding: 3rem 0;
    position: relative;
}

.reviews-section::before {
    display: none;
}

/* Tabs - TripAdvisor Style */
.reviews-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid var(--review-border);
    padding: 0 1.5rem;
    background: transparent;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--review-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: -0.01em;
    box-shadow: none;
    min-width: auto;
    margin-bottom: -2px;
    position: relative;
}

.tab::before,
.tab::after {
    display: none;
}

.tab:hover {
    color: var(--review-text-primary);
    background: var(--review-bg-light);
}

.tab.active {
    background: none;
    color: var(--review-primary);
    border-bottom-color: var(--review-primary);
    -webkit-text-fill-color: var(--review-primary);
}

/* ============================================ */
/* CONTAINERS                                  */
/* ============================================ */

.reviews-container,
.qa-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================ */
/* HEADER SECTION                              */
/* ============================================ */

.reviews-header,
.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0;
    background: none;
    border: none;
}

.reviews-header::before,
.qa-header::before {
    display: none;
}

.reviews-header h2,
.qa-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--review-text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--review-text-primary);
}

/* Primary Buttons - Booking.com Style */
.write-review,
.ask-question-btn,
.reviews-section .primary-btn {
    background: var(--review-primary);
    color: #fff;
    border: 2px solid var(--review-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--review-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--review-shadow-sm);
    text-transform: none;
    letter-spacing: normal;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: visible;
}

.write-review::before,
.ask-question-btn::before,
.reviews-section .primary-btn::before {
    display: none;
}

.write-review:hover,
.ask-question-btn:hover,
.reviews-section .primary-btn:hover {
    background: var(--review-primary-dark);
    border-color: var(--review-primary-dark);
    box-shadow: var(--review-shadow-md);
    transform: translateY(-1px);
}

.write-review:active,
.ask-question-btn:active,
.reviews-section .primary-btn:active {
    transform: translateY(0);
    box-shadow: var(--review-shadow-sm);
}

/* ============================================ */
/* RATING OVERVIEW - TripAdvisor Inspired      */
/* ============================================ */

.reviews-overview {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--review-bg-light);
    border-radius: var(--review-radius-xl);
    border: 1px solid var(--review-border);
    box-shadow: var(--review-shadow-sm);
}

.reviews-overview::before {
    display: none;
}

/* Rating Summary - TripAdvisor Bubble Style */
.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: var(--review-radius-lg);
    background: var(--review-bg-white);
    border: 2px solid var(--review-border);
    box-shadow: var(--review-shadow-sm);
    position: relative;
}

.rating-summary::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--review-primary-light) 0%, transparent 100%);
    border-radius: var(--review-radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.rating-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--review-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--review-primary);
    text-shadow: none;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.rating-score::after {
    content: '/5';
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--review-text-muted);
    -webkit-text-fill-color: var(--review-text-muted);
    margin-left: 0.25rem;
}

.rating-stars {
    font-size: 1.25rem;
    color: var(--review-rating-star);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.25rem;
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.2));
}

.review-count {
    font-size: 0.9375rem;
    color: var(--review-text-secondary);
    font-weight: 500;
}

/* Rating Breakdown - Booking.com Style */
.rating-breakdown {
    flex: 1;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
}

.rating-bar:hover {
    transform: translateX(4px);
}

.rating-bar:hover .progress {
    box-shadow: 0 0 0 2px var(--review-primary-light);
}

.rating-bar span:first-child {
    min-width: 70px;
    font-weight: 600;
    color: var(--review-text-primary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-bar span:first-child::before {
    content: '★';
    color: var(--review-rating-star);
    font-size: 0.875rem;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: var(--review-radius-md);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--review-primary) 0%, var(--review-excellent) 100%);
    border-radius: var(--review-radius-md);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 170, 108, 0.3);
    position: relative;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rating-bar span:last-child {
    min-width: 40px;
    text-align: right;
    font-weight: 700;
    color: var(--review-text-primary);
    font-size: 0.9375rem;
}

/* ============================================ */
/* CONTROLS & FILTERS                          */
/* ============================================ */

.reviews-controls,
.qa-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--review-bg-white);
    border-radius: var(--review-radius-lg);
    border: 1px solid var(--review-border);
    box-shadow: var(--review-shadow-sm);
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--review-text-muted);
    pointer-events: none;
}

.search-input,
.qa-search {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--review-border);
    border-radius: var(--review-radius-md);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: var(--review-bg-white);
    color: var(--review-text-primary);
}

.search-input:focus,
.qa-search:focus {
    border-color: var(--review-primary);
    box-shadow: 0 0 0 3px var(--review-primary-light);
    outline: none;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn,
.faq-category-filter {
    padding: 0.625rem 1rem;
    background: var(--review-bg-white);
    border: 1px solid var(--review-border);
    border-radius: var(--review-radius-md);
    font-weight: 500;
    color: var(--review-text-secondary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.filter-btn:hover,
.faq-category-filter:hover {
    border-color: var(--review-primary);
    color: var(--review-primary);
    background: var(--review-primary-light);
    box-shadow: var(--review-shadow-sm);
}

.filter-btn.active,
.faq-category-filter.active {
    background: var(--review-primary);
    color: #fff;
    border-color: var(--review-primary);
    box-shadow: var(--review-shadow-sm);
}

.sort-select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid var(--review-border);
    border-radius: var(--review-radius-md);
    font-weight: 500;
    color: var(--review-text-secondary);
    font-size: 0.875rem;
    background: var(--review-bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: var(--review-primary);
    background-color: var(--review-bg-light);
}

.sort-select:focus {
    border-color: var(--review-primary);
    box-shadow: 0 0 0 3px var(--review-primary-light);
    outline: none;
}

/* ============================================ */
/* REVIEW CARDS - TripAdvisor Style            */
/* ============================================ */

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-item,
.qa-item {
    padding: 1.75rem;
    background: var(--review-bg-white);
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--review-border);
    transition: all 0.3s ease;
    margin-bottom: 0;
    position: relative;
}

.review-item:first-child {
    border-top: 1px solid var(--review-border);
    border-radius: var(--review-radius-lg) var(--review-radius-lg) 0 0;
}

.review-item:last-child {
    border-radius: 0 0 var(--review-radius-lg) var(--review-radius-lg);
}

.review-item:only-child {
    border-radius: var(--review-radius-lg);
}

.review-item::before,
.qa-item::before {
    display: none;
}

.review-item:hover,
.qa-item:hover {
    background: var(--review-bg-light);
    box-shadow: var(--review-shadow-sm);
    z-index: 1;
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.reviewer-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--review-text-primary);
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.01em;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.location {
    font-size: 0.875rem;
    color: var(--review-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.location::before {
    content: '📍';
    font-size: 0.75rem;
}

/* Verified Badge - Booking.com Style */
.verified-badge {
    font-size: 0.75rem;
    color: var(--review-verified-badge);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(8, 145, 178, 0.05) 100%);
    border-radius: var(--review-radius-sm);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.verified-badge i {
    font-size: 0.875rem;
    filter: drop-shadow(0 1px 1px rgba(8, 145, 178, 0.3));
}

.review-date {
    font-size: 0.875rem;
    color: var(--review-text-muted);
    font-weight: 500;
}

/* Review Rating Row */
.review-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.review-item .rating-stars {
    font-size: 1rem;
    gap: 0.125rem;
    margin: 0;
}

.review-title {
    font-weight: 700;
    color: var(--review-text-primary);
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

/* Review Content */
.review-content {
    color: var(--review-text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.review-content p {
    margin: 0 0 0.75rem 0;
}

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

/* Review Photos - Instagram Grid Style */
.review-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-photos img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--review-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--review-shadow-sm);
    border: 1px solid var(--review-border);
}

.review-photos img:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--review-shadow-md);
    z-index: 2;
}

/* Review Footer */
.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--review-border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.review-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-tag {
    background: var(--review-bg-highlight);
    color: var(--review-text-secondary);
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--review-radius-md);
    border: 1px solid var(--review-border);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.review-tag::before {
    content: '🏷️';
    font-size: 0.75rem;
}

/* Helpful Button - TripAdvisor Style */
.helpful-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--review-radius-md);
    border: 1px solid var(--review-border);
    background: var(--review-bg-white);
    color: var(--review-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.helpful-btn:hover {
    border-color: var(--review-primary);
    color: var(--review-primary);
    background: var(--review-primary-light);
    box-shadow: var(--review-shadow-sm);
}

.helpful-btn.active {
    background: var(--review-primary);
    color: #fff;
    border-color: var(--review-primary);
}

.helpful-btn i {
    transition: transform 0.3s ease;
}

.helpful-btn:hover i {
    transform: scale(1.2);
}

/* ============================================ */
/* Q&A SECTION                                 */
/* ============================================ */

.qa-item {
    border-left: 4px solid var(--review-primary);
    border-radius: var(--review-radius-lg);
    background: var(--review-bg-white);
    border-right: 1px solid var(--review-border);
    border-top: 1px solid var(--review-border);
    border-bottom: 1px solid var(--review-border);
    margin-bottom: 1rem;
    box-shadow: var(--review-shadow-sm);
}

.qa-item:hover {
    box-shadow: var(--review-shadow-md);
}

.question-header {
    margin-bottom: 1rem;
}

.question h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--review-text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.question-meta span {
    font-size: 0.875rem;
    color: var(--review-text-muted);
}

.answer {
    background: var(--review-bg-light);
    border-left: 3px solid var(--review-primary);
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--review-text-secondary);
    border-radius: 0 var(--review-radius-md) var(--review-radius-md) 0;
    margin: 1rem 0;
    line-height: 1.6;
}

.answer::before {
    content: 'A:';
    font-weight: 700;
    color: var(--review-primary);
    margin-right: 0.5rem;
}

.question-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.75rem;
}

/* ============================================ */
/* MODAL - Professional TripAdvisor Style      */
/* ============================================ */

/* Modal Overlay */
.ta-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    padding: 2rem 1rem !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: none !important;
}

.ta-modal.ta-modal--active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.ta-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.ta-modal__container {
    background: var(--review-bg-white);
    border-radius: var(--review-radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(0, 0, 0, 0.1);
    border: none;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    -webkit-overflow-scrolling: touch;
    z-index: 2;
}

.ta-modal.ta-modal--active .ta-modal__container {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar for Modal */
.ta-modal__container::-webkit-scrollbar {
    width: 8px;
}

.ta-modal__container::-webkit-scrollbar-track {
    background: var(--review-bg-light);
    border-radius: 0 var(--review-radius-xl) var(--review-radius-xl) 0;
}

.ta-modal__container::-webkit-scrollbar-thumb {
    background: var(--review-primary);
    border-radius: 4px;
}

.ta-modal__container::-webkit-scrollbar-thumb:hover {
    background: var(--review-primary-dark);
}

/* Modal Header - TripAdvisor Professional Design */
.ta-modal__header {
    padding: 2rem 2.5rem;
    border-bottom: 2px solid var(--review-border);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--review-radius-xl) var(--review-radius-xl) 0 0;
    position: relative;
}

.ta-modal__header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--review-primary) 0%, var(--review-excellent) 100%);
}

.ta-modal__header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ta-modal__logo-mark svg {
    filter: drop-shadow(0 2px 4px rgba(0, 170, 108, 0.2));
}

.ta-modal__title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--review-text-primary) !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.ta-modal__subtitle {
    font-size: 0.875rem;
    color: var(--review-text-muted);
    margin: 0.25rem 0 0 0;
    font-weight: 400;
}

.ta-modal__close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--review-text-muted);
    border-radius: 50%;
    border: 2px solid var(--review-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ta-modal__close:hover {
    background: #fff;
    color: var(--review-poor);
    border-color: var(--review-poor);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.3);
}

/* Modal Body - Enhanced Padding and Styling */
.ta-modal__body {
    padding: 2.5rem;
    background: #ffffff;
    position: relative;
    overflow: visible;
    border-radius: 0 0 var(--review-radius-xl) var(--review-radius-xl);
}

.ta-modal__body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 170, 108, 0.02) 0%, transparent 20%);
    pointer-events: none;
    z-index: 0;
}

.ta-modal__body form,
.ta-review-form {
    position: relative;
    z-index: 1;
}

/* Modal Footer */
.ta-modal__footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--review-border);
}

/* Form Styling - Professional Design */
.reviews-section .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.reviews-section .form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--review-text-primary);
    margin-bottom: 0.625rem;
    display: block;
    letter-spacing: -0.01em;
}

.reviews-section .form-group label .required {
    color: #ef4444;
    margin-left: 0.25rem;
    font-weight: 700;
}

.reviews-section .form-group input,
.reviews-section .form-group textarea,
.reviews-section .form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--review-border);
    border-radius: var(--review-radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--review-bg-white);
    color: var(--review-text-primary);
    line-height: 1.5;
}

.reviews-section .form-group input::placeholder,
.reviews-section .form-group textarea::placeholder {
    color: var(--review-text-muted);
    opacity: 0.7;
}

.reviews-section .form-group input:hover,
.reviews-section .form-group textarea:hover,
.reviews-section .form-group select:hover {
    border-color: var(--review-primary);
}

.reviews-section .form-group input:focus,
.reviews-section .form-group textarea:focus,
.reviews-section .form-group select:focus {
    border-color: var(--review-primary);
    box-shadow: 0 0 0 4px var(--review-primary-light);
    outline: none;
    background: #fff;
}

.reviews-section .form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Input Icons */
.reviews-section .form-group input[type="email"]::before {
    content: '📧';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Star Rating in Form - Interactive TripAdvisor Style */
.reviews-section .star-rating {
    display: flex !important;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 1rem;
    background: var(--review-bg-light);
    border-radius: var(--review-radius-lg);
    border: 2px dashed var(--review-border);
    flex-direction: row-reverse;
}

.reviews-section .star-rating input {
    display: none !important;
}

.reviews-section .star-rating label {
    font-size: 2rem !important;
    color: #d1d5db !important;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Remove any ::before content from old CSS */
.reviews-section .star-rating label::before {
    content: none !important;
    display: none !important;
}

.reviews-section .star-rating label::after {
    content: none !important;
    display: none !important;
}

.reviews-section .star-rating label:hover,
.reviews-section .star-rating label:hover ~ label {
    color: var(--review-rating-star) !important;
    transform: scale(1.1);
}

.reviews-section .star-rating input:checked ~ label {
    color: var(--review-rating-star) !important;
}

.reviews-section .star-rating:hover {
    border-color: var(--review-primary);
    background: var(--review-bg-white);
}

/* Character Counter */
.char-counter {
    font-size: 0.8125rem;
    color: var(--review-text-muted);
    text-align: right;
    margin-top: 0.25rem;
}

/* Photo Upload Preview */
.photo-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.photo-preview-item {
    position: relative;
    width: 100%;
    height: 100px;
    border-radius: var(--review-radius-md);
    overflow: hidden;
    border: 2px dashed var(--review-border);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-photo:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Form Row - Side by Side Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Help Text */
.form-help {
    display: block;
    font-size: 0.8125rem;
    color: var(--review-text-muted);
    margin-top: 0.375rem;
    line-height: 1.4;
}

.required {
    color: #ef4444;
    font-weight: 700;
}

.optional {
    color: var(--review-text-muted);
    font-weight: 400;
    font-size: 0.875rem;
}

/* Enhanced Checkbox */
.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.9375rem;
    color: var(--review-text-secondary);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    cursor: pointer;
}

.checkbox-label:hover {
    color: var(--review-text-primary);
}

/* Form Buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--review-border);
}

.btn-primary,
.form-actions button[type="submit"] {
    background: var(--review-primary);
    color: #fff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--review-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--review-shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary:hover,
.form-actions button[type="submit"]:hover {
    background: var(--review-primary-dark);
    box-shadow: var(--review-shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active,
.form-actions button[type="submit"]:active {
    transform: translateY(0);
}

.btn-secondary,
.form-actions button[type="button"] {
    background: var(--review-bg-white);
    color: var(--review-text-secondary);
    border: 1px solid var(--review-border);
    padding: 0.875rem 1.5rem;
    border-radius: var(--review-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.form-actions button[type="button"]:hover {
    background: var(--review-bg-highlight);
    border-color: var(--review-text-secondary);
    color: var(--review-text-primary);
}

/* ============================================ */
/* LOADING & EMPTY STATES                      */
/* ============================================ */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.spinner-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    animation: spin 1.5s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.9375rem;
    color: var(--review-text-muted);
    font-weight: 500;
}

.load-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 0.875rem 2rem;
    background: var(--review-bg-white);
    border: 2px solid var(--review-border);
    border-radius: var(--review-radius-md);
    color: var(--review-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--review-shadow-sm);
}

.load-more-btn:hover {
    background: var(--review-primary);
    color: #fff;
    border-color: var(--review-primary);
    box-shadow: var(--review-shadow-md);
    transform: translateY(-2px);
}

.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--review-bg-light);
    border-radius: var(--review-radius-lg);
    border: 2px dashed var(--review-border);
    margin: 2rem 0;
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--review-text-muted);
    opacity: 0.5;
}

.no-reviews p {
    font-size: 1.125rem;
    color: var(--review-text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ============================================ */
/* RESPONSIVE DESIGN                           */
/* ============================================ */

@media (max-width: 992px) {
    .reviews-overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rating-summary {
        margin: 0 auto;
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 2rem 0;
    }

    .reviews-container,
    .qa-container {
        padding: 1.5rem 1rem;
    }

    .reviews-header,
    .qa-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .reviews-header h2,
    .qa-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .review-actions {
        display: flex;
        justify-content: center;
    }

    .reviews-tabs {
        padding: 0 1rem;
    }

    .tab {
        flex: 1;
        text-align: center;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    .reviews-overview {
        padding: 1.5rem;
    }

    .reviews-controls,
    .qa-controls {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .search-box {
        min-width: 100%;
    }

    .controls-right {
        width: 100%;
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
        justify-content: center;
    }

    .sort-select {
        width: 100%;
    }

    .review-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .review-date {
        align-self: flex-start;
    }

    .review-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        max-height: 95vh;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .review-photos {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .review-photos img {
        height: 100px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
    }

    /* TripAdvisor Modal - Tablet */
    .ta-modal__container {
        max-height: 95vh;
        margin: 0.5rem;
    }

    .ta-modal__header {
        padding: 1.5rem 2rem;
    }

    .ta-modal__title {
        font-size: 1.5rem !important;
    }

    .ta-modal__body {
        padding: 2rem;
    }

    .ta-rating-bubbles {
        gap: 0.5rem;
        padding: 1.25rem;
    }

    .ta-rating-bubble {
        padding: 0.5rem;
    }

    .ta-rating-bubble__circle {
        width: 44px;
        height: 44px;
    }

    .ta-rating-bubble__label {
        font-size: 0.75rem;
    }

    .ta-form-row {
        grid-template-columns: 1fr;
    }

    .ta-modal__footer {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .ta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .reviews-container,
    .qa-container {
        padding: 1rem 0.75rem;
    }

    .reviews-header h2,
    .qa-header h2 {
        font-size: 1.25rem;
    }

    .rating-score {
        font-size: 3rem;
    }

    .review-item,
    .qa-item {
        padding: 1.25rem;
    }

    .reviewer-info h4 {
        font-size: 0.9375rem;
    }

    .review-title {
        font-size: 0.9375rem;
    }

    .review-content {
        font-size: 0.875rem;
    }

    .modal-content {
        border-radius: var(--review-radius-lg);
        max-height: 100vh;
        margin: 0;
        width: 100%;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .reviews-section .star-rating label {
        font-size: 1.75rem;
    }

    /* TripAdvisor Modal - Mobile */
    .ta-modal {
        padding: 0 !important;
    }

    .ta-modal__container {
        border-radius: var(--review-radius-lg);
        max-height: 100vh;
        margin: 0;
        width: 100%;
    }

    .ta-modal__header {
        padding: 1rem 1.5rem;
        border-radius: var(--review-radius-lg) var(--review-radius-lg) 0 0;
    }

    .ta-modal__header-brand {
        gap: 0.75rem;
    }

    .ta-modal__title {
        font-size: 1.25rem !important;
    }

    .ta-modal__subtitle {
        font-size: 0.8125rem;
    }

    .ta-modal__close {
        width: 36px;
        height: 36px;
    }

    .ta-modal__body {
        padding: 1.5rem;
        border-radius: 0 0 var(--review-radius-lg) var(--review-radius-lg);
    }

    .ta-form-section {
        margin-bottom: 1.5rem;
    }

    .ta-form-divider {
        margin: 1.5rem 0;
    }

    .ta-rating-bubbles {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.5rem;
    }

    .ta-rating-bubble {
        flex: 0 0 calc(20% - 0.4rem);
        padding: 0.5rem 0.25rem;
    }

    .ta-rating-bubble__circle {
        width: 40px;
        height: 40px;
    }

    .ta-rating-bubble__fill {
        width: 20px;
        height: 20px;
    }

    .ta-rating-bubble__label {
        font-size: 0.6875rem;
    }

    .ta-photo-upload {
        padding: 2rem 1.5rem;
    }

    .ta-photo-upload__text {
        font-size: 0.875rem;
    }

    .ta-photo-upload__hint {
        font-size: 0.75rem;
    }

    .ta-modal__footer {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
}

/* ============================================ */
/* ACCESSIBILITY                               */
/* ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
.write-review:focus,
.ask-question-btn:focus,
.filter-btn:focus,
.helpful-btn:focus,
.tab:focus {
    outline: 2px solid var(--review-primary);
    outline-offset: 2px;
}

/* Keyboard navigation */
.tab:focus-visible,
.filter-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--review-primary-light);
}

/* ============================================ */
/* TOAST NOTIFICATION SYSTEM                   */
/* ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--review-bg-white);
    border-radius: var(--review-radius-lg);
    box-shadow: var(--review-shadow-lg);
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid var(--review-primary);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.toast.success {
    border-left-color: var(--review-excellent);
}

.toast.success .toast-icon {
    background: linear-gradient(135deg, var(--review-excellent), var(--review-very-good));
    color: #fff;
}

.toast.error {
    border-left-color: var(--review-poor);
}

.toast.error .toast-icon {
    background: linear-gradient(135deg, var(--review-poor), #c53030);
    color: #fff;
}

.toast.warning {
    border-left-color: var(--review-average);
}

.toast.warning .toast-icon {
    background: linear-gradient(135deg, var(--review-average), #ed8936);
    color: #fff;
}

.toast.info {
    border-left-color: var(--review-verified-badge);
}

.toast.info .toast-icon {
    background: linear-gradient(135deg, var(--review-verified-badge), #0284c7);
    color: #fff;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--review-text-primary);
    margin: 0;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--review-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--review-text-muted);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.3s ease;
    padding: 0;
}

.toast-close:hover {
    background: var(--review-bg-highlight);
    color: var(--review-text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--review-primary), var(--review-excellent));
    border-radius: 0 0 0 var(--review-radius-lg);
    transition: width linear;
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: center;
    }

    .toast {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .toast.hide {
        transform: translateY(-100px);
    }
}

/* ============================================ */
/* PRINT STYLES                                */
/* ============================================ */

@media print {
    .reviews-tabs,
    .reviews-controls,
    .qa-controls,
    .write-review,
    .ask-question-btn,
    .helpful-btn,
    .load-more-btn,
    .ta-modal,
    .toast-container {
        display: none !important;
    }

    .review-item,
    .qa-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================ */
/* TRIPADVISOR-STYLE FORM ELEMENTS             */
/* ============================================ */

.ta-form-section {
    margin-bottom: 2rem;
}

.ta-form-section__label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--review-text-primary);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: -0.01em;
}

.ta-form-divider {
    border: none;
    border-top: 1px solid var(--review-border);
    margin: 2rem 0;
}

.ta-form-group {
    margin-bottom: 1.5rem;
}

.ta-form-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--review-text-primary);
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: -0.01em;
}

.ta-required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.ta-optional {
    color: var(--review-text-muted);
    font-weight: 400;
    font-size: 0.875rem;
}

.ta-form-input,
.ta-form-textarea,
.ta-form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--review-border);
    border-radius: var(--review-radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--review-bg-white);
    color: var(--review-text-primary);
    line-height: 1.5;
}

.ta-form-input::placeholder,
.ta-form-textarea::placeholder {
    color: var(--review-text-muted);
    opacity: 0.7;
}

.ta-form-input:hover,
.ta-form-textarea:hover,
.ta-form-select:hover {
    border-color: var(--review-primary);
    background: var(--review-bg-light);
}

.ta-form-input:focus,
.ta-form-textarea:focus,
.ta-form-select:focus {
    border-color: var(--review-primary);
    box-shadow: 0 0 0 4px var(--review-primary-light);
    outline: none;
    background: #fff;
}

.ta-form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.ta-form-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--review-text-muted);
    margin-top: 0.5rem;
}

.ta-form-hint svg {
    flex-shrink: 0;
}

.ta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Character Counter */
.ta-char-count {
    font-size: 0.8125rem;
    color: var(--review-text-muted);
    text-align: right;
    margin-top: 0.375rem;
}

.ta-char-count__current {
    font-weight: 600;
    color: var(--review-text-secondary);
}

/* ============================================ */
/* RATING BUBBLES - TRIPADVISOR STYLE          */
/* ============================================ */

.ta-rating-bubbles {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--review-bg-light);
    border-radius: var(--review-radius-lg);
    border: 2px solid var(--review-border);
    margin: 1rem 0;
}

.ta-rating-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--review-radius-md);
    transition: all 0.3s ease;
    flex: 1;
    background: transparent;
}

.ta-rating-bubble:hover {
    background: var(--review-bg-white);
    transform: translateY(-4px);
}

.ta-rating-bubble input[type="radio"] {
    display: none;
}

.ta-rating-bubble__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--review-border);
    background: var(--review-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ta-rating-bubble:hover .ta-rating-bubble__circle {
    border-color: var(--review-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 170, 108, 0.2);
}

.ta-rating-bubble__fill {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--review-primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ta-rating-bubble--filled .ta-rating-bubble__circle {
    border-color: var(--review-primary);
    border-width: 4px;
    box-shadow: 0 4px 12px rgba(0, 170, 108, 0.3);
}

.ta-rating-bubble--filled .ta-rating-bubble__fill {
    opacity: 1;
    transform: scale(1);
}

.ta-rating-bubble__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--review-text-secondary);
    text-align: center;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.ta-rating-bubble--filled .ta-rating-bubble__label,
.ta-rating-bubble:hover .ta-rating-bubble__label {
    color: var(--review-primary);
}

.ta-rating-feedback {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--review-primary);
    margin-top: 0.75rem;
    min-height: 1.5rem;
}

/* ============================================ */
/* PHOTO UPLOAD - DRAG & DROP                  */
/* ============================================ */

.ta-photo-upload {
    border: 2px dashed var(--review-border);
    border-radius: var(--review-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--review-bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ta-photo-upload:hover,
.ta-photo-upload--dragover {
    border-color: var(--review-primary);
    background: var(--review-primary-light);
    transform: translateY(-2px);
}

.ta-photo-upload__icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.ta-photo-upload__text {
    font-size: 0.9375rem;
    color: var(--review-text-secondary);
    margin: 0 0 0.5rem 0;
}

.ta-photo-upload__text strong {
    color: var(--review-primary);
    font-weight: 600;
}

.ta-photo-upload__hint {
    font-size: 0.8125rem;
    color: var(--review-text-muted);
    margin: 0;
}

.ta-photo-upload__input {
    display: none;
}

.ta-photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.ta-photo-preview-item {
    position: relative;
    width: 100%;
    height: 100px;
    border-radius: var(--review-radius-md);
    overflow: hidden;
    border: 2px solid var(--review-border);
    box-shadow: var(--review-shadow-sm);
}

.ta-photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ta-photo-preview-item .remove-photo {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.ta-photo-preview-item .remove-photo:hover {
    background: #ef4444;
    transform: scale(1.15);
}

/* ============================================ */
/* CHECKBOX - CUSTOM STYLE                     */
/* ============================================ */

.ta-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-top: 1rem;
}

.ta-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--review-primary);
}

.ta-checkbox__text {
    font-size: 0.9375rem;
    color: var(--review-text-secondary);
    font-weight: 500;
}

.ta-checkbox:hover .ta-checkbox__text {
    color: var(--review-text-primary);
}

/* ============================================ */
/* BUTTONS - TRIPADVISOR STYLE                 */
/* ============================================ */

.ta-btn {
    padding: 0.875rem 2rem;
    border-radius: var(--review-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    line-height: 1;
}

.ta-btn--primary {
    background: var(--review-primary);
    color: #fff;
    box-shadow: var(--review-shadow-sm);
}

.ta-btn--primary:hover {
    background: var(--review-primary-dark);
    box-shadow: var(--review-shadow-md);
    transform: translateY(-1px);
}

.ta-btn--primary:active {
    transform: translateY(0);
}

.ta-btn--ghost {
    background: transparent;
    color: var(--review-text-secondary);
    border: 1px solid var(--review-border);
}

.ta-btn--ghost:hover {
    background: var(--review-bg-highlight);
    border-color: var(--review-text-secondary);
    color: var(--review-text-primary);
}

.ta-modal__cancel {
    background: var(--review-bg-white);
    color: var(--review-text-secondary);
    border: 1px solid var(--review-border);
}
