/* ==========================================================================
   ESTILOS DOMUS: FILTRO Y CATÁLOGO DE INMUEBLES
   ========================================================================== */

/* --- FILTRO AVANZADO --- */
.domus-filtro-container {
    /*background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);*/
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 24px auto;
    /*border: 1px solid #eaeaea;*/
}

.domus-filtro-titulo {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: 2px solid #004a99;
    padding-bottom: 10px;
}

.domus-filtro-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.domus-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.domus-form-row-bottom {
    align-items: flex-end;
}

/* Campos de formulario */
.domus-field {
    flex: 1;
}

.domus-field-keyword { min-width: 180px; }
.domus-field-biz     { min-width: 150px; }
.domus-field-type    { min-width: 160px; }
.domus-field-city    { min-width: 160px; }
.domus-field-neigh   { min-width: 150px; }
.domus-field-beds    { min-width: 120px; }
.domus-field-baths   { min-width: 120px; }
.domus-field-order   { min-width: 150px; }
.domus-field-submit  { min-width: 130px; }

.domus-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.domus-field input {
    background-color: #007A7C!important;
    color: #fff!important;
}
.domus-field input::placeholder {
    color: #fff;
}

.domus-input,
.domus-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 0 !important;
    background: #007A7C;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.domus-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    padding-right: 30px !important; 
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 10px;

    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.domus-btn-buscar {
    width: 100%;
    background-color: #3B0508;
    color: #ffffff;
    border: none;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.domus-btn-buscar:hover {
    background: #003366;
}

.domus-field-submit button {
    background-color: #3B0508!important;
    border-radius: 0 !important;
}

/* --- CATÁLOGO DE INMUEBLES --- */
.domus-catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.domus-card {
    background: #ffffff;
    /*border-radius: 12px;*/
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    padding: 16px;
}

.domus-card-media {
    position: relative;
    display: block;
}

.domus-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.domus-badge-gestion {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #D9381E;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.domus-card-body {
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.domus-card-subtitle {
    font-size: 18px;
    color: #252424;
    font-weight: 600;
    letter-spacing: normal;
}

.domus-description {
    display: flex;
    flex-direction: row;
    align-items: end;
    margin-bottom: 16px;
}
.domus-description .left {
    color: #252424;
    text-transform: uppercase;
    margin: 16px 0 0;
    line-height: 18px;
    flex: 1;
    font-size: 14px;
}
.domus-description .right {
    font-size: 20px;
    font-weight: 500;
}

.domus-card-title-link {
    text-decoration: none;
    color: inherit;
}

.domus-card-price {
    font-size: 20px;
    color: #1a1a1a;
    margin: 8px 0 16px 0;
    font-weight: 700;
}

.domus-card-features {
    display: flex;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.domus-btn-detalle {
    display: block;
    width: 100%;
    text-align: center;
    background: #007A7C;
    color: #ffffff;
    padding: 10px 0;
    border-radius: 0;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    margin-top: auto;
    transition: background 0.2s ease;
}

.domus-btn-detalle:hover {
    background: #003366;
}

/* Mensajes & Paginación */
.domus-no-results {
    padding: 20px;
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    text-align: center;
}

.domus-paginador {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.domus-paginador-item {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: #ffffff;
    color: #333333;
}

.domus-paginador-item.active {
    background: #004a99;
    color: #ffffff;
    border-color: #004a99;
}