/**
 * Estilos do Revolution Slider & ThemePunch - Smart Roteiros Theme
 * Adaptado para integração nativa com tema Avellar Tour
 */

/* Container Principal */
.csr-slider-wrapper {
    position: relative;
    width: 100%;
    background-color: #001432;
    overflow: hidden;
}

.tp-banner-container {
    width: 100%;
    position: relative;
    padding: 0;
    height: 540px;
    max-height: 540px;
    overflow: hidden;
}

.tp-banner {
    width: 100%;
    height: 100%;
    min-height: 520px;
    position: relative;
    overflow: hidden;
}

.tp-banner ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.tp-banner ul li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s ease;
    overflow: hidden;
    z-index: 1;
}

.tp-banner ul li.csr-slide-active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Imagem de fundo do slide com Efeito Ken Burns (Zoom Lento e Fluido) */
.tp-banner .defaultimg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    max-width: none !important;
    transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.tp-banner ul li.csr-slide-active .defaultimg {
    transform: translate(-50%, -50%) scale(1.12);
}

.slotholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tp-simpleresponsive img {
    max-width: none;
}

/* Overlay Escuro com Gradiente Nobre */
.tp-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 16, 40, 0.90) 0%, rgba(0, 28, 70, 0.65) 50%, rgba(0, 16, 40, 0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Barra de Progresso do Slide (Timer Dinâmico) */
.tp-bannertimer {
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #e89e00 0%, #ffc44d 50%, #e89e00 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 200;
    box-shadow: 0 0 12px rgba(232, 158, 0, 0.85);
    pointer-events: none;
    transition: width 7.5s linear;
}

.tp-bannertimer.paused {
    transition: none !important;
}

/* Loader */
.tp-loader {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--csr-secondary, #e89e00);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -22px;
    margin-left: -22px;
    animation: tp-spin 0.8s linear infinite;
    z-index: 100;
}

@keyframes tp-spin {
    to { transform: rotate(360deg); }
}

/* Camadas de Conteúdo (Captions) */
.tp-caption {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    visibility: visible;
    white-space: nowrap;
    z-index: 10;
}

/* Estilos Específicos das Legendas do Tema com Animações Escalonadas */
.tp-caption .csr-caption-box {
    max-width: 640px;
    white-space: normal;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Estado Inicial (oculto e deslocado para baixo) */
.tp-caption .csr-caption-box > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

/* Estado Ativo - Apresentação em Camadas Escalonadas (Staggered Entrance) */
.tp-banner ul li.csr-slide-active .csr-caption-box .csr-slide-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
}

.tp-banner ul li.csr-slide-active .csr-caption-box .csr-slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.38s;
}

.tp-banner ul li.csr-slide-active .csr-caption-box .csr-slide-meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.54s;
}

.tp-banner ul li.csr-slide-active .csr-caption-box .csr-slide-pricing {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.68s;
}

.tp-banner ul li.csr-slide-active .csr-caption-box .csr-slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.82s;
}

.tp-caption .csr-slide-badge {
    display: inline-block;
    background: var(--csr-secondary, #e89e00);
    color: #ffffff;
    font-family: var(--csr-font-heading, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(232, 158, 0, 0.35);
}

.tp-caption .csr-slide-title {
    font-family: var(--csr-font-heading, 'Montserrat', sans-serif);
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.tp-caption .csr-slide-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tp-caption .csr-slide-title a:hover {
    color: var(--csr-secondary, #e89e00);
}

.tp-caption .csr-slide-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f0f4f8;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
}

.tp-caption .csr-slide-meta svg {
    width: 18px;
    height: 18px;
    color: var(--csr-secondary, #e89e00);
}

.tp-caption .csr-slide-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.tp-caption .csr-slide-price-tag {
    background: rgba(0, 34, 85, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.tp-caption .csr-slide-price-tag strong {
    color: #ffd27d;
    font-size: 16px;
}

.tp-caption .csr-slide-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tp-caption .csr-slide-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--csr-secondary, #e89e00), #ffb82e);
    color: #002255 !important;
    font-family: var(--csr-font-heading, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(232, 158, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tp-caption .csr-slide-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232, 158, 0, 0.5);
    color: #001a40 !important;
}

.tp-caption .csr-slide-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff !important;
    font-family: var(--csr-font-heading, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.tp-caption .csr-slide-btn-wa:hover {
    transform: translateY(-2px);
    background: #20ba5a;
}

/* Setas de Navegação (Arrows) */
.tparrows {
    position: absolute;
    top: 50% !important;
    width: 48px;
    height: 48px;
    margin-top: -24px !important;
    background-color: rgba(0, 20, 50, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.tparrows:hover {
    background-color: var(--csr-secondary, #e89e00);
    border-color: var(--csr-secondary, #e89e00);
    transform: scale(1.08);
}

.tparrows::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
}

.tp-leftarrow {
    left: 24px !important;
}

.tp-leftarrow::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.tp-rightarrow {
    right: 24px !important;
}

.tp-rightarrow::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

/* Marcadores de Paginação (Bullets) */
.tp-bullets {
    position: absolute;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 10px;
}

.tp-bullets .bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-bullets .bullet:hover {
    background: rgba(255, 255, 255, 0.85);
}

.tp-bullets .bullet.selected {
    width: 34px;
    background: var(--csr-secondary, #e89e00);
    box-shadow: 0 0 12px rgba(232, 158, 0, 0.85);
    border-radius: 20px;
}

/* Responsividade do Slider */
@media (max-width: 991px) {
    .tp-banner-container {
        height: 480px;
        max-height: 480px;
    }
    .tp-banner {
        min-height: 480px;
    }
    .tp-caption .csr-slide-title {
        font-size: 28px;
    }
    .tp-caption .csr-caption-box {
        max-width: 480px;
    }
}

@media (max-width: 767px) {
    .tp-banner-container {
        height: 420px;
        max-height: 420px;
    }
    .tp-banner {
        min-height: 420px;
    }
    .tparrows {
        display: none !important;
    }
    .tp-caption .csr-slide-title {
        font-size: 22px;
    }
    .tp-caption .csr-slide-pricing {
        display: none;
    }
    .tp-caption .csr-slide-actions {
        gap: 8px;
    }
    .tp-caption .csr-slide-btn-primary,
    .tp-caption .csr-slide-btn-wa {
        padding: 9px 16px;
        font-size: 12px;
    }
}
