.box-house .image-wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }
    
    .box-house .image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* cards com alturas consistentes e botão sempre em baixo */
    .tf-services-grid .tf-service-card{
      display:flex;
      flex-direction:column;
      height:100%;
      padding:28px 26px;
      border-radius:18px;
      background: rgba(242,105,92,0.06);
      border:1px solid rgba(44,46,51,0.08);
      box-shadow: 0 10px 30px rgba(44,46,51,0.06);
    }
    
    .tf-services-grid .tf-service-icon{
      width:56px;
      height:56px;
      display:flex;
      align-items:center;
      justify-content:center;
      border-radius:14px;
      background:#fff;
      border:1px solid rgba(44,46,51,0.08);
      box-shadow: 0 10px 18px rgba(44,46,51,0.06);
      margin-bottom:18px;
    }
    
    .tf-services-grid .title{
      margin-bottom:10px;
    }
    
    /* força texto a ocupar espaço parecido e não “puxar” botões para cima/baixo */
    .tf-services-grid .tf-service-text{
      min-height: 120px;
      margin-bottom: 18px;
    }
    
    /* empurra o botão para o fundo sempre */
    .tf-services-grid .tf-service-actions{
      margin-top:auto;
    }
    
    /* botão consistente (mesma largura visual) */
    .tf-services-grid .tf-service-btn{
      width:100%;
      text-align:center;
      border-radius:14px;
      padding:14px 18px;
      display:inline-flex;
      justify-content:center;
      align-items:center;
      gap:10px;
      line-height:1;
      white-space:nowrap;
    }
    
    /* mobile: melhora leitura e respiro */
    @media (max-width: 767px){
      .tf-services-grid .tf-service-text{ min-height: auto; }
      .tf-services-grid .tf-service-card{ padding:24px 20px; }
    }

    /* Estilos específicos para os filtros */

/* Estilos APENAS para o formulário de pesquisa por referência */
.reference-form {
    margin-top: 20px;
}

.reference-search-container {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
}

.reference-field {
    flex: 1;
}

.reference-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.reference-input:focus {
    outline: none;
    border-color: #E3B52E;
    box-shadow: 0 0 0 3px rgba(227, 181, 46, 0.1);
}

.reference-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Estilos específicos para o botão de pesquisa na aba referência */
.reference-form .search-btn {
    flex-shrink: 0;
    min-width: 140px;
    white-space: nowrap;
}

/* Responsividade para o formulário de referência */
@media (max-width: 768px) {
    .reference-search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .reference-field {
        width: 100%;
    }
    
    .reference-form .search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para paginação do index */
.wg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.wg-pagination li {
    list-style: none;
    margin: 0;
}

.wg-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.wg-pagination li a:hover {
    background: #E3B52E;
    color: #fff;
    border-color: #E3B52E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 181, 46, 0.3);
}

.wg-pagination li a.active {
    background: #E3B52E;
    color: #fff;
    border-color: #E3B52E;
    font-weight: 600;
}

.wg-pagination li.arrow a {
    background: #fff;
    border: 1px solid #e9ecef;
}

.wg-pagination li.arrow a:hover {
    background: #E3B52E;
    color: #fff;
    border-color: #E3B52E;
}

.wg-pagination li.arrow.disabled a {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.wg-pagination li.arrow.disabled a:hover {
    background: #f8f9fa;
    color: #ccc;
    border-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* Responsividade da paginação do index */
@media (max-width: 768px) {
    .wg-pagination {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .wg-pagination li a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
.modern-search-form .primary-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; /* espaço entre selects */
    }
    
    .modern-search-form .primary-fields .nice-select.modern-select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    }
    
    
    
    /* 🔹 Corrigir comportamento em mobile */
    @media (max-width: 991px) {
    .modern-search-form .primary-fields {
        grid-template-columns: repeat(2, 1fr);
    }
    }
    @media (max-width: 575px) {
    .modern-search-form .primary-fields {
        grid-template-columns: 1fr;
    }
    }
    .corfenixhouse{
    color:#DBAC28 ;
    }
    /* ===== Tipologia (compacto) ===== */



.tipologia-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tipologia-checkboxes .checkbox-item {
    cursor: pointer;
}

.tipologia-checkboxes .checkbox-item input {
    display: none;
}

.tipologia-checkboxes .checkbox-item span {
    
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    min-height: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: #555;
    line-height: 1;
    transition: all 0.2s ease;
}

/* Hover */
.tipologia-checkboxes .checkbox-item:hover span {
    border-color: #E3B52E;
    color: #E3B52E;
}

/* Checked */
.tipologia-checkboxes .checkbox-item input:checked + span {
    background: #E3B52E;
    border-color: #E3B52E;
    color: #fff;
    box-shadow: 0 2px 6px rgba(227, 181, 46, 0.25);
}

/* Select personalizado */
    .form-pre-approved select {
    width: 100%;
    height: 60px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #e5e5e5;
    background-color: #f7f7f7;
    font-size: 16px;
    font-weight: 500;
    color: #2c2e33;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    }
    
    /* Hover */
    .form-pre-approved select:hover {
    border-color: #d4a017;
    }
    
    /* Focus */
    .form-pre-approved select:focus {
    outline: none;
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
    }
    
    /* Seta personalizada */
    .form-pre-approved .select {
    position: relative;
    }
    
    .form-pre-approved .select::after {
    content: "▾";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #666;
    }