/* Cracoviae — Cartes interactives des visites guidées (Leaflet) */
.vg-map-card {
  background: #fbf3e2;
  border: 1px solid #ebd9c2;
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: 0 4px 14px rgba(70, 45, 25, 0.06);
  margin-bottom: 26px;
}

.vg-map-card h4 {
  margin: 0 0 14px;
  color: #8e1f54;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #ebd9c2;
  padding-bottom: 10px;
}

.vg-map-badge {
  background: #8e1f54;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
}

.vg-map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.vg-map-tab {
  appearance: none;
  border: 1px solid #d9bfa0;
  background: #fffdfa;
  color: #5b4638;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vg-map-tab:hover {
  border-color: #8e1f54;
  color: #8e1f54;
}

.vg-map-tab.is-active {
  background: #8e1f54;
  border-color: #8e1f54;
  color: #ffffff;
}

.vg-map-tab .vg-tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.vg-map-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4d0b5;
  box-shadow: 0 3px 12px rgba(70, 45, 25, 0.08);
}

.vg-map-canvas {
  width: 100%;
  height: 390px;
  background: #e9dfd1;
  z-index: 1;
}

.vg-map-canvas img,
.vg-map-canvas .leaflet-tile,
.vg-map-canvas svg,
.vg-map-canvas canvas {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  max-height: none !important;
  background: transparent !important;
}

.vg-map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 450;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vg-map-layer-toggle {
  display: inline-flex;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid #d9bfa0;
  border-radius: 22px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(35, 20, 15, 0.22);
}

.vg-map-layer-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #4b3a30;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.vg-map-layer-btn.is-active {
  background: #8e1f54;
  color: #ffffff;
}

.vg-map-reset-btn {
  appearance: none;
  border: 1px solid #d9bfa0;
  background: rgba(255, 253, 250, 0.94);
  color: #4b3a30;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(35, 20, 15, 0.22);
  transition: all 0.16s ease;
}

.vg-map-reset-btn:hover {
  background: #8e1f54;
  border-color: #8e1f54;
  color: #ffffff;
}

/* Marqueurs numérotés personnalisés */
.vg-pin-wrap {
  background: transparent;
  border: none;
}

.vg-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8e1f54;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease;
}

.vg-pin:hover {
  transform: scale(1.14);
}

.vg-pin-rdv {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #8e1f54;
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Infobulles Leaflet */
.vg-map-canvas .leaflet-popup-content-wrapper {
  background: #fffdfa;
  color: #4b3a30;
  border: 1px solid #e4d0b5;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(45, 25, 15, 0.22);
}

.vg-map-canvas .leaflet-popup-tip {
  background: #fffdfa;
}

.vg-map-canvas .leaflet-popup-content {
  margin: 10px 14px;
  font-size: 13.5px;
  line-height: 1.45;
}

.vg-popup-title {
  font-weight: 700;
  color: #8e1f54;
  margin-bottom: 3px;
  font-size: 14px;
}

.vg-popup-desc {
  color: #5b4638;
  font-size: 12.8px;
}

/* Légende d'étapes cliquables sous la carte */
.vg-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.vg-map-chip {
  appearance: none;
  border: 1px solid #e4d0b5;
  background: #fffdfa;
  color: #4b3a30;
  font-size: 12.8px;
  font-weight: 600;
  padding: 5px 11px 5px 6px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.16s ease;
}

.vg-map-chip:hover,
.vg-map-chip.is-selected {
  border-color: #8e1f54;
  background: #f8e8ef;
  color: #7a1b47;
}

.vg-chip-num {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #8e1f54;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Bandeau point de rendez-vous (musées) */
.vg-map-rdv-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #fffdfa;
  border: 1px solid #ebd9c2;
  border-radius: 8px;
  padding: 12px 16px;
}

.vg-map-rdv-addr {
  font-size: 13.8px;
  color: #4b3a30;
  line-height: 1.5;
}

.vg-map-rdv-addr strong {
  color: #8e1f54;
}

.vg-map-gmaps-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #8e1f54;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 22px;
  transition: background 0.18s ease, transform 0.15s ease;
}

.vg-map-gmaps-btn:hover {
  background: #731643;
  transform: translateY(-1px);
}

.vg-map-hint {
  margin: 10px 0 0;
  font-size: 12.2px;
  color: #776253;
}

/* Mise en page 2 colonnes : Programme à gauche + Plan à droite, photos en dessous sur toute la largeur */
.vg-prog-split {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

.vg-prog-split-left {
  flex: 1 1 46%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vg-prog-split-left .vg-prog-list {
  margin-bottom: 8px;
}

/* Étapes du programme cliquables reliées au plan */
.vg-prog-list.vg-interactive {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.vg-prog-list.vg-interactive li {
  position: relative;
  padding: 8px 10px 8px 38px !important;
  margin-bottom: 6px !important;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.vg-prog-list.vg-interactive li::before {
  display: none !important;
  content: none !important;
}

.vg-prog-list.vg-interactive li:hover {
  background: rgba(255, 253, 250, 0.9);
  border-color: #e4d0b5;
}

.vg-prog-list.vg-interactive li.is-selected {
  background: #f8e8ef;
  border-color: #d9a7be;
}

.vg-step-badge {
  position: absolute;
  left: 8px;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8e1f54;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.vg-prog-list.vg-interactive li strong {
  color: #7a1b47;
}

.vg-prog-list.vg-interactive li:hover strong {
  text-decoration: underline;
}

.vg-prog-subhead {
  font-size: 14px;
  font-weight: 700;
  color: #7a1b47;
  margin: 6px 0 6px;
  padding: 4px 10px;
  background: rgba(255, 253, 250, 0.75);
  border-left: 3px solid #8e1f54;
  border-radius: 4px;
}

.vg-prog-pane.is-hidden {
  display: none;
}

.vg-prog-split-right {
  flex: 1 1 54%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vg-map-inline {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vg-map-inline .vg-map-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vg-map-inline .vg-map-canvas {
  flex: 1;
  min-height: 310px;
  height: 100%;
}

.vg-map-inline .vg-map-chips {
  margin-top: 10px;
  gap: 6px;
}

.vg-map-inline .vg-map-chip {
  font-size: 12px;
  padding: 4px 10px 4px 5px;
}

/* Mise en page 2 colonnes pour le point de rendez-vous des musées */
.vg-rdv-split {
  display: flex;
  gap: 22px;
  align-items: stretch;
}

.vg-rdv-left {
  flex: 0 0 42%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: #fffdfa;
  border: 1px solid #ebd9c2;
  border-radius: 10px;
  padding: 18px 20px;
}

.vg-rdv-right {
  flex: 1;
  min-width: 0;
}

.vg-rdv-right .vg-map-canvas {
  height: 270px;
}

/* Grille photo uniforme (3x2 sur desktop, 2 colonnes sur mobile/tablette) */
.vg-prog-photos-6 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 4px !important;
}

article .vg-prog-card .vg-prog-photos-6 img,
.vg-prog-card .vg-prog-photos-6 img,
.vg-prog-photos-6 img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  max-height: 220px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid #e4d0b5 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

@media (max-width: 991px) {
  .vg-prog-photos-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .vg-prog-split,
  .vg-rdv-split {
    flex-direction: column;
  }
  .vg-prog-split-left,
  .vg-prog-split-right,
  .vg-rdv-left,
  .vg-rdv-right {
    flex: none;
    width: 100%;
  }
  .vg-map-inline .vg-map-canvas {
    min-height: 300px;
    height: 300px;
  }
}

@media (max-width: 767px) {
  .vg-map-card {
    padding: 18px 16px;
  }
  .vg-map-canvas {
    height: 300px;
  }
  .vg-map-controls {
    top: 8px;
    right: 8px;
  }
  .vg-map-reset-btn span {
    display: none;
  }
}
