/**
 * DICA EXATA - Estilos Customizados
 * Design moderno e premium
 */

/* ============================================
   FONTE E RESET
   ============================================ */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Centralização Global (Ocupar tela inteira não fica legal em monitores grandes) */
.container {
    max-width: 1440px !important;
}

@media (min-width: 1400px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-logo {
    height: 55px;
    /* Aumentado consideravelmente */
    transition: transform 0.3s ease;
}

@media (min-width: 992px) {
    .main-logo {
        height: 75px;
        /* Bem grande no Desktop */
    }

    .border-bottom-lg {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 991px) {
    .main-logo {
        height: 40px;
        /* Mantém compacto no mobile */
    }
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    color: #444 !important;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
    transform: translateY(-1px);
}

/* ============================================
   LISTING CARDS
   ============================================ */
.listing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Card Destaque */
.featured-listing {
    border: 3px solid #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* Botão WhatsApp */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
}

/* ============================================
   HERO / LANDING
   ============================================ */
/* ============================================
   HERO / LANDING / SECTION
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    padding-top: 100px;
    padding-bottom: 100px;
    color: #ffffff !important;
}

.hero-section .display-3,
.hero-section .lead {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: heroPulse 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-control-lg {
    border-radius: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: #000;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

.btn-success {
    background: #25d366;
    border: none;
}

.btn-success:hover {
    background: #128c7e;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border-radius: 12px;
    border: none;
}

.card-img-top {
    border-radius: 12px 12px 0 0;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--bs-primary) !important;
}

.social-links a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-4px);
}

/* ============================================
   CATEGORIAS HOME (Premium UI)
   ============================================ */
.category-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.category-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 15px rgba(79, 70, 229, 0.25);
}

.category-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.01em;
}

/* Banner de Destaques (Estilo Yellow) */
.featured-promo-banner {
    background: #ffc107;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    color: #000;
}

.featured-promo-banner h3 {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.featured-promo-banner p {
    font-weight: 500;
    opacity: 0.85;
    max-width: 450px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: #fff;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   LOADING / SPINNER
   ============================================ */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ============================================
   RESPONSIVO
   ============================================ */
/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 60px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-section .display-2 {
        font-size: 2.5rem;
    }

    .search-container {
        padding: 1rem !important;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Menu Mobile Fix */
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .listing-card {
        margin-bottom: 1rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-2 {
        font-size: 2rem !important;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 16px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Dashboard Sidebar Refinements (Centralizado) */
@media (min-width: 768px) {
    .sidebar {
        border-right: 1px solid rgba(0, 0, 0, 0.05);
        height: calc(100vh - 72px);
        position: sticky;
        top: 72px;
    }
}


/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-muted {
    color: #6c757d !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Animações de Revelação (Premium UX) */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    visibility: hidden;
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* ============================================
   SIDEBAR & DASHBOARD NAV
   ============================================ */
.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active,
.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

@media (max-width: 767px) {
    .sidebar {
        height: auto !important;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* ============================================
   BOTÃO GEO & ANIMAÇÕES ADICIONAIS
   ============================================ */
.pulse-animation {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 0 rgba(13, 110, 253, 0.7));
    }

    70% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0));
    }

    100% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 0 rgba(13, 110, 253, 0));
    }
}

.search-input-group {
    background: white;
    border-radius: 50px;
    overflow: visible !important;
}

#smart-search-input:focus {
    box-shadow: none !important;
}

#btn-geo:hover {
    color: #0b5ed7 !important;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        background: transparent;
        gap: 10px;
    }

    .search-input-group>* {
        width: 100% !important;
        border-radius: 15px !important;
        margin: 0 !important;
    }

    .search-input-group .input-group-text,
    .search-input-group .btn-geo-container {
        display: none !important;
    }

    /* No mobile, o botão geo fica discreto dentro do input ou em cima */
    #smart-search-input {
        background: white !important;
        border: 1px solid #eee !important;
        padding-right: 50px !important;
    }
}

/* ============================================
   PESQUISA DUPLA (WHAT / WHERE)
   ============================================ */
.border-end-md {
    border-right: 1px solid #eee;
}

.border-start-md {
    border-left: 1px solid #eee;
}

@media (max-width: 767px) {

    .border-end-md,
    .border-start-md {
        border: none !important;
        border-bottom: 1px solid #eee !important;
    }

    .search-container .row {
        flex-direction: column;
    }

    .search-container .col-md-5,
    .search-container .col-md-4,
    .search-container .col-md-3 {
        width: 100%;
    }

    .search-container input {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

.pac-container {
    border-radius: 15px;
    margin-top: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: none;
    font-family: 'Inter', sans-serif;
    padding: 10px 0;
    z-index: 9999;
}

.pac-item {
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    border: none;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-query {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3c72;
}

.animate-pulse {
    animation: pulse-op 1.5s infinite;
}

@keyframes pulse-op {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}