/* Leilão de Veículos - Design Moderno */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #1a1a2e;
    --destaque-color: #ffc107;
    --radius-pill: 9999px;
    --radius-card: 16px;
}

* {
    font-family: 'Poppins', -apple-system, sans-serif;
}

body {
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Botões pill - todos */
.btn {
    border-radius: var(--radius-pill) !important;
}

.btn-pill, .btn.rounded-pill {
    border-radius: var(--radius-pill) !important;
}

.btn-destaque {
    background: var(--destaque-color) !important;
    border-color: var(--destaque-color) !important;
    color: #1a1a2e !important;
}

.btn-destaque:hover {
    filter: brightness(1.05);
}

/* Inputs pill */
.form-control.rounded-pill, .form-select.rounded-pill {
    border-radius: var(--radius-pill) !important;
}

/* Ações topo (dentro do header) */
/* Botões de ação no header (sem círculo, estilo discreto) */
.header-actions .btn-top-outline,
.header-actions .btn-top-action {
    background: transparent !important;
    border: none !important;
    color: #111827 !important;
    padding: 0.15rem 0.35rem;
    box-shadow: none !important;
}

.header-actions .btn-top-outline i,
.header-actions .btn-top-action i {
    font-size: 1.1rem;
}

.header-actions .btn-top-outline:hover,
.header-actions .btn-top-action:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
}
.top-contacts span { margin-right: 1.5rem; }
.top-contacts i { margin-right: 0.25rem; opacity: 0.9; }

/* Navbar */
.main-navbar {
    background: var(--header-bg, var(--secondary-color)) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
    transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.main-navbar .navbar-brand { color: var(--destaque-color) !important; font-weight: 700; }
.main-navbar .nav-link {
    color: var(--menu-color, rgba(255,255,255,0.9)) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}

.main-navbar .nav-link:hover {
    color: var(--menu-hover, var(--destaque-color)) !important;
    background: rgba(255,255,255,0.08);
}

.main-navbar.navbar-scrolled {
    box-shadow: 0 10px 30px rgba(15,23,42,0.25);
    transform: translateY(0);
}

/* Barra de busca: flutua sobre a página, sem faixa de fundo */
.header-busca-wrap {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 1035;
    background: transparent;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.header-busca-form {
    max-width: 560px;
    margin: 0 auto;
}
.header-busca-form .form-control {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.header-busca-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 0 0 3px rgba(13, 110, 253, 0.15);
}
.header-busca-autocomplete {
    z-index: 1040;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 12px;
    display: none;
}
.header-busca-autocomplete.show {
    display: block;
}
.header-busca-autocomplete .list-group-item {
    cursor: pointer;
    border-left: 0;
    border-right: 0;
}
.header-busca-autocomplete .list-group-item:hover {
    background: rgba(13, 110, 253, 0.08);
}
.header-busca-autocomplete .list-group-item .badge {
    font-size: 0.7rem;
}
@media (min-width: 992px) {
    .header-busca-wrap { top: 48px; }
}

/* Layout do header em mobile */
@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse > .d-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-left: 0 !important;
  }

  .main-navbar .navbar-nav {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.25rem;
  }

  .header-actions .btn-top-outline,
  .header-actions .btn-top-action {
    padding-left: 0;
    padding-right: 0.75rem;
  }
}

/* Ícone do menu hambúrguer visível em fundo claro */
.main-navbar .navbar-toggler {
    border-color: var(--primary-color);
}
.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(37,99,235,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.hero-section { position: relative; overflow: hidden; }

.hero-slide {
    position: relative;
}

.hero-slide-1 { background: #000; }
.hero-slide-2 { background: #000; }

.hero-overlay {
    position: absolute; inset: 0;
    background: transparent;
}

.hero-content {
    position: relative; z-index: 1; color: #fff;
}

.hero-content h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.hero-content p { font-size: 1.125rem; margin-bottom: 1.5rem; opacity: 0.9; }

.hero-content .btn {
    border-radius: var(--radius-pill);
    padding: 0.6rem 1.5rem;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: static;
}

.hero-banner-desktop {
    display: block;
}

.hero-banner-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-banner-desktop {
        display: none;
    }
    .hero-banner-mobile {
        display: block;
    }
}

/* Stats */
.stats-section { background: #f8fafc; padding: 1.5rem 0; }

.stat-card {
    display: block;
    padding: 1.4rem 1.2rem;
    text-align: center;
    text-decoration: none;
    color: #334155;
    border-radius: 33px;
    transition: all 0.25s;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.stat-card:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.stat-number { display: block; font-size: 1.3rem; font-weight: 600; color: var(--primary-color); }
.stat-label { font-size: 0.875rem; color: #64748b; }

.stat-card-premium .stat-icon-wrapper {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.stat-card-premium .stat-icon-wrapper i {
    font-size: 1.7rem;
}

/* Countdown */
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 0, rgba(59,130,246,0.12), rgba(15,23,42,0.02));
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    backdrop-filter: blur(4px);
}

.countdown-value { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    line-height: 1.1;
}
.countdown-label { 
    font-size: 0.72rem; 
    color: #6b7280; 
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Cabeçalho padrão para páginas CMS */
.pagina-hero {
    margin-bottom: 2rem;
}
.pagina-hero-inner {
    padding: 2.5rem 1.5rem;
    border-radius: 0 0 22px 22px;
    text-align: center;
}
.pagina-hero-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

/* Cards */
.lote-card, .leilao-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: all 0.25s;
}

.lote-card:hover, .leilao-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.lote-card-img-wrapper {
    position: relative;
}
.lote-card-img {
    height: 180px;
    background: #f1f5f9;
    background-size: cover;
    background-position: center;
}
/* Martelo dourado no centro do card quando arrematado */
.lote-card-hammer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.92);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: martelo-batendo 2.2s ease-in-out infinite;
}
.lote-card-hammer i {
    font-size: 1.75rem;
    color: #fff;
    animation: martelo-girando 2.2s ease-in-out infinite;
}
@keyframes martelo-batendo {
    0%, 100% { transform: translate(-50%, -50%); }
    18% { transform: translate(-50%, -28%); }
    28% { transform: translate(-50%, -52%); }
    38%, 100% { transform: translate(-50%, -50%); }
}
@keyframes martelo-girando {
    0%, 100% { transform: rotate(-12deg); }
    18% { transform: rotate(28deg); }
    28% { transform: rotate(-8deg); }
    38%, 100% { transform: rotate(-12deg); }
}

.lote-card .btn, .leilao-card .btn {
    border-radius: var(--radius-pill);
}

/* Lote arrematado – efeito sutil de comemoração */
.lote-card-arrematado {
    border-left: 4px solid #c9a227;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.04) 0%, transparent 50%);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.08);
}
.lote-card-arrematado:hover {
    border-left-color: #b8921f;
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.12);
}
.bg-arrematado {
    background-color: #c9a227 !important;
    color: #fff !important;
}
.text-arrematado {
    color: #8b6914;
}
.text-arrematado-para {
    color: #6b5210;
}

/* Placa e chassi borrados em lotes arrematados (privacidade) */
.texto-borrado {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}
.lote-arrematado-badge .badge { font-size: 0.75rem; }
.lote-lance-card-arrematado {
    border-left: 4px solid #c9a227;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, transparent 60%);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.06);
}
.lote-arrematado-box .badge { font-size: 0.8rem; }
.lote-arrematado-header .badge { font-size: 0.85rem; }

/* Página Dar Lance – elegante */
.dar-lance-page { max-width: 900px; margin-left: auto; margin-right: auto; }
.dar-lance-hero { padding: 0.5rem 0; }
.dar-lance-cumprimento { font-size: 1.1rem; color: #4b5563; }
.dar-lance-titulo { font-size: 1.75rem; font-weight: 700; color: #111827; letter-spacing: -0.02em; }
.dar-lance-subtitulo { font-size: 1rem; max-width: 420px; margin-left: auto; margin-right: auto; }
.dar-lance-card { border-radius: 20px; overflow: hidden; }
.dar-lance-foto-wrap {
    position: relative;
    min-height: 280px;
    background: #f1f5f9;
}
.dar-lance-foto {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}
.dar-lance-foto-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%);
    color: #fff;
}
.dar-lance-badge-leilao {
    font-size: 0.7rem;
    background: rgba(201, 162, 39, 0.95) !important;
    color: #1a1a2e !important;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}
.dar-lance-desc-foto { font-size: 1rem; font-weight: 600; }
.dar-lance-lance-atual { font-size: 0.85rem; opacity: 0.95; margin-top: 0.35rem !important; }
.dar-lance-sucesso-icon { font-size: 3.5rem; color: #10b981; }
.dar-lance-btn-confirmar { font-weight: 600; }

/* Popup sucesso lance */
.modal-lance-sucesso .modal-dialog { max-width: 340px; }
.modal-lance-sucesso-content {
    border-radius: 24px;
    overflow: hidden;
    animation: modalLanceAparece 0.4s ease-out;
}
@keyframes modalLanceAparece {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.modal-lance-sucesso-check-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    animation: modalLanceCheckPulse 0.6s ease-out 0.2s both;
}
.modal-lance-sucesso-check {
    font-size: 2.25rem;
    color: #fff;
    font-weight: 700;
    animation: modalLanceCheckIcon 0.5s ease-out 0.4s both;
}
@keyframes modalLanceCheckPulse {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes modalLanceCheckIcon {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}
.modal-lance-sucesso-titulo { font-weight: 700; color: #111827; font-size: 1.25rem; }
.modal-lance-sucesso-texto { font-size: 0.95rem; line-height: 1.4; }
.modal-lance-sucesso-sub { font-size: 0.85rem; }

/* Modal "Me avise quando disponível" */
.aviso-leilao-emoji { font-size: 2.5rem; line-height: 1; }
.modal-avise-content {
    border: none;
    animation: modalAviseAparece 0.35s ease-out;
}
@keyframes modalAviseAparece {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
#modalMeAvise .modal-dialog { max-width: 380px; }
#modalMeAvise .form-control:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25); }

/* Minha Conta */
.minha-conta-page .minha-conta-card { border-radius: 16px; }
.minha-conta-avatar-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--destaque-color, #ffc107);
    background: #f1f5f9;
}
.minha-conta-avatar { width: 100%; height: 100%; object-fit: cover; }
.minha-conta-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
}
.minha-conta-section { border-top: 1px solid #e2e8f0; padding-top: 1rem; margin-top: 1rem; }
.minha-conta-section:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.minha-conta-lance-card { border-radius: 12px; transition: box-shadow 0.2s ease; }
.minha-conta-lance-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important; }
.minha-conta-lance-img-wrap {
    position: relative;
    min-height: 80px;
    background: #f1f5f9;
}
.minha-conta-lance-img {
    width: 100%;
    height: 100%;
    min-height: 80px;
    object-fit: cover;
}
.minha-conta-lance-badge-arrematado {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, #c9a227 0%, #a68520 100%);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}
.minha-conta-lance-arrematado { border-left: 4px solid var(--destaque-color, #c9a227); }
.minha-conta-lance-img-wrap { position: relative; }
.minha-conta-lance-hammer {
    width: 44px;
    height: 44px;
}
.minha-conta-lance-hammer i { font-size: 1.35rem; }

.minha-conta-lance-conquista {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 40%, #fee2e2 100%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    position: relative;
    overflow: hidden;
}
.minha-conta-lance-conquista i {
    color: #fbbf24;
}
.minha-conta-lance-conquista::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(239,68,68,0.7) 0, rgba(239,68,68,0) 55%),
        radial-gradient(circle at 80% 0%, rgba(59,130,246,0.7) 0, rgba(59,130,246,0) 55%),
        radial-gradient(circle at 0% 100%, rgba(16,185,129,0.7) 0, rgba(16,185,129,0) 55%),
        radial-gradient(circle at 100% 100%, rgba(245,158,11,0.7) 0, rgba(245,158,11,0) 55%);
    opacity: 0.5;
    animation: minhaContaConfete 2.4s linear infinite;
}
@keyframes minhaContaConfete {
    from { transform: translate3d(0,0,0); }
    to { transform: translate3d(-24px, 18px, 0); }
}

@media (max-width: 767.98px) {
    .dar-lance-foto-wrap { min-height: 220px; }
    .dar-lance-foto { min-height: 220px; }
}

/* Ranking de lances – premium dourado */
.lote-ranking-card {
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.06) 0%, rgba(255,255,255,0.98) 50%);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.12);
}
.lote-ranking-card .card-body { padding: 1.25rem 1.35rem; }
.lote-ranking-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #5c4a0f;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}
.lote-ranking-list { display: flex; flex-direction: column; gap: 1rem; }
.lote-ranking-item { animation: lote-ranking-appear 0.5s ease-out backwards; }
.lote-ranking-item:nth-child(1) { animation-delay: 0.05s; }
.lote-ranking-item:nth-child(2) { animation-delay: 0.12s; }
.lote-ranking-item:nth-child(3) { animation-delay: 0.19s; }
.lote-ranking-item:nth-child(4) { animation-delay: 0.26s; }
.lote-ranking-item:nth-child(5) { animation-delay: 0.33s; }
@keyframes lote-ranking-appear {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}
.lote-ranking-first .lote-ranking-nome { font-weight: 700; color: #5c4a0f; }
.lote-ranking-first .lote-ranking-valor { font-weight: 800; color: #c9a227; font-size: 1.05em; }
.lote-ranking-pos {
    font-size: 0.8rem;
    font-weight: 800;
    color: #c9a227;
    min-width: 2rem;
}
.lote-ranking-nome { flex: 1; padding: 0 0.5rem; font-size: 0.9rem; }
.lote-ranking-valor { font-weight: 600; color: #2d2d2d; font-size: 0.9rem; }
.lote-ranking-bar-wrap {
    height: 8px;
    border-radius: 4px;
    background: rgba(201, 162, 39, 0.15);
    overflow: hidden;
}
.lote-ranking-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #c9a227 0%, #e6c04a 50%, #c9a227 100%);
    background-size: 200% 100%;
    animation: lote-ranking-bar-fill 1.2s ease-out forwards, lote-ranking-bar-shine 3s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.4);
    min-width: 4%;
}
.lote-ranking-first .lote-ranking-bar {
    animation: lote-ranking-bar-fill 1s ease-out forwards, lote-ranking-bar-shine 2.5s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.5);
}
@keyframes lote-ranking-bar-fill {
    from { width: 0 !important; }
}
@keyframes lote-ranking-bar-shine {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0 0; }
}

/* Card de lote como link (área toda clicável) */
a.lote-card {
    cursor: pointer;
    display: block;
}

a.lote-card:hover {
    color: inherit;
}

/* Card de leilão com link estendido (área toda clicável) */
.leilao-card--clickable .leilao-card-link {
    z-index: 1;
}

.leilao-card--clickable .btn-edital-overlay {
    position: relative;
    z-index: 2;
}

/* Página de detalhe do lote */
.lote-detalhe-page .lote-header {
    border-radius: var(--radius-card);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.lote-status-pill {
    border-radius: var(--radius-pill);
}

.lote-countdown-box {
    background: #f9fafb;
    color: #111827;
    border-radius: var(--radius-card);
    padding: 0.9rem 1.1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.lote-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.lote-countdown-item .val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.lote-countdown-item .lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.lote-lance-card .btn-lg {
    border-radius: var(--radius-pill);
}

.lote-quick-bids .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
    background: #111827;
    color: #ffffff;
    border-radius: 4px;
    border: none;
}

.lote-quick-bid .plus {
    font-weight: 700;
    margin-right: 4px;
}

.lote-tabs .nav-link {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    font-weight: 500;
    padding-bottom: 0.6rem;
}

.lote-tabs .nav-link.active {
    color: #111827;
    border-bottom-color: var(--primary-color);
}

.leilao-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.leiloes-filter .badge-filter {
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    text-decoration: none;
}

.leiloes-filter .badge-filter.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.badge-filter.status-0 { background: #e5e7eb; color: #111827; }
.badge-filter.status-1 { background: #111827; color: #ffffff; }
.badge-filter.status-2 { background: #b91c1c; color: #ffffff; }
.badge-filter.status-20 { background: #1d4ed8; color: #ffffff; }

/* Filtros de leilões: sempre quebram linha para evitar rolagem lateral */
.leiloes-filter {
    flex-wrap: wrap;
    min-width: 0; /* permite encolher em layouts flex */
}

/* Mobile: empilha título e filtros verticalmente, evita rolagem lateral */
@media (max-width: 767.98px) {
    .leiloes-header {
        flex-direction: column;
        align-items: stretch;
    }
    .leiloes-filter {
        gap: 0.35rem !important;
        width: 100%;
    }
    .leiloes-filter .text-muted.small {
        font-size: 0.7rem !important;
        flex: 0 0 100%;
        margin-bottom: 0.15rem;
    }
    .leiloes-filter .badge-filter {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
        white-space: nowrap;
    }
}

/* Modalidade: Extrajudicial vs Venda direta */
.badge-modalidade-extrajudicial { background: #1e293b; color: #fff; }
.badge-modalidade-extrajudicial:hover { color: #fff; }

.btn-confirmar-lance {
    background: #d60000;
    border-color: #d60000;
    color: #ffffff;
}

.btn-confirmar-lance:hover {
    background: #b40000;
    border-color: #b40000;
    color: #ffffff;
}

.btn-solicitar-venda {
    background: #009639;
    border-color: #009639;
    color: #ffffff;
}

.btn-solicitar-venda:hover {
    background: #007d30;
    border-color: #007d30;
    color: #ffffff;
}

.lote-tag {
    border-radius: 9999px;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
}

.lote-tag-dark {
    background: #111827;
    color: #ffffff;
}

.lote-tag-primary {
    background: #ffffff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Diferenciais */
.diferencial-card {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-card);
    border: none;
    box-shadow: 0 4px 14px rgba(15,23,42,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diferencial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15,23,42,0.08);
}

.diferencial-icon-wrapper {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.75rem auto;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.diferencial-icon-wrapper i {
    font-size: 1.5rem;
}

/* Banner do meio do site */
.banner-meio-section .banner-meio-img {
    max-height: 280px;
    object-fit: cover;
    display: block;
}
.banner-meio-link:hover .banner-meio-img { opacity: 0.95; }

/* Parceiros */
.partners-section {
    background: #ffffff;
}

.partner-card {
    border-radius: 0;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.partner-card img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.1);
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

/* Mobile: 2 parceiros por vez, sem setas, dots na cor primária */
@media (max-width: 767.98px) {
    .partners-section { overflow-x: hidden; }
    .partners-carousel .partner-item:nth-child(n+3) { display: none; }
    .partners-carousel .carousel-control-prev,
    .partners-carousel .carousel-control-next { display: none !important; }
    .partners-carousel .partners-dots {
        position: static;
        margin-top: 1rem;
        margin-bottom: 0;
    }
    .partners-carousel .partners-dots button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: none;
        background-color: rgba(0,0,0,0.2);
        opacity: 1;
    }
    .partners-carousel .partners-dots button.active {
        background-color: var(--primary-color);
    }
}

.partners-carousel .carousel-control-prev,
.partners-carousel .carousel-control-next {
    width: auto;
    top: 50%;
    transform: translateY(-50%);
}

.partners-carousel .carousel-control-prev {
    left: -2rem;
}

.partners-carousel .carousel-control-next {
    right: -2rem;
}

.partners-carousel .carousel-control-prev-icon,
.partners-carousel .carousel-control-next-icon {
    filter: none;
    background-image: none;
}

.partners-carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M10.5 3.5 6 8l4.5 4.5'/%3e%3c/svg%3e");
}

.partners-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M5.5 3.5 10 8l-4.5 4.5'/%3e%3c/svg%3e");
}

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: #fff;
}

.main-footer h5, .main-footer h6 { color: var(--destaque-color); margin-bottom: 1rem; }
.main-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.main-footer a:hover { color: var(--destaque-color); }
.main-footer hr { border-color: rgba(255,255,255,0.15); }

.main-footer .footer-logo-img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

/* Redes sociais no rodapé */
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: inherit;
    margin-right: 0.5rem;
    font-size: 1.35rem;
    background: transparent;
    transition: color 0.2s ease, transform 0.15s ease;
}

.footer-socials a:hover {
    color: var(--destaque-color);
    transform: translateY(-2px);
}

/* Cards genéricos */
.card {
    border-radius: var(--radius-card);
    border: 1px solid #e2e8f0;
}

.alert { border-radius: var(--radius-pill); }

/* Botão flutuante WhatsApp */
.whatsapp-floating {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #22c55e;
    color: #ffffff !important;
    padding: 0.55rem 0.9rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45);
    font-size: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-floating i {
    font-size: 1.4rem;
}

.whatsapp-text {
    white-space: nowrap;
}

.whatsapp-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.1rem;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.whatsapp-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(22, 163, 74, 0.6);
    color: #ffffff !important;
}

/* Estado compacto: apenas o círculo com o ícone */
.whatsapp-floating.whatsapp-compact {
    width: 46px;
    height: 46px;
    justify-content: center;
    padding: 0; /* o círculo é definido pelo width/height */
}

.whatsapp-floating.whatsapp-compact .whatsapp-text {
    display: none;
}

@media (max-width: 575.98px) {
    .whatsapp-floating {
        right: 1rem;
        bottom: 1rem;
        padding: 0.45rem 0.75rem;
    }
    .whatsapp-text {
        display: none;
    }
}

/* Aviso de cookies - minimalista */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    padding: 0.85rem 1.25rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner-icon {
    font-size: 1.35rem;
    color: #6b7280;
    flex-shrink: 0;
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.45;
}

.cookie-banner-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-link:hover {
    color: #0b5ed7;
}

.cookie-banner-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    border: none;
    background: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cookie-banner-btn:hover {
    background: #0b5ed7;
    color: #ffffff;
}

.cookie-banner-btn:active {
    transform: scale(0.98);
}

@media (max-width: 575.98px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .cookie-banner-btn {
        width: 100%;
    }
}

