.fcpi-front,
.fcpi-front * {
  box-sizing: border-box;
}

.fcpi-front {
  margin: 20px 0;
  color: #111827;
}

.fcpi-front-workspace {
  display: flex;
  min-height: 620px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: visible;
  background: #fff;
}

.fcpi-front-sidebar {
  width: 300px;
  min-width: 300px;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.fcpi-front-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
}

.fcpi-front-filter-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.fcpi-front-filter-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.fcpi-front-filter-select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}

.fcpi-front-marker-list {
  flex: 1;
  overflow: visible;
  padding: 10px 16px 16px;
  background: transparent;
}

.fcpi-front-empty-state {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #6b7280;
}

.fcpi-front-marker-item {
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.fcpi-front-marker-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .06);
}

.fcpi-front-marker-name {
  font-size: 14px;
  font-weight: 600;
}

.fcpi-front-marker-sub,
.fcpi-front-marker-gamme {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.fcpi-front-marker-gamme {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fcpi-front-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08);
}

.fcpi-front-badge,
.fcpi-front-list-badge,
.fcpi-front-gamme-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.fcpi-front-gamme-badge {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.fcpi-front-badge-dispo {
  background: #eaf3de;
  color: #3b6d11;
}

.fcpi-front-badge-occupe {
  background: #faece7;
  color: #993c1d;
}

.fcpi-front-badge-reserve {
  background: #faeeda;
  color: #854f0b;
}

.fcpi-front-map-area {
  position: relative;
  flex: 1;
  min-width: 0;
  background: transparent;
  overflow: hidden;
}

.fcpi-front-plan-stage {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fcpi-front-plan-canvas {
  position: relative;
  transform-origin: 0 0;
}

.fcpi-front-plan-image {
  display: block;
  width: auto;
  height: auto;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.fcpi-front-plan-placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #6b7280;
  text-align: center;
}

.fcpi-front-marker {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  border: 0;
  padding: 0;
  background: transparent;
}

.fcpi-front-marker-pin {
  width: 30px;
  height: 30px;
  background: var(--fcpi-marker-color, #1d9e75);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
  transition: transform .15s ease;
}

.fcpi-front-marker:hover .fcpi-front-marker-pin {
  transform: rotate(-45deg) scale(1.12);
}

.fcpi-front-marker-pin span {
  transform: rotate(45deg);
  font-size: 10px;
  font-weight: 700;
  color: #111827;
}

.fcpi-front-pin-dispo {
  background: #1d9e75;
}

.fcpi-front-pin-occupe {
  background: #d85a30;
}

.fcpi-front-pin-reserve {
  background: #ba7517;
}

.fcpi-front-zoom-controls {
  position: sticky;
  right: 14px;
  bottom: 14px;
  margin-left: auto;
  margin-right: 14px;
  margin-bottom: 14px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
}

.fcpi-front-zoom-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .05);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.fcpi-front-zoom-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

.fcpi-front-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .45);
}

.fcpi-front-popup-overlay[hidden],
.fcpi-front-gamme-badge[hidden] {
  display: none !important;
}

.fcpi-front-popup-card {
  width: 420px;
  max-width: calc(100vw - 20px);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
  position: relative;
}

.fcpi-front-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
}

.fcpi-front-gallery {
  position: relative;
}

.fcpi-front-popup-img,
.fcpi-front-popup-img-placeholder {
  display: block;
  width: 100%;
  height: 230px;
}

.fcpi-front-popup-img {
  object-fit: cover;
}

.fcpi-front-popup-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: #eaf3de;
  color: #639922;
}

.fcpi-front-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(17, 24, 39, .68);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.fcpi-front-gallery-prev {
  left: 10px;
}

.fcpi-front-gallery-next {
  right: 10px;
}

.fcpi-front-gallery-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.fcpi-front-popup-body {
  padding: 18px;
}

.fcpi-front-popup-title {
  font-size: 18px;
  font-weight: 700;
}

.fcpi-front-popup-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fcpi-front-popup-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.fcpi-front-meta-item {
  padding: 10px;
  border-radius: 10px;
  background: #f9fafb;
}

.fcpi-front-meta-item span {
  display: block;
  font-size: 11px;
  color: #6b7280;
}

.fcpi-front-meta-item strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  color: #111827;
}

.fcpi-front-popup-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

@media (max-width: 980px) {
  .fcpi-front-workspace {
    flex-direction: column;
    min-height: auto;
  }

  .fcpi-front-sidebar {
    width: 100%;
    min-width: 100%;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    max-height: 340px;
  }

  .fcpi-front-map-area {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .fcpi-front-popup-meta {
    grid-template-columns: 1fr;
  }

  .fcpi-front-popup-img,
  .fcpi-front-popup-img-placeholder {
    height: 190px;
  }
}


.fcpi-front-popup-labels .fcpi-front-badge {
  display: none !important;
}
