/* ==========================================================================
   BBX MCP - Other Brands (pixel-matched to RelatedBrands.astro)
   Structure: bbx-mcp-other-brands > __inner (bbx-container) > __header + __grid > __card (<a>)
   ========================================================================== */

.bbx-mcp-other-brands {
    /*border-top: 1px solid var(--wp--preset--color--ink-100, #e5e7eb);*/
    /*background-color: var(--wp--preset--color--surface-cool, #f8fafc);*/
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 1024px) {
    .bbx-mcp-other-brands {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* ---- Header ---- */
.bbx-mcp-other-brands__header {
    text-align: center;
    margin-bottom: 2rem;
}

.bbx-mcp-other-brands__title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--wp--preset--color--ink-900, #111827);
    letter-spacing: -0.015em;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.bbx-mcp-other-brands__subtitle {
    font-size: 14px;
    color: var(--wp--preset--color--ink-500, #6b7280);
    margin: 0;
}

/* ---- Grid ---- */
.bbx-mcp-other-brands__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .bbx-mcp-other-brands__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Card (whole card = <a>) ---- */
.bbx-mcp-other-brands__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wp--preset--color--ink-200, #e5e7eb);
    border-radius: 0.5rem;
    background: var(--wp--preset--color--base);
    padding: 1.25rem;
    text-decoration: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    position: relative;
}

/* ---- Logo: inline before name ---- */
.bbx-mcp-other-brands__logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bbx-mcp-other-brands__logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.bbx-mcp-other-brands__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--wp--preset--color--ink-300, #d1d5db);
}

.bbx-mcp-other-brands__card--hidden {
    display: none;
}

/* ---- Card top row ---- */
.bbx-mcp-other-brands__card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.bbx-mcp-other-brands__card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--wp--preset--color--ink-900, #111827);
    margin: 0;
    transition: color 0.15s ease;
}

.bbx-mcp-other-brands__card:hover .bbx-mcp-other-brands__card-name {
    color: var(--wp--preset--color--blue, #2563eb);
}

/* ---- Rating ---- */
.bbx-mcp-other-brands__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: auto;
}

.bbx-mcp-other-brands__stars {
    display: flex;
    gap: 1px;
}

/* Stars — amber (identique a related-brands) */
.bbx-mcp-other-brands__star--full  { fill: #fbbf24; }
.bbx-mcp-other-brands__star--half  { fill: #e5e7eb; }
.bbx-mcp-other-brands__star--half path:last-child { fill: #fbbf24; }
.bbx-mcp-other-brands__star--empty { fill: #e5e7eb; }
.bbx-mcp-other-brands__star-bg     { fill: #e5e7eb; }

.bbx-mcp-other-brands__rating-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--wp--preset--color--ink-900, #111827);
}

/* ---- Description ---- */
.bbx-mcp-other-brands__card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--wp--preset--color--ink-500, #6b7280);
    margin: 0 0 0.75rem;
    flex: 1;
}

/* ---- Discover (span inside <a>) ---- */
.bbx-mcp-other-brands__discover {
    font-size: 13px;
    font-weight: 600;
    color: var(--wp--preset--color--blue, #2563eb);
}

/* ---- Toggle ---- */
.bbx-mcp-other-brands__toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

.bbx-mcp-other-brands__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--wp--preset--color--blue, #2563eb);
    padding: 0.5rem 0;
    transition: color 0.15s ease;
}

.bbx-mcp-other-brands__toggle-chevron {
    transition: transform 0.3s ease;
}

.bbx-mcp-other-brands__toggle[aria-expanded="true"] .bbx-mcp-other-brands__toggle-chevron {
    transform: rotate(180deg);
}

/* ---- Footer (see all) ---- */
.bbx-mcp-other-brands__footer {
    text-align: center;
    margin-top: 1.5rem;
}

.bbx-mcp-other-brands__see-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--wp--preset--color--blue, #2563eb);
    text-decoration: none;
    transition: color 0.15s ease;
}

.bbx-mcp-other-brands__see-all:hover {
    color: var(--wp--preset--color--blue-dark);
}