/* ============================================================
   RESET
============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}


/* ============================================================
   BODY
============================================================ */
body {
    font-family: "Inter", "Inter Tight", Helvetica, sans-serif;
    background: #f7f7f8;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}


/* ============================================================
   HEADER
============================================================ */
.kad-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 40px;
    z-index: 900;
    background: transparent;
    transition: all 0.3s ease;
}

.kad-header.scrolled {
    background: #fff;
    padding: 8px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1500px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 95px;
    padding-left: 80px;
    transition: height .3s ease;
}

.kad-header.scrolled .header-logo img {
    height: 60px;
}

.header-title {
    font-weight: bold;
    color: #444;
    margin-left: 5px;
}

.navbar {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    padding: 6px 0;
}

.navbar a:hover,
.navbar a.active {
    color: #ef6e21;
}


/* ============================================================
   HEADER — REDES SOCIAIS
============================================================ */
.header-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all .25s ease;
    font-size: 1.05rem;
}

.social-link:hover {
    transform: translateY(-2px);
    background: #ef6e21;
    color: #fff;
}

.social-link.whatsapp:hover {
    background: #1dc734;
}

.social-link.instagram:hover {
    background: #d62976;
}

.social-link.tiktok:hover {
    background: #000;
}

.social-link.email:hover {
    background: #444;
}


/* ============================================================
   LAYOUT PRINCIPAL
============================================================ */
.dashboard-wrap {
    display: flex;
    gap: 24px;
    max-width: 1600px;
    margin-top: 68px;
    min-height: 70vh;
    padding: 0 24px;
}

.dashboard-wrap,
#container_busca_lista,
.filters-row {
    max-width: 100%;
    overflow-x: visible;
}

.content {
    flex: 1;
    min-width: 0;
}


/* ============================================================
   SEÇÃO DE FILTROS — ESTRUTURA
============================================================ */
.top-filters {
    margin-bottom: 16px;
}

.filters-grid {
    width: 100%;
    display: block;
}

.filters-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
    align-items: stretch;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.filters-row-characteristics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.filters-section {
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.filters-section:last-child {
    border-bottom: none;
}

.filters-title {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ef6e21;
    margin-bottom: 10px;
}

.filter-title-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    color: #ef6e21;
}


/* ============================================================
   FILTROS — GRUPOS E INPUTS
============================================================ */
.filter-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.filter-group label {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #444;
}

.filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef6e21;
}

.filter-icon svg {
    width: 16px;
    height: 16px;
}

.filter-group input,
.filter-group select {
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #c2c2c2;
    font-size: 0.9rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #ef6e21;
}

.top-wide {
    grid-column: 1 / -1;
}

.filter-badge {
    font-weight: 700;
    font-size: 0.7rem;
    color: #444;
    margin-left: 4px;
    background: transparent;
}

.js-dependent {
    opacity: 0;
    transition: opacity .2s ease;
}

.js-ready .js-dependent {
    opacity: 1;
}


/* ============================================================
   FILTROS — INFORMAÇÕES DO LEILÃO
============================================================ */
.auction-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auction-row .filter-group {
    width: 100%;
}

.auction-top-line {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.auction-value-group {
    flex: 1;
    min-width: 280px;
    flex: none;
}

.auction-discount-group {
    width: 100%;
}

.value-inline-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.payment-row {
    margin-top: 10px;
}

.payment-row .filter-group {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
}

.btn-filter,
.btn-clear {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.btn-filter {
    background: linear-gradient(180deg,#ff8a3a,#ef6e21);
    color: #fff;
}

.btn-clear {
    background: #666;
    color: #fff;
}

.date-placeholder {
    display: none;
}


/* ============================================================
   RANGE DUAL — VALOR
============================================================ */
.value-range-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.value-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.value-input {
    width: 100%;
    max-width: 140px;
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #c2c2c2;
    font-size: 0.9rem;
    text-align: center;
}

.value-input:focus {
    border-color: #ef6e21;
    outline: none;
}

.value-input,
.discount-input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #d0d0d0;
    font-size: 0.9rem;
    text-align: center;
    transition: border .2s ease;
}

.value-input:focus,
.discount-input:focus {
    border-color: #EF6E21;
    outline: none;
}

.value-separator {
    font-weight: 600;
    color: #444;
}

.value-separator {
    font-size: 0.85rem;
    color: #777;
}


/* ============================================================
   RANGE DUAL — DESCONTO
============================================================ */
.discount-range-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.discount-range-container {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.discount-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.discount-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.discount-input {
    width: 100px;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid #c2c2c2;
    font-size: 0.9rem;
    text-align: center;
}

.discount-input:focus {
    border-color: #ef6e21;
    outline: none;
}

.discount-range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

#filter_discount_min {
    flex: 1;
}

#discountValueLabel {
    font-weight: 600;
    color: #EF6E21;
}


/* ============================================================
   SLIDER CUSTOMIZADO
============================================================ */
.kad-slider {
    position: relative;
    width: 100%;
    height: 36px;
}

.kad-slider-track {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 6px;
    background: #f0f0f0;
    border-radius: 6px;
}

.kad-slider-range {
    position: absolute;
    top: 2px;
    bottom: 2px;
    background: #d0d0d0;
    border-radius: 6px;
}

.kad-slider-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ef6e21;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 3;
}

.kad-slider-handle {
    position: absolute;
    width: 22px;
    height: 26px;
    background: #ef6e21;
    border-radius: 6px;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 0 0 2px #fff;
}


/* ============================================================
   CHECKBOXES — FORMA DE PAGAMENTO
============================================================ */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    padding: 12px;
    border: 2px solid #c2c2c2;
    border-radius: 8px;
    background: #fff;
}

.checkbox-group:focus-within {
    border-color: #ef6e21;
}

.checkbox-label,
.checkbox-label * {
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.checkbox-label:hover {
    background: rgba(239, 110, 33, 0.05);
}

.checkbox-label:active {
    transform: scale(0.98);
}

.payment-checkbox {
    display: none;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid #c2c2c2;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.payment-checkbox:checked + .checkbox-custom {
    background: #ef6e21;
    border-color: #ef6e21;
    box-shadow: 0 0 0 3px rgba(239, 110, 33, 0.1);
}

.payment-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-weight: bold;
    font-size: 12px;
}

.payment-checkbox[value="na"]:checked + .checkbox-custom {
    background: #999;
    border-color: #999;
}

.payment-checkbox[value="na"]:checked + .checkbox-custom + .checkbox-text {
    color: #666;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
    transition: color 0.2s ease;
}

.payment-checkbox:checked + .checkbox-custom + .checkbox-text {
    color: #ef6e21;
    font-weight: 600;
}


/* ============================================================
   CONTAINER DE BUSCA E ABAS
============================================================ */
#container_busca_lista {
    background: #F9FAFB;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(20,20,20,0.05);
    overflow-x: visible;
    overflow-y: visible;
}

#container_busca_lista,
.form-area {
    overflow: visible !important;
}

#tabs_busca_main {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.aba-text {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.aba-text p {
    margin: 0;
    line-height: 1;
}

.aba-busca {
    background: #eee;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.aba-busca p {
    font-weight: 700;
    margin-left: 8px;
    color: #444;
}

.aba-busca:hover {
    transform: scale(1.03);
}

.aba-selecionada {
    background: #ef6e21;
    color: #fff;
}

.aba-selecionada p {
    color: #fff;
}

.form-area {
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(10,10,10,0.05);
}

.hidden {
    display: none;
}

.clear-btn {
    margin-left: auto;
    background: #fff;
    border: 2px solid #ef6e21;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: .2s;
}

.clear-btn:hover {
    background: #ef6e21;
    color: #fff;
}

.clear-btn svg {
    stroke: currentColor;
}

.btn-header {
    background: linear-gradient(#FF8040, #EF6E21);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}


/* ============================================================
   AUTOCOMPLETE
============================================================ */
.autocomplete-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
    z-index: 9999;
    will-change: transform, opacity;
}

.autocomplete-list li {
    list-style: none;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.15s;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background: #ef6e21;
    color: #fff;
}

.autocomplete-list.hidden {
    display: none;
}

.autocomplete-empty {
    padding: 12px 16px;
    color: #777;
}


/* ============================================================
   RESUMO E TOPO DOS CARDS
============================================================ */
.cards-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.results-summary {
    margin-bottom: 10px;
    font-weight: 700;
    color: #666;
    font-size: 0.9rem;
}

.client-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}


/* ============================================================
   CARD GRID
============================================================ */
.card-grid {
    min-height: 420px;
}

.no-results {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #777;
    font-size: 1.1rem;
}


/* ============================================================
   CARD
============================================================ */
.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(10,10,10,0.04);
    border: 1.2px solid transparent;
    border-color: #EF6E21;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(10,10,10,0.08);
}

.card-img-wrapper {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.payment-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #EF6E21;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
}

.icon-view {
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}

.icon-view:hover {
    background: #ff7d3a;
}

.card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.card-title-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.card-presentation {
    font-weight: 800;
    color: #EF6E21;
    font-size: 1rem;
    line-height: 1.1;
}

.presentation-filter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.presentation-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #444;
}

.presentation-option svg {
    color: #EF6E21;
}

.presentation-option:hover {
    border-color: #EF6E21;
    background: #fff5ef;
}

.presentation-option.active {
    background: #EF6E21;
    color: #fff;
    border-color: #EF6E21;
}

.presentation-option.active svg {
    color: #fff;
}

.card-location {
    font-size: 0.82rem;
    color: #444;
    margin-top: 2px;
    font-weight: 700;
}

.card-address {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.card-address-block {
    background: #f9f9f9;
    padding: 6px 8px;
    border-radius: 6px;
}

.card-address {
    font-size: 0.82rem;
    color: #555;
    font-weight: 500;
}

.card-sep {
    border: none;
    height: 1px;
    background: #eee;
    margin: 4px 0;
}


/* ============================================================
   GRID DE LEILÕES
============================================================ */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.auction-grid.has-3 {
    grid-template-columns: repeat(2, 1fr);
}

.auction-grid.has-3 .auction-3 {
    grid-column: 1 / span 2;
}

.auction-grid.has-3 .auction-block {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.auction-grid.has-3 .auction-block:last-child {
    border-bottom: none;
}

.auction-block,
.single-auction {
    background: #fafafa;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.auction-block.expired {
    opacity: 0.5;
    text-decoration: line-through;
}

.card.card-expired {
    opacity: 0.6;
    filter: grayscale(40%);
}

.auction-title {
    font-size: 0.72rem;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    color: #EF6E21;
    text-transform: uppercase;
}

.auction-value {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 0.92rem;
}

.auction-date {
    font-size: 0.72rem;
    color: #666;
    margin-top: 4px;
}

.auction-value-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.auction-discount {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2e9e57;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.auction-discount .arrow {
    font-size: 0.6rem;
    color: #2e9e57;
}


/* ============================================================
   INFORMAÇÕES ADICIONAIS DO CARD
============================================================ */
.general-info {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #444;
    margin-top: 6px;
}

.general-info li {
    min-width: 85px;
}

.general-info .no-info {
    font-size: 0.75rem;
    color: #777;
    font-style: italic;
}

.btn-details {
    background: linear-gradient(180deg,#ff8a3a,#ef6e21);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(239,110,33,0.18);
}


/* ============================================================
   PAGINAÇÃO
============================================================ */
.pagination-wrap {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

.pagination-controls {
    display: flex;
    justify-content: center;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.page-arrow {
    background: #fff;
    border: 2px solid #ef6e21;
    color: #ef6e21;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.page-arrow svg {
    width: 20px;
    height: 20px;
}

.page-arrow:hover:not(.disabled) {
    background: #ef6e21;
    color: #fff;
    transform: scale(1.05);
}

.page-arrow.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.page-arrow.small {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.page-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    min-width: 120px;
    text-align: center;
}


/* ============================================================
   BOTÃO VOLTAR AO TOPO
============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border: 2px solid #ef6e21;
    background: white;
    color: #ef6e21;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    transition: all .25s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: #ef6e21;
    color: white;
    transform: scale(1.08);
}

.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}


/* ============================================================
   ANIMAÇÕES DE TRANSIÇÃO DE PÁGINA
============================================================ */
.card-fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.card-fade-in {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp .35s forwards ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   FOOTER
============================================================ */
.kad-footer {
    background-color: #f16e22;
    margin-top: auto;
    padding: 14px 40px;
}

.kad-footer p {
    font-size: 0.9em;
    font-weight: 100;
    color: rgba(255,255,255,0.5);
    text-align: left;
    margin: 0;
    padding-left: 80px;
}

.kad-footer p strong {
    font-weight: 700;
}


/* ============================================================
   WHATSAPP FLUTUANTE
============================================================ */
.whatsapp-elementor {
    position: fixed;
    bottom: 90px;
    right: 32px;
    z-index: 1000;
    margin-right: -8px;
}

.elementor-icon-wrapper {
    display: inline-block;
}

.elementor-icon svg {
    width: 76px;
    height: 76px;
    display: block;
}

.whatsapp-elementor .elementor-icon {
    margin-right: -10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: whatsappPulse 2.8s ease-in-out infinite;
}

.whatsapp-elementor .elementor-icon:hover {
    animation-play-state: paused;
    opacity: 1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.92;
    }
    40% {
        transform: scale(1.05);
        opacity: 1;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.92;
    }
}

.elementor-animation-grow {
    transition: transform 0.3s ease;
}

.elementor-animation-grow:hover {
    transform: scale(1.1);
}


/* ============================================================
   @MEDIA — DESKTOP LARGO (min-width: 1600px)
============================================================ */
@media (min-width: 1600px) {
    .card-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: stretch;
    }

    .dashboard-wrap {
        margin-left: 250px;
        margin-right: 250px;
    }

    .header-container {
        justify-content: none;
    }

    .header-social {
        margin-left: 550px;
    }
}


/* ============================================================
   @MEDIA — DESKTOP GRANDE (min-width: 1200px, max-width: 1599px)
============================================================ */
@media (min-width: 1200px) and (max-width: 1599px) {
    .card-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        align-items: stretch;
    }
}


/* ============================================================
   @MEDIA — TABLET GRANDE (min-width: 768px, max-width: 1199px)
============================================================ */
@media (min-width: 768px) and (max-width: 1199px) {
    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        align-items: stretch;
    }
}


/* ============================================================
   @MEDIA — TABLET (max-width: 1199px)
============================================================ */
@media (max-width: 1199px) {
    .navbar {
        display: none;
    }

    .dashboard-wrap {
        padding: 0 12px;
        margin-top: 100px;
        gap: 14px;
        flex-direction: column;
    }

    .filters-row {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .filters-grid-row {
        grid-template-columns: 1fr;
    }

    .top-wide {
        flex: 1;
    }

    .checkbox-group {
        flex-wrap: wrap;
        gap: 12px;
    }

    .filter-group.filter-payment {
        flex: 1 1 100%;
        max-width: none;
    }

    .top-wide {
        flex: 1 1 260px;
    }

    #tabs_busca_main {
        gap: 10px;
    }

    .aba-busca {
        font-size: 0.9rem;
        max-width: 100%;
        overflow: hidden;
        padding: 8px 10px;
    }

    .aba-busca p {
        margin-left: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .aba-busca svg {
        width: 24px;
        height: 24px;
    }
}


/* ============================================================
   @MEDIA — MOBILE (max-width: 767px)
============================================================ */
@media (max-width: 767px) {
    body {
        padding-top: 60px;
    }

    .kad-header {
        padding: 12px 16px;
    }

    .kad-header.scrolled {
        padding: 6px 16px;
    }

    .header-logo img {
        height: 50px;
        padding-left: 10px;
    }

    .kad-header.scrolled .header-logo img {
        height: 40px;
    }

    .header-title {
        font-size: 0.9rem;
        margin-left: 8px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .header-social {
        width: 100%;
        gap: 16px;
        padding-top: 4px;
    }

    .header-social .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .dashboard-wrap {
        padding: 0 12px;
        margin-top: 80px;
        gap: 12px;
        flex-direction: column;
    }

    .content {
        min-width: 0;
    }

    #container_busca_lista {
        padding: 12px;
        margin-bottom: 16px;
    }

    #tabs_busca_main {
        gap: 8px;
        flex-wrap: wrap;
    }

    .date-placeholder-wrapper {
        position: relative;
    }

    .date-placeholder-wrapper input[type="date"] {
        position: relative;
    }

    .date-placeholder {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.85rem;
        color: #777;
        pointer-events: none;
        transition: opacity .15s ease;
        display: flex;
    }

    .date-placeholder-wrapper input[type="date"]:valid + .date-placeholder {
        opacity: 0;
    }

    .aba-busca {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex: 0 1 auto;
    }

    .aba-busca p {
        margin-left: 6px;
        display: inline;
    }

    .aba-busca svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .clear-btn {
        margin-left: auto;
        padding: 6px 8px;
    }

    .form-area {
        padding: 12px;
    }

    .filters-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        min-width: 100%;
        max-width: 100%;
        flex: none;
    }

    .filter-group label {
        font-size: 0.55rem;
    }

    .filter-badge {
        font-size: 0.5rem;
        margin-left: 6px;
    }

    .filter-group input,
    .filter-group select {
        padding: 8px;
        font-size: 0.85rem;
    }

    .filter-group:has(#filter_payment) {
        flex: auto;
        max-width: 440px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .checkbox-label {
        flex: 0 1 auto;
        font-size: 0.65rem;
        white-space: normal;
    }

    .checkbox-text {
        font-size: 0.65rem;
    }

    .card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: stretch;
    }

    .auction-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "value"
            "discount";
        gap: 18px;
    }

    .value-range-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .value-inputs {
        flex: none;
        width: 100%;
    }

    .cards-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .results-summary {
        margin-bottom: 0;
        font-size: 0.85rem;
    }

    .pagination-container {
        gap: 12px;
        padding: 10px 16px;
    }

    .page-arrow {
        width: 36px;
        height: 36px;
    }

    .page-text {
        font-size: 0.85rem;
        min-width: 100px;
    }

    .card-body {
        padding: 12px 14px;
        gap: 4px;
    }

    .card-presentation {
        font-size: 0.95rem;
    }

    .card-location {
        font-size: 0.75rem;
    }

    .auction-title {
        font-size: 0.65rem;
    }

    .auction-value {
        font-size: 0.8rem;
    }

    .auction-date {
        font-size: 0.65rem;
    }

    .kad-footer {
        padding: 12px 16px;
    }

    .kad-footer p {
        padding-left: 10px;
        font-size: 0.75em;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .autocomplete-list {
        max-height: 180px;
        top: calc(100% + 6px);
    }

    .autocomplete-list li {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .whatsapp-elementor {
        bottom: 80px;
        margin-right: -12px !important;
    }

    .elementor-icon {
        width: 64px;
        height: 64px;
    }

    .elementor-icon svg {
        width: 34px;
        height: 34px;
    }
}


/* ============================================================
   @MEDIA — MOBILE PEQUENO (max-width: 480px)
============================================================ */
@media (max-width: 480px) {
    .header-logo img {
        height: 40px;
        padding-left: 8px;
    }

    .header-title {
        font-size: 0.8rem;
    }

    .dashboard-wrap {
        padding: 0 10px;
        margin-top: 70px;
        gap: 10px;
    }

    #container_busca_lista {
        padding: 10px;
    }

    #tabs_busca_main {
        gap: 6px;
    }

    .aba-busca {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .aba-busca svg {
        width: 24px;
        height: 24px;
    }

    .clear-btn {
        padding: 6px 6px;
    }

    .form-area {
        padding: 10px;
    }

    .filters-row {
        gap: 8px;
    }

    .filter-group input,
    .filter-group select {
        padding: 6px;
        font-size: 0.7rem;
    }

    .checkbox-group {
        gap: 8px;
        padding: 6px;
    }

    .checkbox-label {
        font-size: 0.65rem;
    }

    .checkbox-text {
        font-size: 0.65rem;
    }

    .card-grid {
        gap: 12px;
    }

    .card-body {
        padding: 10px 12px;
        gap: 3px;
    }

    .card-presentation {
        font-size: 0.9rem;
    }

    .card-location {
        font-size: 0.7rem;
    }

    .pagination-container {
        gap: 10px;
        padding: 8px 12px;
    }

    .page-arrow {
        width: 32px;
        height: 32px;
    }

    .page-arrow svg {
        width: 16px;
        height: 16px;
    }

    .page-text {
        font-size: 0.75rem;
        min-width: 80px;
    }

    .results-summary {
        font-size: 0.8rem;
    }

    .kad-footer p {
        padding-left: 8px;
        font-size: 0.7em;
    }

    .whatsapp-elementor {
        bottom: 80px;
        margin-right: -7px !important;
    }

    .elementor-icon {
        width: 55px;
        height: 55px;
    }

    .elementor-icon svg {
        width: 34px;
        height: 34px;
    }
}