/* Neutral, typographic info card matching Redfin structure (no colors) */
.ybo-info-card {
    border: 1px solid #e6e7ea;
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

.ybo-info-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 18px;
    align-items: start;
}

/* Make the About block span the full width so description sits in one column */
.ybo-info-grid > div:first-child {
    grid-column: 1 / -1;
}

.ybo-info-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ybo-about-text {
    color: #374151;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.ybo-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ybo-stat {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
}

.ybo-stat strong {
    color: #111827;
    font-weight: 600;
}

.ybo-agent {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f2f4;
}

.ybo-agent .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9e9ea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: 700;
}

.ybo-small {
    font-size: 16px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .ybo-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Header strip above About card */
.ybo-header-strip {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    border: 1px solid #e6e7ea;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ybo-header-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 0;
}

.ybo-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    display: inline-block;
    margin-right: 8px;
}

/* status color modifiers */
.ybo-status-dot.status-active {
    background: #10b981;
}

/* green */
.ybo-status-dot.status-coming_soon {
    background: #f59e0b;
}

/* amber */
.ybo-status-dot.status-sold {
    background: #ef4444;
}

/* red */
.ybo-status-dot.status-pending {
    background: #f97316;
}

/* orange */
.ybo-status-dot.status-withdrawn {
    background: #6b7280;
}

/* gray */

.ybo-status-text {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ybo-price {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.ybo-est {
    display: inline-block;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #374151;
    margin-left: 10px;
}

.ybo-meta-row {
    margin-top: 8px;
    font-size: 18px;
    color: #374151;
}

.ybo-address {
    margin-top: 15px;
    font-size: 20px;
    color: #111827;
}

.ybo-header-right {
    width: 140px;
    flex-shrink: 0;
}

.ybo-map-thumb {
    width: 140px;
    height: 140px;
    /* make square */
    border-radius: 6px;
    background: #f8fafc;
    display: block;
    object-fit: cover;
    border: 1px solid #e6e7ea;
    transition:
        box-shadow 180ms ease,
        transform 180ms ease;
}

.ybo-map-thumb:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-3px) scale(1.02);
    cursor: pointer;
}

/* Right sidebar action card (themed to site colors) */
.ybo-action-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.ybo-action-card .primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    background: #16a34a;
    /* green-600 */
    color: #fff;
    text-decoration: none;
    transition:
        background 150ms ease,
        transform 120ms ease;
}

.ybo-action-card .primary:hover {
    background: #15803d;
    /* green-700 */
    transform: translateY(-1px);
}

.ybo-action-card .secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid rgba(17, 24, 39, 0.08);
    color: #111827;
    background: transparent;
    margin-top: 12px;
    text-decoration: none;
    transition:
        background 120ms ease,
        border-color 120ms ease;
}

.ybo-action-card button.secondary,
.ybo-sticky-bottom button.secondary {
    appearance: none;
    cursor: pointer;
}

.ybo-favorite-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ybo-heart-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ybo-favorite-trigger.is-active {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.22) !important;
    color: #15803d;
}

.ybo-action-card .secondary.outline {
    border-color: rgba(17, 24, 39, 0.12);
}

.ybo-action-card .secondary:hover {
    background: rgba(17, 24, 39, 0.03);
}

.ybo-action-card .muted {
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
}

.ybo-action-divider {
    height: 1px;
    background: #f1f2f4;
    margin: 14px 0;
}

.ybo-contact-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ybo-contact-link {
    color: #0b7285;
    /* teal accent */
    font-weight: 700;
    text-decoration: none;
}

.ybo-contact-link:hover {
    text-decoration: underline;
}

.ybo-contact-small {
    color: #6b7280;
    font-size: 13px;
}

/* Facts grid (small info tiles) */
.ybo-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ybo-fact-card {
    background: #fff;
    border: 1px solid #f1f2f4;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 56px;
    justify-content: center;
}

.ybo-fact-card .fact-title {
    font-size: 13px;
    color: #6b7280;
}

.ybo-fact-card .fact-value {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
}

@media (max-width: 640px) {
    .ybo-header-strip {
        flex-direction: column;
    }

    .ybo-header-right {
        width: 100%;
    }

    .ybo-map-thumb {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        max-height: 360px;
    }

    .ybo-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ybo-unread-count {
    background: red;
    padding: 0px 7px;
    border-radius: 50%;
    color: white;
    position: absolute;
    right: -10px;
    top: -15px;
}

.ybo-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.ybo-success-message {
    background-color: color-mix(
        in oklab,
        oklch(0.75 0.29 142.9) 5%,
        transparent
    );
    color: oklch(0.61 0.26 145.45);
    padding: 15px;
    text-align: center;
    font-size: 17px;
}
