/* css/reviews.css */





/* Filter Controls section */
.reviews-filters-section {
    background: #fdfdfd;
    padding: 30px 0;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.filters-grid {
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 991px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

/* Input Fields */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #dddddd;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    background: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 23, 137, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    font-size: 1rem;
}

.select-filter {
    padding: 14px 20px;
    border: 1px solid #dddddd;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: #ffffff;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.select-filter:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 23, 137, 0.1);
}

/* Photo Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    padding-left: 30px;
    color: #444;
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 6px;
    transition: var(--transition-smooth);
    border: 1px solid #ccc;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e5e5e5;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Quick Tags */
.quick-tags-container {
    padding: 15px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.quick-tag-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    margin-right: 5px;
}

.tag-pill {
    padding: 8px 18px;
    border-radius: 50px;
    background: #f1f1f1;
    color: #444;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tag-pill:hover {
    background: #e5e5e5;
    color: #111;
}

.tag-pill.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 10px var(--primary-shadow);
}

/* Reviews Grid Area */
.reviews-section {
    padding: 60px 0;
    background: #fdfdfd;
}

.reviews-grid-container {
    position: relative;
    min-height: 400px;
}

.reviews-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

@media (max-width: 767px) {
    .reviews-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Review Card Styles */
.review-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    animation: reviewsFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger animation delays for grid items */
.review-card:nth-child(1) { animation-delay: 0.03s; }
.review-card:nth-child(2) { animation-delay: 0.06s; }
.review-card:nth-child(3) { animation-delay: 0.09s; }
.review-card:nth-child(4) { animation-delay: 0.12s; }
.review-card:nth-child(5) { animation-delay: 0.15s; }
.review-card:nth-child(6) { animation-delay: 0.18s; }
.review-card:nth-child(7) { animation-delay: 0.21s; }
.review-card:nth-child(8) { animation-delay: 0.24s; }
.review-card:nth-child(9) { animation-delay: 0.27s; }

@keyframes reviewsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accent Gradient Line at the Top */
.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #D31789 0%, #4ecdc4 100%);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(211, 23, 137, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    border-color: rgba(211, 23, 137, 0.15);
}

.review-card:hover::before {
    opacity: 1;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f8f9fa;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(211, 23, 137, 0.15), 0 4px 10px rgba(0,0,0,0.05);
}

.reviewer-meta {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.05rem;
    text-transform: capitalize;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.review-date {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.google-badge {
    background: #f8f9fa;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1e3e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.google-badge i {
    color: #4285F4;
    font-size: 1rem;
}

/* Rating Stars */
.review-stars {
    color: #FBBC05;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.verified-review-indicator {
    display: inline-flex;
    align-items: center;
    color: #2bbbb0;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
    background: rgba(78, 205, 196, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.verified-review-indicator i {
    margin-right: 4px;
    font-size: 0.8rem;
}

/* Review Text */
.review-text-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 22px;
    flex-grow: 1;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.review-text-body.truncated {
    max-height: 120px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}

.read-more-text-btn {
    background: none;
    border: none;
    color: #D31789;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0;
    margin-top: -10px;
    margin-bottom: 18px;
    cursor: pointer;
    display: block;
    transition: var(--transition-smooth);
    font-family: 'Poppins', sans-serif;
}

.read-more-text-btn:hover {
    color: #4ecdc4;
    text-decoration: underline;
}

/* Attached Client Images */
.review-card-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.review-gallery-thumb {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.review-gallery-thumb:hover {
    transform: scale(1.08) translateY(-2px);
    border-color: #D31789;
    box-shadow: 0 8px 16px rgba(211, 23, 137, 0.15);
}

/* Owner Response Box */
.owner-response-box {
    background: rgba(211, 23, 137, 0.02);
    border-left: 3px solid #D31789;
    border-radius: 4px 16px 16px 4px;
    padding: 18px;
    margin-top: 18px;
    font-size: 0.88rem;
    border-top: 1px solid rgba(211, 23, 137, 0.04);
    border-right: 1px solid rgba(211, 23, 137, 0.04);
    border-bottom: 1px solid rgba(211, 23, 137, 0.04);
}

.owner-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.owner-response-title {
    font-weight: 700;
    color: #D31789;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
}

.owner-response-title i {
    font-size: 0.8rem;
}

.owner-response-date {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.owner-response-text {
    color: #555;
    line-height: 1.6;
    font-style: italic;
    font-family: 'Poppins', sans-serif;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
}

.lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #D31789;
    border-radius: 50%;
    animation: lightbox-spin 1s linear infinite;
    display: none;
    z-index: 10001;
}

@keyframes lightbox-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.lightbox-caption {
    color: white;
    font-size: 0.95rem;
    margin-top: 15px;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10002;
}

.lightbox-nav-btn.prev {
    left: -70px;
}

.lightbox-nav-btn.next {
    right: -70px;
}

.lightbox-content-wrapper:hover .lightbox-nav-btn {
    opacity: 0.8;
}

.lightbox-nav-btn:hover {
    opacity: 1 !important;
    background: #D31789;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Pagination & Empty state */
.reviews-empty-state {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.reviews-empty-state i {
    font-size: 3.5rem;
    color: #ccc;
    margin-bottom: 20px;
}

.reviews-empty-state h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
}

.reviews-empty-state p {
    color: #777;
    font-size: 0.95rem;
}

.btn-reset-filters {
    margin-top: 20px;
    padding: 12px 28px;
    border-radius: 50px;
    background: #D31789;
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 23, 137, 0.2);
    font-family: 'Poppins', sans-serif;
}

.btn-reset-filters:hover {
    background: #4ecdc4;
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
}

.btn-reset-filters:active {
    transform: translateY(0);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    padding: 10px 22px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    color: #444;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover:not(:disabled) {
    border-color: #D31789;
    color: #D31789;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(211, 23, 137, 0.1);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ddd;
    color: #888;
    transform: none;
    box-shadow: none;
}

.pagination-info {
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    margin: 0 15px;
}

/* Call to Action Section */
.reviews-cta-section {
    background: #f1f8f6;
    padding: 80px 0;
    text-align: center;
}

.reviews-cta-card {
    max-width: 800px;
    margin: 0 auto;
}

.reviews-cta-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.reviews-cta-card p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-book-now-main {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--primary-shadow);
    transition: var(--transition-smooth);
}

.btn-book-now-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 23, 137, 0.4);
    color: white;
}

.btn-google-review-action {
    background: white;
    color: #333;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 1px solid #ccc;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-google-review-action:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #111;
}

.btn-google-review-action i {
    color: #4285F4;
    font-size: 1.1rem;
}

/* Shimmering Skeleton Loader for lazy-loaded assets */
.reviewer-avatar, .review-gallery-thumb {
    background-image: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: image-shimmer-load 1.5s infinite linear;
}

@keyframes image-shimmer-load {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile Enhancements */
@media (max-width: 767px) {
    .page-hero {
        padding: 50px 0;
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    

    
    .reviews-filters-section {
        padding: 20px 0;
    }
    
    .quick-tags-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .quick-tag-label {
        flex-shrink: 0;
        font-size: 0.8rem;
    }
    
    .tag-pill {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .reviews-section {
        padding: 40px 0;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .reviewer-name {
        font-size: 0.95rem;
    }
    
    .lightbox-close-btn {
        top: 15px;
        right: 15px;
        position: fixed;
        background: rgba(0, 0, 0, 0.6);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        z-index: 10001;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .lightbox-caption {
        font-size: 0.85rem;
        margin-top: 10px;
        padding: 0 10px;
    }

    .lightbox-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        opacity: 0.75;
        background: rgba(0,0,0,0.6);
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .lightbox-nav-btn.prev {
        left: 10px;
    }

    .lightbox-nav-btn.next {
        right: 10px;
    }
    
    .reviews-cta-section {
        padding: 50px 0;
    }
    
    .reviews-cta-card h2 {
        font-size: 1.8rem;
    }
    
    .btn-book-now-main, 
    .btn-google-review-action {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 20px;
    }
}
