/* ═══════════════════════════════════════════
   LDD REVIEWS WIDGET - CSS
   Le Due Dimore di Corso Torino
═══════════════════════════════════════════ */

/* Variables - Brand Colors */
.ldd-reviews {
    --ldd-sand: #cb9c73;
    --ldd-sand-light: #ddb896;
    --ldd-sand-dark: #a87a52;
    --ldd-green: #6a8f70;
    --ldd-text: #232323;
    --ldd-text-mid: #5a5a5a;
    --ldd-text-light: #8a8a8a;
    --ldd-white: #faf8f5;
    --ldd-cream: #f2ede6;
    --ldd-cream-dark: #e8e0d5;
    --ldd-booking-blue: #003580;
    --ldd-serif: 'Cormorant Garamond', Georgia, serif;
    --ldd-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Section */
.ldd-reviews {
    padding: 60px 24px;
    background: var(--ldd-white);
    font-family: var(--ldd-sans);
    max-width: 1200px;
    margin: 0 auto;
}

/* Compact Header - Single Row */
.ldd-reviews-header-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ldd-reviews-title-compact {
    font-family: var(--ldd-serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--ldd-text);
    margin: 0;
    line-height: 1.2;
}

.ldd-rating-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ldd-rating-number-inline {
    font-family: var(--ldd-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ldd-text);
    line-height: 1;
}

.ldd-rating-stars-inline {
    display: flex;
    gap: 1px;
}

.ldd-rating-stars-inline svg {
    width: 14px;
    height: 14px;
    fill: var(--ldd-sand);
}

.ldd-rating-count-inline {
    font-size: 13px;
    color: var(--ldd-text-light);
}

/* Tabs */
.ldd-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ldd-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--ldd-cream-dark);
    border-radius: 50px;
    background: var(--ldd-white);
    font-family: var(--ldd-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ldd-text-mid);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ldd-tab:hover {
    border-color: var(--ldd-sand);
    color: var(--ldd-sand);
}

.ldd-tab.active {
    background: var(--ldd-sand);
    border-color: var(--ldd-sand);
    color: white;
}

.ldd-tab.active svg path[fill="#4285F4"],
.ldd-tab.active svg path[fill="#34A853"],
.ldd-tab.active svg path[fill="#FBBC05"],
.ldd-tab.active svg path[fill="#EA4335"] {
    fill: white;
}

.ldd-tab.active svg rect[fill="#003580"] {
    fill: white;
}

.ldd-tab.active svg text {
    fill: var(--ldd-sand);
}

/* Tab Content */
.ldd-tab-content {
    display: none;
}

.ldd-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Carousel */
.ldd-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.ldd-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Review Card */
.ldd-review-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    background: var(--ldd-white);
    border: 1px solid var(--ldd-cream-dark);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.ldd-review-card:hover {
    border-color: var(--ldd-sand);
    box-shadow: 0 8px 32px rgba(203, 156, 115, 0.12);
}

.ldd-review-card.booking {
    border-left: 3px solid var(--ldd-booking-blue);
}

.ldd-review-card.booking:hover {
    border-color: var(--ldd-booking-blue);
    border-left: 3px solid var(--ldd-booking-blue);
}

/* Review Top */
.ldd-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ldd-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ldd-sand-light), var(--ldd-sand));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ldd-serif);
    font-size: 18px;
    font-weight: 400;
    flex-shrink: 0;
}

.ldd-review-avatar.booking {
    background: var(--ldd-booking-blue);
    font-family: var(--ldd-sans);
    font-size: 12px;
    font-weight: 700;
}

.ldd-review-info {
    flex: 1;
    min-width: 0;
}

.ldd-review-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--ldd-text);
    margin: 0 0 2px 0;
}

.ldd-review-info span {
    font-size: 12px;
    color: var(--ldd-text-light);
}

.ldd-review-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ldd-sand);
}

.ldd-review-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--ldd-sand);
}

.ldd-review-badge {
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 53, 128, 0.08);
    color: var(--ldd-booking-blue);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* Review Text */
.ldd-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ldd-text-mid);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel Controls */
.ldd-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ldd-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ldd-cream-dark);
    background: var(--ldd-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ldd-carousel-btn:hover {
    border-color: var(--ldd-sand);
    background: var(--ldd-cream);
}

.ldd-carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--ldd-sand);
    stroke-width: 2;
    fill: none;
}

.ldd-carousel-dots {
    display: flex;
    gap: 8px;
}

.ldd-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ldd-cream-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ldd-carousel-dot:hover {
    background: var(--ldd-sand-light);
}

.ldd-carousel-dot.active {
    background: var(--ldd-sand);
    width: 24px;
    border-radius: 4px;
}

/* Link */
.ldd-reviews-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    border: 1px solid var(--ldd-cream-dark);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ldd-text-mid);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ldd-reviews-link:hover {
    border-color: var(--ldd-sand);
    color: var(--ldd-sand);
}

.ldd-reviews-link.booking:hover {
    border-color: var(--ldd-booking-blue);
    color: var(--ldd-booking-blue);
}

.ldd-reviews-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Responsive */
@media (max-width: 992px) {
    .ldd-review-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .ldd-reviews {
        padding: 60px 16px;
    }
    
    .ldd-review-card {
        flex: 0 0 100%;
        min-width: 0;
    }
    
    .ldd-rating-number {
        font-size: 2.5rem;
    }
    
    .ldd-tabs {
        flex-wrap: wrap;
    }
    
    .ldd-tab {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}
