.pfgm-front-wrap {
  max-width: 100%;
}

.pfgm-front-map {
  width: 100%;
  min-height: 200px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.pfgm-map-tools {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0 0 10px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10);
}

.pfgm-map-tools select,
.pfgm-map-tools input[type="search"] {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 10px;
}

.pfgm-map-tools input[type="search"] {
  min-width: 170px;
}

.pfgm-map-tools input[type="search"]::placeholder {
  color: #64748b;
}

.pfgm-map-tools select:focus,
.pfgm-map-tools input[type="search"]:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.pfgm-map-tools .pfgm-map-search-btn {
  min-height: 34px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0 10px;
  cursor: pointer;
}

.pfgm-map-tools .pfgm-map-search-btn:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
}

.pfgm-map-tools .pfgm-map-reset-btn {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  padding: 0 10px;
  cursor: pointer;
}

.pfgm-map-tools .pfgm-map-reset-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.pfgm-front-map .leaflet-container {
  background: #d8d8d8;
}

.pfgm-marker-pin {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: #e11d48;
  transform: rotate(-45deg);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  animation: pfgm-bounce 1.2s infinite ease-in-out;
}

.pfgm-marker-pin:after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 6px;
  top: 6px;
}

.pfgm-marker-icon {
  background: transparent;
  border: 0;
}

.pfgm-popup-shell .leaflet-popup-content-wrapper {
  background: #0b0f15;
  color: #dbe5f2;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  max-width: 360px;
}

.pfgm-popup-shell .leaflet-popup-tip {
  background: #0b0f15;
}

.pfgm-popup-shell .leaflet-popup-content {
  margin: 12px;
  max-height: 62vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.pfgm-map-overlay {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 420px);
  max-height: calc(100% - 12px);
  background: #0b0f15;
  color: #dbe5f2;
  border: 1px solid #1f2a3a;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1200;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  display: none;
}

.pfgm-map-overlay.is-open {
  display: block;
}

.pfgm-map-overlay-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid #334155;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
}

.pfgm-map-overlay-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.pfgm-map-overlay-body {
  box-sizing: border-box;
  padding: 12px;
  max-height: calc(100% - 2px);
  overflow: auto;
}

.pfgm-popup {
  min-width: 260px;
  max-width: 340px;
  font-size: 14px;
}

.pfgm-popup-thumb-wrap {
  margin-bottom: 10px;
}

.pfgm-popup-thumb {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

.pfgm-popup-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 6px;
}

.pfgm-popup-address {
  color: #b9c8dc;
  margin-bottom: 6px;
}

.pfgm-popup-text {
  color: #dbe5f2;
  line-height: 1.4;
}

.pfgm-popup-field {
  margin-bottom: 10px;
}

.pfgm-popup-label {
  color: #f3f7ff;
  font-weight: 700;
  margin-bottom: 3px;
  font-size: 15px;
}

.pfgm-popup-value {
  color: #dbe5f2;
  line-height: 1.35;
  font-size: 18px;
}

.pfgm-popup-hours {
  margin-top: 10px;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #2c3a52;
  border-radius: 6px;
  overflow: hidden;
}

.pfgm-popup-hours-title {
  padding: 8px 10px;
  border-bottom: 1px solid #2c3a52;
  font-weight: 700;
  color: #f3f7ff;
  font-size: 15px;
}

.pfgm-popup-hours-lines {
  padding: 8px 10px;
  line-height: 1.45;
  color: #dbe5f2;
  font-size: 16px;
}

.pfgm-popup-cta-wrap {
  margin-top: 12px;
}

.pfgm-popup-cta {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #2c3a52;
  background: #122033;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.pfgm-popup-cta:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

@media (max-width: 768px) {
  .pfgm-popup {
    min-width: 200px;
    max-width: 260px;
    font-size: 14px;
  }
  .pfgm-popup-label {
    font-size: 14px;
  }
  .pfgm-popup-value {
    font-size: 16px;
  }
  .pfgm-popup-hours-title {
    font-size: 14px;
  }
  .pfgm-popup-hours-lines {
    font-size: 14px;
  }
}

@keyframes pfgm-bounce {
  0%, 100% { transform: translateY(0) rotate(-45deg); }
  50% { transform: translateY(-8px) rotate(-45deg); }
}

/* Style Cluster Rouge */
.pfgm-front-map .marker-cluster-small,
.pfgm-front-map .marker-cluster-medium,
.pfgm-front-map .marker-cluster-large {
  background: rgba(225, 29, 72, 0.25);
}

.pfgm-front-map .marker-cluster-small div,
.pfgm-front-map .marker-cluster-medium div,
.pfgm-front-map .marker-cluster-large div {
  background: #e11d48;
  color: #fff;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.pfgm-front-map .marker-cluster-small div {
  background: #f43f5e;
}

.pfgm-front-map .marker-cluster-medium div {
  background: #e11d48;
}

.pfgm-front-map .marker-cluster-large div {
  background: #be123c;
}

.pfgm-locate-control {
  font-size: 16px;
  line-height: 26px;
  text-align: center;
}

.pfgm-overview-control {
  width: 150px;
  height: 100px;
  border: 1px solid rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pfgm-overview-map {
  width: 150px;
  height: 100px;
}
