/* ==========================================================================
   House Picker – Category Grid
   ========================================================================== */

.house-picker__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ----- Card ----- */

.house-picker__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ----- Image area ----- */

.house-picker__image-wrap {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #f5f5f5;
}

.house-picker__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.house-picker__image--active {
    opacity: 1;
}

/* ----- Image toggle buttons ----- */

.house-picker__toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    overflow: hidden;
    z-index: 2;
}

.house-picker__toggle-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: #fff;
    color: #000000;
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1.3;
    margin: 0;
}

.house-picker__toggle-btn--active {
    background: var(--secondary-color, #02efb3);
    color: #000000;
}

.house-picker__toggle-btn:hover:not(.house-picker__toggle-btn--active) {
    background: var(--adt-secondary-color-soft, #e8f0fe);
}

/* ----- Card info ----- */

.house-picker__info {
    flex: 1;
}

.house-picker__title {
    font-size: 20px;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
    color: #1a1a1a;
}

.house-picker__price {
    font-size: 18px;
    font-weight: 600;
    color: #001728;
    margin: 0 0 1rem;
}

.house-picker__specs {
    display: flex;
    margin-bottom: 1rem;
}

.house-picker__spec {
    font-size: 13px;
    color: #001728;
    border-right: 1px solid var(--secondary-color, #02efb3);
    padding: 0 0.2rem 0 0;
    margin: 0 0.2rem 0 0;
}

.house-picker__spec:first-child {
    text-align: left;
}

.house-picker__spec:last-child {
    border-right: none;
}

/* ----- Select button ----- */

.house-picker__action {
    
}

.house-picker__select-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: var(--secondary-color, #02efb3);
    color: #001728;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.house-picker__select-btn:hover {
    background-color: #efcacc;
    color: #fff;
}

/* ----- Responsive ----- */

@media (max-width: 992px) {
    .house-picker__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .house-picker__specs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        padding-top: 0.5rem;
        overflow-x: auto;
    }

    .house-picker__spec {
        font-size: 14px;
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .house-picker__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .house-picker__specs {
        gap: 0;
    }

    .house-picker__spec {
        font-size: 11px;
    }
}
