/* =========================================================
   SHORTCODES — STYLES GLOBAUX
========================================================= */

/* ------------------------------ */
/* Shortcode Meta [bp_bien_meta]  */
/* ------------------------------ */
.bp-sc-meta {
  margin: 20px 0;
}

.bp-sc-title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bp-sc-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-sc-meta-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.bp-sc-meta-list li span {
  font-weight: 700;
  min-width: 160px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .bp-sc-meta-list li {
    flex-direction: column;
    gap: 4px;
  }
  .bp-sc-meta-list li span {
    min-width: 0;
  }
}

/* ------------------------------ */
/* Galerie Pro [bp_bien_gallery_pro] */
/* ------------------------------ */
.bp-gal {
  margin: 24px 0;
}

.bp-gal__hero {
  margin-bottom: var(--bp-gap, 18px);
}

.bp-gal__heroBtn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
}

.bp-gal__heroImg {
  width: 100%;
  height: auto;
  display: block;
}

.bp-gal__grid {
  display: grid;
  grid-template-columns: repeat(var(--bp-cols, 5), minmax(0, 1fr));
  gap: var(--bp-gap, 18px);
}

@media (max-width: 1100px) {
  .bp-gal__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .bp-gal__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .bp-gal__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bp-gal__item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.2s ease;
}

.bp-gal__item:hover {
  transform: scale(1.02);
}

.bp-gal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------ */
/* Grid de biens [bp_biens] [bp_biens_current] */
/* ------------------------------ */
.bp-sc-biens {
  margin: 24px 0;
}

.bp-sc-grid {
  display: grid;
  grid-template-columns: repeat(var(--bp-cols, 3), minmax(0, 1fr));
  gap: var(--bp-gap, 16px);
}

@media (max-width: 1024px) {
  .bp-sc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bp-sc-grid {
    grid-template-columns: 1fr;
  }
}

.bp-sc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.bp-sc-card:hover {
  transform: scale(1.02);
}

.bp-sc-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
  border: 6px solid #fff;
}

.bp-sc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-sc-caption {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #ff7d2d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.bp-sc-excerpt {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  text-align: center;
}

/* ------------------------------ */
/* Catégories [bp_categories]     */
/* ------------------------------ */
.bp-sc-cats {
  margin: 24px 0;
}

.bp-sc-cat {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  background: #f9f9f9;
  border-radius: 0;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.bp-sc-cat:hover {
  background: #fff;
  border-color: #1a1a1a;
  transform: translateY(-2px);
}

.bp-sc-cat-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bp-sc-cat-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* ------------------------------ */
/* Taxonomy title/desc */
/* ------------------------------ */
.bp-sc-term-title {
  margin: 0 0 16px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bp-sc-term-desc {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  max-width: 720px;
}

.bp-sc-term-desc p {
  margin: 0 0 12px;
}

.bp-sc-term-desc p:last-child {
  margin-bottom: 0;
}