/* Munay Custom Interactive Map (Cartagena Active Locations Only) */
.munay-map-card {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #2c2420;
  box-shadow: 0 14px 36px rgba(51, 39, 35, 0.24);
  border: 1px solid rgba(239, 230, 200, 0.25);
  font-family: "Lato", "Giroly", sans-serif;
  text-align: left;
}

.munay-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #2c2420;
  color: #EFE6C8;
  border-bottom: 1px solid rgba(239, 230, 200, 0.14);
}

.munay-map-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.munay-map-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 230, 200, 0.12);
  border: 1px solid rgba(239, 230, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #EFE6C8;
}

.munay-map-title {
  margin: 0;
  font-family: "Giroly", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.25;
}

.munay-map-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(239, 230, 200, 0.78);
  line-height: 1.3;
}

.munay-map-card button.munay-map-reset-btn {
  appearance: none;
  border: 1px solid rgba(239, 230, 200, 0.45);
  background: transparent;
  color: #EFE6C8;
  font-family: "Giroly", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.munay-map-card button.munay-map-reset-btn:hover,
.munay-map-card button.munay-map-reset-btn:focus {
  background: #EFE6C8;
  color: #332723;
  border-color: #EFE6C8;
  outline: none;
}

.munay-map-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 16px;
  background: #3a302b;
  border-bottom: 1px solid rgba(239, 230, 200, 0.12);
}

.munay-map-card button.munay-map-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 230, 200, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #F4ECD6;
  font-family: "Lato", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.25;
}

.munay-map-card button.munay-map-pill:hover,
.munay-map-card button.munay-map-pill:focus {
  background: rgba(239, 230, 200, 0.18);
  color: #FFFFFF;
  border-color: rgba(239, 230, 200, 0.55);
  outline: none;
}

.munay-map-card button.munay-map-pill.is-active,
.munay-map-card button.munay-map-pill.is-active:hover,
.munay-map-card button.munay-map-pill.is-active:focus {
  background: #EFE6C8;
  color: #332723;
  border-color: #EFE6C8;
}

.munay-map-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8bd7c;
  flex-shrink: 0;
}

.munay-map-pill.is-active .munay-map-pill-dot {
  background: #635548;
}

.munay-map-canvas {
  width: 100%;
  height: 460px;
  background: #dce7ef;
  position: relative;
  z-index: 1;
}

/* Defensive overrides against Elementor / Hello theme global img styles */
.munay-map-canvas.leaflet-container img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Custom circular brand pin */
.munay-pin-wrapper {
  background: transparent !important;
  border: none !important;
}

.munay-pin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2b211d;
  border: 2.5px solid #EFE6C8;
  box-shadow: 0 5px 14px rgba(24, 18, 15, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.munay-pin::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #EFE6C8;
}

.munay-pin img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
  pointer-events: none;
}

.munay-pin-wrapper:hover .munay-pin,
.munay-pin.is-active {
  transform: scale(1.16);
  border-color: #d4af37;
  box-shadow: 0 8px 22px rgba(24, 18, 15, 0.62);
}

.munay-pin-wrapper:hover .munay-pin::after,
.munay-pin.is-active::after {
  border-top-color: #d4af37;
}

/* Tooltip */
.leaflet-tooltip.munay-tooltip {
  background: #2c2420;
  color: #EFE6C8;
  border: 1px solid rgba(239, 230, 200, 0.4);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: "Giroly", "Lato", sans-serif;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.leaflet-tooltip-top.munay-tooltip::before {
  border-top-color: #2c2420;
}

/* Rich brand popup */
.munay-map-canvas .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #FFFDF7;
  box-shadow: 0 12px 30px rgba(34, 24, 20, 0.32);
  border: 1px solid rgba(99, 85, 72, 0.2);
}

.munay-map-canvas .leaflet-popup-content {
  margin: 0;
  width: 268px !important;
}

.munay-map-canvas .leaflet-popup-tip {
  background: #FFFDF7;
}

.munay-map-canvas .leaflet-popup-close-button {
  color: #EFE6C8 !important;
  font-size: 20px !important;
  top: 6px !important;
  right: 8px !important;
  width: 26px !important;
  height: 26px !important;
  line-height: 24px !important;
}

.munay-popup-head {
  background: #2c2420;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
}

.munay-popup-head img {
  max-height: 40px !important;
  max-width: 165px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

.munay-popup-body {
  padding: 14px 16px 16px;
  color: #332723;
}

.munay-popup-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #635548;
  background: #F0E7CB;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.munay-popup-title {
  margin: 0 0 6px;
  font-family: "Giroly", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #332723;
  line-height: 1.25;
}

.munay-popup-addr {
  margin: 0 0 13px;
  font-size: 13px;
  line-height: 1.45;
  color: #5a4d45;
}

.munay-popup-actions {
  display: flex;
  gap: 8px;
}

.munay-popup-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: "Giroly", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
  transition: all 0.2s ease;
}

.munay-popup-btn-primary {
  background: #332723;
  color: #FFFFFF !important;
  border: 1px solid #332723;
}

.munay-popup-btn-primary:hover {
  background: #635548;
  border-color: #635548;
}

.munay-popup-btn-secondary {
  background: transparent;
  color: #332723 !important;
  border: 1px solid #635548;
}

.munay-popup-btn-secondary:hover {
  background: #F0E7CB;
}

/* Attribution & zoom control styling */
.munay-map-canvas .leaflet-control-zoom a,
.munay-map-canvas .leaflet-control-zoom a:hover {
  color: #332723 !important;
  text-decoration: none !important;
}

.munay-map-canvas .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.78);
}
.munay-map-canvas .leaflet-control-attribution a {
  color: #635548 !important;
}

@media (max-width: 767px) {
  .munay-map-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
  }
  .munay-map-reset-btn {
    align-self: flex-start;
  }
  .munay-map-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
  }
  .munay-map-canvas {
    height: 390px;
  }
}
