/* ============================================
   TRIPADVISOR REVIEWS SECTION
   ============================================ */

.home-tripad-section {
    background: rgba(59, 110, 64, 0.1);
    padding: 8rem 0;
    width: 100%;
}

.home-tripad-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ---- LEFT PANEL ---- */
.tripad-left {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tripad-main-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #63514f;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 1px;
    margin: 0;
    font-family: var(--font-title);
}

.tripad-avg-score {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

.tripad-avg-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tripad-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #34e0a1;
    display: inline-block;
}

.tripad-dot.empty {
    background: #ccc;
}

.tripad-dot.half {
    background: linear-gradient(to right, #34e0a1 50%, #ccc 50%);
}

.tripad-total {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

.tripad-source-label {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0 0.2rem;
}

.tripad-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tripad-logo-img {
    height: 48px;
    width: auto;
}

.tripad-logo-icon {
    width: 40px;
    height: 40px;
}

.tripad-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* ---- RIGHT CAROUSEL ---- */
.tripad-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Prevent grid column from overflowing */
.home-tripad-inner > div:last-child {
    min-width: 0;
    overflow: hidden;
}

.tripad-carousel-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(57, 52, 52, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tripad-carousel-btn:hover {
    background: rgba(238, 115, 38, 0.9);
}

.tripad-carousel-track-outer {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.tripad-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
}

/* ---- CARD ---- */
.tripad-card {
    flex: 0 0 100%;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    box-sizing: border-box;
    overflow: hidden;
    word-break: break-word;
}

.tripad-card-user {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
    font-family: var(--font-text);
}

.tripad-card-location {
    font-size: 0.88rem;
    color: #888;
    margin: 0 0 0.8rem;
}

.tripad-card-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.7rem;
}

.tripad-owl {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tripad-card-dots {
    display: flex;
    gap: 4px;
}

.tripad-card-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #34e0a1;
    display: inline-block;
}

.tripad-card-dot.empty {
    background: #ddd;
}

.tripad-card-date {
    font-size: 0.83rem;
    color: #aaa;
    margin-bottom: 0.6rem;
}

.tripad-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    font-family: var(--font-text);
}

.tripad-card-desc {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
    font-family: var(--font-text);
    margin: 0 0 1.2rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tripad-read-more {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    border: 1.5px solid #393434;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #393434;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    font-family: var(--font-text);
}

.tripad-read-more:hover {
    background: #393434;
    color: #fff;
}

/* ---- DOTS INDICATOR ---- */
.tripad-dots-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.tripad-ind-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s;
}

.tripad-ind-dot.active {
    background: #34e0a1;
}

/* ---- READ MORE MODAL ---- */
.tripad-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.tripad-modal-overlay.open {
    display: flex;
}

.tripad-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 560px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.tripad-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #555;
    line-height: 1;
}

.tripad-modal-user {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 2px;
}

.tripad-modal-location {
    font-size: 0.88rem;
    color: #888;
    margin: 0 0 0.8rem;
}

.tripad-modal-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 0.6rem;
}

.tripad-modal-date {
    font-size: 0.83rem;
    color: #aaa;
    margin-bottom: 0.7rem;
}

.tripad-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.7rem;
    font-family: var(--font-text);
}

.tripad-modal-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    font-family: var(--font-text);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .home-tripad-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 900px) {
    .home-tripad-section {
        padding: 5rem 0;
    }

    .home-tripad-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tripad-main-title {
        font-size: 2rem;
    }

    .tripad-left {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .home-tripad-section {
        padding: 4rem 0;
    }

    .home-tripad-inner {
        padding: 0 16px;
        gap: 1.5rem;
    }

    .tripad-main-title {
        font-size: 1.7rem;
    }

    /* Flechas siempre a los lados — solo reducir tamaño */
    .tripad-carousel-wrapper {
        flex-direction: row;
        gap: 0.4rem;
        align-items: center;
    }

    .tripad-carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .tripad-carousel-track-outer {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .tripad-dots-indicator {
        margin-top: 1rem;
    }

    .tripad-card {
        padding: 1.2rem;
    }

    .tripad-card-user {
        font-size: 0.95rem;
    }

    .tripad-card-desc {
        font-size: 0.87rem;
    }

    .tripad-modal-box {
        padding: 1.8rem 1.2rem;
    }
}

@media (max-width: 380px) {
    .tripad-carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    .tripad-card {
        padding: 1rem;
    }
}
