/**
 * Conectado em Sergipe - Área Explorar Sergipe
 * Estilos isolados exclusivos com namespace .explore-*
 */

/* ── Container e Layout Geral ── */
.explore-container {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

/* ── Hero da Área Explorar ── */
.explore-hero {
    background: linear-gradient(135deg, #075be8 0%, #033996 100%);
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(7, 91, 232, 0.18);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.explore-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.explore-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 0.85rem;
}

.explore-hero-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.explore-hero-subtitle {
    font-size: clamp(0.92rem, 1.4vw, 1.08rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

/* ── Formulário de Busca Integrado ── */
.explore-search-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.85rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    max-width: 900px;
}

.explore-search-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

@media (min-width: 768px) {
    .explore-search-input-group {
        flex-direction: row;
        align-items: center;
    }
}

.explore-search-field {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.explore-search-field i {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 0.9rem;
    pointer-events: none;
}

.explore-search-field .form-control,
.explore-search-field .form-select {
    padding-left: 38px;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    color: #0f172a;
    background-color: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.explore-search-field .form-control:focus,
.explore-search-field .form-select:focus {
    background-color: #ffffff;
    border-color: #075be8;
    box-shadow: 0 0 0 3px rgba(7, 91, 232, 0.15);
    outline: none;
}

.explore-search-btn {
    min-height: 44px;
    padding: 0 1.5rem;
    background: #075be8;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.explore-search-btn:hover {
    background: #0548b8;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ── Estatísticas Rápidas ── */
.explore-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.explore-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.explore-stat-item strong {
    color: #ffffff;
    font-weight: 800;
}

/* ── Cabeçalhos de Seção ── */
.explore-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.explore-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explore-section-title i {
    color: #075be8;
}

.explore-section-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ── Seção Grupos de Categorias ── */
.explore-group-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-group-box:hover {
    box-shadow: 0 8px 24px rgba(7, 91, 232, 0.08);
}

.explore-group-title {
    font-size: 1.05rem;
    font-weight: 750;
    color: #1e293b;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.explore-group-title i {
    color: #075be8;
}

.explore-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.explore-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.explore-category-chip:hover {
    background: #075be8;
    color: #ffffff !important;
    border-color: #075be8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 91, 232, 0.2);
}

.explore-category-chip i {
    font-size: 0.76rem;
    color: #075be8;
    transition: color 0.2s ease;
}

.explore-category-chip:hover i {
    color: #ffffff;
}

/* ── Grid dos 75 Municípios ── */
.explore-cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 576px) {
    .explore-cities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 992px) {
    .explore-cities-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

@media (min-width: 1400px) {
    .explore-cities-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }
}

.explore-city-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    text-decoration: none !important;
    background: #0b172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.explore-city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(7, 91, 232, 0.25);
}

.explore-city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.explore-city-card:hover img {
    transform: scale(1.08);
}

.explore-city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 23, 42, 0.92) 0%, rgba(11, 23, 42, 0.25) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px 10px;
    color: #ffffff;
}

.explore-city-name {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explore-city-meta {
    font-size: 0.68rem;
    color: #93c5fd;
    font-weight: 600;
}

/* ── Cards Próprios da Área Explorar ── */
.explore-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 576px) {
    .explore-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .explore-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1400px) {
    .explore-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.explore-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.explore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(7, 91, 232, 0.12);
    border-color: #bfdbfe;
}

.explore-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
    display: block;
}

.explore-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.explore-card:hover .explore-card-media img {
    transform: scale(1.04);
}

.explore-card-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
    background: #f8fafc;
}

.explore-card-featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #075be8;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(7, 91, 232, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.explore-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.explore-card-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #075be8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.explore-card-title {
    font-size: 0.96rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.explore-card-title a {
    color: inherit;
    text-decoration: none !important;
}

.explore-card-title a:hover {
    color: #075be8;
}

.explore-card-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explore-card-meta {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
    gap: 6px;
}

.explore-card-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #075be8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explore-card-cta {
    width: 100%;
    margin-top: 10px;
    padding: 8px 12px;
    background: #075be8 !important;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.explore-card-cta:hover {
    background: #0548b8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.explore-card-cta *,
.explore-card-cta span,
.explore-card-cta i {
    color: #ffffff !important;
}

/* ── Breadcrumbs Exclusivos ── */
.explore-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    padding: 8px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.explore-breadcrumbs a {
    color: #075be8;
    text-decoration: none !important;
    font-weight: 600;
}

.explore-breadcrumbs a:hover {
    text-decoration: underline !important;
}

.explore-breadcrumbs-sep {
    color: #94a3b8;
    font-size: 0.7rem;
}

.explore-breadcrumbs-current {
    color: #64748b;
    font-weight: 600;
}

/* ── Seção de Destaques da Página ── */
.explore-featured-section {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.explore-featured-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-weight: 800;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.explore-featured-header i {
    color: #f59e0b;
}

/* ── Modo Escuro (Dark Mode) Suporte Nativo ── */
html[data-theme="dark"] .explore-search-card {
    background: #1e293b;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .explore-search-field .form-control,
html[data-theme="dark"] .explore-search-field .form-select {
    background-color: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

html[data-theme="dark"] .explore-search-field .form-control:focus,
html[data-theme="dark"] .explore-search-field .form-select:focus {
    background-color: #0f172a;
    border-color: #38bdf8;
    color: #f8fafc;
}

html[data-theme="dark"] .explore-section-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .explore-section-desc {
    color: #94a3b8;
}

html[data-theme="dark"] .explore-group-box {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .explore-group-title {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .explore-category-chip {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

html[data-theme="dark"] .explore-category-chip:hover {
    background: #075be8;
    color: #ffffff !important;
    border-color: #075be8;
}

html[data-theme="dark"] .explore-card {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .explore-card-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .explore-card-desc {
    color: #94a3b8;
}

html[data-theme="dark"] .explore-card-meta {
    border-top-color: #334155;
    color: #94a3b8;
}

html[data-theme="dark"] .explore-card-city {
    color: #60a5fa;
}

html[data-theme="dark"] .explore-breadcrumbs {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .explore-breadcrumbs-current {
    color: #94a3b8;
}

html[data-theme="dark"] .explore-featured-section {
    background: #0f172a;
    border-color: #1e3a8a;
}

html[data-theme="dark"] .explore-featured-header {
    color: #93c5fd;
}
