/* =========================================================
   Travel map block
   ========================================================= */

.rt-travel-map-block {
  width: min(100%, 1100px);
  margin: 0 auto 40px;
}

.rt-travel-flag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.rt-travel-flag-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f5f5;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rt-travel-flag-link:hover {
  transform: translateY(-2px);
  background: #ebebeb;
}

.rt-travel-flag {
  font-size: 22px;
  line-height: 1;
}

.rt-travel-flag-name {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.rt-travel-map-area {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #eef3f8;
}

.rt-travel-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.rt-travel-map-markers {
  position: absolute;
  inset: 0;
}

/* Marker anchor:
   - center horizontally
   - slightly lower than before to fix the uniform upward offset
*/
.rt-travel-marker-link {
  position: absolute;
  text-decoration: none;
  color: inherit;
  z-index: 2;
  transform: translate(-50%, -50%) translateY(6px);
}

.rt-travel-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Map flag only */
.rt-travel-marker-flag {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  transform: scale(1);
  transform-origin: center center;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s ease;
  z-index: 3;
}

/* Hover: enlarge flag smoothly to 3x */
.rt-travel-marker-link:hover .rt-travel-marker-flag,
.rt-travel-marker-link:focus-visible .rt-travel-marker-flag {
  transform: scale(3);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
  z-index: 10;
}

/* Unused old elements are hidden just in case */
.rt-travel-marker-pin,
.rt-travel-marker-label {
  display: none;
}

@media (max-width: 767px) {
  .rt-travel-flag {
    font-size: 20px;
  }

  .rt-travel-flag-name {
    font-size: 13px;
  }

  .rt-travel-marker-link {
    transform: translate(-50%, -50%) translateY(5px);
  }

  .rt-travel-marker-flag {
    font-size: 18px;
  }

  .rt-travel-marker-link:hover .rt-travel-marker-flag,
  .rt-travel-marker-link:focus-visible .rt-travel-marker-flag {
    transform: scale(2.4);
  }
}
