.evgi-travel-map-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #F4F2EC;
}

.evgi-travel-map {
  width: 100%;
  height: 100%;
}

.evgi-travel-map .maplibregl-canvas:focus,
.evgi-travel-map .maplibregl-canvas:focus-visible {
  outline: none;
}

/* Kill default blue focus outlines inside popups (the post link inside the
   card was receiving :focus after click, which painted a blue underline). */
.maplibregl-popup.evgi-map-popup a:focus,
.maplibregl-popup.evgi-map-popup a:focus-visible {
  outline: none;
}

.evgi-travel-map-container.is-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
}

body.evgi-map-fullscreen-active {
  overflow: hidden;
}

.evgi-map-expand-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  color: #1d2327;
  transition: background-color 0.15s ease;
  z-index: 10;
}

.evgi-map-expand-btn:hover {
  background: #F0E3DE;
  color: #C08080;
}

.evgi-travel-map-container.is-fullscreen .evgi-map-expand-btn svg {
  transform: rotate(180deg);
}

.evgi-map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #646970;
  font-style: italic;
}

/* Popup: dedicated card built in plain CSS (not the Tailwind homepage card) */
.maplibregl-popup.evgi-map-popup .maplibregl-popup-content {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  background: #ffffff;
  width: 200px;
}

.maplibregl-popup.evgi-map-popup--hover {
  pointer-events: none;
}

.maplibregl-popup.evgi-map-popup--hover .maplibregl-popup-content {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.maplibregl-popup.evgi-map-popup .maplibregl-popup-close-button {
  font-size: 18px;
  width: 24px;
  height: 24px;
  line-height: 22px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  margin: 5px;
  border: none;
  z-index: 2;
}

.maplibregl-popup.evgi-map-popup .maplibregl-popup-close-button:hover {
  background: rgba(0, 0, 0, 0.6);
}

.evgi-map-popup-label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #C08080;
  background: #ffffff;
  border-top: 1px solid #f0f0f1;
  line-height: 1.3;
}

.evgi-map-popup-label__pin {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.3;
}

.evgi-map-popup-card {
  display: block;
  width: 100%;
}

.evgi-popup-card,
.evgi-popup-card:visited,
.evgi-popup-card:hover {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.evgi-popup-card__image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f1;
}

.evgi-popup-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease;
}

.evgi-popup-card:hover .evgi-popup-card__image img {
  transform: scale(1.04);
}

.evgi-popup-card__title {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #1d2327;
  background: #ffffff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.evgi-popup-card:hover .evgi-popup-card__title {
  color: #C08080;
}

.evgi-map-popup-divider {
  border-top: 1px dashed #d4d4d6;
}

@media (max-width: 640px) {
  .evgi-travel-map-container {
    height: 380px;
  }
}
