@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&display=swap");

/* Reset Básico e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Figtree", "Helvetica Neue Light", sans-serif;
    color: rgb(25, 25, 25);
    background-color: #FFFFFF;
    line-height: 1.6;
    padding-top: 80px; /* Compensa o header fixo */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Cabeçalho */
header.main-header {
    background-color: #552961;
    height: 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header.main-header .container { 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

header.main-header .logo img {
    width: auto;
    height: 32px;
    display: block;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
}

nav.main-nav ul li {
    margin-left: 25px;
}

nav.main-nav ul li a {
    font-family: "Figtree", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #FFFFFF;
    padding: 10px 0;
    position: relative;
}

nav.main-nav ul li a.active,
nav.main-nav ul li a:hover {
    color: #F3CB36;
}

nav.main-nav ul li a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgb(189, 35, 51);
}

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

.header-actions .profile-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 20px;
    display: block;
}

.sandwich-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.sandwich-menu-button .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: rgb(25, 25, 25);
    margin: 5px 0;
    transition: 0.4s;
}

main {
    /* padding-top: 20px; /* Removido para evitar espaço extra na home */
    /* padding-bottom: 40px; /* Removido para evitar espaço após conteúdo principal */
}

.hero-section, .hero {
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 0; /* Removido o padding para ajustar o campo de busca */
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("../images/hero_background_placeholder.jpg"); 
    margin-bottom: 40px;
}

.hero-section h1, .hero h1 {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 42px;
    margin-bottom: 20px;
    /* max-width: 700px; /* Removido para melhor alinhamento */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-section p, .hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    text-align: center; /* Adicionado para centralizar */
}

.search-bar-hero, .hero form {
    background-color: transparent;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-bar-hero input[type="text"],
.search-bar-hero input[type="search"],
.hero form input[type="search"] {
    border: none;
    outline: none;
    padding: 15px;
    font-size: 16px;
    flex-grow: 1;
    font-family: "Figtree", sans-serif;
    color: #FFFFFF;
}

.search-bar-hero button.search-button,
.hero form button.btn {
    background-color: #00A2A7;
    color: #FFFFFF;
    border: none;
    padding: 15px 25px;
    border-radius: 999px; /* Totalmente arredondado */
    font-size: 16px;
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
}

.content-section, section[class*="featured-"], section[class*="latest-"] {
    padding: 40px 0;
    margin-bottom: 20px;
}

.content-section:first-child {
    padding-top: 0; /* Remove padding-top for the first content section if it's directly after header */
}

.section-title, section[class*="featured-"] h2, section[class*="latest-"] h2 {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: rgb(25, 25, 25);
    margin-bottom: 40px; /* Aumentado para mais espaço */
    text-align: left;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after, section[class*="featured-"] h2::after, section[class*="latest-"] h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ee7626;
}

/* Styles for generic content pages (About, Privacy, Terms) */
.text-content-page h1.section-title {
    margin-bottom: 20px;
}

.text-content-page h2 {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: rgb(25, 25, 25);
    margin-top: 30px;
    margin-bottom: 15px;
}

.text-content-page p, .text-content-page ul, .text-content-page ol {
    margin-bottom: 15px;
    line-height: 1.7;
}

.text-content-page ul, .text-content-page ol {
    margin-left: 20px;
}

.text-content-page strong {
    font-weight: 600;
}

.text-content-page a {
    color: rgb(189, 35, 51);
    text-decoration: underline;
}

.text-content-page a:hover {
    color: rgb(160, 29, 43);
}

/* Cards (Restaurantes/Hotéis/Artigos) */
.cards-grid, .card-deck {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Alterado para 4 colunas */
    gap: 25px;
}

.card, .card-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover, .card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card img, .card-item .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card .card-content, .card-item .card-content, .card > h3, .card > p, .card > a.btn {
    padding: 15px;
}

.card h3, .card-item .card-title {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: rgb(25, 25, 25);
    margin-bottom: 8px;
}

.card p, .card-item .card-description {
    font-family: "Figtree", sans-serif;
    font-size: 14px;
    color: rgb(77, 77, 77);
    margin-bottom: 15px;
    flex-grow: 1;
}

.card .card-category, .card-item .card-category {
    font-family: "Figtree", sans-serif;
    font-size: 13px;
    color: rgb(189, 35, 51);
    margin-bottom: 8px;
    font-weight: 500;
}

.card .card-location,
.card .card-price,
.card-item .card-location,
.card-item .card-price {
    font-family: "Figtree", sans-serif;
    font-size: 13px;
    color: rgb(77, 77, 77);
    margin-bottom: 5px;
}

.card a.btn, .card-item a.btn {
    margin-top: auto;
}

.article-preview, .article-list-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-preview h3, .article-list-item h3 {
    font-size: 20px;
    color: rgb(189, 35, 51);
    margin-bottom: 10px;
}

.article-preview p, .article-list-item p {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
}

.article-preview .article-meta, .article-list-item .article-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

/* FAQ Page Styles */
.faq-item {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.faq-question {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: rgb(25, 25, 25);
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 16px;
    line-height: 1.7;
    color: rgb(77, 77, 77);
}

/* Profile Page Styles */
.profile-section {
    background-color: #f9f9f9;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.profile-section h2 {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: rgb(25, 25, 25);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d0d0d0;
}

.profile-section p {
    margin-bottom: 10px;
}

.profile-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.profile-section ul li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.profile-section ul li:last-child {
    border-bottom: none;
}

.profile-section .btn {
    margin-right: 10px;
    margin-top: 10px;
}

.profile-section form label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}

.profile-section form input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
    background-color: #FFFFFF;
    color: #00A2A7;
    border: 2px solid #00A2A7;
}

.btn-primary:hover {
    background-color: #00A2A7;
    color: #FFFFFF;
    border-color: #00A2A7;
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #00A2A7;
    border: 2px solid #00A2A7;
}

.btn-secondary:hover {
    background-color: #00A2A7;
    color: #FFFFFF;
    border-color: #00A2A7;
}

.btn-danger {
    background-color: #dc3545;
    color: #FFFFFF;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Rodapé */
.main-footer {
    background-color: #552961;
    color: #FFFFFF;
    padding: 40px 0;
    margin-top: 50px;
}

.main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.main-footer .footer-section {
    flex: 1;
    min-width: 200px;
}

.main-footer .footer-section h4 {
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.main-footer .footer-section ul {
    list-style: none;
}

.main-footer .footer-section ul li {
    margin-bottom: 8px;
}

.main-footer .footer-section ul li a {
    color: #CCCCCC;
    font-family: "Figtree", sans-serif;
    font-size: 14px;
}

.main-footer .footer-section ul li a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgb(50, 50, 50);
    font-size: 14px;
    color: #CCCCCC;
}

/* Estilos para formulários de admin e contato */
.admin-form-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-form .form-group {
    margin-bottom: 20px;
}
.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgb(25, 25, 25);
}
.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="number"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="search"], /* Adicionado para map.php */
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}
.admin-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estilos para os novos formulários de filtro (Michelin Style) */
.search-controls-section {
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.michelin-filter-form .main-search-bar {
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 5px 15px;
    margin-bottom: 20px;
}

.michelin-filter-form .search-icon {
    color: #757575;
    margin-right: 10px;
    font-size: 1.1em;
}

.michelin-filter-form .main-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px 5px;
    font-size: 16px;
    font-family: "Figtree", sans-serif;
    background-color: transparent;
}

.michelin-filter-form .btn-search-main {
    background-color: transparent;
    color: rgb(189, 35, 51);
    border: none;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 15px;
    margin-left: 10px;
}

.michelin-filter-form .btn-search-main:hover {
    color: rgb(160, 29, 43);
}

.michelin-filter-form .filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.michelin-filter-form .btn-filter-toggle {
    background-color: #FFFFFF;
    color: rgb(25, 25, 25);
    border: 1px solid #e0e0e0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.michelin-filter-form .btn-filter-toggle i {
    margin-right: 5px;
}

.michelin-filter-form .filter-options-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.michelin-filter-form .btn-filter-option {
    background-color: #f0f0f0;
    color: rgb(50, 50, 50);
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.michelin-filter-form .btn-filter-option:hover {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
}

.michelin-filter-form .btn-filter-option.active {
    background-color: rgb(189, 35, 51);
    color: #FFFFFF;
    border-color: rgb(189, 35, 51);
}

.hidden-filter-select {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* Media Queries para Responsividade */
@media (max-width: 992px) {
    nav.main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #EEE;
    }
    nav.main-nav.active {
        display: flex;
    }
    nav.main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    nav.main-nav ul li {
        margin-left: 0;
        text-align: left;
    }
    nav.main-nav ul li a {
        padding: 12px 20px;
        display: block;
        border-bottom: 1px solid #EEE;
    }
    nav.main-nav ul li:last-child a {
        border-bottom: none;
    }
    .sandwich-menu-button {
        display: block;
    }
    .header-actions .profile-icon {
        margin-right: 10px;
    }
    .hero-section h1, .hero h1 {
        font-size: 32px;
    }
    .search-bar-hero, .hero form {
        flex-direction: column;
        gap: 10px;
    }
    .search-bar-hero input[type="text"],
    .search-bar-hero input[type="search"],
    .hero form input[type="search"] {
        width: 100%;
    }
    .search-bar-hero button.search-button,
    .hero form button.btn {
        width: 100%;
        margin-left: 0;
    }

    .michelin-filter-form .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .michelin-filter-form .filter-options-group {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    header.main-header {
        height: 70px;
    }
    nav.main-nav {
        top: 70px;
    }
    .hero-section h1, .hero h1 {
        font-size: 28px;
    }
    .section-title, section[class*="featured-"] h2, section[class*="latest-"] h2 {
        font-size: 22px;
    }
    .card h3, .card-item .card-title {
        font-size: 16px;
    }
    .main-footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cards-grid, .card-deck {
        grid-template-columns: 1fr;
    }

    .michelin-filter-form .main-search-bar {
        flex-direction: column;
        border-radius: 8px;
        padding: 10px;
    }
    .michelin-filter-form .main-search-input {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    .michelin-filter-form .btn-search-main {
        width: 100%;
        margin-left: 0;
        background-color: rgb(189, 35, 51);
        color: #FFFFFF;
    }
    .michelin-filter-form .btn-search-main:hover {
        background-color: rgb(160, 29, 43);
    }

}


/* Estilos Adicionais para Seções de Destaque na Home */
.featured-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.featured-section .section-title {
    margin-bottom: 0; /* Remover margem inferior padrão */
}

.cards-grid-featured {
    display: grid;
    grid-auto-flow: column; /* Faz os itens fluírem horizontalmente */
    grid-auto-columns: calc(25% - 18.75px); /* Aproximadamente 4 colunas visíveis com gap (ajustar) */
    gap: 25px;
    overflow-x: auto; /* Habilita scroll horizontal */
    padding-bottom: 15px; /* Espaço para a barra de rolagem não cortar os cards */
    -webkit-overflow-scrolling: touch; /* Scroll suave em touch devices */
    scrollbar-width: thin; /* Barra de rolagem mais fina (Firefox) */
}

/* Para Webkit (Chrome, Safari) */
.cards-grid-featured::-webkit-scrollbar {
    height: 8px;
}

.cards-grid-featured::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cards-grid-featured::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.cards-grid-featured::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.featured-card {
    /* Ajustes específicos para cards de destaque, se necessário */
    width: 100%; /* Ocupa o espaço da coluna do grid */
}

.featured-card .card-image img {
    aspect-ratio: 16 / 10; /* Proporção para imagens de destaque */
    object-fit: cover;
}

/* Ajuste para telas menores - talvez mostrar menos colunas */
@media (max-width: 992px) {
    .cards-grid-featured {
        grid-auto-columns: calc(33.33% - 16.67px); /* 3 colunas */
    }
}

@media (max-width: 768px) {
    .cards-grid-featured {
        grid-auto-columns: calc(50% - 12.5px); /* 2 colunas */
    }
}

@media (max-width: 576px) {
    .cards-grid-featured {
        grid-auto-columns: calc(80% - 10px); /* Quase 1 coluna, para melhor visualização */
    }
    .featured-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .featured-section .section-header .btn {
        margin-top: 10px;
    }
}

/* Estilos para Mensagens de Alerta (Ex: Newsletter) */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Estilos para Formulário de Newsletter */
.newsletter-signup-section {
    background-color: #f8f9fa; /* Fundo suave */
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 40px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form .form-group {
    flex-grow: 1;
    max-width: 400px; /* Limitar largura do input */
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.newsletter-form .btn {
    padding: 12px 25px;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form .form-group {
        max-width: none;
    }
}



/* Estilos Adicionais para Seções de Destaque na Home */
.featured-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.featured-section .section-title {
    margin-bottom: 0; /* Remover margem inferior padrão */
}

.cards-grid-featured {
    display: grid;
    grid-auto-flow: column; /* Faz os itens fluírem horizontalmente */
    grid-auto-columns: calc(25% - 18.75px); /* Aproximadamente 4 colunas visíveis com gap (ajustar) */
    gap: 25px;
    overflow-x: auto; /* Habilita scroll horizontal */
    padding-bottom: 15px; /* Espaço para a barra de rolagem não cortar os cards */
    -webkit-overflow-scrolling: touch; /* Scroll suave em touch devices */
    scrollbar-width: thin; /* Barra de rolagem mais fina (Firefox) */
}

/* Para Webkit (Chrome, Safari) */
.cards-grid-featured::-webkit-scrollbar {
    height: 8px;
}

.cards-grid-featured::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cards-grid-featured::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.cards-grid-featured::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.featured-card {
    /* Ajustes específicos para cards de destaque, se necessário */
    width: 100%; /* Ocupa o espaço da coluna do grid */
}

.featured-card .card-image img {
    aspect-ratio: 16 / 10; /* Proporção para imagens de destaque */
    object-fit: cover;
}

/* Ajuste para telas menores - talvez mostrar menos colunas */
@media (max-width: 992px) {
    .cards-grid-featured {
        grid-auto-columns: calc(33.33% - 16.67px); /* 3 colunas */
    }
}

@media (max-width: 768px) {
    .cards-grid-featured {
        grid-auto-columns: calc(50% - 12.5px); /* 2 colunas */
    }
}

@media (max-width: 576px) {
    .cards-grid-featured {
        grid-auto-columns: calc(80% - 10px); /* Quase 1 coluna, para melhor visualização */
    }
    .featured-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .featured-section .section-header .btn {
        margin-top: 10px;
    }
}

/* Estilos para Mensagens de Alerta (Ex: Newsletter) */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Estilos para Formulário de Newsletter */
.newsletter-signup-section {
    background-color: #ffbe92; /* Fundo suave */
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-top: 40px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form .form-group {
    flex-grow: 1;
    max-width: 400px; /* Limitar largura do input */
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}

.newsletter-form .btn {
    padding: 12px 25px;
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form .form-group {
        max-width: none;
    }
}

/* Ajustes Hero Section */
.hero {
    /* display: flex, justify-content: center, align-items: center já centralizam o conteúdo */
    text-align: center; /* Garante que o texto dentro dos blocos (h1, p) esteja centralizado */
}

.hero h1 {
    /* Estilos existentes */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Sombra mais forte para legibilidade */
}

.hero p {
    /* Estilos existentes */
     text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* Sombra mais forte para legibilidade */
}

.search-bar-hero {
    background-color: rgba(255, 255, 255, 0.9); /* Fundo levemente transparente */
    padding: 8px; /* Padding interno menor */
    border-radius: 50px; /* Bordas arredondadas */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    max-width: 650px; /* Largura máxima */
    width: 90%; /* Largura responsiva */
    margin-top: 25px; /* Espaçamento */
    margin-left: auto; /* Centraliza a barra se o container pai for flex */
    margin-right: auto; /* Centraliza a barra se o container pai for flex */
    border: 1px solid rgba(0,0,0,0.05);
}

.search-bar-hero input[type="search"] {
    flex-grow: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #333;
    border-radius: 50px 0 0 50px; /* Arredondar canto esquerdo */
}

.search-bar-hero .btn.search-button {
    padding: 12px 25px;
    border-radius: 0 50px 50px 0; /* Arredondar canto direito */
    margin-left: -1px; 
    white-space: nowrap;
    background-color: rgb(189, 35, 51); /* Cor primária */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar-hero .btn.search-button:hover {
    background-color: rgb(160, 29, 43); /* Cor primária mais escura */
}




/* --- Estilos Páginas de Detalhe (Onde Ficar / Beber & Comer) --- */

.detail-page {
    padding-top: 20px;
}

.detail-page .section-title {
    text-align: left;
    margin-bottom: 25px;
    font-size: 32px;
}

/* Galeria de Imagens (Layout Inicial) */
.detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Coluna maior à esquerda, duas menores à direita */
    grid-template-rows: auto auto; /* Duas linhas automáticas */
    gap: 10px;
    margin-bottom: 30px;
    height: 450px; /* Altura fixa para o container da galeria */
    overflow: hidden; /* Esconder overflow se as imagens forem maiores */
    border-radius: 8px;
}

.detail-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #eee; /* Fundo para placeholders */
}

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

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

/* Layout da grade da galeria */
.detail-gallery .gallery-item:nth-child(1) {
    grid-column: 1 / 2; /* Ocupa a primeira coluna */
    grid-row: 1 / 3; /* Ocupa as duas linhas */
}

.detail-gallery .gallery-item:nth-child(2) {
    grid-column: 2 / 3; /* Segunda coluna, primeira linha */
    grid-row: 1 / 2;
}

.detail-gallery .gallery-item:nth-child(3) {
    grid-column: 3 / 4; /* Terceira coluna, primeira linha */
    grid-row: 1 / 2;
}

/* Botão "Ver todas as fotos" sobre a última imagem visível */
.detail-gallery .gallery-item:nth-child(3)::after {
    content: 'Ver todas as fotos';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none; /* Não interfere no clique da imagem */
}

/* Conteúdo Principal e Sidebar */
.detail-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 para conteúdo, 1/3 para sidebar */
    gap: 30px;
    margin-top: 30px;
}

.detail-main-content {
    /* Ocupa a primeira coluna */
}

.detail-sidebar {
    /* Ocupa a segunda coluna */
    position: sticky;
    top: 100px; /* Header fixo (80px) + 20px margem */
    align-self: start; /* Alinha ao topo */
}

.detail-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.detail-section p,
.detail-section ul {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section ul li {
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

/* Estilo para lista de comodidades/informações */
.detail-section ul li::before {
    content: '\2022'; /* Bullet point */
    color: rgb(189, 35, 51); /* Cor do tema */
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1.2em; /* Alinha com o texto */
    position: absolute;
    left: 0.2em;
}

.detail-section.contact-info ul li strong {
    display: inline-block;
    min-width: 80px; /* Alinha os valores */
    font-weight: 600;
    color: #333;
}

.detail-section.contact-info ul li a {
    color: rgb(189, 35, 51);
    text-decoration: underline;
}

.detail-section.contact-info ul li a:hover {
    color: rgb(160, 29, 43);
}

.map-embed iframe {
    border-radius: 8px;
}

/* Responsividade para Páginas de Detalhe */
@media (max-width: 992px) {
    .detail-gallery {
        grid-template-columns: 1fr 1fr; /* Duas colunas */
        height: auto; /* Altura automática */
    }
    .detail-gallery .gallery-item:nth-child(1) {
        grid-column: 1 / 3; /* Ocupa as duas colunas */
        grid-row: 1 / 2; /* Apenas a primeira linha */
        height: 300px; /* Altura fixa para a imagem principal */
    }
    .detail-gallery .gallery-item:nth-child(2) {
        grid-column: 1 / 2; /* Primeira coluna, segunda linha */
        grid-row: 2 / 3;
        height: 200px;
    }
    .detail-gallery .gallery-item:nth-child(3) {
        grid-column: 2 / 3; /* Segunda coluna, segunda linha */
        grid-row: 2 / 3;
        height: 200px;
    }
    .detail-content-grid {
        grid-template-columns: 1fr; /* Coluna única */
    }
    .detail-sidebar {
        position: static; /* Remove o sticky */
        top: auto;
    }
}

@media (max-width: 768px) {
    .detail-page .section-title {
        font-size: 28px;
    }
    .detail-gallery {
        grid-template-columns: 1fr; /* Uma coluna */
    }
    .detail-gallery .gallery-item:nth-child(1),
    .detail-gallery .gallery-item:nth-child(2),
    .detail-gallery .gallery-item:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 250px; /* Altura padrão para todas */
    }
     /* Esconde o botão em telas pequenas se só 3 imagens são mostradas */
    .detail-gallery .gallery-item:nth-child(3)::after {
       /* display: none; */ /* Descomentar se não quiser o botão aqui */
    }
}



/* --- Estilos Lightbox Customizado --- */

.custom-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo escuro semi-transparente */
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 1100; /* Acima do header */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-lightbox-content img.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Mantém proporção sem cortar */
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.lightbox-close {
    position: absolute;
    top: -35px; /* Acima da imagem */
    right: -5px;
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px; /* Espaçamento das bordas */
    pointer-events: none; /* Permite clicar na imagem por baixo */
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    line-height: 1;
    pointer-events: all; /* Habilita clique nos botões */
    transition: background-color 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Esconder navegação se só houver 1 imagem */
.custom-lightbox-content[data-single-image="true"] .lightbox-nav {
    display: none;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 8px 12px;
    }
    .lightbox-nav {
        padding: 0 5px;
    }
}




/* Estilos para Páginas de Detalhe - Estilo Blog */
.blog-style-detail .blog-image-wrapper {
    width: 100%;
    max-width: 800px; /* Limita a largura máxima da imagem */
    margin: 30px auto; /* Centraliza o wrapper e adiciona margem vertical */
    padding: 0 15px; /* Adiciona padding lateral se necessário em telas menores */
    box-sizing: border-box;
}

.blog-style-detail .detail-main-image img {
    width: 100%; /* Faz a imagem ocupar toda a largura do wrapper */
    height: auto; /* Mantém a proporção */
    display: block; /* Remove espaço extra abaixo da imagem */
    border-radius: 4px; /* Opcional: adiciona bordas arredondadas leves */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Opcional: adiciona uma sombra sutil */
}

.blog-style-detail .article-content {
    max-width: 800px; /* Limita a largura do conteúdo de texto */
    margin: 30px auto; /* Centraliza o conteúdo e adiciona margem */
    padding: 0 15px; /* Padding lateral */
    box-sizing: border-box;
}

.blog-style-detail .article-meta,
.blog-style-detail .article-summary {
    margin-bottom: 20px; /* Espaço abaixo dos metadados e resumo */
    color: #555; /* Cor mais suave para metadados/resumo */
    font-size: 0.95em;
}

.blog-style-detail .article-summary strong {
    font-weight: 500; /* Peso da fonte para o resumo */
    line-height: 1.7;
}

.blog-style-detail .article-body p {
    margin-bottom: 1.5em; /* Espaçamento entre parágrafos */
    line-height: 1.8; /* Altura da linha para melhor legibilidade */
    font-size: 1.05em; /* Tamanho de fonte ligeiramente maior para o corpo */
    color: #333;
}

.blog-style-detail .article-body h2,
.blog-style-detail .article-body h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
}

/* Ajustes Responsivos para o Estilo Blog */
@media (max-width: 768px) {
    .blog-style-detail .blog-image-wrapper,
    .blog-style-detail .article-content {
        max-width: 100%;
        padding: 0 10px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .blog-style-detail .article-body p {
        font-size: 1em;
        line-height: 1.7;
    }
}




/* Hero Section Adjustments (Homepage) */
.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
}

.hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px; /* Ensure space before search bar */
    max-width: 600px; /* Keep max-width for readability */
    width: 100%; /* Ensure it takes available width within max-width */
}

/* Apply Michelin search bar style specifically to Hero */
.hero .michelin-filter-form {
    width: 100%;
    max-width: 600px; /* Match subtitle width */
    margin: 0 auto; /* Center the form */
}

.hero .main-search-bar {
    background-color: #f7f7f7; /* Light grey background */
    border: 1px solid #e0e0e0; /* Light border */
    border-radius: 25px; /* Rounded container */
    padding: 5px 5px 5px 15px; /* Padding: top right bottom left */
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
}

.hero .search-icon {
    color: #757575;
    margin-right: 10px;
    font-size: 1.1em;
}

.hero .main-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px 5px;
    font-size: 16px;
    font-family: "Figtree", sans-serif;
    background-color: transparent; /* Input field transparent */
    color: #333;
}

/* Ensure Hero search button is Red and Fully Rounded */
.hero .btn-search-main {
    background-color: #00a2a7; /* Red background */
    color: #FFFFFF; /* White text */
    border: none;
    padding: 10px 25px; /* Adjust padding as needed */
    border-radius: 999px !important; /* Force fully rounded corners */
    font-size: 16px;
    font-family: "Figtree", sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    white-space: nowrap; /* Prevent button text wrapping */
    transition: background-color 0.3s ease;
}

.hero .btn-search-main:hover {
    background-color: #00a2a7; /* Darker red on hover */
}

/* Responsive adjustments for Hero search */
@media (max-width: 768px) {
    .hero .main-search-bar {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        border-radius: 15px; /* Slightly less rounded on mobile if needed */
    }
    .hero .main-search-input {
        width: 100%;
        text-align: center;
    }
    .hero .btn-search-main {
        width: 100%;
        margin-left: 0;
        padding: 12px 20px;
    }
    .hero .search-icon {
       display: none; /* Hide icon on mobile stack */
    }
}




.hero-content-wrapper {
    width: 90%;
    max-width: 600px; /* Limita a largura do conteúdo para melhor leitura */
    margin: 0 auto; /* Centraliza o conteúdo */
    padding: 60px 20px; /* Adiciona padding de volta ao conteúdo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Garante que o wrapper ocupe a altura total do hero */
}

.hero-search-form {
    position: relative;
    z-index: 10; /* Garante que o formulário fique acima da imagem */
    margin-top: 20px; /* Ajusta a margem superior para posicionamento */
}

.hero-search-form .main-search-bar {
    border: 1px solid rgba(255, 255, 255, 0.5); /* Borda fina branca */
    background-color: rgba(255, 255, 255, 0.2); /* Fundo transparente com leve opacidade */
    backdrop-filter: blur(5px); /* Efeito de desfoque */
}

.hero-search-form .main-search-input {
    color: #FFFFFF; /* Cor do texto do input */
}

.hero-search-form .main-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Cor do placeholder */
}

.hero-search-form .search-icon {
    color: rgba(255, 255, 255, 0.7); /* Cor do ícone de busca */
}

.hero-search-form .btn-search-main {
    background-color: #00a2a7; /* Cor do botão */
    color: #FFFFFF;
    border-radius: 999px; /* Borda arredondada */
}

.hero-search-form .btn-search-main:hover {
    background-color: #028989;
    color: #FFFFFF;
}


