/* ================================================== */
/* --- ARQUIVO CSS ÚNICO E OFICIAL - GUIA GRANJENSE --- */
/* ================================================== */

/* --- 1. VARIÁVEIS GLOBAIS E RESET --- */
:root {
    --white: #FFFFFF;
    --black: #1D1F23;
    --gray: #35373a;
    --primary: #FC4500;
    --background: #F8F9FA;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
}
html {
    scroll-behavior: smooth;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--background); font-family: var(--font-body); color: var(--black); }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }
.btn { padding: 0.75rem 1.5rem; border-radius: var(--border-radius); font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease; border: none !important; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-primary { background-color: var(--primary); color: var(--white); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-family: var(--font-title); font-size: 2rem; }
.section-header h4 { font-family: var(--font-title); font-size: 1.8rem; }
.section-header p { color: var(--gray); max-width: 600px; margin: 0.5rem auto 0 auto; }

/* --- 2. HEADER, NAVEGAÇÃO E HERO SECTION --- */
.main-header { padding: 1.5rem 0; transition: background-color 0.3s ease; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; }
.main-nav a { margin-left: 1.5rem; font-weight: 500; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--primary); }
.home .main-header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
}
.home .main-header .logo, .home .main-header .main-nav a {
    color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.hero-section { position: relative; width: 100%; height: 75vh; min-height: 500px; background-color: #333; }
.hero-section .banner-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-section .swiper-slide { background-size: cover; background-position: center; }
.hero-section .swiper-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%); }
.hero-section #particles-js { position: absolute; width: 100%; height: 100%; z-index: 2; }
.hero-section .hero-content {
    position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center;
    align-items: center; height: 100%; text-align: center; padding: 0 1rem; color: white;
}
.hero-section .hero-content h1 { font-size: 3rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero-section .hero-content p { font-size: 1.2rem; margin-top: 0.5rem; max-width: 600px; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); }
.hero-section .search-wrapper { width: 100%; max-width: 600px; margin-top: 2rem; display: flex; }
.hero-section .search-wrapper input { flex-grow: 1; border: 1px solid #E0E0E0; padding: 1rem; border-radius: var(--border-radius) 0 0 var(--border-radius); font-size: 1rem; }
.hero-section .btn-search { border: none; background-color: var(--primary); color: var(--white); padding: 0 1.5rem; border-radius: 0 var(--border-radius) var(--border-radius) 0; cursor: pointer; font-size: 1.2rem; }
.swiper-button-next, .swiper-button-prev { color: white !important; opacity: 0.7; transition: opacity 0.2s ease; }
.swiper-button-next:hover, .swiper-button-prev:hover { opacity: 1; }

/* --- 3. LAYOUT DO CONTEÚDO PRINCIPAL DA HOME --- */
.home main.container { margin-top: -100px; position: relative; z-index: 10; }
.categories-list, .promotions-section, .jobs-section, .useful-phones-section, .recent-companies-section { margin-top: 4rem; }

/* DESTAQUES PRINCIPAIS */
.main-highlights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.featured-card {
    min-height: 350px; background-size: cover; background-position: center; color: var(--white);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
    border-radius: var(--border-radius); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(29, 31, 35, 0.08); }
.featured-card .card-content { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%); padding: 1rem; margin: -1.5rem; border-radius: 0 0 var(--border-radius) var(--border-radius); }
.card-category { font-size: 0.8rem; font-weight: 700; background: rgba(255,255,255,0.2); padding: 0.25rem 0.5rem; border-radius: 6px; display: inline-block; }
.featured-card h3 { font-family: var(--font-title); margin-top: 0.5rem; }

/* EMPRESAS RECENTES (MINI-CARDS) */
.mini-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.mini-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.8rem; padding: 1.5rem 1rem; background: var(--white);
    border: 1px solid #E9ECEF; border-radius: var(--border-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(29, 31, 35, 0.08); }
.mini-card-logo { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid #f0f0f0; }
.mini-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.mini-card-text { text-align: center; }
.mini-card-text span { font-size: 0.8rem; font-weight: 700; color: var(--gray); }
.mini-card-text h5 { font-family: var(--font-title); font-size: 1rem; margin-top: 0.25rem; color: var(--black); }

/* CATEGORIAS */
.categories-list ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.categories-list li a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: var(--white);
    padding: 2rem 1rem; border-radius: var(--border-radius); border: 1px solid #E9ECEF;
    text-align: center; min-height: 160px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.categories-list li a:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(29, 31, 35, 0.08); border-color: var(--primary); }
.categories-list li a i { font-size: 2.5rem; margin-bottom: 1rem; transition: transform 0.2s ease; }
.categories-list li a:hover i { transform: scale(1.1); }
.categories-list li a span { font-weight: 600; color: var(--black); font-size: 1rem; }

/* PROMOÇÕES */
.promotions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.promotion-card { display: block; background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.promotion-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(29, 31, 35, 0.08); }
.promotion-image { height: 200px; background-size: cover; background-position: center; }
.promotion-content { padding: 1.5rem; }
.promotion-company { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.promotion-content h4 { font-family: var(--font-title); font-size: 1.3rem; margin: 0.5rem 0; }
.promotion-footer { margin-top: 1rem; font-size: 0.9rem; color: var(--gray); border-top: 1px solid #E9ECEF; padding-top: 1rem; }

/* VAGAS */
/* .jobs-list {display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.job-card { background: var(--white); border-radius: var(--border-radius); padding: 1.5rem; border: 1px solid #E9ECEF; display: flex; flex-direction: column; }
.job-card-header h4 { font-family: var(--font-title); margin: 0; font-size: 1.2rem; }
.job-company { font-weight: 500; color: var(--gray); font-size: 0.9rem; }
.job-card-body { flex-grow: 1; margin: 1rem 0; color: #333; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gray); }
.btn-details { background: var(--primary); color: white; padding: 0.5rem 1rem; border-radius: 6px; text-decoration: none; font-weight: 500; } */

/* TELEFONES ÚTEIS */
.phones-list {display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.phone-item { display: flex; justify-content: space-between; align-items: center; background: var(--white); padding: 1rem; border-radius: 8px; border: 1px solid #E9ECEF; }
.phone-info strong { display: block; }
.phone-number { background: #e8f5e9; color: #2e7d32; padding: 0.8rem 1.2rem; border-radius: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.phone-number i { margin-right: 0.5rem; }




/* --- 6. PÁGINAS INTERNAS (BUSCA, DETALHES, ETC.) --- */
.page-content { padding-top: 2rem; padding-bottom: 2rem; }
.detail-page-header, .search-results-header { text-align: center; padding: 2rem 0; border-bottom: 1px solid #E0E0E0; margin-bottom: 2rem; }
.detail-page-header h1, .search-results-header h1 { font-family: var(--font-title); font-size: 2.5rem; }
.breadcrumbs { font-size: 0.9rem; color: var(--gray); margin-bottom: 1rem; }
.breadcrumbs a:hover { color: var(--primary); }
.search-results-container { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.no-results { text-align: center; font-size: 1.2rem; color: var(--gray); padding: 3rem 0; }
.search-results-container .business-card { padding: 0.8rem; background-color: #fff; border: 1px solid #E9ECEF; }
.search-results-container .business-card-logo { width: 60px; height: 60px; }
.business-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid-container { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.info-card { background-color: var(--white); padding: 1.5rem; border-radius: var(--border-radius); margin-bottom: 1.5rem; border: 1px solid #E9ECEF; }
/* (outros estilos de páginas internas...) */

/* --- 7. SISTEMA DE AVALIAÇÃO --- */
.review-form-container { background-color: #fff; padding: 2.5rem; border-radius: var(--border-radius); border: 1px solid #E9ECEF; }
/* (todos os outros estilos de avaliação que já te passei...) */

/* --- 8. RODAPÉ PROFISSIONAL --- */
.site-footer { background-color: #1D1F23; color: #E0E0E0; padding: 4rem 0 0 0; margin-top: 4rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding-bottom: 3rem; }
.footer-col h4 { font-family: var(--font-title); font-size: 1.2rem; color: var(--white); margin-bottom: 1.5rem; }
/* (Resto dos estilos do rodapé...) */

/* --- 9. DESIGN RESPONSIVO (Media Queries) --- */
@media (max-width: 992px) { /* Tablets */
    .main-highlights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) { /* Celulares */
    .home main.container { margin-top: 2rem; }
    .hero-section { height: 60vh; }
    .hero-section .hero-content h1 { font-size: 2.2rem; }
    .main-header .container { flex-direction: column; gap: 1rem; }
    .main-nav { width: 100%; display: flex; justify-content: space-around; }
    .main-nav a { margin-left: 0; }
    .search-results-container, .detail-grid-container { grid-template-columns: 1fr; }
}


/* --- ESTILO ATUALIZADO PARA MINI-CARDS (AGORA COM IMAGEM DE FUNDO) --- */
.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mini-card {
    min-height: 250px; /* Altura mínima para o card */
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinha o texto na base */
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(29, 31, 35, 0.08);
}

/* O card-content aqui é uma cópia do .featured-card para manter consistência */
.mini-card .card-content {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    /*padding: 1rem;*/
    /*margin: -1rem; */
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    width: 100%;
}

.mini-card .card-content span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.mini-card .card-content h5 {
    font-family: var(--font-title);
    font-size: 1.1rem; /* Tamanho um pouco maior para o título */
    margin-top: 0.5rem;
    color: var(--white);
}


/* ========================================= */
/* --- ESTILOS PÁGINA DE DETALHES DA VAGA --- */
/* ========================================= */

/* Container para textos mais longos, como descrições */
.page-text-content {
    line-height: 1.8;
    color: #333;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #E9ECEF;
}

/* Card de informações da empresa na sidebar */
.company-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-info-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.btn-details-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.btn-details-link:hover {
    text-decoration: underline;
}

/* Deixa o texto do contato em destaque */
.info-list strong {
    font-weight: 600;
    color: var(--black);
}



/* ========================================= */
/* --- ESTILOS DO MAPA INTERATIVO --- */
/* ========================================= */

/* Faz o mapa ocupar o espaço disponível abaixo do header */
#map {
    width: 100%;
    /* Ocupa 100% da altura da janela, menos 85px para o header não cobrir */
    height: calc(100vh - 85px); 
    z-index: 5; /* Garante que o mapa fique abaixo do header */
}

/* Força o header a ter um fundo sólido na página do mapa para melhor visualização */
body:not(.home) .main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
body:not(.home) .main-header .logo,
body:not(.home) .main-header .main-nav a {
    color: var(--black);
    text-shadow: none;
}


/* Estilo do Popup que abre ao clicar no marcador */
.map-popup {
    display: flex;
    align-items: center;
    gap: 12px;
}
.popup-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}
.popup-info {
    line-height: 1.4;
}
.popup-info strong {
    font-size: 1rem;
    display: block;
    color: var(--black);
}
.popup-info span {
    font-size: 0.85rem;
    color: var(--gray);
}
.popup-info a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

/* Ajuste no container do popup da biblioteca Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
    padding: 1rem;
}
.leaflet-popup-content {
    margin: 0;
}

/* ========================================= */
/* --- ESTILOS DO MAPA INTERATIVO --- */
/* ========================================= */

/* Faz o mapa ocupar o espaço disponível abaixo do header */
#map {
    width: 100%;
    /* Ocupa 100% da altura da janela, menos 85px (altura aproximada do header) */
    height: calc(100vh - 85px); 
    z-index: 5; 
}

/* Força o header a ter um fundo sólido na página do mapa */
body:not(.home) .main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
body:not(.home) .main-header .logo,
body:not(.home) .main-header .main-nav a {
    color: var(--black);
    text-shadow: none;
}

/* Estilo do Popup no mapa */
.map-popup {
    display: flex; align-items: center; gap: 12px;
}
.popup-logo {
    width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid #eee;
}
.popup-info { line-height: 1.4; }
.popup-info strong { font-size: 1rem; display: block; color: var(--black); }
.popup-info span { font-size: 0.85rem; color: var(--gray); }
.popup-info a { color: var(--primary); font-weight: 700; font-size: 0.9rem; display: block; margin-top: 5px; }
.leaflet-popup-content-wrapper { border-radius: var(--border-radius); padding: 1rem; }
.leaflet-popup-content { margin: 0; }



/* ========================================= */
/* --- BANNER DE PROMOÇÃO FULL-WIDTH --- */
/* ========================================= */
.promo-banner {
    width: 100%;
    padding: 4rem 0;
    margin-top: 4rem;
    background-color: var(--white);
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

/* O banner ímpar terá um fundo de cor diferente para variar */
.promo-banner:nth-of-type(odd) {
    background-color: #f0f2f5; 
}

.promo-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.promo-banner-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.banner-tag {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.promo-banner-text h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.promo-banner-text .banner-company {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.promo-banner-text p {
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Inverte a ordem das colunas para o segundo banner */
.promo-banner.promo-banner-reverse .promo-banner-content {
    grid-template-areas: "text image";
}
.promo-banner.promo-banner-reverse .promo-banner-image {
    grid-area: image;
}
.promo-banner.promo-banner-reverse .promo-banner-text {
    grid-area: text;
}


/* Responsividade para os banners */
@media (max-width: 768px) {
    .promo-banner-content {
        grid-template-columns: 1fr; /* Coluna única em telas menores */
    }
    .promo-banner-text {
        text-align: center;
    }
    /* Inverte a ordem no mobile para a imagem vir primeiro */
    .promo-banner.promo-banner-reverse .promo-banner-text {
        grid-row: 2 / 3;
    }
}



/* ========================================= */
/* --- ESTILOS PÁGINA DE CATEGORIA --- */
/* ========================================= */

/* Cabeçalho/Banner da Categoria */
.category-hero-header {
    padding: 3rem 1rem;
    background-color: var(--primary); /* Cor padrão */
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}
.category-hero-header i {
    font-size: 3rem;
}
.category-hero-header h1 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    margin-top: 1rem;
}

/* Layout com Barra Lateral */
.page-layout-with-sidebar {
    display: grid;
    grid-template-columns: 250px 1fr; /* Coluna fixa para sidebar, resto flexível */
    gap: 2.5rem;
}

/* Barra Lateral */
.page-sidebar h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #E9ECEF;
    margin-bottom: 1rem;
}
.sidebar-category-list {
    list-style: none;
    padding: 0;
}
.sidebar-category-list li a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar-category-list li a:hover {
    background-color: #E9ECEF;
    color: var(--black);
}
/* Estilo para a categoria que está ativa (sendo visualizada) */
.sidebar-category-list li a.active {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
}

/* Responsividade para a página de categoria */
@media (max-width: 992px) {
    .page-layout-with-sidebar {
        grid-template-columns: 1fr; /* Coluna única em telas menores */
    }
}

/* ================================================== */
/* --- NOVO CARD DE EMPRESA (PÁGINA DE CATEGORIA) --- */
/* ================================================== */

/* Ajusta o grid para os novos cards */
.search-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* O container principal do novo card */
.company-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* A imagem no topo do card */
.card-image-link {
    display: block;
}
.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.company-card:hover .card-image {
    transform: scale(1.05);
}


/* O conteúdo de texto abaixo da imagem */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz esta área crescer para preencher o espaço */
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}
.card-title a {
    text-decoration: none;
    color: var(--black);
}
.card-title a:hover {
    color: var(--primary);
}

.card-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Empurra o botão para baixo */
}
.card-meta i {
    margin-right: 0.5rem;
}

/* O botão no final do card */
.card-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #f0f2f5;
    color: var(--black);
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.card-button:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ================================================== */
/* --- APRIMORAMENTO DOS CARDS DE EMPRESA --- */
/* ================================================== */

/* Adiciona um estilo para a descrição curta */
.card-content .card-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1; /* Empurra o conteúdo abaixo para a base do card */
}

/* Ajusta o container de meta-informações */
.card-meta {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #333;
}
.meta-item {
    display: flex;
    align-items: flex-start; /* Alinha pelo topo, bom para endereços longos */
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.meta-item i {
    margin-top: 3px; /* Alinha o ícone com o texto */
    color: var(--primary);
}

/* Container para os botões */
.card-actions {
    display: grid;
    grid-template-columns: 1fr; /* Por padrão, um botão por linha */
    gap: 0.5rem;
}
/* Se houver dois botões, eles ficam lado a lado */
.card-actions a:nth-child(2) {
    grid-column-start: 2;
}
.card-actions:has(a:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
}


/* Estilo específico para o botão de WhatsApp */
.whatsapp-button {
    background-color: #25D366; /* Cor do WhatsApp */
    color: white;
}
.whatsapp-button:hover {
    background-color: #1DAE53;
    color: white;
}
.whatsapp-button i {
    margin-right: 0.5rem;
}
/* ======================================================= */
/* --- ATUALIZAÇÃO PÁGINA DE DETALHES DA EMPRESA --- */
/* ======================================================= */

/* Nova Seção Herói com imagem de capa */
.company-hero {
    position: relative;
    height: 50vh; /* 50% da altura da tela */
    min-height: 350px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}
.hero-text-content {
    position: relative;
    z-index: 5;
}
.hero-text-content .breadcrumbs {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}
.hero-text-content .breadcrumbs a {
    color: white;
    font-weight: 500;
}
.hero-text-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* Galeria de Fotos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease;
}
.gallery-grid a:hover img {
    transform: scale(1.05);
}

/* Barra Lateral Aprimorada */
.info-list li div {
    line-height: 1.5;
}
.info-list li div strong {
    color: var(--black);
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray);
}
.info-list a {
    color: var(--primary);
    font-weight: 500;
}
hr.card-divider {
    border: 0;
    border-top: 1px solid #E9ECEF;
    margin: 1.5rem 0;
}
.info-card h4 {
    font-family: var(--font-title);
    margin-bottom: 0.5rem;
}
.cta-button-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.btn-whatsapp-full {
    background-color: #25D366;
    color: white;
    text-align: center;
}
.btn-whatsapp-full:hover {
    background-color: #1DAE53;
}
.btn-secondary {
    background-color: #E9ECEF;
    color: var(--black);
    text-align: center;
}
.btn-secondary:hover {
    background-color: #ced4da;
}

#company-map {
    height: 400px;
    width: 100%;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    z-index: 5; /* Garante que o mapa não tenha problemas de sobreposição */
}


/* ======================================================= */
/* --- HERO SECTION PARA PÁGINAS DE DETALHES (Genérico) --- */
/* ======================================================= */

.page-hero-section {
    position: relative;
    height: 45vh; /* 45% da altura da tela */
    min-height: 300px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
    align-items: center; /* Centraliza o conteúdo horizontalmente */
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.hero-text-content {
    position: relative;
    z-index: 5;
    padding: 1rem;
}

.hero-text-content .breadcrumbs {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.hero-text-content .breadcrumbs a {
    color: white;
    font-weight: 500;
}

.hero-text-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}


/* ================================================== */
/* --- REFINAMENTOS DE DESIGN - PÁGINA DA VAGA --- */
/* ================================================== */

/* Aprimora a legibilidade da descrição principal */
.page-text-content {
    line-height: 1.8;
    color: #333;
    background-color: var(--white);
    padding: 2.5rem; /* Mais espaçamento interno */
    border-radius: var(--border-radius);
    border: 1px solid #E9ECEF;
    font-size: 1.1rem; /* Fonte ligeiramente maior */
}

/* Card da empresa na sidebar (reutiliza o estilo do mini-card-logo) */
.company-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-info-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.btn-details-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.btn-details-link:hover {
    text-decoration: underline;
}

/* Caixa de destaque para a informação de contato */
.contact-method-box {
    background-color: var(--background);
    border: 1px dashed #ced4da;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
    margin: 1rem 0 1.5rem 0;
}

/* Garante que o botão de ação ocupe toda a largura */
.cta-button-group .btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* ================================================== */
/* --- CSS PERFEITO PARA O MODAL (COM ANIMAÇÃO) --- */
/* ================================================== */

/* Trava a rolagem da página quando o modal está aberto */
body.modal-is-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo um pouco mais escuro */
    
    display: flex; /* Agora fica sempre flex */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;

    /* Controle da visibilidade para animação */
    visibility: hidden; /* Começa invisível */
    opacity: 0; /* Começa 100% transparente */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transição suave */
}

/* Classe que o JS adiciona para ATIVAR o modal */
.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;

    /* Efeito de "zoom" na entrada */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

/* Quando o modal está ativo, o conteúdo cresce para o tamanho normal */
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-family: var(--font-title);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--gray);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--black);
    transform: rotate(90deg);
}


/* ================================================== */
/* --- ESTILO MODERNO PARA FORMULÁRIO NO MODAL --- */
/* ================================================== */

/* Define o espaçamento entre cada grupo de campo (label + input) */
.modal-content .form-group {
    margin-bottom: 1.25rem;
}
.modal-content .form-group:last-child {
    margin-bottom: 0;
}

/* Estilo do Rótulo (Label) */
.modal-content .form-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Estilo padrão para os campos de texto, e-mail e textarea */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit; /* Herda a fonte do body para consistência */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f8f9fa;
}

/* Efeito de foco para guiar o usuário */
.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(252, 69, 0, 0.15);
}

/* Ajustes específicos para a área de texto */
.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estilo moderno para o campo de upload de arquivo */
.modal-content input[type="file"] {
    width: 100%;
    font-size: 0.9rem;
}

.modal-content input[type="file"]::file-selector-button {
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    border: none;
    background-color: #e9ecef;
    color: var(--black);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-right: 1rem;
}

.modal-content input[type="file"]::file-selector-button:hover {
    background-color: #dee2e6;
}

/* Garante que o botão de envio ocupe toda a largura */
.modal-content button[type="submit"].btn-full {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.feedback-message {
    margin-bottom: 2rem;
}


/* ========================================= */
/* --- ESTILOS DO MAPA COM FILTROS --- */
/* ========================================= */

/* Container principal da página do mapa */
.map-page-container {
    display: flex;
    /* Define a altura para ocupar a tela, descontando o header */
    height: calc(100vh - 85px); 
}

/* Barra lateral de filtros */
.map-sidebar {
    width: 280px;
    background-color: var(--white);
    padding: 1.5rem;
    overflow-y: auto; /* Adiciona rolagem se as categorias não couberem */
    border-right: 1px solid #e9ecef;
    flex-shrink: 0; /* Impede que a sidebar encolha */
}

.map-sidebar h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
}
.map-sidebar h3 i {
    margin-right: 0.5rem;
    color: var(--primary);
}



/* O mapa agora ocupa o espaço restante */
.map-content {
    flex-grow: 1;
    height: 100%;
}
#map { height: 100%; } /* Garante que o mapa preencha o container */


/* Responsividade para o mapa */
@media (max-width: 768px) {
    .map-page-container {
        flex-direction: column; /* Coloca a sidebar em cima do mapa */
        height: auto;
    }
    .map-sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh; /* Altura máxima para a sidebar não ocupar a tela toda */
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    #map {
        height: 60vh; /* O mapa ocupa o resto da tela */
    }
}

/* ========================================= */
/* --- ESTILOS DA BUSCA NO MAPA --- */
/* ========================================= */

.map-sidebar h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: var(--font-title);
}

.search-on-map-container {
    position: relative; /* Necessário para posicionar os resultados */
}

#map-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
}

#map-search-results {
    position: absolute;
    width: 100%;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1001; /* Garante que fique sobre outros elementos */
}

.search-result-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

/* ========================================= */
/* --- ESTILOS DOS MARCADORES DO MAPA --- */
/* ========================================= */

.custom-map-marker {
    background-color: var(--primary); /* Cor padrão */
    color: white;
    border-radius: 50% 50% 50% 0; /* Formato de "gota" */
    transform: rotate(-45deg);
    border: 2px solid var(--white);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);

    /* Centraliza o ícone Font Awesome dentro da gota */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Gira o ícone de volta para a posição correta */
.custom-map-marker .fas {
    transform: rotate(45deg);
    font-size: 1.2rem;
}

/* ========================================= */
/* --- ESTILOS DO BOTÃO E MARCADOR DE GEOLOCALIZAÇÃO --- */
/* ========================================= */

/* Estilo do botão customizado no mapa */
.locate-me-control {
    background-color: white;
    width: 34px;
    height: 34px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.locate-me-control:hover {
    background-color: #f4f4f4;
}
.locate-me-control .fas {
    font-size: 1.2rem;
    color: #333;
}

/* Estilo do marcador azul pulsante para a localização do usuário */
.user-location-marker {
    background-color: #007BFF;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0,123,255,0.8);
    animation: pulse 2s infinite;
}

/* Animação do pulso */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* --- PÁGINA DE PLANOS E CADASTRO --- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.pricing-card { background: var(--white); border: 1px solid #e9ecef; border-radius: var(--border-radius); padding: 2.5rem; text-align: center; position: relative; }
.pricing-card.premium { border: 2px solid var(--primary); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: 700; }
.pricing-header .price { font-size: 3rem; font-weight: 700; font-family: var(--font-title); color: var(--primary); }
.pricing-header .price-period { font-size: 1rem; color: var(--gray); }
.pricing-header .price-desc { color: var(--gray); margin-bottom: 2rem; }
.features-list { list-style: none; padding: 0; margin-bottom: 2rem; text-align: left; }
.features-list li { margin-bottom: 1rem; }
.features-list i { color: #28a745; margin-right: 0.5rem; }
.features-list li i.fa-times { color: #dc3545; }

.form-container-public { max-width: 800px; margin: 0 auto; background: var(--white); padding: 2rem; border-radius: var(--border-radius); }
.form-container-public h3 { margin-top: 2rem; margin-bottom: 1.5rem; font-family: var(--font-title); }
.form-container-public .form-group { margin-bottom: 1.25rem; }
.form-container-public label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.form-container-public input, .form-container-public select, .form-container-public textarea { width: 100%; padding: 0.9rem; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem; }
.form-divider { border: 0; border-top: 1px solid #e9ecef; margin: 2.5rem 0; }


/* ================================================== */
/* --- ESTILOS COMPLETOS - SISTEMA DE AVALIAÇÃO --- */
/* ================================================== */

/* --- Container e Formulário de Avaliação --- */
.review-form-container {
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #E9ECEF;
}

.review-form-container .form-group {
    margin-bottom: 1.5rem;
}
.review-form-container .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--black);
}

/* Campos de texto do formulário */
.review-form-container input[type="text"],
.review-form-container textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.review-form-container input[type="text"]:focus,
.review-form-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(252, 69, 0, 0.15);
}
.review-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

/* --- Sistema de Estrelas Interativo (para input) --- */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 2.5rem;
    line-height: 1;
}
.star-rating input { display: none; }
.star-rating label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.star-rating:not(:hover) input:checked ~ label,
.star-rating:hover label {
    color: #FFC107;
}
.star-rating input:hover + label {
    color: #FFC107;
}

/* Linha divisória entre formulário e lista */
.section-divider {
    border: 0;
    border-top: 1px solid #E9ECEF;
    margin: 3rem 0;
}

/* --- Lista de Avaliações Exibidas --- */
#reviews-list {
    margin-top: 2rem;
}
.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.review-item:last-child {
    border-bottom: none;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.review-header strong {
    font-size: 1.1rem;
    font-family: var(--font-title);
}
.review-date {
    font-size: 0.85rem;
    color: var(--gray);
}
.review-body p {
    margin: 0.5rem 0 0 0;
    line-height: 1.7;
    color: #333;
}
/* Estrelas de exibição (apenas leitura) */
.review-stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1rem;
    font-family: Times;
    line-height: 1;
    position: relative;
    top: -2px; /* Pequeno ajuste de alinhamento vertical */
    background: linear-gradient(90deg, #FFC107 var(--percent), #e0e0e0 var(--percent));
    /* -webkit-background-clip: text; */
    -webkit-text-fill-color: transparent;
}

/* --- Mensagens de Feedback (Alertas) --- */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 500;
}
.alert-success {
    background-color: #D4EDDA;
    border-color: #C3E6CB;
    color: #155724;
}
.alert-danger {
    background-color: #F8D7DA;
    border-color: #F5C6CB;
    color: #721C24;
}

/* ========================================= */
/* --- ESTILOS DOS MARCADORES DO MAPA (ATUALIZADO) --- */
/* ========================================= */

.custom-map-marker {
    background-color: var(--primary); /* Cor padrão, será sobrescrita pela cor da categoria */
    color: white;
    border-radius: 50% 50% 50% 0; /* Formato de "gota" */
    transform: rotate(-45deg);
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);

    /* Centraliza o ícone Font Awesome dentro da gota */
    display: flex;
    justify-content: center;
    align-items: center;

    /* --- AJUSTES DE TAMANHO AQUI --- */
    width: 42px;  /* Largura do marcador aumentada */
    height: 42px; /* Altura do marcador aumentada */
}

/* Gira o ícone de volta para a posição correta e aumenta o tamanho */
.custom-map-marker .fas {
    transform: rotate(45deg);
    font-size: 1.6rem; /* Tamanho do ícone aumentado para preencher melhor */
}

/* ========================================= */
/* --- NOVAS SEÇÕES DE DESTAQUE (VENDAS) --- */
/* ========================================= */

/* Card Grande (Spotlight) - Reutiliza e adapta o estilo do promo-banner */
.promo-banner.spotlight {
    background-color: #bbbbbb29; /* Um fundo suave e premium */
    color: var(--black);
}
.promo-banner.spotlight .banner-tag {
    color: #b58900; /* Cor de destaque amarelada */
}
.promo-banner.spotlight .promo-banner-text h2 {
    color: var(--black);
}

/* Cards Médios */
.recommended-section {
    padding: 4rem 0;
}
.medium-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.medium-card {
    display: block;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.medium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.medium-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.medium-card-content {
    padding: 1.5rem;
}
.medium-card-content span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}
.medium-card-content h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
}

/* ========================================= */
/* --- SEÇÃO VITRINE DE PRODUTOS --- */
/* ========================================= */
.product-showcase-section {
    padding: 4rem 0;
    background-color: var(--white);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.product-card {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}
.product-content {
    padding: 1.5rem;
}
.product-company {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}
.product-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}
.product-price .old-price {
    text-decoration: line-through;
    color: var(--gray);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}
.product-price .current-price {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
}

/* --- Efeito de Cards de Tamanhos Diferentes --- */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    /* O primeiro card será o GRANDE */
    .product-card:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    .product-card:nth-child(1) .product-image {
        height: 400px;
    }
     /* O quarto card será MÉDIO */
    .product-card:nth-child(4) {
        grid-column: span 2;
    }
    /* Os outros serão PEQUENOS */
}

/* --- PÁGINA DE INSTRUÇÕES DE PAGAMENTO --- */
.payment-instructions {
    border: 1px solid #e9ecef;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}
.pix-details {
    background-color: var(--background);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    text-align: center;
}
.pix-details .price {
    font-size: 2.5rem;
    font-family: var(--font-title);
    color: var(--primary);
    font-weight: 700;
}
.pix-details .pix-key {
    font-size: 1.5rem;
    font-weight: 600;
    background-color: #e9ecef;
    padding: 0.5rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* --- SEÇÃO VAGAS DE EMPREGO (MODERNIZADA) --- */
.jobs-section { 
    margin-top: 4rem; 
}
.jobs-list { 
    display: grid; 
    grid-template-columns: 1fr; /* Uma vaga por linha, para dar mais destaque */
    gap: 1.5rem; 
}
.job-card-modern {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid #E9ECEF;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}
.job-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.job-card-logo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}
.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.job-card-details {
    flex-grow: 1;
}
.job-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}
.job-company-name {
    margin: 0;
    font-weight: 500;
    color: var(--black);
}
.job-date {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray);
}
.job-card-button {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}


/* --- SEÇÃO TELEFONES ÚTEIS (MODERNIZADA) --- */
.useful-phones-section {
    padding: 4rem 0;
    margin-top: 4rem;
    background-color: #f0f2f5;
}
.phones-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.phone-item-modern {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.phone-item-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.phone-item-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.phone-item-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.phone-item-desc {
    color: var(--gray);
    min-height: 40px; /* Garante alinhamento em altura */
    margin-bottom: 1.5rem;
}
.phone-number-button {
    display: inline-block;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Botão em pílula */
    font-weight: 700;
    text-decoration: none;
    font-size: 1.2rem;
}
.phone-number-button i {
    margin-right: 0.5rem;
}


/* ================================================== */
/* --- DESIGN APRIMORADO - PÁGINA DA VAGA --- */
/* ================================================== */

/* Layout principal com a sidebar */
.page-layout-with-sidebar {
    /* Alinha os itens no topo, importante para o efeito sticky */
    align-items: flex-start;
}

/* A Barra Lateral "Flutuante" */
.detail-sidebar {
    position: sticky;
    top: 2rem; /* Distância que a sidebar vai manter do topo ao rolar */
}

/* Área de Descrição Aprimorada */
.page-text-content {
    line-height: 1.8;
    color: #333;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #E9ECEF;
    font-size: 1.1rem;
}
/* Estilos para quando a descrição for bem formatada */
.page-text-content h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-text-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.page-text-content li {
    margin-bottom: 0.5rem;
}

/* Seção de Compartilhamento Social */
.social-share-section {
    margin-top: 1.5rem;
}
.social-share-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    text-align: center;
    margin-bottom: 1rem;
}
.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-share-buttons a {
    font-size: 1.5rem;
    color: var(--gray);
    transition: color 0.2s ease, transform 0.2s ease;
}
.social-share-buttons a:hover {
    transform: scale(1.1);
    color: var(--primary);
}

/* --- PÁGINA DE BUSCA 2.0 --- */
.search-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}
.search-page-header h1 {
    font-size: 1.8rem;
    font-family: var(--font-title);
}
.view-switcher button {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ced4da;
    background-color: var(--white);
    font-weight: 600;
    cursor: pointer;
}
.view-switcher button:first-child { border-radius: 8px 0 0 8px; }
.view-switcher button:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.view-switcher button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
.map-container-search {
    width: 100%;
    height: 600px;
    border-radius: var(--border-radius);
}
.filter-group { margin-bottom: 2rem; }
.filter-group h4 { margin-bottom: 1rem; }
#category-filter-list-search .filter-item { margin-bottom: 0.5rem; }
#category-filter-list-search label { cursor: pointer; }
#category-filter-list-search input { margin-right: 0.5rem; }

.product-content .btn-whatsapp-product {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.8rem;
    text-align: center;
    background-color: #25D366;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.product-content .btn-whatsapp-product:hover {
    background-color: #1DAE53;
}
.product-content .btn-whatsapp-product i {
    margin-right: 0.5rem;
}


/* ================================================== */
/* --- DESIGN ATUALIZADO - MAPA INTERATIVO --- */
/* ================================================== */

.page-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Container principal da página do mapa */
.map-page-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start; /* Alinha pelo topo */
}

/* Barra lateral de filtros com novo design */
.map-sidebar {
    width: 300px;
    background-color: var(--white);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    flex-shrink: 0;
    position: sticky; /* Efeito "flutuante" */
    top: 2rem;
}

.map-sidebar h3, .map-sidebar h4 {
    font-family: var(--font-title);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e9ecef;
    margin: 0 0 1.5rem 0;
}
.map-sidebar h3 i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Estilo da busca dentro da sidebar */
.search-on-map-container {
    position: relative;
    margin-bottom: 1.5rem;
}
#map-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
}



/* ================================================== */
/* --- DESIGN FULL-SCREEN - MAPA INTERATIVO (CORRIGIDO) --- */
/* ================================================== */

/* Trava a rolagem da página quando o mapa está ativo */
body.map-page-active {
    overflow: hidden;
}

/* O header na página do mapa agora flutua sobre o conteúdo */
.map-page-active .main-header {
    position: relative; /* Mudança para relative para manter no fluxo mas permitir z-index */
    z-index: 1010;      /* Um z-index bem alto para ficar na frente de tudo */
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Garante que os links no header fiquem visíveis com o fundo branco */
.map-page-active .main-header .logo,
.map-page-active .main-header .main-nav a {
    color: var(--black);
    text-shadow: none;
}

/* O container do mapa agora ocupa a tela toda, posicionado de forma fixa */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5; /* Fica como uma camada de fundo */
    /* Empurra o mapa para baixo para não ficar atrás do header */
    padding-top: 85px; /* Altura aproximada do seu header */
}

/* O painel flutuante de filtros */
.map-floating-panel {
    position: absolute;
    top: 110px; /* Distância do topo da JANELA */
    left: 2rem; /* Distância da esquerda */
    z-index: 1000; /* Fica sobre o mapa, mas abaixo do header */
    
    width: 340px;
    max-height: calc(100vh - 130px);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    
    padding: 1.5rem;
    overflow-y: auto;
}

/* Responsividade do painel flutuante */
@media (max-width: 768px) {
    #map {
        padding-top: 130px; /* Aumenta o espaçamento no topo no mobile pois o header quebra a linha */
    }
    .map-floating-panel {
        width: calc(100% - 2rem);
        left: 1rem;
        top: 20px;
        /* Reposiciona o painel abaixo do header que agora é maior */
        margin-top: 120px; 
    }
}

/* ======================================================= */
/* --- ESTILOS DOS MARCADORES DO MAPA (TAMANHO GRANDE) --- */
/* ======================================================= */

.custom-map-marker {
    background-color: var(--primary);
    color: white;
    border-radius: 50% 50% 50% 0; /* Formato de "gota" */
    transform: rotate(-45deg);
    border: 3px solid var(--white); /* Borda um pouco mais grossa */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;

    /* --- TAMANHO VISUAL AUMENTADO --- */
    width: 48px;  /* <<< Aumentado para 48px */
    height: 48px; /* <<< Aumentado para 48px */
}

/* Gira o ícone de volta para a posição correta e aumenta o tamanho */
.custom-map-marker .fas {
    transform: rotate(45deg);
    font-size: 1.8rem; /* <<< Ícone aumentado para 1.8rem */
}


/* ================================================== */
/* --- DESIGN REFINADO DO PAINEL DE FILTROS DO MAPA --- */
/* ================================================== */

/* Container principal da página do mapa */
.map-page-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* O painel flutuante de filtros com novo design */
.map-floating-panel {
    position: absolute;
    top: 110px; /* Distância do topo */
    left: 2rem; /* Distância da esquerda */
    z-index: 10;
    
    width: 340px; /* Um pouco mais largo */
    max-height: calc(100vh - 130px);
    background-color: rgba(255, 255, 255, 0.9); /* Fundo branco com leve transparência */
    backdrop-filter: blur(8px); /* Efeito de vidro fosco (moderno) */
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    
    padding: 1.5rem;
    overflow-y: auto;
}

.map-floating-panel h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.map-floating-panel h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--gray);
    margin: 0 0 1rem 0;
}

/* Linha divisória sutil */
.panel-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 2rem 0;
}



/* Estilizando a barra de rolagem (para navegadores WebKit) */
.map-floating-panel::-webkit-scrollbar {
  width: 8px;
}
.map-floating-panel::-webkit-scrollbar-track {
  background: transparent;
}
.map-floating-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Responsividade do painel */
@media (max-width: 768px) {
    .map-floating-panel {
        width: calc(100% - 2rem);
        left: 1rem;
        top: 20px;
        max-height: 40vh;
    }
}


/* ================================================== */
/* --- ESTILO CORRIGIDO PARA FILTROS DO MAPA --- */
/* ================================================== */

/* O container de cada item do filtro (checkbox + label) */
.filter-item {
    display: flex;         /* <<< A CORREÇÃO PRINCIPAL: flex vai para o container pai */
    align-items: center;   /* <<< Alinha o checkbox e o texto verticalmente */
    margin-bottom: 0.5rem;
    padding: 0.6rem;       /* Espaçamento interno para criar uma área de clique maior */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Efeito de hover no item inteiro */
.filter-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Estilo do checkbox */
.filter-item input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.8rem; /* Espaço entre o checkbox e o texto */
    cursor: pointer;
    accent-color: var(--primary);
}

/* Estilo do texto (label) */
.filter-item label {
    font-weight: 500;
    cursor: pointer;
    /* Removemos o padding e o display:flex daqui, pois agora estão no pai */
}


/* ================================================== */
/* --- ARQUIVO CSS ÚNICO E OFICIAL - GUIA GRANJENSE --- */
/* ================================================== */

/* --- 1. VARIÁVEIS GLOBAIS E RESET --- */
:root {
    --white: #FFFFFF;
    --black: #1D1F23;
    --gray: #848B99;
    --primary: #FC4500;
    --background: #F8F9FA;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--background); font-family: var(--font-body); color: var(--black); html { scroll-behavior: smooth; } }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* --- 2. HEADER E NAVEGAÇÃO (REGRAS CORRIGIDAS) --- */
.main-header { padding: 1.5rem 0; transition: background-color 0.3s ease; position: relative; z-index: 100; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a { font-weight: 500; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--primary); }
.nav-login-link { font-weight: 600; color: var(--primary); }
.nav-login-link:hover { opacity: 0.8; }
.nav-welcome { font-weight: 600; }
.btn { padding: 0.75rem 1.5rem; border-radius: var(--border-radius); font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-primary { background-color: var(--primary); color: var(--white); }

/* --- 3. ESTILOS ESPECÍFICOS DA HOME (HEADER FLUTUANTE) --- */
.home .main-header {
    position: absolute; top: 0; left: 0; width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.home .main-header .logo, .home .main-header .main-nav a {
    color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.home .main-header .nav-login-link { color: var(--white); }

/* (O restante do seu CSS para .hero-section, .main-grid, etc., continua aqui) */
/* ... cole aqui todo o resto do seu CSS que já funcionava ... */

/* --- RESPONSIVIDADE DO MENU --- */
@media (max-width: 992px) {
    .main-header .container { flex-direction: column; gap: 1.5rem; }
    .main-nav { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        width: 100%;
        justify-content: space-around;
    }
}

/* ========================================= */
/* --- BOTÕES DE AÇÃO DO CARD DE PRODUTO --- */
/* ========================================= */

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.product-actions .btn-whatsapp-product {
    flex-grow: 1; /* Faz o botão principal crescer */
    margin-top: 0; /* Remove a margem que ele tinha antes */
}

.social-share-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-share-icons a {
    font-size: 1.4rem;
    color: var(--gray);
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-share-icons a:hover {
    color: var(--primary);
    transform: scale(1.1);
}


/* Para Telas Médias (Tablets em modo paisagem, telas menores) - até 1024px */
@media (max-width: 1024px) {
    .main-nav { gap: 1.5rem; }
    .nav-links { gap: 1rem; }
    .nav-actions { gap: 1rem; }
    .page-layout-with-sidebar { grid-template-columns: 240px 1fr; } /* Diminui a sidebar */
}

/* Para Tablets (até 992px) */
@media (max-width: 992px) {
    .main-highlights-grid { grid-template-columns: 1fr; }
    .promo-banner-content { grid-template-columns: 1fr; gap: 2rem; }
    .promo-banner-text { text-align: center; }
    .promo-banner.promo-banner-reverse .promo-banner-text { grid-row: 2 / 3; }
    .page-layout-with-sidebar { grid-template-columns: 1fr; } /* Coluna única para sidebar e conteúdo */
    .page-sidebar { position: static; margin-bottom: 2rem; width: 100%; }
}

/* Para Celulares (até 768px) */
@media (max-width: 768px) {
    /* Ajustes gerais de espaçamento e fontes */
    body { font-size: 15px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .home main.container { margin-top: -80px; }

    /* Header Mobile */
    .main-header { padding: 1rem 0; }
    .main-header .container { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
    .main-nav { display: none; /* Esconde a navegação por padrão */ flex-basis: 100%; text-align: center; margin-top: 1rem; }
    /* Adicionaríamos um botão de menu aqui com JS para mostrar/esconder .main-nav */

    /* Hero Section Mobile */
    .hero-section { height: 70vh; min-height: 450px; }
    .hero-section .hero-content h1 { font-size: 2rem; }
    .hero-section .hero-content p { font-size: 1rem; }
    .hero-section .search-wrapper { flex-direction: column; }
    .hero-section .search-wrapper input, .hero-section .btn-search { border-radius: var(--border-radius); }
    .hero-section .btn-search { margin-top: 0.5rem; padding: 1rem; }

    /* Cards e Grids Mobile */
    .featured-card, .mini-card { min-height: 280px; }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .jobs-list { gap: 1rem; }

    /* Mapa Mobile */
    #map { padding-top: 65px; }
    .map-floating-panel {
        width: calc(100% - 2rem);
        left: 1rem; top: 1rem;
        margin-top: 65px; /* Abaixo do header */
        max-height: 40vh;
    }
}


/* ================================================== */
/* --- ESTILOS PARA PÁGINA DE LOGIN UNIFICADO --- */
/* ================================================== */

.login-wrapper {
    max-width: 450px;
    margin: 2rem auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden; /* Garante que o conteúdo respeite as bordas arredondadas */
}

.login-tabs {
    display: flex;
    background-color: #f8f9fa;
}

.tab-link {
    flex-grow: 1; /* Faz os botões ocuparem o espaço igualmente */
    padding: 1.25rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: var(--gray);
    border-bottom: 3px solid transparent; /* Borda inferior padrão */
    transition: all 0.2s ease-in-out;
}

.tab-link:hover {
    background-color: #e9ecef;
}

/* Estilo da aba que está ativa/selecionada */
.tab-link.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

/* Esconde as abas de conteúdo por padrão */
.login-tab-content {
    display: none;
    padding: 2.5rem;
}

/* Mostra apenas a aba de conteúdo que está ativa */
.login-tab-content.active {
    display: block;
}

/* Links no rodapé do formulário */
.login-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}
.login-footer-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.login-footer-link a:hover {
    text-decoration: underline;
}

/* Adicionamos .login-wrapper aos seletores */
.login-wrapper input[type="text"],
.login-wrapper input[type="email"],
.login-wrapper input[type="password"],
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit; /* Herda a fonte do body para consistência */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f8f9fa;
}

/* Adicionamos .login-wrapper também aqui */
.login-wrapper input[type="text"]:focus,
.login-wrapper input[type="email"]:focus,
.login-wrapper input[type="password"]:focus,
.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="password"]:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(252, 69, 0, 0.15);
}

/* ================================================== */
/* --- 8. DESIGN RESPONSIVO COM MENU HAMBURGER --- */
/* ================================================== */

/* Estilos do Menu Hamburger e Overlay (inicialmente escondidos no desktop) */
.hamburger-btn {
    display: none; /* Escondido em telas grandes */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--black);
    cursor: pointer;
    z-index: 1001;
}
.home .hamburger-btn { color: var(--white); }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 31, 35, 0.98); /* Fundo escuro quase opaco */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Animação de entrada */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    color: var(--gray);
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}
.mobile-nav-links a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 600;
    font-family: var(--font-title);
    padding: 0.5rem;
}
.mobile-nav-links hr {
    width: 80px;
    border: 1px solid var(--primary);
}


/* --- Media Queries --- */

/* Para Tablets e Telas Menores (abaixo de 992px) */
@media (max-width: 992px) {
    .desktop-nav {
        display: none; /* Esconde o menu de desktop */
    }
    .hamburger-btn {
        display: block; /* Mostra o botão hamburger */
    }
    .page-layout-with-sidebar { grid-template-columns: 1fr; }
    .page-sidebar { position: static; margin-bottom: 2rem; width: 100%; }
}

/* Para Celulares (abaixo de 768px) */
@media (max-width: 768px) {
    .home main.container { margin-top: 2rem; }
    .hero-section { height: 80vh; }
    .hero-section .hero-content h1, .detail-page-header h1 { font-size: 2.2rem; }
    .main-highlights-grid { grid-template-columns: 1fr; }
    .promo-banner-content { grid-template-columns: 1fr; }
    .promo-banner.promo-banner-reverse .promo-banner-text { grid-row: 2 / 3; }
    .map-floating-panel { width: calc(100% - 2rem); left: 1rem; top: 1rem; margin-top: 80px; }
}

.login-to-review {
    background-color: #fff;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
}
.login-to-review h4 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.login-to-review p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


/* ================================================== */
/* --- ARQUIVO CSS ÚNICO E OFICIAL - GUIA GRANJENSE --- */
/* ================================================== */

/* --- 1. VARIÁVEIS GLOBAIS E RESET --- */
:root {
    --white: #FFFFFF;
    --black: #1D1F23;
    --gray: #848B99;
    --primary: #FC4500;
    --background: #F8F9FA;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
}
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--background); font-family: var(--font-body); color: var(--black); -webkit-font-smoothing: antialiased; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* --- ESTILOS PARA O FORMULÁRIO DE BUSCA INTERNO --- */

.page-search-form {
    display: flex;
    width: 100%;
    max-width: 500px; /* Limita a largura do campo de busca */
}

.page-search-form input {
    flex-grow: 1;
    border: 2px solid #ced4da;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(252, 69, 0, 0.15);
}

.page-search-form button {
    border: none;
    background-color: var(--primary);
    color: var(--white);
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Ajusta o cabeçalho da página para acomodar a busca */
.search-page-header {
    align-items: center; /* Centraliza verticalmente */
    gap: 2rem; /* Adiciona espaço entre o título e a busca */
}



/* --- SEÇÃO DE CLASSIFICADOS --- */
.classifieds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
/* .classified-card { Similar ao product-card } */
.classified-image { height: 200px; background-size: cover; background-position: center; border-radius: var(--border-radius) var(--border-radius) 0 0; }
.classified-content { padding: 1.25rem; }
.classified-category { font-size: 0.8rem; font-weight: 700; color: var(--gray); }
.classified-title { font-family: var(--font-title); font-size: 1.2rem; margin: 0.5rem 0; }
.classified-price { font-weight: 700; font-size: 1.4rem; color: var(--primary); }
.classified-price-detail { font-size: 2.5rem; font-weight: 700; color: var(--primary); }


/* ================================================== */
/* --- DESIGN MODERNO - PÁGINA DE ANÚNCIO --- */
/* ================================================== */

.ad-image-hero {
    height: 60vh; /* Altura generosa para a imagem */
    min-height: 400px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: var(--gray);
}

.ad-detail-grid {
    display: grid;
    grid-template-columns: 1fr; /* Começa com uma coluna para mobile */
    gap: 2.5rem;
    margin-top: -80px; /* Efeito de sobreposição do conteúdo sobre a imagem */
    position: relative;
    z-index: 10;
}

/* Em telas maiores, cria as 2 colunas */
@media (min-width: 992px) {
    .ad-detail-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.ad-main-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.ad-header .ad-category-tag {
    font-weight: 600;
    color: var(--primary);
    background-color: #fcece6;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.ad-header h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin: 1rem 0;
}

.ad-price-main {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--black);
    font-family: var(--font-title);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}



/* ========================================= */
/* --- RODAPÉ MODERNO COM EFEITO NOISE --- */
/* ========================================= */

.site-footer {
    position: relative; /* Necessário para o efeito de ruído */
    background-color: #1a1a1a; /* Um preto um pouco mais suave */
    color: var(--gray);
    padding: 5rem 0;
    margin-top: 4rem;
    text-align: center;
    overflow: hidden; /* Garante que o efeito não vaze */
}

/* O EFEITO DE RUÍDO (NOISE) */
.noise-effect {
    position: absolute;
    top: -200%;
    left: -100%;
    width: 300%;
    height: 400%;
    z-index: 0;
    pointer-events: none;
    /* Imagem de ruído em Base64 para não depender de arquivos externos */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMDAgMzAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuODUiIG51bU9jdGF2ZXM9IjEwIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1clwoI25vaXNlKSIvPjwvc3ZnPg==');
    animation: noiseAnimation 12s steps(10) infinite;
    opacity: 0.03; /* Deixa o efeito BEM sutil */
}

@keyframes noiseAnimation {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(25%, 35%); }
  90% { transform: translate(-10%, 10%); }
  100% { transform: translate(0, 0); }
}

/* Garante que o conteúdo do rodapé fique na frente do efeito */
.footer-content-modern {
    position: relative;
    z-index: 1;
}

.logo-footer {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-nav-modern {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-nav-modern a {
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav-modern a:hover {
    color: var(--white);
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-links-footer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background-color: transparent;
    color: var(--gray);
    border-radius: 50%;
    border: 1px solid var(--gray);
    transition: all 0.3s ease;
}

.social-links-footer a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom-modern {
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
}




/* ================================================== */
/* --- ARQUIVO CSS ÚNICO E OFICIAL - GUIA GRANJENSE --- */
/* ================================================== */

/* --- 1. VARIÁVEIS GLOBAIS E RESET --- */
:root {
    --white: #FFFFFF; --black: #1D1F23; --gray: #848B99;
    --primary: #FC4500; --background: #F8F9FA;
    --font-title: 'Poppins', sans-serif; --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
}
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--background); 
    font-family: var(--font-body); 
    color: var(--black);
    overflow-x: hidden; /* <<< CORREÇÃO CRÍTICA PARA O SCROLL HORIZONTAL DO MEGA MENU */
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* --- 2. HEADER, NAVEGAÇÃO E MEGA MENU --- */
.main-header { padding: 1rem 0; transition: background-color 0.3s ease; position: relative; z-index: 1100; border-bottom: 1px solid #e9ecef; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a, .nav-welcome { font-weight: 600; white-space: nowrap; }
.nav-login-link { color: var(--primary); }
.btn { padding: 0.75rem 1.5rem; border-radius: var(--border-radius); font-weight: 700; transition: all 0.2s ease; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-primary { background-color: var(--primary); color: var(--white); }
.desktop-nav { display: none; } /* Começa escondido, e aparece em telas maiores */
@media (min-width: 993px) { .desktop-nav { display: flex; } }

/* Mega Menu */
.has-megamenu { position: relative; }
.has-megamenu > a { display: flex; align-items: center; gap: 0.5rem; }
.has-megamenu > a .fa-chevron-down { font-size: 0.7rem; transition: transform 0.3s ease; }
.megamenu {
    /* position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 2.5rem 0;
    opacity: 0; visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease-in-out;
    pointer-events: none; */

        position: absolute;
    top: 100%;
    left: -271%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: #e0e2e5;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    opacity: 1;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    color:#333 !important;
}
.has-megamenu:hover .megamenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.has-megamenu:hover > a .fa-chevron-down { transform: rotate(180deg); }
.megamenu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.megamenu-col h4 { font-family: var(--font-title); font-size: 0.9rem; text-transform: uppercase; color: var(--gray); margin-bottom: 1.5rem; letter-spacing: 1px; }
.megamenu-col ul { list-style: none; }
.megamenu-col ul li a { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0; font-weight: 600; font-size: 1.05rem; }
.megamenu-col ul li a:hover { color: var(--primary); }
.megamenu-col ul li a i { color: var(--primary); font-size: 1.1rem; width: 25px; text-align: center; }
.megamenu-promo-card {
    height: 100%; border-radius: var(--border-radius); background-size: cover; background-position: center;
    position: relative; color: white; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem; transition: transform 0.3s ease;
}
.megamenu-promo-card:hover { transform: scale(1.03); }
.megamenu-promo-card span { font-size: 0.8rem; font-weight: 700; background: var(--primary); padding: 0.2rem 0.5rem; border-radius: 5px; display: inline-block; margin-bottom: 0.5rem; }
.megamenu-promo-card h4 { color: white; font-size: 1.2rem; text-transform: none; letter-spacing: 0; }
.megamenu-promo-card p { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.5; }

/* --- 3. MENU HAMBURGER E MOBILE --- */
.hamburger-btn { display: none; background: none; border: none; font-size: 1.8rem; color: var(--black); cursor: pointer; }
.home .hamburger-btn { color: white; }
@media (max-width: 992px) { .hamburger-btn { display: block; } }
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(29, 31, 35, 0.98);
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 3rem; color: var(--gray); background: none; border: none; cursor: pointer; }
.mobile-nav-links { display: flex; flex-direction: column; text-align: center; gap: 1.5rem; }
.mobile-nav-links a { color: var(--white); font-size: 1.8rem; font-weight: 600; font-family: var(--font-title); padding: 0.5rem; }
.mobile-nav-links hr { width: 80px; border: 1px solid var(--primary); }