/* =========================================================
   Opportunities Page Styles
   ========================================================= */

/* ── Full-width search strip (below hero) ───────────────── */
.page-opportunities .search-filter-bar {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border-bottom: none;
    background: var(--ehl-footer-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.page-opportunities .search-filter-bar-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 28px clamp(20px, 4vw, 40px) 24px;
    box-sizing: border-box;
}

.page-opportunities .search-filter-heading {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 14px 2px;
    line-height: 1;
}

/* Single-row search toolbar */
.page-opportunities .opp-search-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
    padding: 0;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.page-opportunities .opp-search-toolbar-input,
.page-opportunities .opp-search-toolbar-select {
    font-family: inherit;
    color: #fff;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    box-sizing: border-box;
    min-height: 52px;
}

.page-opportunities .opp-search-toolbar-input {
    flex: 1 1 auto;
    min-width: 200px;
    padding: 0 16px 0 44px;
    font-size: 0.9375rem;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
}

.page-opportunities .opp-search-toolbar-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.page-opportunities .opp-search-toolbar-input:focus {
    background-color: rgba(255, 255, 255, 0.04);
}

.page-opportunities .opp-search-toolbar-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.page-opportunities .opp-search-toolbar-select {
    flex: 0 1 140px;
    min-width: 112px;
    max-width: 170px;
    padding: 0 32px 0 14px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: background-color 0.15s;
}

.page-opportunities .opp-search-toolbar-select:hover,
.page-opportunities .opp-search-toolbar-select:focus {
    background-color: rgba(255, 255, 255, 0.04);
}

.page-opportunities .opp-search-toolbar-select option {
    background: var(--ehl-footer-bg);
    color: #fff;
}

.page-opportunities .opp-search-toolbar-select--suburb {
    flex: 0 1 160px;
    max-width: 210px;
}

.page-opportunities .opp-search-toolbar-btn {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 0 28px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ehl-blue);
    border: none;
    border-right: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.page-opportunities .opp-search-toolbar-btn:hover {
    background: var(--ehl-blue-dark);
    box-shadow: 0 2px 12px rgba(32, 158, 187, 0.3);
}

@media (max-width: 1100px) {
    .page-opportunities .opp-search-toolbar {
        flex-wrap: wrap;
    }
    .page-opportunities .opp-search-toolbar-input {
        flex: 1 1 100%;
        min-width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-right: none;
    }
    .page-opportunities .opp-search-toolbar-select {
        flex: 1 1 calc(25% - 1px);
        min-width: min(100%, 140px);
        max-width: none;
        border-bottom: none;
    }
    .page-opportunities .opp-search-toolbar-select--suburb {
        flex: 1 1 calc(25% - 1px);
        max-width: none;
    }
    .page-opportunities .opp-search-toolbar-btn {
        flex: 1 1 auto;
        min-width: min(100%, 160px);
    }
}

@media (max-width: 640px) {
    .page-opportunities .search-filter-bar-inner {
        padding: 20px 16px 18px;
    }
    .page-opportunities .search-filter-heading {
        font-size: 0.65rem;
        margin-bottom: 10px;
    }
    .page-opportunities .opp-search-toolbar-select,
    .page-opportunities .opp-search-toolbar-select--suburb {
        flex: 1 1 calc(50% - 1px);
        min-width: calc(50% - 1px);
    }
}

/* ── Main Content ───────────────────────────────────────── */
.opp-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px 64px;
    width: 100%;
}

.opp-main--hero {
    padding-top: 0;
}

/* Map section spans wider for better geographic context */
.opp-map-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: clamp(20px, 3vw, 40px);
    padding-right: clamp(20px, 3vw, 40px);
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Results block is constrained to the centered column for readability */
.opp-results-block,
.opp-loading,
.opp-empty {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.opp-map-viewport-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ehl-text-sec);
    min-height: 1.25em;
    padding: 18px 0 10px;
    line-height: 1.4;
    max-width: 100%;
}

.opp-map-canvas {
    width: 100%;
    max-width: 100%;
    height: 480px;
    border-radius: 10px;
    border: 1px solid var(--ehl-border);
    background: var(--ehl-bg-soft, #f5f6f8);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
    .opp-map-canvas {
        height: 340px;
        border-radius: 8px;
    }
}

/* Google Maps InfoWindow — image flush to top; default close hidden (see .gm-style-iw-chr) */
.ehl-map-card {
    box-sizing: border-box;
    width: 220px;
    max-width: 220px;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.3;
    color: var(--ehl-text, #1a1a1a);
    border-radius: 8px;
}

.ehl-map-card-visual {
    position: relative;
    width: 100%;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.ehl-map-card-img {
    display: block;
    width: 100%;
    height: 88px;
    object-fit: cover;
    vertical-align: top;
}

.ehl-map-card-img-placeholder {
    height: 88px;
    background: linear-gradient(135deg, #e8ecf2 0%, #d4dae6 100%);
}

.ehl-map-card-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ehl-map-card-close:hover {
    background: #fff;
}

.ehl-map-card-body {
    padding: 8px 10px 10px;
    overflow: hidden;
}

.ehl-map-card--noimg .ehl-map-card-visual {
    min-height: 0;
}

.ehl-map-card-title-link {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    margin: 0 0 4px;
    color: var(--ehl-blue, #2563eb);
    text-decoration: none;
    line-height: 1.25;
    word-wrap: break-word;
}

.ehl-map-card-title-link:hover {
    text-decoration: underline;
}

.ehl-map-card-title-text {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
    margin: 0 0 4px;
    color: var(--ehl-text, #1a1a1a);
}

.ehl-map-card-sub {
    font-size: 0.72rem;
    color: var(--ehl-text-sec, #666);
    margin: 0 0 4px;
    line-height: 1.3;
    word-wrap: break-word;
}

.ehl-map-card-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ehl-text, #1a1a1a);
    margin: 0;
    line-height: 1.25;
}

.ehl-map-card-price--locked {
    font-size: 0.72rem;
    font-weight: 600;
}

.ehl-map-card-price-link {
    color: var(--ehl-blue, #2563eb);
    text-decoration: none;
}

.ehl-map-card-price-link:hover {
    text-decoration: underline;
}

/* Hide default IW chrome row so image fills top; custom .ehl-map-card-close used */
.gm-style-iw-chr {
    display: none !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
}

/* Loading / empty */
.opp-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 56px 0;
    color: var(--ehl-text-sec);
    font-size: 0.9rem;
}

.opp-empty {
    text-align: center;
    padding: 72px 0;
    color: var(--ehl-text-sec);
}

.opp-empty p {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.opp-empty-hint {
    font-weight: 400 !important;
    font-size: 0.88rem !important;
    color: var(--ehl-text-light);
}

/* ── Search results header ─────────────────────────────── */
.opp-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--ehl-border);
}

.opp-results-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ehl-text);
    margin: 0;
}

.opp-results-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ehl-blue);
    background: var(--ehl-blue-light);
    border-radius: 12px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* ── State group layout ─────────────────────────────────── */
/* #oppList is a vertical stack of state sections */
.opp-list {
    display: block;
}

.opp-state-section {
    margin-bottom: 44px;
}

.opp-state-section:last-child {
    margin-bottom: 0;
}

.opp-state-group-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--ehl-border);
}

.opp-state-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ehl-text);
}

.opp-state-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 10px;
    background: var(--ehl-blue);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 6px;
    line-height: 1.2;
}

.opp-state-name {
    line-height: 1.25;
}

.opp-state-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ehl-text-sec);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Card grid inside each state section — 2-column layout for a calmer, more readable browse */
.opp-state-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 820px) {
    .opp-state-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .opp-state-group-header {
        margin-bottom: 16px;
    }
    .opp-state-title {
        font-size: 1.15rem;
    }
}

/* ── Opportunity Card (image top, details bottom) ───────── */
.opp-card {
    display: flex;
    flex-direction: column;
    background: var(--ehl-white);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease-in-out;
    border: 1px solid var(--ehl-border);
}

.opp-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* ── Image ──────────────────────────────────────────────── */
.opp-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    background: var(--ehl-blue-pale);
    overflow: hidden;
}

.opp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.opp-card:hover .opp-card-image img {
    transform: scale(1.03);
}

.opp-card-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ehl-text-light);
    font-size: 0.8rem;
    gap: 6px;
}

/* ── Badge ──────────────────────────────────────────────── */
.opp-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--ehl-blue);
    color: #fff;
    padding: 6px 10px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-align: center;
    z-index: 2;
}

/* ── Body (dark background, white text) ────────────────── */
.opp-card-body {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    background: #2c3345;
    color: #fff;
}

.opp-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.opp-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #9bdcff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.opp-card-price .opp-price-locked {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.opp-card-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opp-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
}

.opp-card-feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.opp-card-feature svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.opp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.opp-card-btn {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--ehl-blue);
    color: var(--ehl-blue);
    background: transparent;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.opp-card-btn:hover {
    background: var(--ehl-blue);
    color: #fff;
    text-decoration: none;
}

.opp-card-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    transition: color 0.2s;
}

.opp-card-save:hover {
    color: var(--ehl-blue);
}

/* ── Suburb Profile Break Card ──────────────────────────── */
/* LIGHT theme — intentionally contrasts with the dark-navy listing cards   */
/* so browsers can immediately distinguish "suburb insight" from a listing. */
.opp-suburb-break {
    grid-column: 1 / -1;
    margin: 8px 0;
}

.osb-card {
    position: relative;
    display: flex;
    flex-direction: row;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--ehl-border);
    box-shadow: 0 2px 14px rgba(32, 158, 187, 0.08);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    min-height: 230px;
}

/* Accent stripe on the left edge — a strong visual signal this is a profile, not a listing */
.osb-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ehl-blue) 0%, #7ed1e0 100%);
    z-index: 3;
}

.osb-card:hover {
    box-shadow: 0 8px 28px rgba(32, 158, 187, 0.18);
    transform: translateY(-2px);
    border-color: rgba(32, 158, 187, 0.35);
    text-decoration: none;
}

/* ── Left visual panel ───────────────────────────────────── */
.osb-visual {
    position: relative;
    width: 36%;
    min-width: 240px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ehl-blue-pale), var(--ehl-blue-light));
}

.osb-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.osb-card:hover .osb-hero-img {
    transform: scale(1.04);
}

.osb-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 30, 40, 0.72) 0%,
        rgba(15, 30, 40, 0.35) 55%,
        rgba(15, 30, 40, 0.08) 100%
    );
    z-index: 1;
}

.osb-visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 20px 22px;
    box-sizing: border-box;
}

.osb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #fff;
    color: var(--ehl-blue);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.osb-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--ehl-blue);
    border-radius: 50%;
}

.osb-name {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.osb-postcode {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.osb-summary {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* ── Right body panel (light) ────────────────────────────── */
.osb-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 26px;
    min-width: 0;
    gap: 16px;
    background: #fff;
}

/* Key metrics row */
.osb-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.osb-metric {
    flex: 1 1 0;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: var(--ehl-blue-pale);
    border-radius: 8px;
    border: 1px solid rgba(32, 158, 187, 0.12);
}

.osb-metric-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ehl-text-sec);
    line-height: 1.2;
}

.osb-metric-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ehl-text);
    line-height: 1.3;
}

.osb-mini-chart {
    display: block;
    margin-top: 4px;
}

/* Demographics row */
.osb-demos {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--ehl-border);
}

.osb-demo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.osb-demo-ring {
    position: relative;
    width: 42px;
    height: 42px;
}

.osb-demo-ring svg {
    width: 42px;
    height: 42px;
    transform: rotate(-90deg);
}

/* Override inline SVG stroke colors for the light theme */
.osb-demo-ring svg circle:first-of-type {
    stroke: rgba(32, 158, 187, 0.15) !important;
}

.osb-demo-ring svg circle:last-of-type {
    stroke: var(--ehl-blue) !important;
}

.osb-demo-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--ehl-text);
}

.osb-demo-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ehl-text-sec);
}

.osb-demo-age {
    justify-content: center;
}

.osb-demo-age-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ehl-blue);
    line-height: 1;
    padding: 8px 0 2px;
}

/* CTA */
.osb-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--ehl-blue);
    letter-spacing: 0.02em;
    transition: color 0.2s, gap 0.2s;
}

.osb-card:hover .osb-cta {
    color: var(--ehl-blue-dark);
    gap: 8px;
}

/* ── Suburb break responsive ─────────────────────────────── */
@media (max-width: 900px) {
    .osb-card {
        flex-direction: column;
        min-height: unset;
    }

    .osb-visual {
        width: 100%;
        min-width: unset;
        min-height: 180px;
    }

    .osb-metrics {
        gap: 10px;
    }

    .osb-metric {
        min-width: 80px;
    }
}

@media (max-width: 640px) {
    .osb-visual {
        min-height: 150px;
    }

    .osb-visual-content {
        padding: 16px;
    }

    .osb-name {
        font-size: 1.1rem;
    }

    .osb-body {
        padding: 18px 16px;
        gap: 12px;
    }

    .osb-metrics {
        gap: 8px;
    }

    .osb-metric {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        padding: 8px 10px;
    }

    .osb-demos {
        gap: 14px;
        flex-wrap: wrap;
    }

    .osb-demo-ring {
        width: 36px;
        height: 36px;
    }

    .osb-demo-ring svg {
        width: 36px;
        height: 36px;
    }

    .osb-demo-pct {
        font-size: 0.6rem;
    }

    .osb-demo-age-val {
        font-size: 1rem;
    }
}

/* ── Triptych grid-variant sizing ────────────────────────── */
.page-opportunities .opp-list .prop-card-featured--grid {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych {
    flex-shrink: 0;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-cols {
    min-height: 160px;
    height: clamp(180px, 18vw, 280px);
    gap: 4px;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-bar-header {
    padding: 10px 12px 0;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-title {
    font-size: clamp(0.85rem, 1.5vw, 1.15rem);
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-loc-pill {
    top: 10px;
    right: 8px;
    font-size: 0.56rem;
    padding: 3px 7px 3px 5px;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-details-row {
    padding: 6px 12px 0;
    font-size: 0.62rem;
    gap: 3px 6px;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-cta {
    font-size: 0.75rem;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-bar {
    min-height: 52%;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-bar-lower {
    grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
    gap: 10px 14px;
    padding: 12px 12px 16px;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-desc {
    font-size: 0.72rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
}

.page-opportunities .opp-list .prop-card-featured--grid .featured-home-price {
    font-size: clamp(0.88rem, 1.6vw, 1.1rem);
}

/* 2-col grid on desktop — cards are wider so use the larger sizing across all widths >=701px */
@media (min-width: 701px) {
    .page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-cols {
        height: clamp(210px, 22vw, 300px);
    }
    .page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-bar-header {
        padding: 14px 18px 0;
    }
    .page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-title {
        font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    }
    .page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-details-row {
        padding: 8px 18px 0;
    }
    .page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-bar-lower {
        grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
        gap: 12px 18px;
        padding: 14px 18px 18px;
    }
    .page-opportunities .opp-list .prop-card-featured--grid .featured-triptych-desc {
        -webkit-line-clamp: 3;
    }
    .page-opportunities .opp-list .prop-card-featured--grid .featured-home-price {
        font-size: clamp(0.98rem, 1.6vw, 1.2rem);
    }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
    .opp-main {
        padding: 0 16px 48px;
    }
    .opp-results-header {
        margin-bottom: 16px;
        padding-top: 24px;
    }
    .opp-results-header h2 {
        font-size: 1.05rem;
    }

    .opp-suburb-break {
        margin: 4px 0;
    }
}
