/* ==========================================================================
   BBP Lovable-Style Property Details — bbp-details.css
   Design tokens match the Lovable template:
     - Card background  : #ffffff
     - Surface bg       : #f8f9fb
     - Border           : #e8edf3
     - Text primary     : #0f172a
     - Text muted       : #64748b
     - Accent / primary : #1e40af  (navy blue)
     - Success green    : #16a34a
   ========================================================================== */

/*  Google Font (Inter)  */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*  Design tokens  */
.bbp-lovable-details {
    --lv-bg-card: #ffffff;
    --lv-bg-surface: #f8f9fb;
    --lv-border: #e8edf3;
    --lv-text: #0f172a;
    --lv-muted: #64748b;
    --lv-primary: #1e40af;
    --lv-primary-bg: rgba(30, 64, 175, 0.08);
    --lv-success: #16a34a;
    --lv-radius: 16px;
    --lv-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
    --lv-shadow-hov: 0 4px 12px rgba(0, 0, 0, .10), 0 8px 32px rgba(0, 0, 0, .08);
    --lv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    font-family: var(--lv-font);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px 0 8px;
}

/* Two-column layout  */
.bbp-lv-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Card base */
.bbp-lv-card {
    background: var(--lv-bg-card);
    border: 1px solid var(--lv-border);
    border-radius: var(--lv-radius);
    box-shadow: var(--lv-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bbp-lv-card:hover {
    box-shadow: var(--lv-shadow-hov);
}

/*  Card header  */
.bbp-lv-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--lv-border);
}

.bbp-lv-card-title {
    font-size: 1.0rem !important;
    font-weight: 600 !important;
    color: var(--lv-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-family: var(--lv-font) !important;
}

/*  Card body  */
.bbp-lv-card-body {
    padding: 20px 24px;
}

/* When a card has no header, the first dl-row gets a small top border instead */
.bbp-lv-card--no-header .bbp-lv-dl-row:first-child {
    border-top: none;
}


/*  Definition list (Business Details)  */
.bbp-lv-dl {
    margin: 0;
    padding: 0;
}

.bbp-lv-dl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 24px;
    border-bottom: 1px solid var(--lv-border);
    gap: 12px;
    animation: bbp-lv-fade-in 0.3s ease both;
}

.bbp-lv-dl-row:last-child {
    border-bottom: none;
}

.bbp-lv-dl-row:hover {
    background: var(--lv-bg-surface);
}

.bbp-lv-dt {
    font-size: 0.8375rem;
    color: var(--lv-muted);
    font-weight: 400;
    flex-shrink: 0;
}

.bbp-lv-dd {
    font-size: 0.8375rem;
    font-weight: 600;
    color: var(--lv-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.bbp-lv-dd a {
    color: var(--lv-primary);
    text-decoration: none;
}

.bbp-lv-dd a:hover {
    text-decoration: underline;
}

/*  Checklist (What's Included)  */
.bbp-lv-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.bbp-lv-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: bbp-lv-fade-in 0.3s ease both;
}

.bbp-lv-check-icon {
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lv-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lv-primary);
}

.bbp-lv-check-label {
    font-size: 0.8375rem;
    color: var(--lv-text);
    line-height: 1.5;
}

/*  Growth Opportunities grid  */
.bbp-lv-growth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.bbp-lv-growth-card {
    background: var(--lv-bg-surface);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bbp-lv-growth-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lv-shadow-hov);
}

.bbp-lv-growth-icon {
    color: var(--lv-primary);
    margin-bottom: 8px;
    display: flex;
}

.bbp-lv-growth-title {
    font-size: 0.8375rem !important;
    font-weight: 600 !important;
    color: var(--lv-text) !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-family: var(--lv-font) !important;
}

.bbp-lv-growth-body {
    font-size: 0.775rem;
    color: var(--lv-muted);
    line-height: 1.55;
    margin: 0;
}

/*  Prose cards  */
.bbp-lv-prose {
    font-size: 0.875rem;
    color: rgba(15, 23, 42, 0.82);
    line-height: 1.7;
    margin: 0;
}

/*  Reason for Selling footer  */
.bbp-lv-reason {
    text-align: center;
    padding: 6px 0 2px;
    font-size: 0.775rem;
    color: var(--lv-muted);
}

.bbp-lv-reason-label {
    font-weight: 600;
    margin-right: 4px;
}

/*  Entrance animation  */
@keyframes bbp-lv-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bbp-lv-card {
    animation: bbp-lv-fade-in 0.35s ease both;
}

.bbp-lv-two-col .bbp-lv-card:nth-child(2) {
    animation-delay: 0.06s;
}

/*  Responsive  */
@media (max-width: 900px) {
    .bbp-lv-two-col {
        grid-template-columns: 1fr;
    }

    .bbp-lv-checklist {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .bbp-lv-card-header {
        padding: 14px 16px;
    }

    .bbp-lv-card-body {
        padding: 16px;
    }

    .bbp-lv-dl-row {
        padding: 11px 16px;
    }

    .bbp-lv-checklist {
        grid-template-columns: 1fr;
    }

    .bbp-lv-growth-grid {
        grid-template-columns: 1fr;
    }
}

/*  Legacy detail-wrap passthrough (removes old amber background)  */
.property-detail-wrap.property-section-wrap .detail-wrap {
    background: transparent !important;
}

/* Keep legacy bbp-detail-grid/card styles intact if used elsewhere */
.bbp-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    padding: 4px 0 8px;
}

/*  Overview Main Numbers  */
.bbp-lv-overview-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0 32px;
    border-bottom: 1px solid var(--lv-border);
}

.bbp-lv-hero-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bbp-lv-hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lv-muted);
}

.bbp-lv-hero-value {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lv-text);
    font-variant-numeric: tabular-nums;
    margin: 0;
    line-height: 1.1;
}

.bbp-lv-hero-value.text-success {
    color: var(--lv-success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbp-lv-hero-subtext {
    font-size: 0.75rem;
    color: var(--lv-muted);
    font-variant-numeric: tabular-nums;
}

/*  Overview Four Cards  */
.bbp-lv-overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 32px 0 24px;
}

.bbp-lv-icon-card {
    background: var(--lv-bg-surface);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bbp-lv-icon-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lv-shadow);
}

.bbp-lv-icon-wrapper {
    color: var(--lv-muted);
    margin-bottom: 4px;
    display: flex;
}

.bbp-lv-icon-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lv-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.bbp-lv-icon-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lv-text);
}

.bbp-lv-icon-card-subtext {
    font-size: 0.75rem;
    color: var(--lv-muted);
}

@media (max-width: 900px) {
    .bbp-lv-overview-hero {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .bbp-lv-overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bbp-lv-overview-cards {
        grid-template-columns: 1fr;
    }
}

/* show only on mobile and tablet */
@media (max-width: 700px) {
    .bbp-business-cta-wrap-mobile-only {
        display: none;
    }
}