/* ============================================================
   WRAPPER GERAL
   ============================================================ */

.imoveis-filtros-wrapper {
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
}

.imoveis-filtros-wrapper .imoveis-filtros-form {
    margin: 0;
}

/* ============================================================
   GRIDS
   ============================================================ */

.imoveis-filtros-wrapper .imoveis-filtros-grid {
    display: grid;
    align-items: stretch;
    gap: 10px;
}

.imoveis-filtros-wrapper .imoveis-filtros-grid-principal {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.imoveis-filtros-wrapper .imoveis-filtros-grid-avancados {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 10px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .imoveis-filtros-wrapper .imoveis-filtros-grid-principal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .imoveis-filtros-wrapper .imoveis-filtros-grid-avancados {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .imoveis-filtros-wrapper .imoveis-filtros-grid-principal,
    .imoveis-filtros-wrapper .imoveis-filtros-grid-avancados {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .imoveis-filtros-wrapper .imoveis-filtros-grid-principal,
    .imoveis-filtros-wrapper .imoveis-filtros-grid-avancados {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CAMPOS – LABEL DENTRO DA BORDA
   ============================================================ */

.imoveis-filtros-wrapper .imoveis-filtro-field {
    position: relative;
    padding: 12px 8px 10px;
    border: 1px solid rgba(255,255,255,0.55); /* borda branca + translúcida */
    border-radius: 12px;
    background: transparent;
    min-height: 54px;                          /* um pouco maior pra nada cortar */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* realce só na borda externa */
.imoveis-filtros-wrapper .imoveis-filtro-field:focus-within {
    border-color: rgba(255,255,255,0.95);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.28);
}

/* Label flutuante */
.imoveis-filtros-wrapper .imoveis-filtro-field label {
    position: absolute;
    top: 6px;
    left: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #ffffff; /* branco sem transparência */
    opacity: 1;
    pointer-events: none;
    margin: 0;
    line-height: 1;
}

/* ============================================================
   INPUTS (texto / number)
   ============================================================ */

.imoveis-filtros-wrapper .imoveis-filtro-field input[type="text"],
.imoveis-filtros-wrapper .imoveis-filtro-field input[type="number"] {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 0 0;               /* menos espaço pra não cortar */
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    height: 30px;                     /* altura maior pra placeholder não cortar */
    box-shadow: none !important;
    outline: none !important;
}

/* placeholders alinhados decentemente */
.imoveis-filtros-wrapper .imoveis-filtro-field input::placeholder {
    color: rgba(255,255,255,0.85);
    opacity: 1;
}

/* remove setas nativas de number */
.imoveis-filtros-wrapper input[type=number]::-webkit-inner-spin-button,
.imoveis-filtros-wrapper input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.imoveis-filtros-wrapper input[type=number] {
    -moz-appearance: textfield;
}

/* ============================================================
   RANGE DE PREÇO – Mín./Máx. com DIVISOR VERTICAL
   ============================================================ */

.imoveis-filtros-wrapper .imoveis-preco-range {
    display: flex;
    align-items: center;
    gap: 0px;
    padding-top: 12px;   /* igual aos outros campos */
}

.imoveis-filtros-wrapper .imoveis-preco-range input[type="number"],
.imoveis-filtros-wrapper .imoveis-preco-range input[type="text"] {
    flex: 1;
    padding-top: 0 !important;
    height: 30px;
    line-height: 30px;
    text-align: center;  /* centraliza placeholder/valor */
}

/* divisor vertical */
.imoveis-filtros-wrapper .imoveis-preco-range .divisor-preco {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.65);
}

/* ============================================================
   SELECT CUSTOM
   ============================================================ */

.imoveis-filtros-wrapper .imoveis-select-wrap {
    position: relative;
    width: 100%;
}

.imoveis-filtro-field .imoveis-select-display {
    width: 100%;
    text-align: left;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    border: none !important;                 /* sem borda interna */
    border-radius: 0 !important;
    padding: 12px 32px 0 0;                  /* igual aos inputs + espaço pra seta */
    background: transparent !important;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff !important;
    line-height: 30px;
    height: 30px;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
}

/* seta do select */
.imoveis-filtro-field .imoveis-select-display::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
    transform: translateY(-50%);
    pointer-events: none;
}

/* não muda borda ao abrir */
.imoveis-select-wrap.is-open .imoveis-select-display {
    border: none !important;
    box-shadow: none !important;
}

/* Caixa de opções */
.imoveis-filtros-wrapper .imoveis-select-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
    z-index: 50;
    display: none;
}

.imoveis-filtros-wrapper .imoveis-select-wrap.is-open .imoveis-select-options {
    display: block;
}

/* Opções */
.imoveis-filtros-wrapper .imoveis-select-option {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: transparent;
    border: none;
    outline: none;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
}

.imoveis-filtros-wrapper .imoveis-select-option:hover {
    background-color: #f3f3f3;
}

/* Placeholder de bairro */
.imoveis-filtros-wrapper .imoveis-select-option[data-role="placeholder"] {
    font-style: italic;
    color: #777777;
}

/* ============================================================
   CONTADOR NUMÉRICO (DORM, SUÍTES, etc.)
   ============================================================ */

.imoveis-filtro-field .imoveis-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px; /* mesmo offset do label */
}

.imoveis-filtro-field .imoveis-counter input[type="number"] {
    flex: 1;
    padding-top: 0 !important;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

/* botões +/- SEM BORDA, só ícone */
.imoveis-filtros-wrapper .imoveis-counter-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease;
}

.imoveis-filtros-wrapper .imoveis-counter-btn:hover {
    background-color: rgba(255,255,255,0.18);
}

/* ============================================================
   BOTÕES E LINHA DE AÇÕES
   ============================================================ */

.imoveis-filtros-wrapper .imoveis-filtro-actions-bottom {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* grupo de botões à direita */
.imoveis-filtros-wrapper .imoveis-actions-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* botão Filtros avançados (texto + setinha) */
.imoveis-filtros-wrapper .imoveis-advanced-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    opacity: 1;
    transition: opacity .2s ease;
}

.imoveis-filtros-wrapper .imoveis-advanced-toggle:hover,
.imoveis-filtros-wrapper .imoveis-advanced-toggle:focus {
    opacity: 0.7;
}

/* setinha ↑ / ↓ */
.imoveis-filtros-wrapper .imoveis-advanced-toggle::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #ffffff;  /* seta para baixo */
    transition: transform .2s ease;
}

.imoveis-filtros-wrapper .imoveis-advanced-toggle.is-open::after {
    transform: rotate(180deg);
}

/* Botões Limpar / Buscar */
.imoveis-filtros-wrapper .imoveis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}

/* limpar */
.imoveis-filtros-wrapper .imoveis-btn-reset {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.imoveis-filtros-wrapper .imoveis-btn-reset:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* buscar */
.imoveis-filtros-wrapper .imoveis-btn-primary {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #ffffff;
}

.imoveis-filtros-wrapper .imoveis-btn-primary:hover {
    background-color: #f2f2f2;
}

/* ============================================================
   FILTROS AVANÇADOS – VISIBILIDADE
   ============================================================ */

.imoveis-filtros-wrapper .imoveis-filtros-avancados {
    display: none;
    margin-top: 10px;
}

.imoveis-filtros-wrapper .imoveis-filtros-avancados.is-open {
    display: block;
}



/* ============================================================
   LAYOUT LATERAL (SIDEBAR)
   ============================================================ */

/* Campos um embaixo do outro */
.imoveis-filtros-wrapper.imoveis-filtros-wrapper--lateral .imoveis-filtros-grid-principal,
.imoveis-filtros-wrapper.imoveis-filtros-wrapper--lateral .imoveis-filtros-grid-avancados {
    grid-template-columns: 1fr;
}

/* Ações em coluna (toggle em cima, botões embaixo) */
.imoveis-filtros-wrapper.imoveis-filtros-wrapper--lateral .imoveis-filtro-actions-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

/* Botões ocupando toda a largura disponível */
.imoveis-filtros-wrapper.imoveis-filtros-wrapper--lateral .imoveis-actions-buttons {
    justify-content: space-between;
}

.imoveis-filtros-wrapper.imoveis-filtros-wrapper--lateral .imoveis-btn {
    width: 100%;
    justify-content: center;
}






/* ============================================================
   AJUSTES DE COR – TIRAR ROSA / FOCUS E HOVER
   ============================================================ */

/* Botões de contador (+ / -) sem rosa em nenhum estado */
.imoveis-filtros-wrapper .imoveis-counter-btn,
.imoveis-filtros-wrapper .imoveis-counter-btn:hover,
.imoveis-filtros-wrapper .imoveis-counter-btn:focus,
.imoveis-filtros-wrapper .imoveis-counter-btn:active,
.imoveis-filtros-wrapper .imoveis-counter-btn:visited {
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    outline: none;
}

.imoveis-filtros-wrapper .imoveis-counter-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* Botão "Filtros avançados" sem herdar rosa do tema */
.imoveis-filtros-wrapper .imoveis-advanced-toggle,
.imoveis-filtros-wrapper .imoveis-advanced-toggle:hover,
.imoveis-filtros-wrapper .imoveis-advanced-toggle:focus,
.imoveis-filtros-wrapper .imoveis-advanced-toggle:active,
.imoveis-filtros-wrapper .imoveis-advanced-toggle:visited {
    background: none;
    color: #ffffff;
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

/* Botões (buscar/limpar) em todos estados mantendo o mesmo esquema de cores */
.imoveis-filtros-wrapper .imoveis-btn,
.imoveis-filtros-wrapper .imoveis-btn:visited {
    text-decoration: none;
}

/* Reset */
.imoveis-filtros-wrapper .imoveis-btn-reset,
.imoveis-filtros-wrapper .imoveis-btn-reset:visited,
.imoveis-filtros-wrapper .imoveis-btn-reset:hover,
.imoveis-filtros-wrapper .imoveis-btn-reset:active,
.imoveis-filtros-wrapper .imoveis-btn-reset:focus {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

/* Primary */
.imoveis-filtros-wrapper .imoveis-btn-primary,
.imoveis-filtros-wrapper .imoveis-btn-primary:visited {
    background-color: #ffffff;
    color: #333333;
    border-color: #ffffff;
}

.imoveis-filtros-wrapper .imoveis-btn-primary:hover,
.imoveis-filtros-wrapper .imoveis-btn-primary:active,
.imoveis-filtros-wrapper .imoveis-btn-primary:focus {
    background-color: #f2f2f2;
    color: #333333;
    border-color: #ffffff;
}

/* Focus dos botões sem contorno colorido estranho */
.imoveis-filtros-wrapper .imoveis-btn:focus,
.imoveis-filtros-wrapper .imoveis-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
}

/* Inputs e selects: evitar bordas/cores estranhas em foco */
.imoveis-filtros-wrapper .imoveis-filtro-field input[type="text"]:focus,
.imoveis-filtros-wrapper .imoveis-filtro-field input[type="number"]:focus {
    outline: none;
    box-shadow: none !important;
    background: transparent !important;
    color: #ffffff;
}

/* Botão do select custom em foco */
.imoveis-filtro-field .imoveis-select-display:focus,
.imoveis-filtro-field .imoveis-select-display:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Opções do select – manter texto escuro no hover e highlight */
.imoveis-filtros-wrapper .imoveis-select-option:hover,
.imoveis-filtros-wrapper .imoveis-select-option.is-highlight,
.imoveis-filtros-wrapper .imoveis-select-option:focus,
.imoveis-filtros-wrapper .imoveis-select-option:focus-visible {
    outline: none;
    background-color: #f3f3f3;
    color: #333333;
}

