/* Baltic Farms Catalog — Public CSS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+3:wght@300;400;500&display=swap');

:root {
  --bfc-primary: #2d4a52;
  --bfc-mid:     #3d6370;
  --bfc-green:   #5a8a4a;
  --bfc-green-light: #d4e8c8;
  --bfc-accent:  #8db88a;
  --bfc-cream:   #f4f1eb;
  --bfc-text:    #1e3035;
  --bfc-muted:   #6b8a8f;
  --bfc-border:  #ddd8cc;
  --bfc-white:   #ffffff;
}

.bfc-catalog { font-family: 'Source Sans 3', sans-serif; color: var(--bfc-text); }

/* ── Filter bar ─────────────────────────────────────────────────────────────── */
.bfc-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--bfc-border);
}
.bfc-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bfc-chip {
  padding: 6px 18px; border-radius: 20px;
  border: 1px solid var(--bfc-border);
  background: transparent; color: var(--bfc-muted);
  font-size: 13px; font-family: 'Source Sans 3', sans-serif;
  cursor: pointer; transition: all .2s; letter-spacing: .3px;
}
.bfc-chip:hover { background: var(--bfc-cream); border-color: var(--bfc-mid); color: var(--bfc-primary); }
.bfc-chip.active { background: var(--bfc-primary); color: #fff; border-color: var(--bfc-primary); }
.bfc-region-select {
  padding: 7px 14px; border-radius: 6px;
  border: 1px solid var(--bfc-border);
  font-size: 13px; color: var(--bfc-text);
  background: #fff; font-family: 'Source Sans 3', sans-serif;
}

/* ── Grid ───────────────────────────────────────────────────────────────────── */
.bfc-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.bfc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bfc-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .bfc-grid, .bfc-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bfc-grid, .bfc-grid--2, .bfc-grid--4 { grid-template-columns: 1fr; }
  .bfc-filter-bar { flex-direction: column; align-items: flex-start; }
}

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.bfc-card {
  background: var(--bfc-white);
  border: 1px solid var(--bfc-border);
  border-radius: 10px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.bfc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(45,74,82,.12); }
.bfc-card--sold { opacity: .65; }

.bfc-card-img-link { display: block; }
.bfc-card-img {
  height: 180px;
  background: var(--bfc-cream) center/cover no-repeat;
  position: relative;
}
.bfc-grid--4 .bfc-card-img { height: 140px; }

/* Badges */
.bfc-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 3px; font-family: 'Source Sans 3', sans-serif;
}
.bfc-badge--new      { background: var(--bfc-green);    color: #fff; }
.bfc-badge--reduced  { background: #c0623a;              color: #fff; }
.bfc-badge--urgent   { background: #d97706;              color: #fff; }
.bfc-badge--reserved { background: var(--bfc-mid);       color: #fff; }
.bfc-badge--sold     { background: rgba(0,0,0,.6);       color: #fff; left:auto; right:10px; }

.bfc-area-tag, .bfc-year-tag {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 3px;
}
.bfc-year-tag { bottom: auto; top: 10px; left: 10px; }
.bfc-cond {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 3px;
}
.bfc-cond--new       { background: var(--bfc-green-light); color: var(--bfc-green); }
.bfc-cond--excellent { background: #d4e8c8; color: #3a6a2a; }
.bfc-cond--good      { background: #f0e8c8; color: #8a6a10; }
.bfc-cond--fair      { background: #fde8e0; color: #903820; }

/* Card body */
.bfc-card-body { padding: 1rem 1.1rem; }
.bfc-card-region {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--bfc-muted); margin-bottom: 4px;
}
.bfc-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px; color: var(--bfc-text);
  margin: 0 0 6px; line-height: 1.35;
}
.bfc-card-title a { color: inherit; text-decoration: none; }
.bfc-card-title a:hover { color: var(--bfc-primary); }
.bfc-card-desc { font-size: 13px; color: var(--bfc-muted); line-height: 1.5; margin-bottom: 8px; }
.bfc-card-flags { font-size: 14px; margin-bottom: 8px; letter-spacing: 2px; }
.bfc-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.bfc-tag {
  font-size: 11px; background: var(--bfc-cream);
  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 #f0ece4; padding-top: 10px; margin-top: 4px;
}
.bfc-card-price strong {
  font-family: 'Playfair Display', serif;
  font-size: 17px; color: var(--bfc-primary); display: block;
}
.bfc-card-price span { font-size: 11px; color: var(--bfc-muted); }
.bfc-card-btn {
  padding: 7px 18px; background: var(--bfc-primary); color: #fff;
  border-radius: 6px; font-size: 12px; font-family: 'Source Sans 3', sans-serif;
  text-decoration: none; letter-spacing: .3px; white-space: nowrap;
  transition: background .2s;
}
.bfc-card-btn:hover { background: var(--bfc-mid); color: #fff; }

/* ── Featured row ───────────────────────────────────────────────────────────── */
.bfc-featured-row {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) { .bfc-featured-row { grid-template-columns: 1fr; } }

/* ── Load more ──────────────────────────────────────────────────────────────── */
.bfc-load-more-wrap { text-align: center; margin-top: 2rem; }
.bfc-load-more {
  padding: 12px 32px; background: transparent;
  border: 1px solid var(--bfc-primary); color: var(--bfc-primary);
  border-radius: 6px; font-size: 14px; font-family: 'Source Sans 3', sans-serif;
  cursor: pointer; transition: all .2s; letter-spacing: .3px;
}
.bfc-load-more:hover { background: var(--bfc-primary); color: #fff; }
.bfc-load-more.loading { opacity: .6; pointer-events: none; }

.bfc-no-results { color: var(--bfc-muted); text-align: center; padding: 2rem; grid-column: 1/-1; }

/* ── Loading skeleton ───────────────────────────────────────────────────────── */
.bfc-skeleton { pointer-events: none; }
.bfc-skeleton .bfc-card-img,
.bfc-skeleton .bfc-card-title,
.bfc-skeleton .bfc-card-desc {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: bfc-shimmer 1.5s infinite;
  border-radius: 4px; color: transparent;
}
@keyframes bfc-shimmer { to { background-position: -200% 0; } }
