:root {
    --primary: #FACC15;
    --primary-dark: #CA8A04;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray: #64748B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.main-header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
}

.logo b {
    color: var(--primary-dark);
}

.navbar nav {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    margin-right: 20px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.btn-anunciar {
    background: var(--primary);
    color: var(--dark);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    border: 2px solid var(--primary);
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
}

.btn-anunciar:hover {
    background: transparent;
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 100px 0 140px;
    color: var(--white);
    text-align: center;
}

.badge {
    background: rgba(250, 204, 21, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 20px 0;
    line-height: 1.1;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.search-container {
    background: var(--white);
    padding: 8px;
    border-radius: 16px;
    display: flex;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.search-input,
.search-select {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--gray);
    border-right: 1px solid #eee;
}

.search-input input,
.search-select select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--dark);
    background: transparent;
}

.btn-search {
    background: var(--primary);
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-search:hover {
    transform: scale(1.02);
    background: var(--primary-dark);
}

.btn-search:disabled {
    opacity: 0.5;
}

/* Wrapper e Container Fixo */
.results-section {
    padding: 0 0 80px;
}

.results-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 30px;
}

/* FIX: Altura do container é fixa, mas o conteúdo não deve esticar */
.results-container-scroll {
    height: 650px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Grid: Alinhamento definido para o topo (start) para evitar esticar cards verticalmente */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    align-content: start;
    align-items: stretch;
}

/* Business Card */
.business-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #eef2f6;
    transition: 0.4s;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Alinhamento para a tag e o badge PRO */
.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* O Card PRO: Borda amarela e leve brilho */
.business-card.business-card-pro {
    border: 2px solid var(--primary);
    background: linear-gradient(to bottom right, #ffffff, #fffdf2);
    box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.2);
    margin: -1px;
}

/* Badge PRO: Estilo pílula elegante */
.pro-badge {
    background: var(--primary);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pro-badge svg {
    width: 12px;
    height: 12px;
}

/* Destaque no nome para planos PRO */
.business-card-pro h3 {
    color: var(--dark);
    font-weight: 800;
}

/* Animação extra para cards PRO ao carregar */
.business-card-pro.fade-in {
    animation: fadeInPro 0.6s ease-out;
}

@keyframes fadeInPro {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.business-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    line-height: 1.2;
    min-height: 1.2em;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.card-info svg {
    width: 14px;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-whatsapp {
    color: #16a34a;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Paginação */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.pagination-btn {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-weight: 700;
    color: var(--gray);
}

/* Skeleton */
.skeleton-card {
    height: 220px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Animações e Auxiliares */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-weight: 600;
}

.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

.heart {
    width: 12px;
    color: #ef4444;
    fill: #ef4444;
    display: inline;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input,
    .search-select {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .results-wrapper {
        padding: 24px 16px;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .nav-link {
        margin-right: 12px;
        font-size: 0.9rem;
    }
}

.navbar {
    gap: 12px;
}

/* Nomes longos quebram a linha em vez de estourar o card ou o modal */
.business-card h3,
.card-info span,
.modal-content h2 {
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .modal-explorar-content,
    .modal-content {
        padding: 28px 20px;
    }

    .days-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .modal-content {
        max-height: 92vh;
        overflow-y: auto;
    }
}

/* Impede a rolagem da página enquanto um modal está aberto */
body.modal-open {
    overflow: hidden;
}
