/* ============================================================
   Business listing cards + grid/list view (prefix: bix-)
============================================================ */

/* --- Results toolbar --- */
.bix-results-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bix-view-toggle {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.bix-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background .15s, color .15s;
}

.bix-view-btn + .bix-view-btn {
    border-left: 1px solid #e5e7eb;
}

.bix-view-btn:hover {
    background: #f9fafb;
    color: #111;
}

.bix-view-btn.is-active {
    background: #0d3530;
    color: #fff;
}

.bix-view-btn:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: -2px;
    z-index: 1;
}

/* --- Card --- */
.bix-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}

.bix-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    border-color: #d1d5db;
}

.bix-card__img {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: #eff4ff !important;
    text-decoration: none;
}

.bix-card__img img {
    width: 85% !important;
    height: auto !important;
    object-fit: cover;
    transition: transform .5s;
}

.bix-card:hover .bix-card__img img {
    transform: scale(1.05);
}

.bix-card__img-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, .25);
}

.bix-card__badge-v {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #059669;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bix-card__badge-conf {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(17, 24, 39, .8);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.bix-card__badge-feat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0d3530;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

.bix-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.bix-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.3;
}

.bix-card__title a {
    color: inherit;
    text-decoration: none;
}

.bix-card__title a:hover {
    color: #0d3530;
}

.bix-card__loc {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 16px;
}

.bix-card__loc .bi-geo-alt-fill {
    color: #10b981;
}

.bix-card__excerpt {
    display: none;
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.55;
    margin: -8px 0 14px;
}

.bix-card__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 8px;
    margin-bottom: 16px;
}

.bix-card__metric-label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.bix-card__metric-val {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.bix-card__metric-val--price {
    color: #0051d5;
}

.bix-card__metric-val--profit {
    color: #059669;
}

.bix-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.bix-card__nda {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bix-card__open {
    font-size: 11px;
    font-weight: 700;
    color: #0051d5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bix-card__view {
    background: #0051d5;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .18s;
    white-space: nowrap;
    flex-shrink: 0;
}

.bix-card__view:hover {
    background: #0041b5;
    color: #fff;
}

/* Confidential / private */
.bix-card--private {
    background: #111827;
    border-color: #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 24px;
    min-height: 340px;
}

.bix-card--private .bix-private-icon {
    width: 60px;
    height: 60px;
    background: #1f2937;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    color: #60a5fa;
}

.bix-card--private h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.bix-card--private p {
    color: #9ca3af;
    font-size: .875rem;
    margin-bottom: 20px;
}

.bix-private-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.bix-private-cell {
    background: #1f2937;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.bix-private-cell__label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
}

.bix-private-cell__val {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
}

/* --- Grid (default) --- */
.bix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 700px) {
    .bix-grid {
        grid-template-columns: 1fr;
    }
}

/* --- List view --- */
.bix-grid[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 14px;
}

.bix-grid[data-view="list"] .bix-card:not(.bix-card--private) {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
}

.bix-grid[data-view="list"] .bix-card__img {
    height: auto;
    min-height: 100%;
    align-self: stretch;
}

.bix-grid[data-view="list"] .bix-card__body {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 20px;
    align-items: center;
}

.bix-grid[data-view="list"] .bix-card__main {
    min-width: 0;
}

.bix-grid[data-view="list"] .bix-card__title {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.bix-grid[data-view="list"] .bix-card__loc {
    margin-bottom: 8px;
}

.bix-grid[data-view="list"] .bix-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin: 0 0 12px;
}

.bix-grid[data-view="list"] .bix-card__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 16px;
    margin-bottom: 0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
}

.bix-grid[data-view="list"] .bix-card__footer {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    border-top: none;
    padding-top: 0;
    gap: 10px;
    min-width: 140px;
}

.bix-grid[data-view="list"] .bix-card__view {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
}

.bix-grid[data-view="list"] .bix-card--private {
    min-height: 0;
    padding: 28px 32px;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

.bix-grid[data-view="list"] .bix-card--private .bix-private-icon {
    margin: 0;
    flex-shrink: 0;
}

.bix-grid[data-view="list"] .bix-card--private h3,
.bix-grid[data-view="list"] .bix-card--private p {
    margin: 0;
    flex: 1 1 180px;
}

.bix-grid[data-view="list"] .bix-card--private p {
    margin-bottom: 0;
}

.bix-grid[data-view="list"] .bix-private-grid {
    width: auto;
    min-width: 220px;
    margin: 0;
    flex: 0 1 240px;
}

.bix-grid[data-view="list"] .bix-card--private .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 160px;
}

@media (max-width: 900px) {
    .bix-grid[data-view="list"] .bix-card:not(.bix-card--private) {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .bix-grid[data-view="list"] .bix-card__body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bix-grid[data-view="list"] .bix-card__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }

    .bix-grid[data-view="list"] .bix-card__view {
        width: auto;
    }

    .bix-grid[data-view="list"] .bix-card__metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .bix-grid[data-view="list"] .bix-card:not(.bix-card--private) {
        grid-template-columns: 1fr;
    }

    .bix-grid[data-view="list"] .bix-card__img {
        height: 160px;
        min-height: 0;
    }

    .bix-grid[data-view="list"] .bix-card--private {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .bix-grid[data-view="list"] .bix-private-grid {
        width: 100%;
    }

    .bix-grid[data-view="list"] .bix-card--private .btn {
        width: 100%;
    }
}
