/* ======================================
   BENETRIP - ITINERARY STYLES + FORMULÁRIO
   Versão: 9.0 - Com formulário manual de entrada
   ====================================== */

/* ✅ VARIÁVEIS CSS UNIFICADAS */
:root {
    --primary-color: #E87722; /* Laranja Vibrante */
    --secondary-color: #00A3E0; /* Azul Sereno */
    --white: #FFFFFF; /* Branco Neutro */
    --dark: #21272A; /* Cinza Escuro */
    --light-gray: #F5F5F5; /* Cinza Claro para fundos */
    --medium-gray: #E0E0E0; /* Cinza Médio para bordas */
    --success: #4CAF50; /* Verde para badges */
    --info: #2196F3; /* Azul para badges */
    --purple: #9C27B0; /* Roxo para badges */
    --error: #f44336; /* Vermelho para erros */
    --warning: #ff9800; /* Laranja para avisos */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ✅ RESET E BASE STYLES */
* {
    box-sizing: border-box;
}

body.mobile-optimized {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--light-gray);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ✅ CONTAINER PRINCIPAL */
.benetrip-container {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 80px; /* Espaço para footer fixo */
    background-color: var(--white);
    min-height: 100vh;
    position: relative;
}

/* ================================
   🆕 ESTILOS DO FORMULÁRIO
   ================================ */

/* Container do formulário */
.formulario-container {
    padding: 20px 16px;
    background-color: var(--white);
    min-height: calc(100vh - 70px);
}

/* Header do formulário */
.formulario-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 20px 0;
}

.tripinha-welcomer {
    margin-bottom: 20px;
}

.tripinha-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.tripinha-emoji {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #f39c42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.formulario-header h2 {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 8px 0;
}

.formulario-header p {
    color: var(--dark);
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

/* Formulário */
.form-viagem {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Grupos de campos */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Labels */
.form-label {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
}

/* Inputs de texto, data e hora */
.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--dark);
    background-color: var(--white);
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.1);
}

.form-input:invalid {
    border-color: var(--error);
}

.form-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Dicas e erros */
.form-hint {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--error);
    font-weight: 500;
    margin-top: 4px;
    min-height: 16px;
}

/* Radio groups */
.form-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.form-radio-item {
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.form-radio-item input[type="radio"] {
    display: none;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    background-color: var(--white);
    transition: all var(--transition-fast);
    min-height: 80px;
    justify-content: center;
}

.radio-emoji {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.radio-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 4px;
}

.radio-content small {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
}

/* Estados dos radio buttons */
.form-radio-item:hover .radio-content {
    border-color: var(--secondary-color);
    background-color: rgba(0, 163, 224, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.form-radio-item input[type="radio"]:checked + .radio-content {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(232, 119, 34, 0.1), rgba(232, 119, 34, 0.05));
    box-shadow: var(--shadow-md);
}

.form-radio-item input[type="radio"]:checked + .radio-content .radio-text {
    color: var(--primary-color);
    font-weight: 700;
}

/* Adaptações para telas menores */
@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-radio-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .radio-content {
        padding: 12px 8px;
        min-height: 70px;
    }
    
    .radio-emoji {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .radio-text {
        font-size: 13px;
    }
    
    .radio-content small {
        font-size: 10px;
    }
}

/* Botão de submissão */
.form-submit {
    margin-top: 32px;
    padding-bottom: 20px;
}

.btn-gerar-roteiro {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color), #f39c42);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    min-height: 56px;
}

.btn-gerar-roteiro:hover,
.btn-gerar-roteiro:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 119, 34, 0.4);
    outline: none;
}

.btn-gerar-roteiro:active {
    transform: translateY(0);
}

.btn-gerar-roteiro:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    font-size: 16px;
    font-weight: 700;
}

/* Loading state do botão */
.btn-gerar-roteiro.loading .btn-text {
    opacity: 0.7;
}

.btn-gerar-roteiro.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================================
   ✅ ESTILOS EXISTENTES DO ROTEIRO
   (mantidos integralmente)
   ================================ */

/* ✅ HEADER OTIMIZADO */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    padding: 16px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--medium-gray);
}

.btn-voltar {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 12px;
    color: var(--dark);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-voltar:hover,
.btn-voltar:focus {
    background-color: var(--light-gray);
    outline: none;
}

.app-header h1 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

/* ✅ LOADING COMPLETO - CORRIGIDO */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 60vh;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.loading-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    object-fit: cover;
}

.loading-emoji {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #f39c42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.loading-text {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 500;
    text-align: center;
}

.loading-subtitle {
    font-size: 14px;
    color: #777;
    margin-top: 16px;
    text-align: center;
    line-height: 1.4;
}

.progress-bar-container {
    width: 100%;
    max-width: 280px;
    height: 8px; /* ✅ Aumentei de 6px para 8px para melhor visibilidade */
    background-color: var(--medium-gray);
    border-radius: 4px; /* ✅ Aumentei de 3px para 4px */
    overflow: hidden;
    margin: 20px 0;
    position: relative; /* ✅ Adicionado para melhor controle */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* ✅ Sombra interna para profundidade */
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px; /* ✅ Combinando com o container */
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* ✅ Transição mais suave */
    min-width: 0;
    position: relative;
    overflow: hidden;
}

/* ✅ NOVO: Efeito de brilho animado na barra */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% { left: -50%; }
    100% { left: 100%; }
}

.fade-out {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

/* ✅ RESUMO DA VIAGEM OTIMIZADO */
.resumo-viagem {
    margin: 16px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-gray);
}

.resumo-viagem-header {
    background: linear-gradient(135deg, var(--secondary-color), #42a5f5);
    color: var(--white);
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icone-header {
    font-size: 18px;
}

.resumo-viagem-content {
    padding: 20px;
}

.resumo-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.resumo-item:last-child {
    margin-bottom: 0;
}

.resumo-item .icone {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 16px;
}

.resumo-item .texto {
    flex-grow: 1;
}

.resumo-item .label {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
    font-weight: 500;
}

.resumo-item .valor {
    font-weight: 600;
    margin: 0;
    color: var(--dark);
    line-height: 1.3;
}

.resumo-item .valor-secundario {
    font-size: 13px;
    color: #777;
    margin: 2px 0 0 0;
}

/* ✅ DIAS DO ROTEIRO CONTÍNUO */
.roteiro-content {
    padding: 0 16px 20px;
}

.dia-roteiro {
    margin-bottom: 24px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-gray);
}

.dia-roteiro.continuo {
    /* Estilos específicos para layout contínuo */
}

.dia-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #f39c42);
    color: var(--white);
    padding: 16px;
    font-weight: 700;
    font-size: 16px;
}

.dia-numero {
    width: 36px;
    height: 36px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 700;
    font-size: 16px;
}

.dia-content {
    padding: 20px;
}

.dia-descricao {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    font-style: italic;
    background-color: rgba(232, 119, 34, 0.08);
    padding: 12px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.dia-observacao {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--dark);
}

.icone-obs {
    margin-right: 8px;
    font-size: 16px;
}

.dia-livre {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--medium-gray);
    color: #666;
}

.dia-livre p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* ✅ PREVISÃO DO TEMPO */
.previsao-tempo {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #90caf9;
}

.previsao-icon {
    margin-right: 8px;
    font-size: 18px;
}

.previsao-texto {
    font-weight: 500;
    color: #1565c0;
}

/* ✅ ATIVIDADES CONTÍNUAS - LAYOUT PRINCIPAL */
.atividades-continuas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.atividade-continua {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.atividade-continua:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.atividade-especial {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-color: var(--primary-color);
    border-width: 2px;
}

.atividade-horario {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

.horario-icon {
    margin-right: 6px;
    font-size: 16px;
}

.horario-texto {
    font-weight: 700;
}

.duracao-texto {
    color: #777;
    font-weight: 400;
    margin-left: 6px;
}

.atividade-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Container do local com estrutura corrigida */
.atividade-local {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.local-icon {
    margin-top: 2px;
    font-size: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.local-detalhes {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.local-nome {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
}

.atividade-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 6px 12px;
    min-height: 24px;
    border-radius: 15px;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: fit-content;
}

.badge-cultura,
.badge-turismo,
.badge-destaque {
    font-size: 9px;
    padding: 5px 10px;
    min-height: 22px;
    border-radius: 12px;
}

.badge-destaque {
    background: linear-gradient(135deg, #E87722, #f39c42);
    color: #FFFFFF;
}

.badge-voo {
    background: linear-gradient(135deg, #00A3E0, #42a5f5);
    color: #FFFFFF;
}

.badge-cultura {
    background: linear-gradient(135deg, #9C27B0, #ba68c8);
    color: #FFFFFF;
}

.badge-gastronomia {
    background: linear-gradient(135deg, #ff7043, #ff8a65);
    color: #FFFFFF;
}

.badge-natureza {
    background: linear-gradient(135deg, #4CAF50, #66bb6a);
    color: #FFFFFF;
}

.badge-compras {
    background: linear-gradient(135deg, #ffa726, #ffb74d);
    color: #FFFFFF;
}

.badge-noturno {
    background: linear-gradient(135deg, #5c6bc0, #7986cb);
    color: #FFFFFF;
}

.badge-vista {
    background: linear-gradient(135deg, #26a69a, #4db6ac);
    color: #FFFFFF;
}

.badge-padrao {
    background: linear-gradient(135deg, #78909c, #90a4ae);
    color: #FFFFFF;
}

/* ✅ DICA DA TRIPINHA OTIMIZADA */
.tripinha-dica {
    background: linear-gradient(135deg, rgba(232, 119, 34, 0.1), rgba(232, 119, 34, 0.05));
    padding: 16px;
    border-radius: var(--radius-lg);
    margin: 16px 0;
    display: flex;
    align-items: center; /* ✅ Mudança principal */
    border: 1px solid rgba(232, 119, 34, 0.2);
    gap: 12px;
    min-height: 60px; /* ✅ Altura mínima para consistência */
}

.tripinha-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    align-self: center; /* ✅ Backup de centralização */
    display: flex; /* ✅ Para centralizar a imagem dentro */
    align-items: center;
    justify-content: center;
}


.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* ✅ Garantia de formato circular */
}

.avatar-emoji {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #f39c42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dica-texto p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--dark);
}

/* ✅ IMAGENS RESPONSIVAS OTIMIZADAS */
.atividade-imagem-responsiva {
    margin: 16px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--light-gray);
    position: relative;
}

.imagem-lazy {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: all var(--transition-normal);
}

.imagem-lazy[loading="lazy"] {
    opacity: 0;
}

.imagem-lazy.loaded {
    opacity: 1;
}

.atividade-imagem-responsiva:hover .imagem-lazy {
    transform: scale(1.02);
}

.atividade-imagem-responsiva::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--light-gray) 25%, transparent 37%, var(--light-gray) 63%);
    background-size: 400% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.atividade-imagem-responsiva:has(.imagem-lazy[style*="opacity: 0"])::before {
    opacity: 1;
}

@keyframes skeleton {
    0% { background-position: 100% 50%; }
    100% { background-position: -100% 50%; }
}

/* ✅ BOTÃO DE MAPA OTIMIZADO */
.btn-ver-mapa-mini {
    margin-top: 12px;
    padding: 10px 16px;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-fast);
    cursor: pointer;
    min-height: 44px;
    width: 100%;
}

.btn-ver-mapa-mini:hover,
.btn-ver-mapa-mini:focus {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-1px);
    outline: none;
}

.icon-mapa {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ✅ FOOTER COM BOTÕES OTIMIZADO */
.botao-acoes-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 16px;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
    gap: 12px;
    border-top: 1px solid var(--medium-gray);
}

.btn-principal, .btn-secundario {
    flex: 1;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    border: none;
    min-height: 48px;
}

.btn-principal {
    background: linear-gradient(135deg, var(--primary-color), #f39c42);
    color: var(--white);
}

.btn-principal:hover,
.btn-principal:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.3);
    outline: none;
}

.btn-secundario {
    background-color: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secundario:hover,
.btn-secundario:focus {
    background-color: var(--secondary-color);
    color: var(--white);
    outline: none;
}

/* ✅ TOAST NOTIFICATIONS COMPLETAS */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all var(--transition-normal);
    border-left: 4px solid var(--info);
    pointer-events: auto;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    color: var(--dark);
    line-height: 1.4;
}

/* ✅ CONTAINER DE ERRO COMPLETO */
.erro-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.erro-icon {
    margin-bottom: 20px;
}

.erro-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.erro-titulo {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.erro-mensagem {
    color: var(--dark);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.erro-acoes {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.erro-acoes .btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    border: none;
    transition: all var(--transition-fast);
}

.erro-dica {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* ✅ RESPONSIVIDADE OTIMIZADA */
@media (max-width: 480px) {
    .benetrip-container {
        width: 100%;
        margin: 0;
    }
    
    .formulario-container {
        padding: 16px 12px;
    }
    
    .formulario-header h2 {
        font-size: 22px;
    }
    
    .formulario-header p {
        font-size: 15px;
    }
    
    .tripinha-avatar,
    .tripinha-emoji {
        width: 60px;
        height: 60px;
    }
    
    .tripinha-emoji {
        font-size: 30px;
    }
    
    .resumo-viagem {
        margin: 12px;
    }
    
    .roteiro-content {
        padding: 0 12px 20px;
    }
    
    .dia-content {
        padding: 16px;
    }
    
    .atividade-continua {
        padding: 12px;
    }
    
    .botao-acoes-fixo {
        padding: 12px;
        gap: 8px;
    }
    
    .btn-principal, .btn-secundario {
        padding: 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .imagem-lazy {
        min-height: 180px;
        max-height: 250px;
    }
    
    .app-header {
        padding: 12px;
    }
    
    .app-header h1 {
        font-size: 18px;
    }
    
    .badge {
        font-size: 9px;
        padding: 4px 8px;
        min-height: 20px;
        border-radius: 12px;
    }
    
    .badge-cultura,
    .badge-turismo,
    .badge-destaque {
        font-size: 8px;
        padding: 3px 6px;
        min-height: 18px;
        border-radius: 10px;
    }
    
    .atividade-badges {
        gap: 6px;
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    .resumo-viagem,
    .roteiro-content {
        margin: 8px;
        padding: 8px;
    }
    
    .atividade-continua {
        padding: 10px;
    }
    
    .dia-content {
        padding: 12px;
    }
    
    .loading-avatar,
    .loading-emoji {
        width: 60px;
        height: 60px;
    }
    
    .loading-text {
        font-size: 14px;
    }
    
    .badge {
        font-size: 8px;
        padding: 3px 6px;
        min-height: 18px;
    }
    
    .badge-cultura,
    .badge-turismo,
    .badge-destaque {
        font-size: 7px;
        padding: 2px 5px;
        min-height: 16px;
        border-radius: 8px;
    }
    
    .atividade-badges {
        gap: 4px;
    }
}

/* ✅ OTIMIZAÇÕES DE PERFORMANCE */
.imagem-lazy {
    will-change: opacity;
}

.atividade-continua {
    will-change: transform;
}

.btn-ver-mapa-mini,
.btn-principal,
.btn-secundario,
.btn-gerar-roteiro {
    will-change: transform;
}

/* ✅ ESTADOS DE FOCO PARA ACESSIBILIDADE */
.btn-voltar:focus,
.btn-ver-mapa-mini:focus,
.btn-principal:focus,
.btn-secundario:focus,
.btn-gerar-roteiro:focus,
.form-input:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ✅ PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-avatar,
    .loading-emoji {
        animation: none;
    }
}

/* ✅ HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .badge {
        border: 1px solid var(--white);
    }
    
    .btn-secundario {
        border-width: 3px;
    }
    
    .form-input {
        border-width: 3px;
    }
}

/* ================================
   🆕 ESTILOS ESPECÍFICOS FAMÍLIA
   ================================ */

#grupo-familia {
    padding: 16px;
    background: linear-gradient(135deg, rgba(232, 119, 34, 0.05), rgba(232, 119, 34, 0.02));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232, 119, 34, 0.2);
    margin-top: 12px;
}

#grupo-familia .form-label {
    font-size: 14px;
    margin-bottom: 6px;
}

#grupo-familia .form-row {
    margin-bottom: 16px;
}

#grupo-familia .form-row:last-of-type {
    margin-bottom: 8px;
}

#total-familia {
    font-weight: 600;
    text-align: center;
    cursor: not-allowed;
}

/* Estilo especial para o campo readonly */
#total-familia:focus {
    border-color: var(--medium-gray) !important;
    box-shadow: none !important;
}

/* Adaptações para mobile */
@media (max-width: 480px) {
    #grupo-familia {
        padding: 12px;
    }
    
    #grupo-familia .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
}

/* ✨ ESTILOS ESPECIAIS PARA O AVATAR OFICIAL DA TRIPINHA ✨ */

/* 🌟 Avatar Principal no Formulário */
.tripinha-avatar-principal {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 
        0 8px 32px rgba(232, 119, 34, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 4px;
}

.tripinha-avatar-principal:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
        0 12px 40px rgba(232, 119, 34, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 🎯 Loading Screen Especial */
.loading-avatar-oficial {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 
        0 8px 32px rgba(232, 119, 34, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.1);
    animation: tripinha-bounce 2s infinite, tripinha-glow 3s ease-in-out infinite alternate;
    background: radial-gradient(circle, #ffffff 0%, #f8f9fa 100%);
    padding: 6px;
}

/* 🐕 Animações Personalizadas */
@keyframes tripinha-bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0) scale(1); 
    }
    40% { 
        transform: translateY(-15px) scale(1.02); 
    }
    60% { 
        transform: translateY(-8px) scale(1.01); 
    }
}

@keyframes tripinha-glow {
    from {
        box-shadow: 
            0 8px 32px rgba(232, 119, 34, 0.3),
            0 4px 16px rgba(0, 0, 0, 0.1);
    }
    to {
        box-shadow: 
            0 12px 40px rgba(232, 119, 34, 0.5),
            0 6px 20px rgba(0, 163, 224, 0.2);
    }
}

/* 💬 Avatar nas Dicas - Versão Oficial */
.avatar-img-oficial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.25);
    background: var(--white);
    padding: 2px;
    transition: transform 0.2s ease;
}

.avatar-img-oficial:hover {
    transform: scale(1.1) rotate(5deg);
}

/* 🎪 Header Especial com Avatar */
.formulario-header-premium {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, 
        rgba(232, 119, 34, 0.05) 0%, 
        rgba(0, 163, 224, 0.05) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232, 119, 34, 0.1);
    position: relative;
    overflow: hidden;
}

.formulario-header-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(232, 119, 34, 0.03) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(0, 163, 224, 0.03) 0%, transparent 50%);
    animation: gentle-float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gentle-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5px, -10px) rotate(1deg); }
    50% { transform: translate(10px, -5px) rotate(-1deg); }
    75% { transform: translate(-10px, 5px) rotate(0.5deg); }
}

/* 📱 Responsividade Otimizada */
@media (max-width: 480px) {
    .tripinha-avatar-principal {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .loading-avatar-oficial {
        width: 90px;
        height: 90px;
        border-width: 4px;
    }
    
    .avatar-img-oficial {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
}

@media (max-width: 360px) {
    .tripinha-avatar-principal {
        width: 70px;
        height: 70px;
    }
    
    .loading-avatar-oficial {
        width: 75px;
        height: 75px;
    }
}

/* 🎨 Variante para Modo Escuro (futuro) */
@media (prefers-color-scheme: dark) {
    .tripinha-avatar-principal,
    .loading-avatar-oficial,
    .avatar-img-oficial {
        border-color: var(--secondary-color);
        background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    }
}

/* ✨ Efeito Especial para Primeira Impressão */
.tripinha-entrada-especial {
    animation: tripinha-entrada 1.2s ease-out;
}

@keyframes tripinha-entrada {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8) rotate(-10deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* 🎯 Loading com Progresso Visual */
.loading-tripinha-container {
    position: relative;
    display: inline-block;
}

.loading-tripinha-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: tripinha-loading-ring 2s linear infinite;
}

@keyframes tripinha-loading-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🎪 Contexto de Sucesso */
.tripinha-sucesso {
    animation: tripinha-celebration 0.6s ease-out;
}

@keyframes tripinha-celebration {
    0% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* 🔄 Transições Suaves */
.tripinha-avatar-principal,
.loading-avatar-oficial,
.avatar-img-oficial {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 🎨 Sombra Dinâmica Baseada no Contexto */
.tripinha-context-welcome {
    box-shadow: 
        0 8px 32px rgba(232, 119, 34, 0.3),
        0 0 0 1px rgba(232, 119, 34, 0.1);
}

.tripinha-context-loading {
    box-shadow: 
        0 8px 32px rgba(0, 163, 224, 0.3),
        0 0 0 1px rgba(0, 163, 224, 0.1);
}

.tripinha-context-tip {
    box-shadow: 
        0 4px 16px rgba(232, 119, 34, 0.25),
        0 0 0 1px rgba(232, 119, 34, 0.1);
}

/* 🎨 POLISH ADICIONAL PARA A TRIPINHA - VERSÃO FINAL */

/* ✨ Animação de entrada mais suave */
.tripinha-avatar-principal {
    animation: tripinha-entrada-suave 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tripinha-entrada-suave {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-30px) rotate(-15deg);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.1) translateY(-5px) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

/* 🌟 Efeito de brilho sutil no avatar */
.tripinha-avatar-principal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    animation: tripinha-shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes tripinha-shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 💫 Micro-interação no hover */
.tripinha-avatar-principal:hover {
    animation: tripinha-wiggle 0.6s ease-in-out;
    cursor: pointer;
}

@keyframes tripinha-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg) scale(1.02); }
    75% { transform: rotate(-2deg) scale(1.02); }
}

/* 🎪 Background com gradiente sutil */
.formulario-header-premium {
    background: 
        radial-gradient(circle at 20% 80%, rgba(232, 119, 34, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 163, 224, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

/* ✨ Efeito de "respiração" no texto */
.formulario-header h2 {
    animation: tripinha-breathe 4s ease-in-out infinite;
}

@keyframes tripinha-breathe {
    0%, 100% { 
        transform: scale(1); 
        color: #E87722; 
    }
    50% { 
        transform: scale(1.01); 
        color: #f39c42; 
    }
}

/* 🎯 Indicador visual de interatividade */
.tripinha-avatar-principal::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 16px;
    animation: tripinha-sparkle 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes tripinha-sparkle {
    0%, 100% { 
        transform: scale(0.8) rotate(0deg); 
        opacity: 0.4; 
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        opacity: 0.8; 
    }
}

/* 📱 Ajustes mobile específicos */
@media (max-width: 480px) {
    .tripinha-avatar-principal::after {
        font-size: 14px;
        top: -8px;
        right: -3px;
    }
    
    .formulario-header h2 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .formulario-header p {
        font-size: 15px;
        line-height: 1.4;
        margin: 0 10px;
    }
}

/* 🎨 Estado de carregamento mais elegante */
.tripinha-loading-state {
    position: relative;
}

.tripinha-loading-state::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-top-color: #E87722;
    border-right-color: #00A3E0;
    border-radius: 50%;
    animation: tripinha-spin 2s linear infinite;
}

@keyframes tripinha-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 💝 Feedback tátil visual */
.tripinha-avatar-principal:active {
    transform: scale(0.95);
    transition: transform 0.1s ease-out;
}

/* 🌈 Modo celebração (para easter eggs) */
.tripinha-celebration-mode {
    animation: tripinha-party 1s ease-in-out infinite;
    filter: hue-rotate(0deg) saturate(1.5);
}

@keyframes tripinha-party {
    0% { filter: hue-rotate(0deg) saturate(1.5); }
    25% { filter: hue-rotate(90deg) saturate(1.8); }
    50% { filter: hue-rotate(180deg) saturate(1.5); }
    75% { filter: hue-rotate(270deg) saturate(1.8); }
    100% { filter: hue-rotate(360deg) saturate(1.5); }
}

/* ==========================================
   MODAL DE COMPARTILHAMENTO - NOVO
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.modal-visible {
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.modal-visible .modal-content {
  transform: scale(1);
}

.modal-compartilhar {
  width: 420px;
  max-width: 90vw;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #E0E0E0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #21272A;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f5f5f5;
}

.modal-body {
  padding: 24px;
}

.opcoes-compartilhamento {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opcao-compartilhar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.opcao-compartilhar:hover {
  border-color: #00A3E0;
  background-color: rgba(0, 163, 224, 0.05);
  transform: translateY(-1px);
}

.opcao-compartilhar.opcao-destaque {
  border-color: #E87722;
  background-color: rgba(232, 119, 34, 0.08);
}

.opcao-compartilhar.opcao-destaque:hover {
  border-color: #E87722;
  background-color: rgba(232, 119, 34, 0.15);
}

.opcao-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 163, 224, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.opcao-destaque .opcao-icon {
  background: rgba(232, 119, 34, 0.15);
}

.opcao-info {
  flex: 1;
}

.opcao-titulo {
  font-weight: 600;
  font-size: 16px;
  color: #21272A;
  margin-bottom: 4px;
}

.opcao-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.3;
}

/* ==========================================
   AJUSTES PARA CAPTURA DE IMAGEM
   ========================================== */

/* Garantir que o roteiro fique bem na imagem */
@media print, (max-width: 0) {
  .roteiro-content {
    background: white !important;
    color: #333 !important;
    padding: 20px !important;
    margin: 0 !important;
  }
  
  .roteiro-content * {
    color: #333 !important;
  }
  
  .dia-roteiro {
    page-break-inside: avoid;
    margin-bottom: 24px !important;
  }
  
  .atividade-continua {
    margin-bottom: 16px !important;
  }
  
  .badge {
    font-weight: bold !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
  }
  
  .badge-destaque {
    background: #E87722 !important;
    color: white !important;
  }
  
  .badge-cultura {
    background: #9C27B0 !important;
    color: white !important;
  }
  
  .badge-gastronomia {
    background: #FF5722 !important;
    color: white !important;
  }
  
  .badge-natureza {
    background: #4CAF50 !important;
    color: white !important;
  }
}

/* ==========================================
   RESPONSIVIDADE DO MODAL
   ========================================== */

@media (max-width: 480px) {
  .modal-compartilhar {
    width: 95vw;
    margin: 20px;
  }
  
  .modal-header {
    padding: 16px 20px 12px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .opcao-compartilhar {
    padding: 14px;
    gap: 12px;
  }
  
  .opcao-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
  }
  
  .opcao-titulo {
    font-size: 15px;
  }
  
  .opcao-desc {
    font-size: 13px;
  }
}

/* ==========================================
   MELHORIAS PARA CAPTURA
   ========================================== */

/* Garantir que imagens apareçam bem na captura */
.atividade-imagem-responsiva img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}

/* Garantir contraste nos textos */
.dia-header {
  background: #E87722 !important;
  color: white !important;
}

.resumo-viagem-header {
  background: #00A3E0 !important;
  color: white !important;
}

/* Garantir que badges sejam visíveis */
.badge {
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  display: inline-block !important;
}

/* ==========================================
   MODAL SIMPLES PARA TEXTO - ÚLTIMO RECURSO
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.modal-visible {
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.modal-visible .modal-content {
  transform: scale(1);
}

.modal-texto {
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #E0E0E0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #21272A;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f5f5f5;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(80vh - 80px);
}

.instrucao {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.texto-roteiro {
  width: 100%;
  height: 400px;
  padding: 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.4;
  resize: none;
  background: #f9f9f9;
  color: #333;
  overflow-y: auto;
}

.texto-roteiro:focus {
  outline: none;
  border-color: #00A3E0;
  background: white;
}

.modal-acoes {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-principal {
  background: #E87722;
  color: white;
}

.btn-principal:hover {
  background: #d66a1a;
  transform: translateY(-1px);
}

.btn-secundario {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.btn-secundario:hover {
  background: #eeeeee;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 640px) {
  .modal-texto {
    width: 95vw;
    height: 90vh;
    margin: 20px;
  }
  
  .modal-header {
    padding: 16px 20px 12px;
  }
  
  .modal-body {
    padding: 20px;
    max-height: calc(90vh - 60px);
  }
  
  .texto-roteiro {
    height: 300px;
    font-size: 12px;
  }
  
  .modal-acoes {
    flex-direction: column-reverse;
  }
  
  .btn {
    width: 100%;
    padding: 12px;
  }
}

/* ==========================================
   MODAL DE COMPARTILHAMENTO SIMPLIFICADO
   ========================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.modal-visible {
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.modal-visible .modal-content {
  transform: scale(1);
}

.modal-compartilhar {
  width: 420px;
  max-width: 90vw;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #E0E0E0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #21272A;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f5f5f5;
}

.modal-body {
  padding: 24px;
}

.compartilhar-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(232, 119, 34, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(232, 119, 34, 0.2);
}

.info-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 119, 34, 0.15);
  border-radius: 10px;
  flex-shrink: 0;
}

.info-texto h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #21272A;
}

.info-texto p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.modal-acoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-compartilhar-texto {
  background: #E87722 !important;
  color: white !important;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-compartilhar-texto:hover {
  background: #d66a1a !important;
  transform: translateY(-1px);
}

.btn-secundario {
  background: transparent !important;
  color: #666 !important;
  border: 1px solid #E0E0E0;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secundario:hover {
  background: #f5f5f5 !important;
  border-color: #ccc;
}

/* ==========================================
   LINKS DE MAPAS NAS ATIVIDADES - NOVO
   ========================================== */

.atividade-mapas {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.btn-ver-mapa-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #00A3E0;
  color: #00A3E0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  flex: 1;
  justify-content: center;
}

.btn-ver-mapa-mini:hover {
  background: rgba(0, 163, 224, 0.1);
  border-color: #0088cc;
  color: #0088cc;
  transform: translateY(-1px);
}

.link-mapa-direto {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #E87722;
  color: #E87722;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.link-mapa-direto:hover {
  background: rgba(232, 119, 34, 0.1);
  border-color: #d66a1a;
  color: #d66a1a;
  transform: translateY(-1px);
}

.icon-mapa,
.icon-link {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 480px) {
  .modal-compartilhar {
    width: 95vw;
    margin: 20px;
  }
  
  .modal-header {
    padding: 16px 20px 12px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .compartilhar-info {
    padding: 14px;
    gap: 12px;
  }
  
  .info-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
  }
  
  .info-texto h4 {
    font-size: 15px;
  }
  
  .info-texto p {
    font-size: 13px;
  }
  
  .btn-compartilhar-texto {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .btn-secundario {
    padding: 10px 16px;
  }
  
  .atividade-mapas {
    flex-direction: column;
    gap: 6px;
  }
  
  .btn-ver-mapa-mini,
  .link-mapa-direto {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ==========================================
   MELHORIAS VISUAIS PARA ATIVIDADES
   ========================================== */

.atividade-continua {
  border-radius: 12px;
  border: 1px solid #E0E0E0;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.atividade-continua:hover {
  border-color: #00A3E0;
  box-shadow: 0 2px 8px rgba(0, 163, 224, 0.1);
}

.atividade-continua.atividade-especial {
  border-color: #E87722;
  background: rgba(232, 119, 34, 0.05);
}

.atividade-info {
  padding: 16px;
}

.atividade-local {
  margin-bottom: 12px;
}

.local-nome {
  font-weight: 600;
  font-size: 16px;
  color: #21272A;
}

.atividade-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.badge-destaque {
  background: #E87722;
  color: white;
}

.badge-cultura {
  background: #9C27B0;
  color: white;
}

.badge-gastronomia {
  background: #FF5722;
  color: white;
}

.badge-natureza {
  background: #4CAF50;
  color: white;
}

.badge-compras {
  background: #795548;
  color: white;
}

.badge-noturno {
  background: #673AB7;
  color: white;
}

.badge-vista {
  background: #00BCD4;
  color: white;
}

.badge-padrao {
  background: #607D8B;
  color: white;
}

.tripinha-dica {
  margin-top: 12px;
  padding: 12px;
  background: rgba(232, 119, 34, 0.08);
  border-radius: 10px;
  border-left: 4px solid #E87722;
}

.tripinha-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-emoji {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #E87722;
}

.dica-texto p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #21272A;
}

.atividade-imagem-responsiva {
  margin: 12px 16px 0;
}

.atividade-imagem-responsiva img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

/* ==========================================
   AJUSTES PARA MELHOR LAYOUT DOS MAPAS
   ========================================== */

.atividade-mapas {
  padding: 0 16px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================
   OPÇÕES DE TAMANHO DE COMPARTILHAMENTO
   ========================================== */

.opcoes-tamanho {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.opcao-tamanho {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.opcao-tamanho:hover {
  border-color: #00A3E0;
  background-color: rgba(0, 163, 224, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.15);
}

.opcao-tamanho.opcao-destaque {
  border-color: #E87722;
  background-color: rgba(232, 119, 34, 0.08);
  position: relative;
}

.opcao-tamanho.opcao-destaque::before {
  content: "RECOMENDADO";
  position: absolute;
  top: -8px;
  right: 12px;
  background: #E87722;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.opcao-tamanho.opcao-destaque:hover {
  border-color: #E87722;
  background-color: rgba(232, 119, 34, 0.15);
  box-shadow: 0 4px 12px rgba(232, 119, 34, 0.2);
}

.opcao-tamanho .opcao-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 163, 224, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.opcao-destaque .opcao-icon {
  background: rgba(232, 119, 34, 0.15);
}

.opcao-tamanho .opcao-info {
  flex: 1;
  min-width: 0;
}

.opcao-tamanho .opcao-titulo {
  font-weight: 600;
  font-size: 16px;
  color: #21272A;
  margin-bottom: 4px;
}

.opcao-tamanho .opcao-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.3;
}

.opcao-tamanho .opcao-preview {
  font-size: 12px;
  color: #00A3E0;
  font-weight: 500;
  line-height: 1.3;
}

.opcao-destaque .opcao-preview {
  color: #E87722;
}

/* ==========================================
   MELHORIAS NO MODAL PRINCIPAL
   ========================================== */

.modal-compartilhar {
  width: 480px;
  max-width: 95vw;
}

.compartilhar-info {
  margin-bottom: 20px;
}

.compartilhar-info .info-texto h4 {
  margin-bottom: 6px;
}

.modal-acoes {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ==========================================
   INDICADORES VISUAIS DE TAMANHO
   ========================================== */

.tamanho-indicador {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #666;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.tamanho-indicador.pequeno {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
}

.tamanho-indicador.medio {
  color: #FF9800;
  background: rgba(255, 152, 0, 0.1);
}

.tamanho-indicador.grande {
  color: #F44336;
  background: rgba(244, 67, 54, 0.1);
}

/* ==========================================
   RESPONSIVIDADE PARA OPÇÕES
   ========================================== */

@media (max-width: 520px) {
  .modal-compartilhar {
    width: 95vw;
    margin: 20px auto;
  }
  
  .opcao-tamanho {
    padding: 14px;
    gap: 12px;
  }
  
  .opcao-tamanho .opcao-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  
  .opcao-tamanho .opcao-titulo {
    font-size: 15px;
  }
  
  .opcao-tamanho .opcao-desc {
    font-size: 12px;
  }
  
  .opcao-tamanho .opcao-preview {
    font-size: 11px;
  }
  
  .opcao-tamanho.opcao-destaque::before {
    font-size: 9px;
    padding: 3px 6px;
    top: -6px;
    right: 8px;
  }
}

@media (max-width: 400px) {
  .opcoes-tamanho {
    gap: 10px;
  }
  
  .opcao-tamanho {
    padding: 12px;
    gap: 10px;
  }
  
  .opcao-tamanho .opcao-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
  }
  
  .opcao-tamanho .opcao-titulo {
    font-size: 14px;
  }
  
  .opcao-tamanho .opcao-desc,
  .opcao-tamanho .opcao-preview {
    font-size: 11px;
  }
}

/* ==========================================
   ESTADOS ESPECIAIS
   ========================================== */

.opcao-tamanho:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.opcao-tamanho:focus {
  outline: 2px solid #00A3E0;
  outline-offset: 2px;
}

.opcao-destaque:focus {
  outline-color: #E87722;
}

/* ==========================================
   ANIMAÇÕES SUAVES
   ========================================== */

.opcoes-tamanho {
  animation: slideInUp 0.3s ease-out;
}

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

.opcao-tamanho {
  animation: fadeIn 0.4s ease-out backwards;
}

.opcao-tamanho:nth-child(1) {
  animation-delay: 0.1s;
}

.opcao-tamanho:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===================================
   MODAL DE COMPARTILHAMENTO OTIMIZADO
   =================================== */

.modal-compartilhar {
  max-width: 480px;
  width: 90%;
}

.compartilhar-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #E87722, #FF9A3D);
  border-radius: 12px;
  margin-bottom: 20px;
}

.compartilhar-info .info-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.compartilhar-info .info-texto {
  color: white;
  flex: 1;
}

.compartilhar-info h4 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: bold;
}

.compartilhar-info p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}

/* Opções de Tamanho */
.opcoes-tamanho {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.opcao-tamanho {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.opcao-tamanho:hover {
  border-color: #00A3E0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.15);
}

.opcao-tamanho.opcao-destaque {
  border-color: #E87722;
  background: rgba(232, 119, 34, 0.05);
}

.opcao-tamanho.opcao-destaque:hover {
  border-color: #E87722;
  background: rgba(232, 119, 34, 0.1);
  box-shadow: 0 4px 12px rgba(232, 119, 34, 0.25);
}

.opcao-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.opcao-info {
  flex: 1;
}

.opcao-titulo {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
  color: #21272A;
}

.opcao-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.opcao-preview {
  font-size: 13px;
  color: #00A3E0;
  font-weight: 500;
}

.opcao-destaque .opcao-preview {
  color: #E87722;
}

/* Dica de Compartilhamento */
.dica-compartilhamento {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #F8F9FA;
  border-left: 4px solid #00A3E0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.dica-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.dica-texto {
  font-size: 14px;
  color: #21272A;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 480px) {
  .modal-compartilhar {
    width: 95%;
    margin: 10px;
  }
  
  .opcoes-tamanho {
    gap: 10px;
  }
  
  .opcao-tamanho {
    padding: 12px;
    gap: 12px;
  }
  
  .opcao-icon {
    font-size: 28px;
  }
  
  .opcao-titulo {
    font-size: 15px;
  }
  
  .opcao-desc {
    font-size: 13px;
  }
  
  .compartilhar-info {
    padding: 12px;
  }
  
  .compartilhar-info h4 {
    font-size: 16px;
  }
}
