:root {
    /* Paleta Solar & Marrom Claro Aconchegante */
    --brand-red: #c62828;
    --brand-red-hover: #a81c1c;
    --brand-amber: #f59e0b;
    --brand-gold: #fbbf24;
    --brand-orange: #ea580c;
    
    --text-cream: #fff9f0;
    --text-muted: rgba(255, 249, 240, 0.7);
    
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    /* TOM MARROM CLARO ACONCHEGANTE (ILUMINADO E NEUTRO) */
    background-color: #3b322a;
    background-image: radial-gradient(circle at 50% 28%, #52463b 0%, #3a3229 65%, #29231d 100%);
    color: var(--text-cream);
    font-family: var(--font-sans);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    user-select: none;
}

/* ================================================================= */
/* --- DESENHOS DE CORDEL AO FUNDO FLUTUANDO ----------------------- */
/* ================================================================= */
.cordel-backdrop-pattern {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cordel-stamp {
    position: absolute;
    color: var(--brand-amber);
    opacity: 0.22;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    will-change: transform;
}

.stamp-1 { 
    top: 6%; left: 4%; font-size: clamp(4.2rem, 7vw, 5.5rem); 
    animation: floatSlow 7s ease-in-out infinite alternate; 
}
.stamp-2 { 
    top: 9%; right: 4%; font-size: clamp(4.5rem, 7vw, 5.8rem); 
    color: var(--brand-red);
    animation: rotateSlow 16s linear infinite; 
}
.stamp-3 { 
    top: 44%; left: -10px; font-size: clamp(4.8rem, 8vw, 6rem); 
    color: var(--brand-orange);
    animation: floatWave 8s ease-in-out infinite alternate; 
}
.stamp-4 { 
    top: 46%; right: -10px; font-size: clamp(5rem, 8vw, 6.2rem); 
    color: var(--brand-amber);
    animation: floatSlow 9s ease-in-out infinite alternate-reverse; 
}
.stamp-5 { 
    bottom: 8%; left: 5%; font-size: clamp(4.4rem, 7vw, 5.6rem); 
    color: var(--brand-red);
    animation: floatWave 7.5s ease-in-out infinite alternate; 
}
.stamp-6 { 
    bottom: 7%; right: 6%; font-size: clamp(4.8rem, 7.5vw, 6rem); 
    color: var(--brand-orange);
    animation: pulseTwist 10s ease-in-out infinite alternate; 
}

@keyframes floatSlow {
    0% { transform: translateY(0) rotate(-8deg); }
    100% { transform: translateY(-16px) rotate(-2deg); }
}

@keyframes floatWave {
    0% { transform: translate(0, 0) rotate(-12deg); }
    50% { transform: translate(8px, -10px) rotate(-6deg); }
    100% { transform: translate(-6px, -18px) rotate(-15deg); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseTwist {
    0% { transform: scale(1) rotate(8deg); }
    50% { transform: scale(1.06) rotate(14deg); }
    100% { transform: scale(0.96) rotate(4deg); }
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: #2b231c;
    z-index: 999999;
    display: grid;
    place-items: center;
    transition: opacity 0.3s ease, visibility 0.3s;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo { 
    max-width: 95px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.preloader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    margin: 14px auto 0;
    overflow: hidden;
}
#preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-amber));
    transition: width 0.3s ease;
}

/* ================================================================= */
/* --- CONTAINER GERAL: RESPONSIVIDADE REAL ENTRE APARELHOS -------- */
/* ================================================================= */
.app-viewport {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100dvh;
    padding: clamp(8px, 1.6vh, 16px) 0 clamp(8px, 1.4vh, 16px);
    position: relative;
    z-index: 1;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 20px clamp(4px, 1vh, 8px);
    flex-shrink: 0;
}

.brand-logo {
    max-width: clamp(80px, 11vw, 100px);
    height: auto;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.btn-links-solar {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--text-cream);
    padding: clamp(6px, 0.9vh, 8px) clamp(14px, 2.5vw, 18px);
    border-radius: 99px;
    font-size: clamp(0.7rem, 1.2vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.btn-links-solar i { color: var(--brand-amber); }

/* Faixas de Cordel */
.cordel-border-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 14px);
    padding: clamp(3px, 0.6vh, 6px) 0;
    flex-shrink: 0;
}
.c-block {
    width: clamp(20px, 2.8vw, 24px);
    height: clamp(20px, 2.8vw, 24px);
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: clamp(0.68rem, 1vw, 0.76rem);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.c-block.red { background: var(--brand-red); color: #fff; }
.c-block.amber { background: var(--brand-amber); color: #1a0f00; }
.c-block.orange { background: var(--brand-orange); color: #fff; }
.bottom-strip { margin-top: 4px; }

/* Abas */
.solar-tabs {
    display: flex;
    justify-content: center;
    gap: clamp(6px, 1.5vw, 10px);
    padding: clamp(4px, 0.8vh, 8px) 16px;
    flex-shrink: 0;
}
.tab-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: clamp(0.74rem, 1.2vw, 0.82rem);
    font-weight: 700;
    padding: clamp(6px, 0.9vh, 9px) clamp(14px, 2.8vw, 18px);
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tab-chip.active {
    background: var(--brand-red);
    border-color: var(--brand-amber);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.45);
}

/* ================================================================= */
/* --- PALCO: SOMBRA INFERIOR LIMPA & SEM BORRÕES VAZADOS ---------- */
/* ================================================================= */
.solar-stage {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 1vh, 12px) 0;
}

.solar-deck {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 24px);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 8px clamp(40px, 10vw, 70px) 12px;
    cursor: grab;
}
.solar-deck::-webkit-scrollbar { display: none; }
.solar-deck.active-drag {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

/* CARD COM ESCALA PROPORCIONAL */
.solar-card {
    flex: 0 0 auto;
    width: clamp(185px, 42vh, 280px);
    aspect-ratio: 1 / 1.414;
    scroll-snap-align: center;
    cursor: pointer;
    border-radius: 18px;
    position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* SOMBRA RENTE E LIMPA (SEM BORRÃO PESADO NA PARTE INFERIOR) */
.solar-card-art {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #1e1914;
    
    /* Sombra curta e precisa, sem vazar na base */
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.45),
        0 1px 3px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
        
    transition: box-shadow 0.25s ease;
}

/* ZOOM SUAVE ANTISANGRIA */
.solar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    user-select: none;
    -webkit-user-drag: none;
}

.solar-card-art::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Estados da Capa */
.solar-card.is-active {
    transform: scale(1.02);
    opacity: 1;
}
.solar-card.is-active .solar-card-art {
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(245, 158, 11, 0.4);
}
.solar-card:not(.is-active) {
    transform: scale(0.93);
    opacity: 0.62;
}

/* Seta Auxiliar */
.swipe-hint {
    position: absolute;
    right: clamp(8px, 2.5vw, 20px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--brand-gold);
    z-index: 20;
    pointer-events: none;
    animation: smoothPulse 2.2s ease-in-out infinite;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.swipe-hint i {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.swipe-hint span {
    font-size: clamp(0.58rem, 1vw, 0.66rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    writing-mode: vertical-rl;
}

@keyframes smoothPulse {
    0% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 1; transform: translateY(-50%) translateX(5px); }
    100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
}

.swipe-hint.hide-hint {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* --- Bloco Inferior --- */
.action-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2px, 0.5vh, 5px);
    text-align: center;
    flex-shrink: 0;
}

/* BADGE DE DESTAQUE FORA DO CARDÁPIO */
.top-feature-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a0f00;
    font-size: clamp(0.66rem, 1.1vw, 0.74rem);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
    margin-bottom: 2px;
}

.caption-tag {
    font-size: clamp(0.66rem, 1.1vw, 0.74rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--brand-gold);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.caption-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 700;
    color: var(--text-cream);
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* FAIXA DE HORÁRIOS */
.schedule-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--brand-gold);
    font-size: clamp(0.68rem, 1.1vw, 0.76rem);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
}
.schedule-pill i {
    color: var(--brand-amber);
}

.solar-indicator-dots {
    display: flex;
    gap: 6px;
    margin-top: clamp(3px, 0.6vh, 6px);
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}
.dot.active {
    width: 22px;
    background: var(--brand-amber);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* ================================================================= */
/* --- TRIPADVISOR INTEGRADO, SEM CORTE CLARO E COM ANIMAÇÃO ------- */
/* ================================================================= */
.tripadvisor-bottom-bar {
    width: 100%;
    background: transparent; /* Fundo transparente contínuo: fim da barra clara embaixo */
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(6px, 1vh, 10px) 0 clamp(4px, 0.8vh, 8px);
    margin-top: auto;
    flex-shrink: 0;
}

.trip-bar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Animação suave contínua que chama a atenção sem poluir */
    animation: tripGleamPulse 3.5s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.trip-bar-link:active {
    transform: scale(0.95);
    animation: none;
}

.trip-bar-img {
    width: clamp(120px, 30vw, 150px);
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* ANIMAÇÃO SUAVE DO TRIPADVISOR */
@keyframes tripGleamPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
    }
    50% {
        transform: translateY(-3px) scale(1.03);
        /* Brilho suave na coruja chamando o olhar */
        filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.45)) brightness(1.1);
    }
}

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 13, 0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-box {
    background: #2b231c;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 28px 22px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
}
.modal-box h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-cream);
    margin-bottom: 6px;
}
.modal-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.modal-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.8rem;
    margin-bottom: 18px;
}
.modal-socials a { color: var(--brand-amber); }
.btn-wpp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
}

@media (min-width: 900px) {
    .solar-card { width: 235px; }
}