/* ========= RESET & VARIÁVEIS ========= */
:root {
    --primary: #3a5a78;
    --primary-dark: #2c4761;
    --secondary: #588157;
    --accent: #a3b18a;
    --light: #f8f9fa;
    --dark: #344e41;
    --text: #3a5a40;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.bg-primary{background-color: #2c4761 !important}
/* ========= LAYOUT GERAL ========= */
.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    max-width: 1200px;
}

/* ========= HEADER ========= */
header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent);
}

/* ========= NAVEGAÇÃO ========= */
.nav-primary {
    transition: var(--transition);
}

.nav-primary ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-primary a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    position: relative;
}

.nav-primary a:hover {
    color: var(--accent);
}

.nav-primary a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-primary a:hover::after {
    width: 100%;
}

.nav-primary li.active a {
    color: var(--accent);
}

.nav-primary li.active a::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent);
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* ========= PÁGINA CAMINHADAS ========= */
.caminhadas-section {
    background-color: #fff;
}

.hikes-grid {
    margin-top: 2rem;
}

.hike-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hike-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hike-img {
    overflow: hidden;
}

.hike-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.hike-card:hover .hike-image {
    transform: scale(1.05);
}

.hike-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hike-title {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.hike-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.hike-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hike-difficulty.fácil {
    background-color: #e6f7e6;
    color: #2e7d32;
}

.hike-difficulty.moderada {
    background-color: #fff8e1;
    color: #ff8f00;
}

.hike-difficulty.difícil {
    background-color: #ffebee;
    color: #c62828;
}

.hike-info {
    margin-bottom: 1rem;
}

.hike-info-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.hike-info-item i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.hike-description {
    flex-grow: 1;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.hike-price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ========= BOTÕES ========= */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline-secondary {
    border: 1px solid #dee2e6;
    color: #495057;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
}

/* ========= FILTROS ========= */
.filter-card {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
}

.filter-card .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filter-card .form-select {
    font-size: 0.9rem;
}

/* ========= FOOTER ========= */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ========= RESPONSIVIDADE ========= */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .header-content {
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-primary {
        width: 100%;
        max-height: 0;
        overflow: hidden;
    }

    .nav-primary.active {
        max-height: 500px;
        padding: 1rem 0;
    }

    .nav-primary ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-primary li {
        width: 100%;
        padding: 0.5rem 0;
    }

    .filter-card .col-md-3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 15px;
    }

    .container {
        max-width: 540px;
    }

    .hikes-grid {
        grid-template-columns: 1fr;
    }

    .hike-image {
        height: 180px;
    }
    
    .logo img{max-height:70px !important;}
    
    .filter-card .btn {
        margin-top: 0;
    }
}

@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .hike-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .reserva-lateral {
        max-width: 100%;
    }
    
}

/* ========= CLASSES UTILITÁRIAS ========= */
.d-only-mobile {
    display: none;
}

.d-only-desktop {
    display: block;
}

@media (max-width: 991.98px) {
    .d-only-mobile {
        display: block;
    }

    .d-only-desktop {
        display: none;
    }
}

.mt-auto {
    margin-top: auto;
}

.text-center {
    text-align: center;
}

/* Espaçamentos */
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Adicione ao seu style.css */
/* Menu Lateral Final */
.reserva-lateral {
    position: fixed;
    top: 70px;
    right: 0;
    width: 380px; /* Largura aumentada */
    height: calc(100vh - 70px);
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 25px; /* Padding interno adicionado */
}

.reserva-lateral.ativo {
    transform: translateX(0);
}

/* Overlay */
.overlay-reserva {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

/* Botão de fechar estilizado */
.btn-fechar-reserva {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    z-index: 1;
}

.btn-fechar-reserva:hover {
    color: #343a40;
}

/* Card de Reserva Fixo */
.reserva-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
}

/* Galeria de Imagens */
.galeria-caminhada .imagem-principal {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Responsividade */
@media (max-width: 576px) {
    .reserva-lateral {
        width: 100%;
    }
}

/* Adicione ao style.css */
.reserva-conteudo {
    padding: 20px;
}

.reserva-conteudo .alert {
    margin-bottom: 20px;
}

.btn-fechar-reserva {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    z-index: 1;
}
