/* Estilos Globais e Reset Básico */
html, body, #app {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Controlado por componentes internos */
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; /* Usando Inter como exemplo, se não for padrão */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Oculta elementos com v-cloak durante a inicialização do Vue */
[v-cloak] {
    display: none;
}

/* Estilos do Feed Principal */
#feed {
    scroll-snap-type: y mandatory; /* Rolagem "magnética" */
    -webkit-overflow-scrolling: touch; /* Melhora o scroll em iOS */
    overflow-y: scroll; /* Garante que o scroll exista */
}

/* Overlay escuro na parte inferior das atrações do feed */
.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 5;
}

/* Botões de Ação Lateral no Feed */
.action-button {
    display: flex;
    justify-content: center;
    align-items: center; 
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.action-button:hover { 
    opacity: 0.8;
    transform: scale(1.1);
}
.action-button img { 
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.7)); /* Sombra para ícones */
}

/* Badge de Contador de Roteiro */
.itinerary-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444; /* red-500 */
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
}

/* Estilos de Modais (Gerais) */
.modal-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 30;
    backdrop-filter: blur(4px); /* Efeito de desfoque de fundo */
}

.modal-content-simple,
.modal-content-details,
.modal-content-filters,
.modal-content-itinerary {
    background-color: #111827; /* gray-900 */
    border-radius: 1rem; /* arredondamento */
    z-index: 40;
    overflow: hidden; /* Garante que o conteúdo respeite o border-radius */
}

/* Posicionamento central para modais simples e de filtro */
.modal-content-simple,
.modal-content-details,
.modal-content-filters {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza perfeitamente */
}

.modal-content-simple {
    padding: 2rem;
    width: 90%;
    max-width: 500px;
}

/* Tamanhos para modais de detalhes e filtro */
.modal-content-details,
.modal-content-filters {
    width: 95%;
    max-width: 800px;
    height: 90%;
    max-height: 90vh; /* Usa viewport height para flexibilidade */
}

.modal-content-filters {
    max-width: 500px; /* Mantém um pouco mais estreito */
}

/* Animações de Transição dos Modais */
.modal-fade-enter-active, .modal-fade-leave-active {
    transition: opacity 0.3s ease;
}
.modal-fade-enter-from, .modal-fade-leave-to {
    opacity: 0;
}
.modal-fade-enter-active .modal-content-simple,
.modal-fade-enter-active .modal-content-details,
.modal-fade-enter-active .modal-content-filters {
    transition: all 0.3s ease;
}
.modal-fade-enter-from .modal-content-simple,
.modal-fade-enter-from .modal-content-details,
.modal-fade-enter-from .modal-content-filters {
    transform: translate(-50%, -50%) scale(0.95); /* Pequena escala na entrada */
}

/* Estilos para cards de informação dentro dos modais */
.details-info-card {
    background-color: #1f2937; /* gray-800 */
    padding: 1rem;
    border-radius: 0.75rem; /* 12px */
    margin-bottom: 1rem;
}

/* Estilos para os botões de rota (Google Maps, Uber, 99, Linha Turismo) */
.route-button {
    padding: 0.75rem 1rem; /* Aumentado um pouco o padding */
    border-radius: 0.5rem; /* 8px */
    font-weight: 600; /* Mais negrito */
    color: white; /* Texto sempre branco */
    text-align: center;
    text-decoration: none; /* Remover sublinhado do link */
    display: flex; /* Para centralizar ícone e texto */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Sombra suave */
    transition: background-color 0.2s, transform 0.1s; /* Transição para hover e clique */
}
.route-button i {
    font-size: 1.2em; /* Ícones ligeiramente maiores */
}
.route-button:hover {
    transform: translateY(-1px); /* Pequeno efeito "levantar" */
}
.route-button:active {
    transform: translateY(0); /* Retorna na hora do clique */
    box-shadow: none;
}


/* Estilos Específicos do Modal de Roteiro (itinerary) */
.modal-content-itinerary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 95%; /* Ocupa a maior parte da tela inferior */
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    display: flex; /* Para layout flexbox interno */
    flex-direction: column;
}

/* Animação para o modal de roteiro (slide up/down) */
.modal-fade-enter-active .modal-content-itinerary,
.modal-fade-leave-active .modal-content-itinerary {
    transition: transform 0.3s ease-out;
}
.modal-fade-enter-from .modal-content-itinerary,
.modal-fade-leave-to .modal-content-itinerary {
    transform: translateY(100%); /* Começa/termina fora da tela */
}
.modal-fade-enter-to .modal-content-itinerary {
    transform: translateY(0); /* Entra na tela */
}

.itinerary-header {
    background-color: #1f2937; /* gray-800 */
}
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px; /* full rounded */
    font-weight: 600;
    color: white;
}
.itinerary-map { 
    height: 32%; /* Altura do mapa no modal de roteiro */
}
@media (max-width: 768px) { 
    .itinerary-map { 
        height: 40%; /* Aumenta a altura do mapa em telas menores */
    } 
}
.itinerary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1f2937; /* gray-800 */
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.itinerary-card:hover { 
    border-color: #4b5563; /* gray-600 */
}
.itinerary-card.highlighted { 
    border-color: #f59e0b; /* yellow-500 */
    background-color: #374151; /* gray-700 */
}
.itinerary-card.visited { 
    opacity: 0.7; /* Itens visitados ficam levemente opacos */
}
.itinerary-card.visited .font-bold { 
    text-decoration: line-through; /* Risca o nome */
    color: #9ca3af; /* gray-400 */
}
.itinerary-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    background-color: #374151; /* gray-700 */
    border-color: #4b5563; /* gray-600 */
    color: #3b82f6; /* blue-500 (cor do check) */
    flex-shrink: 0;
    cursor: pointer;
}
.distance-badge {
    background-color: #3b82f6; /* blue-500 */
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: bold;
}
.nav-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem; /* 36px */
    height: 2.25rem;
    border-radius: 50%;
    background-color: #4b5563; /* gray-600 */
    color: white;
    transition: background-color 0.2s;
    font-size: 1.1rem; /* Ajuste para ícones */
}
.nav-icon-button:hover {
    background-color: #6b7280; /* gray-500 */
}
.footer-action-button {
    background-color: #374151; /* gray-700 */
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-action-button:hover { 
    background-color: #4b5563; /* gray-600 */
}

/* Estilos do Modal de Idiomas */
.lang-button {
    background-color: #374151; /* gray-700 */
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}
.lang-button:hover { 
    background-color: #4b5563; /* gray-600 */
}
.lang-button.bg-yellow-500 { /* Estilo para o idioma ativo */
    color: black; /* Texto preto para contraste com amarelo */
}

/* Estilos do Modal de Clima */
.hourly-forecast-container {
    display: flex;
    overflow-x: auto; /* Permite rolagem horizontal */
    padding-bottom: 1rem; /* Espaço para a scrollbar */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: #4b5563 #1f2937; /* thumb track para Firefox */
}
.hourly-forecast-container::-webkit-scrollbar {
    height: 8px; /* Altura da scrollbar para Webkit */
}
.hourly-forecast-container::-webkit-scrollbar-track {
    background: #1f2937; /* Fundo da scrollbar */
}
.hourly-forecast-container::-webkit-scrollbar-thumb {
    background-color: #4b5563; /* Cor do thumb */
    border-radius: 10px;
    border: 2px solid #1f2937;
}

/* Estilos do Modal de Busca/Filtros */
.filter-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #374151; /* gray-700 */
}
.filter-section:last-of-type { /* Remove borda do último item */
    border-bottom: none;
    margin-bottom: 0;
}
.category-pills-container {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    -ms-overflow-style: none; /* Esconde scrollbar para IE/Edge */
    scrollbar-width: none; /* Esconde scrollbar para Firefox */
}
.category-pills-container::-webkit-scrollbar {
    display: none; /* Esconde scrollbar para Webkit */
}
.category-pill {
    flex-shrink: 0; /* Impede que os botões encolham */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px; /* full rounded */
    font-size: 0.875rem;
    transition: background-color 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

/* Estilos para o PDF gerado (oculto no HTML) */
#pdf-template-container {
    position: absolute;
    left: -9999px; /* Fora da tela */
    top: 0;
    width: 8.5in; /* Largura A4 */
    background-color: white;
    color: #333;
    font-family: 'Times New Roman', serif;
}
.pdf-page {
    padding: 0.5in;
    position: relative;
    min-height: 11in; /* Altura A4 */
    box-sizing: border-box;
}
.pdf-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('img/capivara_logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.08; /* Mais sutil */
    z-index: 0;
}
.pdf-header, .pdf-main-content, .pdf-footer {
    position: relative;
    z-index: 1;
}
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.25in;
}
.pdf-logo {
    max-height: 60px;
}
.pdf-header h1 {
    font-size: 24pt;
    font-weight: bold;
    color: #1a202c; /* dark gray */
}
.pdf-map-container {
    margin: 0.3in 0;
    text-align: center;
    border: 1px solid #ddd;
    overflow: hidden;
}
.pdf-map-image {
    max-width: 100%;
    height: auto; /* Mantém a proporção */
    object-fit: contain;
}
.pdf-attraction-card {
    border: 1px solid #e2e8f0; /* light gray */
    border-radius: 8px;
    padding: 0.25in;
    margin-bottom: 0.25in;
    page-break-inside: avoid; /* Evita quebrar o card no meio da página */
}
.pdf-attraction-title {
    font-size: 16pt;
    font-weight: bold;
    color: #2d3748; /* medium dark gray */
}
.pdf-attraction-address {
    font-size: 10pt;
    color: #718096; /* gray */
    margin-bottom: 0.1in;
}
.pdf-attraction-description {
    font-size: 11pt;
    line-height: 1.5;
    margin-bottom: 0.15in;
}
.pdf-attraction-icons {
    font-size: 10pt;
}
.pdf-attraction-icons strong {
    margin-right: 8px;
}
.pdf-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 12px;
    vertical-align: middle;
}
.pdf-footer {
    position: absolute;
    bottom: 0.5in;
    left: 0.5in;
    right: 0.5in;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 8pt;
    color: #a0aec0; /* light gray */
    border-top: 1px solid #eee;
    padding-top: 0.15in;
}
.pdf-legal-text {
    width: 80%;
}
.pdf-mascot {
    max-height: 50px;
}

/* Estilos Específicos para o Modal de Detalhes Aprimorado */
.modal-content-details {
    display: flex;
    flex-direction: column;
}
/* O container que agora envolve o carrossel E o cabeçalho sobreposto */
.details-image-carousel-container {
    position: relative; /* Base para posicionamento absoluto dos elementos internos */
    height: 60vh; /* Exemplo: ajustar altura do "story" carrossel */
    max-height: 600px; /* Limite opcional */
    /* Removido margin-bottom para que o conteúdo abaixo comece mais perto */
}

/* Oculta o header fixo antigo, já que o conteúdo está no carrossel */
.details-header-fixed {
    display: none; /* Não é mais necessário, conteúdo movido */
}

/* Ajuste o padding-top do conteúdo rolado para começar imediatamente após o carrossel */
.details-scroll-content { 
    /* Já tem p-6, overflow-y-auto, h-full */
    padding-top: 0 !important; /* Remove o padding-top que compensava o header fixo */
}

/* Para o line-clamp, que pode precisar de polyfill ou ser substituído por JS para compatibilidade total */
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Estilos para o disclaimer de IA e botão de contato no modal de detalhes */
.details-info-card.ai-disclaimer-section {
    background-color: #1a202c; /* slightly darker background for the disclaimer card */
    border-top: 1px solid #374151; /* subtle separator */
    padding-top: 1rem; /* adjust padding */
    font-size: 0.75rem; /* text-xs */
    border-radius: 0.75rem; /* rounded-lg */
}
.details-info-card.ai-disclaimer-section p {
    line-height: 1.4;
    margin-bottom: 0.5rem; /* spacing for paragraphs */
}
.details-info-card.ai-disclaimer-section button {
    font-size: 0.875rem; /* text-sm */
    padding: 0.4rem 0.8rem;
    border-radius: 9999px; /* rounded-full */
    box-shadow: none; /* remove shadow for a more discrete look */
    text-decoration: none;
    background-color: transparent; /* Fundo transparente */
    color: #a78bfa; /* purple-400 */
    border: 1px solid #a78bfa; /* Borda sutil */
    transition: all 0.2s ease-in-out;
}
.details-info-card.ai-disclaimer-section button:hover {
    background-color: rgba(167, 139, 250, 0.1); /* purple-400 com 10% de opacidade */
    transform: none; /* remove hover transform from action-button */
}

/* Ajustes para o modal-content-simple (que é usado pelo formulário de contato) */
.modal-content-simple.contact-form-modal {
    padding: 1.5rem; /* Reduzir um pouco o padding */
    width: 95%; /* Ocupa mais largura em telas menores */
    max-width: 450px; /* Reduzir a largura máxima */
    border-radius: 1.25rem; /* Aumentar o arredondamento (20px) */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Sombra mais pronunciada */
    /* Garante que a fonte seja a do body ou ajusta aqui se precisar de algo específico */
    font-family: 'Inter', sans-serif; 
}
.contact-form-modal h2 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
}
.contact-form-modal p {
    font-size: 0.875rem; /* text-sm */
    color: #9ca3af; /* gray-400 */
}
.contact-form-modal label {
    font-size: 0.75rem; /* text-xs */
    font-weight: 500; /* font-medium */
    color: #d1d5db; /* gray-300 */
}
.contact-form-modal input,
.contact-form-modal select,
.contact-form-modal textarea {
    font-size: 0.875rem; /* text-sm */
    border-color: #4b5563; /* gray-600 */
    background-color: #374151; /* gray-700 */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* shadow-sm */
    transition: all 0.2s ease-in-out;
    border-radius: 0.375rem; /* rounded-md */
}
.contact-form-modal input:focus,
.contact-form-modal select:focus,
.contact-form-modal textarea:focus {
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 1px #3b82f6; /* ring-1 ring-blue-500 */
    outline: none;
}
.contact-form-modal button[type="submit"] {
    font-size: 0.875rem; /* text-sm */
    background-color: #3b82f6; /* blue-500 */
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.375rem; /* rounded-md */
    transition: background-color 0.2s;
}
.contact-form-modal button[type="submit"]:hover {
    background-color: #2563eb; /* blue-700 */
}
.contact-form-modal button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.contact-form-modal button[type="button"] { /* Cancelar */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #9ca3af; /* gray-400 */
    transition: color 0.2s;
}
.contact-form-modal button[type="button"]:hover {
    color: #e5e7eb; /* gray-200 */
}
.contact-form-modal .text-red-400 {
    color: #f87171; /* red-400 */
}
.contact-form-modal .text-green-400 {
    color: #4ade80; /* green-400 */
}