/* ===== WIDGET TRIPADVISOR EXCELLENT (RODAPÉ) ===== */

/* Container do widget no rodapé */
#TA_excellent138 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.TA_excellent {
    display: inline-flex;
    align-items: center;
}

/* Links do TripAdvisor */
.TA_links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.TA_links li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.TA_links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.TA_links a:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Imagem do widget */
.widEXCIMG {
    height: 40px;
    width: auto;
    display: block;
}

/* Responsivo */
@media (max-width: 768px) {
    #TA_excellent138 {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .widEXCIMG {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .widEXCIMG {
        height: 30px;
    }
}

/* ===== SEÇÃO TRIPADVISOR & GOOGLE REVIEWS - LAYOUT HORIZONTAL ===== */

.tripadvisor-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    position: relative;
    overflow: hidden;
}

.tripadvisor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* NOVO: Container Horizontal (Lado a Lado) */
.tripadvisor-container-horizontal {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% cada */
    gap: 2rem;
    align-items: stretch; /* Garante mesma altura */
}

/* Widget TripAdvisor - Metade Esquerda (50%) */
.tripadvisor-widget-half {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(85, 107, 47, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
    min-height: 500px; /* Altura mínima igual para ambos */
    display: flex;
    flex-direction: column;
}

.tripadvisor-widget-half:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(85, 107, 47, 0.15);
}

/* Widget Google Reviews - Metade Direita (50%) */
.google-widget-half {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(85, 107, 47, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
    min-height: 500px; /* Altura mínima igual para ambos */
    display: flex;
    flex-direction: column;
}

.google-widget-half:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(85, 107, 47, 0.15);
}

/* Estilos para o widget TripAdvisor */
#TA_selfserveprop953 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    flex: 1; /* Ocupa todo o espaço disponível */
}

.TA_selfserveprop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    flex: 1;
}

/* Links do TripAdvisor - NOVAS CLASSES */
.TA_links.ocjcVI5xN {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.TA_links.ocjcVI5xN li.cB41eQ {
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Imagem do widget selfserveprop */
.TA_selfserveprop .TA_links a img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Estilos para o widget Elfsight Google Reviews */
.google-widget-half .elfsight-app-7fb2d56b-6ae2-4668-b572-3817ca045efc {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important; /* Ocupa todo o espaço disponível */
}

/* Garantir que o conteúdo do Elfsight fica contido */
.google-widget-half iframe,
.google-widget-half [class*="elfsight"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
}

/* NOVA REGRA: Prevenir que scripts adicionem estilos inline problemáticos */
.tripadvisor-widget-half *,
.google-widget-half * {
    box-sizing: border-box !important;
}

/* NOVA REGRA: Garantir que Elfsight respeita o container */
.google-widget-half > div,
.google-widget-half > script + div {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Responsivo - Stack vertical em tablets e mobile */
@media (max-width: 1024px) {
    .tripadvisor-container-horizontal {
        grid-template-columns: 1fr; /* Stack vertical em telas menores */
        gap: 2rem;
    }
    
    .tripadvisor-widget-half,
    .google-widget-half {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .tripadvisor-section {
        padding: 4rem 1rem;
    }
    
    .tripadvisor-container-horizontal {
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .tripadvisor-widget-half,
    .google-widget-half {
        padding: 1.5rem;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .tripadvisor-section {
        padding: 3rem 1rem;
    }
    
    .tripadvisor-widget-half,
    .google-widget-half {
        padding: 1rem;
        min-height: 350px;
    }
}

/* CORREÇÃO ADICIONAL: Ajustar altura mínima para diferentes tamanhos de tela */
@media (min-width: 1025px) {
    .tripadvisor-widget-half,
    .google-widget-half {
        min-height: 550px; /* Altura maior em desktop para melhor visualização */
    }
}

@media (min-width: 1400px) {
    .tripadvisor-widget-half,
    .google-widget-half {
        min-height: 600px; /* Ainda maior em telas grandes */
    }
}