@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --bfc-dark:   #2d4a52;
  --bfc-mid:    #3d6370;
  --bfc-green:  #5a8a4a;
  --bfc-leaf:   #c8d9a0;
  --bfc-cream:  #f5f2eb;
  --bfc-warm:   #ede9df;
  --bfc-border: #d8d3c8;
  --bfc-muted:  #6b8a8f;
  --bfc-text:   #1e3040;
  --bfc-red:    #c0623a;
  --bfc-amber:  #d97706;
}

/* ── RESET ──────────────────────────────────────────────────── */
.bfc-hero,.bfc-cover,.bfc-catalog-wrap,.bfc-single,.bfc-contact-strip{
  box-sizing:border-box;
}
.bfc-catalog-wrap *,.bfc-single *,.bfc-hero *{ box-sizing:border-box; }

/* ── HERO ───────────────────────────────────────────────────── */
.bfc-hero {
  background: linear-gradient(135deg, var(--bfc-dark) 0%, #3a5e6e 60%, var(--bfc-mid) 100%);
  padding: 2.75rem 2rem 2.25rem;
  position: relative; overflow: hidden; margin-bottom: 0;
}
.bfc-hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 28px 28px;
}
.bfc-hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1; gap: 1rem;
}
.bfc-hero-left { display: flex; align-items: center; gap: 1.25rem; }
.bfc-hero-logo { width: 68px; height: auto; flex-shrink: 0; }
.bfc-hero-title {
  font-family: 'Roboto', serif;
  font-size: clamp(22px,3.5vw,38px); color: #fff; margin: 0 0 .3rem; line-height: 1.2;
}
.bfc-hero-sub { font-size: 13px; color: rgba(255,255,255,.55); margin: 0; }
.bfc-hero-count {
  background: rgba(0,0,0,.2); border-radius: 10px;
  padding: .9rem 1.5rem; text-align: center; flex-shrink: 0;
}
.bfc-hero-count strong { font-family:'Roboto',serif; font-size:28px; color:var(--bfc-leaf); display:block; }
.bfc-hero-count span   { font-size:10px; letter-spacing:2px; text-transform:uppercase; color:rgba(255,255,255,.4); }

/* ── CATALOG WRAP ───────────────────────────────────────────── */
.bfc-catalog-wrap { max-width: 1080px; margin: 0 auto; padding: 1.75rem 1.5rem; }

/* ── TOOLBAR / FILTERS ──────────────────────────────────────── */
.bfc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--bfc-border);
  margin-bottom: 1.5rem;
}
.bfc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bfc-chip {
  padding: 6px 17px; border-radius: 20px; font-size: 12px;
  border: 1px solid var(--bfc-border); background: #fff;
  color: var(--bfc-muted); cursor: pointer;
  transition: all .18s; font-family: 'Roboto', sans-serif;
}
.bfc-chip:hover { border-color: var(--bfc-dark); color: var(--bfc-dark); }
.bfc-chip.active { background: var(--bfc-dark); color: #fff; border-color: var(--bfc-dark); }
.bfc-toolbar-right { display: flex; align-items: center; gap: 8px; }
.bfc-region-sel {
  padding: 7px 12px; border: 1px solid var(--bfc-border);
  border-radius: 6px; font-size: 12px; color: var(--bfc-muted);
  font-family: 'Roboto', sans-serif; background: #fff; cursor: pointer;
}

/* ── GRIDS ──────────────────────────────────────────────────── */
.bfc-grid { display: grid; gap: 1.4rem; }
.bfc-grid--3 { grid-template-columns: repeat(3,1fr); }
.bfc-grid--4 { grid-template-columns: repeat(4,1fr); }
.bfc-grid--2 { grid-template-columns: repeat(2,1fr); }
.bfc-grid--1 { grid-template-columns: 1fr; }
.bfc-grid--1 .bfc-card { flex-direction: row; }
.bfc-grid--1 .bfc-card-imgwrap { width: 220px; flex-shrink: 0; }
.bfc-grid--1 .bfc-card-img { height: 100% !important; min-height: 140px; }

/* ── Full-content property cards (no detail page — everything shown here) ── */
.bfc-card--full{ grid-column: 1 / -1 !important; width:100% !important; max-width:640px !important; margin:0 auto 8px !important; }
.bfc-card--full .bfc-card-imgwrap{ width:100%; }
.bfc-card--full .bfc-card-img{ height:320px !important; }
.bfc-card-section{ margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--bfc-border); }
.bfc-card-section:first-of-type{ border-top: none; padding-top: 0; }
.bfc-cs-label{
    font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--bfc-green); font-weight: 700; margin-bottom: 6px;
}
.bfc-card-bullets{ margin: 0; padding-left: 18px; }
.bfc-card-bullets li{ font-size: 13.5px; line-height: 1.6; color: var(--bfc-text); margin-bottom: 3px; }
.bfc-card-contact{ font-size: 13.5px; color: var(--bfc-muted); margin-bottom: 4px; }
.bfc-card-contact strong{ color: var(--bfc-text); }
.bfc-card-contact a{ color: var(--bfc-mid); }
.bfc-card-contact a:hover{ color: var(--bfc-dark); }

.bfc-card-footer{ display:flex !important; align-items:center !important; justify-content:space-between !important; flex-wrap:nowrap; gap:12px; }
.bfc-card-footer .bfc-price{ display:block; }
.bfc-card-footer .bfc-btn{ flex-shrink:0; line-height:1; }

@media(max-width: 720px){
    .bfc-card--full .bfc-card-img{ height: 220px !important; }
}

/* ── CARD ───────────────────────────────────────────────────── */
.bfc-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--bfc-border);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.bfc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(45,74,82,.13); }
.bfc-card--sold { opacity: .6; }

.bfc-card-imgwrap { display: block; }
.bfc-card-img {
  height: 185px; background: var(--bfc-warm) center/cover no-repeat;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.bfc-card-img--mach { height: 150px; }
.bfc-card-img--ph   { background: linear-gradient(135deg,#b5c990,#7a9e60); }
.bfc-card-img--ph.bfc-card-img--mach { background: linear-gradient(135deg,#c8d5c0,#8aaa78); }
.bfc-ph-icon { font-size: 44px; }

/* Badges & tags */
.bfc-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 9px; font-weight: 700; letter-spacing:.8px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px; color: #fff;
}
.bfc-badge--new  { background: var(--bfc-green); }
.bfc-badge--red  { background: var(--bfc-red); }
.bfc-badge--urg  { background: var(--bfc-amber); }
.bfc-badge--res  { background: var(--bfc-mid); }
.bfc-badge--sold { background: rgba(0,0,0,.6); left:auto; right:10px; }
.bfc-area-tag {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; padding: 3px 9px; border-radius: 3px;
}
.bfc-year-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--bfc-dark); color: #fff; font-size: 10px; padding: 3px 9px; border-radius: 3px;
}
.bfc-cond {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 700; padding: 3px 9px; border-radius: 3px;
}
.bfc-cond--new  { background:#d4e8c8; color:#1a5a2a; }
.bfc-cond--ex   { background:#d4e8c8; color:#3a6a2a; }
.bfc-cond--good { background:#f0e8c8; color:#8a6a10; }
.bfc-cond--fair { background:#fde8e0; color:#903820; }

/* Card body */
.bfc-card-body  { padding: .9rem 1rem 1rem; display:flex; flex-direction:column; flex:1; }
.bfc-card-meta  { font-size:10px; letter-spacing:2px; text-transform:uppercase; color:var(--bfc-muted); margin-bottom:4px; }
.bfc-card-title { font-family:'Roboto',serif; font-size:15px; color:var(--bfc-text); margin:0 0 4px; line-height:1.3; }
.bfc-card-title a { color:inherit; text-decoration:none; }
.bfc-card-title a:hover { color:var(--bfc-dark); }
.bfc-card-addr  { font-size:11px; color:var(--bfc-muted); margin:0 0 5px; }
.bfc-card-desc  { font-size:12px; color:var(--bfc-muted); line-height:1.5; margin:0 0 8px; flex:1; }

/* ── Card facts grid (parsed farm data) ── */
.bfc-card-facts{
    display:grid; grid-template-columns:1fr 1fr; gap:1px;
    background:var(--bfc-border); border:1px solid var(--bfc-border);
    border-radius:7px; overflow:hidden; margin:0 0 10px;
}
.bfc-card-facts .f{ background:#faf8f2; padding:6px 9px; }
.bfc-card-facts .k{
    display:block; font-family:'Roboto Mono',monospace; font-size:8.5px; letter-spacing:.8px;
    text-transform:uppercase; color:var(--bfc-muted); margin-bottom:2px;
}
.bfc-card-facts .v{
    display:block; font-family:'Roboto Mono',monospace; font-size:11.5px; font-weight:500;
    color:var(--bfc-text); line-height:1.3; word-break:break-word;
}
.bfc-card-facts .f.wide{ grid-column:1/-1; }

.bfc-card-flags { font-size:14px; letter-spacing:3px; margin-bottom:7px; }
.bfc-tags       { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:8px; }
.bfc-tag        { font-size:10px; background:var(--bfc-warm); border:1px solid var(--bfc-border); color:var(--bfc-muted); padding:2px 9px; border-radius:10px; }

.bfc-card-footer { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--bfc-warm); padding-top:9px; margin-top:auto; }
.bfc-price strong { font-family:'Roboto',serif; font-size:16px; color:var(--bfc-dark); display:block; }
.bfc-price span   { font-size:10px; color:var(--bfc-muted); }

.bfc-btn {
  display:inline-block; padding:7px 16px; background:var(--bfc-dark); color:#fff;
  border-radius:6px; font-size:11px; font-family:'Roboto',sans-serif;
  text-decoration:none; letter-spacing:.3px; transition:background .18s; border:none; cursor:pointer; white-space:nowrap;
}
.bfc-btn:hover { background:var(--bfc-mid); color:#fff; }
.bfc-btn--full  { display:block; text-align:center; width:100%; }
.bfc-btn--sec   { background:#fff; color:var(--bfc-dark); border:1px solid var(--bfc-border); }
.bfc-btn--sec:hover { background:var(--bfc-cream); color:var(--bfc-dark); }

/* ── SINGLE ─────────────────────────────────────────────────── */
.bfc-single { max-width:1080px; margin:0 auto; padding:1.5rem; }
.bfc-single-gallery { margin-bottom:1.5rem; }
.bfc-single-main-img {
  height:400px; background:var(--bfc-warm) center/cover no-repeat;
  border-radius:10px; position:relative; display:flex; align-items:center; justify-content:center;
  font-size:72px; margin-bottom:.75rem;
}
.bfc-single-main-img--ph { background:linear-gradient(135deg,#b5c990,#5a8a4a); }
.bfc-gallery-thumbs { display:flex; gap:8px; flex-wrap:wrap; }
.bfc-gthumb {
  width:90px; height:68px; border-radius:6px;
  background:center/cover no-repeat var(--bfc-warm);
  display:block; border:1px solid var(--bfc-border);
  transition:opacity .15s;
}
.bfc-gthumb:hover { opacity:.8; }

.bfc-single-layout { display:grid; grid-template-columns:1fr 300px; gap:2rem; align-items:start; }
.bfc-single-meta   { font-size:10px; letter-spacing:2px; text-transform:uppercase; color:var(--bfc-muted); margin-bottom:6px; }
.bfc-single-title  { font-family:'Roboto',serif; font-size:clamp(22px,3vw,34px); color:var(--bfc-text); margin:0 0 .5rem; }
.bfc-single-addr   { font-size:13px; color:var(--bfc-muted); margin-bottom:1.25rem; }

.bfc-single-desc { margin-bottom:1.5rem; }
.bfc-single-desc h3,.bfc-specs-block h3 { font-size:13px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:var(--bfc-muted); margin:0 0 .75rem; padding-bottom:.5rem; border-bottom:1px solid var(--bfc-border); }

.bfc-specs-block { margin-bottom:1.5rem; }
.bfc-specs-grid  { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--bfc-border); border:1px solid var(--bfc-border); border-radius:8px; overflow:hidden; }
.bfc-spec        { background:#fff; padding:.75rem 1rem; }
.bfc-spec span   { display:block; font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--bfc-muted); margin-bottom:2px; }
.bfc-spec strong { font-size:14px; color:var(--bfc-text); }

.bfc-feature-grid { display:flex; flex-wrap:wrap; gap:8px; }
.bfc-feature      { padding:6px 14px; background:var(--bfc-cream); border:1px solid var(--bfc-border); border-radius:20px; font-size:13px; color:var(--bfc-text); }

.bfc-map-wrap { border-radius:8px; overflow:hidden; }

/* Single sidebar */
.bfc-single-sidebar { position:sticky; top:80px; display:flex; flex-direction:column; gap:1rem; }
.bfc-price-card {
  background:var(--bfc-dark); border-radius:10px; padding:1.25rem 1.5rem; text-align:center;
}
.bfc-price-big { font-family:'Roboto',serif; font-size:28px; color:#fff; }
.bfc-price-sub { font-size:12px; color:var(--bfc-leaf); margin-top:4px; }
.bfc-contact-card {
  background:#fff; border:1px solid var(--bfc-border); border-radius:10px; padding:1.25rem;
}
.bfc-contact-card h4 { font-size:13px; font-weight:600; color:var(--bfc-dark); margin:0 0 10px; }
.bfc-contact-card p  { font-size:13px; color:var(--bfc-text); margin:0 0 5px; }
.bfc-contact-card p a{ color:var(--bfc-dark); text-decoration:none; }
.bfc-back { display:block; text-align:center; font-size:12px; color:var(--bfc-muted); text-decoration:none; padding:.5rem; }
.bfc-back:hover { color:var(--bfc-dark); }

/* ── COVER PAGE ─────────────────────────────────────────────── */
.bfc-cover { background:var(--bfc-dark); min-height:70vh; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; text-align:center; padding:4rem 2rem; }
.bfc-cover-bg { position:absolute;inset:0; background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size:30px 30px; }
.bfc-cover-inner { position:relative; z-index:1; }
.bfc-cover-logo  { width:130px; height:auto; margin-bottom:1.5rem; }
.bfc-cover-title { font-family:'Roboto',serif; font-size:clamp(36px,6vw,64px); color:#fff; margin:0 0 .5rem; line-height:1.1; }
.bfc-cover-title em { font-style:normal; color:var(--bfc-leaf); }
.bfc-cover-tagline { font-size:15px; color:rgba(255,255,255,.6); margin-bottom:2rem; }
.bfc-cover-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.bfc-cover-btn { padding:13px 28px; background:var(--bfc-green); color:#fff; border-radius:8px; font-size:14px; font-weight:600; text-decoration:none; transition:background .2s; font-family:'Roboto',sans-serif; }
.bfc-cover-btn:hover { background:#4a7a3a; color:#fff; }
.bfc-cover-btn--sec { background:rgba(255,255,255,.12); }
.bfc-cover-btn--sec:hover { background:rgba(255,255,255,.2); }

.bfc-section-hdr { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.25rem; }
.bfc-section-title { font-family:'Roboto',serif; font-size:22px; color:var(--bfc-dark); margin:0; }
.bfc-section-link  { font-size:13px; color:var(--bfc-green); text-decoration:none; }
.bfc-section-link:hover { color:var(--bfc-dark); }

/* ── CONTACT STRIP ──────────────────────────────────────────── */
.bfc-contact-strip { background:var(--bfc-dark); border-radius:10px; text-align:center; padding:1.75rem 2rem; margin-top:1rem; }
.bfc-contact-strip h3 { font-family:'Roboto',serif; font-size:18px; color:#fff; margin:0 0 .4rem; }
.bfc-contact-strip p  { font-size:13px; color:var(--bfc-leaf); margin:0; }

/* ── EMPTY ──────────────────────────────────────────────────── */
.bfc-empty { color:var(--bfc-muted); padding:2rem; text-align:center; grid-column:1/-1; }
.bfc-empty a { color:var(--bfc-green); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media(max-width:960px){
  .bfc-grid--3,.bfc-grid--4{ grid-template-columns:repeat(2,1fr); }
  .bfc-single-layout{ grid-template-columns:1fr; }
  .bfc-single-sidebar{ position:static; }
}
@media(max-width:600px){
  .bfc-grid--3,.bfc-grid--4,.bfc-grid--2{ grid-template-columns:1fr; }
  .bfc-hero-inner{ flex-direction:column; align-items:flex-start; }
  .bfc-hero-count{ align-self:flex-start; }
  .bfc-specs-grid{ grid-template-columns:repeat(2,1fr); }
  .bfc-catalog-wrap{ padding:1rem; }
  .bfc-single{ padding:1rem; }
  .bfc-single-main-img{ height:220px; }
  .bfc-toolbar{ flex-direction:column; align-items:flex-start; }
}


/* ═══════════════════════════════════════════════════════════════
   SINGLE LISTING PAGE  —  v6, Astra-compatible
═══════════════════════════════════════════════════════════════ */

/* 1 ── RESET: kill everything Astra imposes on our post types */
.single-bfc_property .entry-content,
.single-bfc_machinery .entry-content,
.single-bfc_property .ast-article-single,
.single-bfc_machinery .ast-article-single,
.single-bfc_property .ast-container,
.single-bfc_machinery .ast-container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}
.single-bfc_property #primary,
.single-bfc_machinery #primary {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}
/* Hide Astra's post title — we render our own */
.single-bfc_property .entry-header,
.single-bfc_machinery .entry-header { display: none !important; }

/* 2 ── PAGE WRAPPER */
.bfc-single-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 4rem;
    font-family: 'Roboto', sans-serif;
    color: #1e3040;
}
.bfc-single-page *,
.bfc-single-page *::before,
.bfc-single-page *::after {
    box-sizing: border-box;
}

/* 3 ── GALLERY */
.bfc-sp-gallery {
    background: #111d22;
    overflow: hidden;
    margin-bottom: 0;
    line-height: 0;
}

/* Main image */
.bfc-sp-main-img-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0;
}
.bfc-sp-main-img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 480px !important;
    object-fit: cover !important;
    cursor: zoom-in;
    transition: opacity .2s;
}
.bfc-sp-main-img:hover { opacity: .93; }

.bfc-sp-main-img-ph {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    background: linear-gradient(135deg, #b5c990, #5a8a4a);
}

.bfc-sp-main-img-wrap .bfc-badge {
    position: absolute;
    top: 14px; left: 14px;
    font-size: 11px; padding: 4px 12px;
    z-index: 2;
}
.bfc-sp-main-img-wrap .bfc-badge--sold { left: auto; right: 14px; }

/* Thumbnail strip — CRITICAL: force horizontal flex */
.bfc-sp-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: #0d181d;
    padding: 8px !important;
    gap: 6px !important;
    line-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #3d6370 #0d181d;
    -webkit-overflow-scrolling: touch;
}
.bfc-sp-thumb {
    display: inline-block !important;
    width: 96px !important;
    height: 72px !important;
    min-width: 96px !important;
    max-width: none !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border-radius: 5px;
    cursor: pointer;
    opacity: .5;
    border: 2px solid transparent;
    transition: opacity .18s, border-color .18s;
    vertical-align: top;
}
.bfc-sp-thumb:hover { opacity: .82; }
.bfc-sp-thumb.active { opacity: 1; border-color: rgba(255,255,255,.7); }

/* 4 ── CONTENT BODY: 2-column grid */
.bfc-sp-body {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    gap: 2.5rem;
    align-items: start;
    padding: 2rem 2rem 0;
}

/* 5 ── LEFT COLUMN */
.bfc-sp-main { min-width: 0; }

.bfc-sp-cat {
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--bfc-green);
    font-weight: 700;
    margin: 0 0 6px;
    display: block;
}
.bfc-sp-title {
    font-family: 'Roboto', serif !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    color: #1e3040 !important;
    line-height: 1.15 !important;
    margin: 0 0 .5rem !important;
    padding: 0 !important;
}
.bfc-sp-addr {
    font-size: 14px;
    color: var(--bfc-muted);
    margin: 0 0 1.75rem;
}

/* Description */
.bfc-sp-desc { margin-bottom: 2rem; color: #1e3040; line-height: 1.75; font-size: 15px; }
.bfc-sp-desc p { margin: 0 0 .75rem; }

/* Section headings */
.bfc-sp-desc h3,
.bfc-sp-specs h3,
.bfc-sp-features h3,
.bfc-sp-map h3 {
    font-family: 'Roboto', sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--bfc-muted) !important;
    font-weight: 700 !important;
    margin: 0 0 .75rem !important;
    padding: 0 0 .5rem !important;
    border: none !important;
    border-bottom: 1px solid var(--bfc-border) !important;
    display: block;
}

/* Specs grid */
.bfc-sp-specs { margin-bottom: 2rem; }
.bfc-sp-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--bfc-border);
    border: 1px solid var(--bfc-border);
    border-radius: 8px;
    overflow: hidden;
}
.bfc-sp-spec {
    padding: .8rem 1rem;
    background: #fff;
}
.bfc-sp-spec span {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bfc-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.bfc-sp-spec strong {
    display: block;
    font-size: 15px;
    color: #1e3040;
    font-weight: 600;
}

/* Feature pills */
.bfc-sp-features { margin-bottom: 2rem; }
.bfc-sp-feat-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.bfc-sp-feat {
    padding: 6px 14px;
    background: var(--bfc-cream);
    border: 1px solid var(--bfc-border);
    border-radius: 20px;
    font-size: 13px;
    color: #1e3040;
    white-space: nowrap;
}

/* Map */
.bfc-sp-map { margin-bottom: 2rem; }
.bfc-sp-map iframe { display: block; border-radius: 8px; width: 100%; height: 280px; border: 0; }

/* Back link */
.bfc-sp-back {
    display: inline-block;
    font-size: 13px;
    color: var(--bfc-muted);
    text-decoration: none;
    margin-top: .5rem;
    transition: color .15s;
}
.bfc-sp-back:hover { color: var(--bfc-dark); }

/* 6 ── SIDEBAR */
.bfc-sp-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bfc-sp-price-card {
    background: var(--bfc-dark);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.bfc-sp-price {
    font-family: 'Roboto', serif;
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
}
.bfc-sp-price-sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
.bfc-sp-price-req {
    font-family: 'Roboto', serif;
    font-size: 18px; color: rgba(255,255,255,.85); font-style: italic;
}

.bfc-sp-contact-card {
    background: #fff;
    border: 1px solid var(--bfc-border);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bfc-sp-contact-label {
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--bfc-muted);
    font-weight: 700;
    margin-bottom: 6px;
}
.bfc-sp-contact-name {
    font-family: 'Roboto', serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e3040;
}
.bfc-sp-contact-phone a,
.bfc-sp-contact-email a {
    font-size: 14px;
    color: var(--bfc-muted);
    text-decoration: none;
    display: block;
    transition: color .15s;
}
.bfc-sp-contact-phone a:hover,
.bfc-sp-contact-email a:hover { color: var(--bfc-dark); }

.bfc-sp-call-btn,
.bfc-sp-email-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s;
    margin-top: 6px;
    font-family: 'Roboto', sans-serif;
}
.bfc-sp-call-btn { background: var(--bfc-dark); color: #fff; }
.bfc-sp-call-btn:hover { background: var(--bfc-mid); color: #fff; }
.bfc-sp-email-btn { background: var(--bfc-cream); color: var(--bfc-dark); border: 1px solid var(--bfc-border); }
.bfc-sp-email-btn:hover { background: var(--bfc-warm); }

/* 7 ── LIGHTBOX */
.bfc-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.94);
    align-items: center;
    justify-content: center;
}
.bfc-lb.open { display: flex !important; }

.bfc-lb-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 90px;
}
.bfc-lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 3px;
}
.bfc-lb-close {
    position: fixed;
    top: 16px; right: 20px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 22px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background .18s;
    line-height: 1;
}
.bfc-lb-close:hover { background: rgba(255,255,255,.3); }
.bfc-lb-prev, .bfc-lb-next {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff; font-size: 30px;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s; z-index: 10; line-height: 1;
}
.bfc-lb-prev { left: 14px; }
.bfc-lb-next { right: 14px; }
.bfc-lb-prev:hover, .bfc-lb-next:hover { background: rgba(255,255,255,.28); }
.bfc-lb-counter {
    position: fixed;
    bottom: 18px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.45); font-size: 12px; letter-spacing: 1px;
    font-family: 'Roboto', sans-serif; white-space: nowrap;
}

/* 8 ── RESPONSIVE */
@media (max-width: 900px) {
    .bfc-sp-body {
        grid-template-columns: 1fr !important;
        padding: 1.5rem 1rem 0;
        gap: 1.5rem;
    }
    .bfc-sp-sidebar { position: static !important; }
    .bfc-sp-main-img { height: 300px !important; }
    .bfc-sp-specs-grid { grid-template-columns: repeat(2, 1fr); }
    .bfc-sp-title { font-size: 26px !important; }
}
@media (max-width: 560px) {
    .bfc-sp-body { padding: 1rem .75rem 0; }
    .bfc-sp-main-img { height: 200px !important; }
    .bfc-sp-thumb { width: 72px !important; height: 54px !important; min-width: 72px !important; }
    .bfc-lb-img-wrap { padding: 50px 10px; }
    .bfc-lb-prev { left: 4px; }
    .bfc-lb-next { right: 4px; }
}


/* ── CONTACT MODAL ──────────────────────────────────────────── */
.bfc-modal { display: none; position: fixed; inset: 0; z-index: 99999; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.bfc-modal.open { display: block; }
.bfc-modal-backdrop {
    position: fixed; inset: 0; background: rgba(20,30,35,.55);
}
.bfc-modal-box {
    position: relative; z-index: 1; background: #fff; border-radius: 12px;
    max-width: 420px; width: calc(100% - 32px);
    margin: 5vh auto 5vh; padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    font-family: 'Roboto', sans-serif;
    max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.bfc-modal-close {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
    border-radius: 50%; border: none; background: var(--bfc-cream);
    color: var(--bfc-muted); font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.bfc-modal-close:hover { background: var(--bfc-warm); }
.bfc-modal-box h3 {
    font-family: 'Roboto', serif; font-size: 21px; color: var(--bfc-text);
    margin: 0 0 4px;
}
.bfc-modal-subtitle { font-size: 13px; color: var(--bfc-muted); margin: 0 0 1.25rem; min-height: 16px; }
#bfc-contact-form { display: flex; flex-direction: column; gap: 12px; }
#bfc-contact-form label {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 12px; font-weight: 600; letter-spacing: .3px;
    color: var(--bfc-text); text-transform: uppercase;
}
#bfc-contact-form label .req { color: var(--bfc-red); }
#bfc-contact-form label .opt { color: var(--bfc-muted); text-transform: none; font-weight: 400; letter-spacing: 0; }
#bfc-contact-form input,
#bfc-contact-form textarea {
    font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 400;
    text-transform: none; letter-spacing: 0; color: var(--bfc-text);
    border: 1px solid var(--bfc-border); border-radius: 7px;
    padding: 9px 11px; background: #fff; resize: vertical;
}
#bfc-contact-form input:focus,
#bfc-contact-form textarea:focus {
    outline: none; border-color: var(--bfc-dark);
}
.bfc-modal-msg { font-size: 13px; padding: 8px 10px; border-radius: 6px; display: none; }
.bfc-modal-msg.ok  { display: block; background: #eaf3e6; color: #3a6b2a; }
.bfc-modal-msg.err { display: block; background: #fbe9e2; color: var(--bfc-red); }
.bfc-modal-submit {
    border: none; width: 100%; text-align: center; margin-top: 4px;
    padding: 12px; font-size: 14px; cursor: pointer;
}
.bfc-modal-submit:disabled { opacity: .6; cursor: default; }

@media (max-width: 480px) {
    .bfc-modal-box { margin-top: 4vh; padding: 1.5rem 1.25rem 1.25rem; }
}

/* ── Generic pasted "Contact form" success/error message ──────── */
.bfc-form-msg{
    display:none; margin-top:8px; padding:12px 15px; border-radius:6px;
    font-size:14px; font-weight:500; grid-column:1/-1;
}
.bfc-form-msg.ok  { display:block; background:#eaf3e6; color:#3a6b2a; }
.bfc-form-msg.err { display:block; background:#fbe9e2; color:#a8492e; }

/* ── Modal info panel (Overview / Transaction structure / Contacts) ── */
.bfc-modal-info{ margin-bottom: 4px; }
.bfc-modal-info:empty{ display:none; }
.bfc-mi-block{ margin-bottom: 14px; }
.bfc-mi-label{
    font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--bfc-green); font-weight: 700; margin-bottom: 6px;
}
.bfc-mi-block ul{ margin: 0; padding-left: 18px; }
.bfc-mi-block li{ font-size: 13.5px; line-height: 1.55; color: var(--bfc-text); margin-bottom: 3px; }
.bfc-mi-contact{
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-size: 13px; color: var(--bfc-muted); margin-bottom: 4px;
}
.bfc-mi-contact strong{ color: var(--bfc-text); font-weight: 600; min-width: 110px; }
.bfc-mi-contact a{ color: var(--bfc-mid); }
.bfc-mi-contact a:hover{ color: var(--bfc-dark); }
.bfc-modal-info:not(:empty){
    border-bottom: 1px solid var(--bfc-border);
    padding-bottom: 12px; margin-bottom: 14px;
}
