/* /css/style.css */

/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================================================== */

/* 1.1. Configuração da Paleta de Cores e Fontes */
:root {
    /* Cores da marca */
    --vp-azul-escuro: #1C586A;
    --vp-azul-claro: #40A8AA;
    --vp-cinza-claro: #DFE3E6;
    --vp-vermelho: #B1111D;
    --vp-grafite: #3A393E;
    --vp-branco: #FFFFFF;

    /* Sobrescrevendo variáveis do Bootstrap e do Tema */
    --bs-primary: var(--vp-azul-escuro);
    --bs-secondary: var(--vp-grafite);
    --bs-danger: var(--vp-vermelho);
    --bs-light: var(--vp-cinza-claro);
    --bs-body-color: #5E6282;
    --bs-heading-color: #14183E;
    
    /* Fontes */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Volkhov', serif;
}

/* 1.2. Estilos base do body */
body {
    font-family: var(--font-primary);
    background-image: url('../assets/imagens/backgrounds/subtle-nature-pattern.webp');
    background-repeat: repeat;
}

/* 1.3. Ajustes Gerais no Template */
.section-padding {
    padding: 80px 0;
}

.section-title h2 {
    font-family: var(--font-secondary);
    color: var(--bs-heading-color);
    font-weight: 700;
}

.font-cursive {
    font-family: var(--font-secondary) !important;
}

.text-danger {
    color: var(--vp-vermelho) !important;
}

/* ==========================================================================
   2. COMPONENTES E ELEMENTOS REUTILIZÁVEIS
   ========================================================================== */

/* 2.1. Botões */
.btn-primary-pedeqr, .btn-primary {
    background-color: var(--vp-azul-escuro) !important;
    border-color: var(--vp-azul-escuro) !important;
    color: var(--vp-branco) !important;
}

.btn-primary-pedeqr:hover, .btn-primary:hover {
    background-color: var(--vp-azul-claro) !important;
    border-color: var(--vp-azul-claro) !important;
}

.btn-danger {
    background-color: #ff0033 !important;
    border-color: #ff0033 !important;
}

/* 2.2. Cards */
.video-card, .local-card {
    border: 1px solid #eee;
}

.video-card {
	border-radius: 30px 30px 4px 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.local-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    color: white;
}

.local-card-home {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.local-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 2.3. Item de compras */
.item {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    float: none;
    display: flex;
    align-items: center;
    margin: 15px auto;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.item a {
    width: 100%;
    display: flex;
    align-items: center;
}

.item img {
    flex-shrink: 0;
}

/* ==========================================================================
   3. COMPONENTES ESPECÍFICOS
   ========================================================================== */

/* 3.1. Header (Navbar) */
.navbar.navbar-light .navbar-nav .nav-link:hover,
.navbar.navbar-light .navbar-nav .nav-link.active {
    color: var(--vp-azul-claro) !important;
}

.navbar-light .btn-outline-dark {
    border-color: var(--vp-azul-escuro);
    color: var(--vp-azul-escuro);
}

.navbar-light .btn-outline-dark:hover {
    background-color: var(--vp-azul-escuro);
    color: var(--vp-branco);
}

/* 3.2. Hero section */
.hero-title {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.1);
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: #ffffff;	
}

/* 3.3. Card de Vídeo */
.video-card .thumb-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-card .thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.video-card:hover .play-icon {
    color: var(--vp-vermelho);
}

.video-card .card-body h5 {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* 3.4. Card de Local Visitado */
.local-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.local-card:hover img {
    transform: scale(1.1);
}

.local-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
}

.local-card h4 {
    font-family: var(--font-secondary);
    margin-bottom: 5px;
}

.local-card-header {
    display: flex;
    align-items: center;
}

.local-card-header h5 {
    font-family: var(--font-secondary);
    color: var(--bs-heading-color);
}

/* 3.5. Item de Viagem Planejada */
.viagem-planejada-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.viagem-planejada-item:hover {
    background-color: var(--vp-cinza-claro);
}

.viagem-planejada-item .destino {
    font-family: var(--font-secondary);
    color: var(--vp-azul-escuro);
}

/* 3.6. Mapa (Leaflet) */
#map {
    height: 450px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 3.7. Galeria de imagens */
.local-gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.thumbnail-item {
    flex: 0 0 calc(33.333% - 5px);
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.05);
}

/* 3.8. LightGallery */
.lg-outer .lg-thumb-item {
    border-radius: 4px;
    overflow: hidden;
}

.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 3.9. Página de Detalhes do Local */
.local-description-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #555;
}

.local-description-content p {
    margin-bottom: 1.5rem;
}

.local-description-content h1, 
.local-description-content h2, 
.local-description-content h3, 
.local-description-content h4 {
    font-family: var(--font-secondary);
    color: var(--bs-heading-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.details-sidebar .card {
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.details-sidebar .sidebar-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vp-azul-claro);
    display: inline-block;
}

.details-sidebar .list-group-item {
    background-color: transparent;
    border: none;
    padding-left: 0;
    font-size: 1.05rem;
}

/* 8. ESTILOS PARA BUSCA E PÁGINA DE RESULTADOS */

/* Formulário de busca no Header */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

form[role="search"] .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

form[role="search"] .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Página de Resultados de Busca */
.search-results-group {
    margin-bottom: 2.5rem;
}

.search-results-group h2 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.search-result-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 1rem;
}

.search-result-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-item h5 {
    color: var(--bs-heading-color);
}

/* ==========================================================================
   4. RESPONSIVIDADE
   ========================================================================== */

/* 4.1. Hero title responsivo */
@media (max-width: 921px) {
    .hero-title {
        font-family: math !important;
        line-height: 3rem !important;
    }
}

@media (min-width: 922px) {
    .hero-title {
        font-family: math !important;
        line-height: 4.3rem !important;
		
    }
}

/* 4.2. Grid responsivo */
@media (max-width: 767px) {
    #ultimos-videos .col-md-4,
    #destinos .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #ultimos-videos .col-md-4,
    #destinos .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}