.bci-vitrine {
  --bci-green: #065e03;
  --bci-green-dark: #044702;
  --bci-border: #e5e7eb;
  --bci-text: #1f2937;
  --bci-muted: #6b7280;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--bci-text);
}

.bci-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bci-vitrine[data-cols="2"] .bci-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bci-vitrine[data-cols="4"] .bci-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bci-vitrine[data-cols="5"] .bci-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .bci-vitrine[data-cols="5"] .bci-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .bci-grid,
  .bci-vitrine[data-cols="2"] .bci-grid,
  .bci-vitrine[data-cols="4"] .bci-grid,
  .bci-vitrine[data-cols="5"] .bci-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bci-grid,
  .bci-vitrine[data-cols="2"] .bci-grid,
  .bci-vitrine[data-cols="4"] .bci-grid,
  .bci-vitrine[data-cols="5"] .bci-grid {
    grid-template-columns: 1fr;
  }
}

.bci-card,
.bci-card-btn {
  width: 100%;
}

.bci-card-btn {
  display: block;
  padding: 0;
  border: 1px solid var(--bci-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bci-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 94, 3, 0.12);
}

.bci-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef8ee, #dfece0);
  background-size: cover;
  background-position: center;
}

.bci-card-price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(6, 94, 3, 0.92);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.bci-card-body {
  padding: 16px;
}

.bci-card-type {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bci-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bci-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.bci-card-location,
.bci-card-meta {
  margin: 0;
  color: var(--bci-muted);
  font-size: 14px;
}

.bci-card-meta {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.bci-empty {
  padding: 24px;
  border: 1px dashed var(--bci-border);
  border-radius: 12px;
  text-align: center;
}

.bci-modal[hidden] {
  display: none !important;
}

.bci-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.bci-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.bci-modal-panel {
  position: relative;
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.bci-modal-close {
  position: fixed;
  top: 18px;
  right: max(18px, calc(50vw - 460px + 18px));
  z-index: 100001;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.bci-modal-scroll {
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.bci-modal-hero {
  min-height: 280px;
  background: linear-gradient(135deg, #eef8ee, #dfece0);
  background-size: cover;
  background-position: center;
}

.bci-modal-content {
  padding: 24px;
}

.bci-modal-type {
  margin: 0 0 8px;
  color: var(--bci-green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bci-modal-content h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.bci-modal-price {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--bci-green-dark);
}

.bci-modal-location {
  margin: 0 0 16px;
  color: var(--bci-muted);
}

.bci-modal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.bci-modal-facts li {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
}

.bci-modal-description {
  line-height: 1.7;
  color: #374151;
}

.bci-modal-description p:first-child {
  margin-top: 0;
}

.bci-modal-whatsapp {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--bci-green);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.bci-modal-whatsapp:hover {
  background: var(--bci-green-dark);
}

body.bci-modal-open {
  overflow: hidden;
}
