/* ==========================================================================
   H2H - REMAX-style search results page
   Colors come from --h2h-primary / --h2h-secondary (injected inline from
   the site's own Houzez theme options, see functions.php).
   ========================================================================== */

/* ---- Compact search bar ---- */
.h2h-remax-search-bar {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 10px 14px;
}

.h2h-remax-field {
    position: relative;
    min-width: 180px;
}

.h2h-remax-field-keyword {
    min-width: 240px;
}

.h2h-remax-search-bar .form-control {
    border-radius: 30px;
    border: 1px solid #dcdcdc;
    padding: 10px 16px;
}

.h2h-remax-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dcdcdc;
    background: #fff;
    border-radius: 30px;
    padding: 10px 18px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--h2h-secondary, #0A0A0A);
}

.h2h-remax-filters-btn:hover {
    border-color: var(--h2h-primary, #D4AF37);
    color: var(--h2h-primary, #D4AF37);
}

/* ---- Results toolbar ---- */
.h2h-remax-results-tools .save-search-form-wrap,
.h2h-remax-results-tools .sort-by {
    margin-left: 10px;
}

/* ---- Filters modal ---- */
.h2h-filters-modal .modal-content {
    border-radius: 16px;
}

.h2h-filter-box {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px 16px;
    height: 100%;
}

.h2h-filter-box h6 {
    font-weight: 700;
    margin-bottom: 12px;
}

.h2h-field-label {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.h2h-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.h2h-toggle-row h6 {
    margin-bottom: 0;
}

/* Segmented control (Operación) */
.h2h-segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.h2h-segmented .btn-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.h2h-segmented-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 14px;
    border-radius: 30px;
    border: 1px solid #dcdcdc;
    cursor: pointer;
    font-weight: 600;
    color: var(--h2h-secondary, #0A0A0A);
}

.h2h-segmented .btn-check:checked + .h2h-segmented-btn {
    background: var(--h2h-primary, #D4AF37);
    border-color: var(--h2h-primary, #D4AF37);
    color: #fff;
}

/* Pill groups (Ambientes, Dormitorios, Baños, Cochera, Antigüedad, Etapa) */
.h2h-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.h2h-pill {
    border: 1px solid #dcdcdc;
    background: #fff;
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: 600;
    color: var(--h2h-secondary, #0A0A0A);
}

.h2h-pill.is-active {
    background: var(--h2h-primary, #D4AF37);
    border-color: var(--h2h-primary, #D4AF37);
    color: #fff;
}

.h2h-features-dropdown .dropdown-menu {
    max-height: 260px;
    overflow-y: auto;
}

.h2h-clear-filters {
    font-weight: 600;
    color: var(--h2h-secondary, #0A0A0A);
    text-decoration: underline;
}

.h2h-btn-primary {
    background: var(--h2h-primary, #D4AF37);
    border-color: var(--h2h-primary, #D4AF37);
    color: #fff;
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 700;
}

.h2h-btn-primary:hover {
    filter: brightness(0.92);
    color: #fff;
}

/* ---- Result cards ---- */
.h2h-remax-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.h2h-remax-card-inner {
    align-items: stretch;
}

.h2h-remax-card-image {
    flex: 0 0 340px;
    max-width: 340px;
}

.h2h-remax-card-image .listing-image-wrap,
.h2h-remax-card-image .listing-thumb,
.h2h-remax-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.h2h-remax-card-body {
    padding: 18px 22px;
}

.h2h-remax-price {
    font-size: 22px;
    font-weight: 700;
}

.h2h-remax-expenses {
    font-size: 13px;
    font-weight: 400;
    color: #777;
}

.h2h-remax-features {
    color: #444;
    font-size: 14px;
}

.h2h-remax-features .houzez-icon {
    margin-right: 4px;
    color: var(--h2h-primary, #D4AF37);
}

.h2h-remax-brokers {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.h2h-remax-agent {
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 10px;
}

.h2h-remax-agent-name {
    display: block;
    font-weight: 700;
    color: var(--h2h-secondary, #0A0A0A);
}

.h2h-remax-agent-subtitle {
    display: block;
    font-size: 12px;
    color: #999;
}

.h2h-contact-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #dcdcdc;
}

.h2h-contact-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.h2h-contact-phone,
.h2h-contact-email {
    color: var(--h2h-secondary, #0A0A0A);
}

/* Only the favorite heart is shown in the REMAX-style card */
.h2h-remax-card .item-tools .item-preview,
.h2h-remax-card .item-tools .item-compare {
    display: none;
}

@media (max-width: 767px) {
    .h2h-remax-card-image {
        flex: 0 0 auto;
        max-width: 100%;
        height: 220px;
    }
}
