.tour-map {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 20px;
    align-items: start;
}
.tm-city-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 25px;
}
@media (max-width: 900px) {
	
    .tour-map {
        grid-template-columns: 1fr;
    }
	.tm-city-image img {
  height: 110px;
}
}

.tm-left {
    position: relative;
}
.tm-map-wrap {
    position: relative;
    width: 100%;
}
.tm-map {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.tm-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    cursor: pointer !important;
	padding: 0px !important
}
.tm-pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.25);
    animation: tm-pulse 2s infinite;
}
@keyframes tm-pulse {
    0% {
        box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.25);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, 0.25);
    }
}

/* Сайдбар со списком городов */
.tm-right {
 position: sticky;
  top: 12px;
  max-height: 80vh;
	padding-right: 10px;
	overflow: auto;
}
.tm-search {
    margin-bottom: 8px;
}
.tm-search-input {
width: 100% !important;
  padding: 15px 30px !important;
  border-radius: 50px !important;
  border: 1px solid #ddd !important;
}

.tm-city-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}
.tm-city {
    width: 100%;
    text-align: left;
    background-color: #FFF !important;
    border: 1px solid #FFF;
    border-radius: 6px;
    padding: 8px 10px;
	color:#000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tm-city:hover,
.tm-city:focus {
    outline: none;
	border: 1px solid #D3AF37;
		color:#000 !important
}
.tm-city-count {
    font-size: 12px;
    opacity: 0.7;
}

/* === POPOVER === */
.tm-popover[aria-hidden="true"] { display: none; }
.tm-popover {
  position: absolute; /* внутри .tm-map-wrap */
  inset: 0;           /* контейнер для позиционирования карточки */
  z-index: 30;
  pointer-events: none; /* клики только по карточке */
}

.tm-popover__card {
  position: absolute;
  min-width: 260px;
  max-width: min(340px, 70vw);
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  padding: 14px 16px 12px;
  pointer-events: auto; /* чтобы клики внутри работали */
  transform-origin: var(--tm-popover-origin, top left);
  opacity: 0;
  transform: scale(.96) translateY(4px);
  transition: transform .14s ease-out, opacity .14s ease-out;
}

.tm-popover[data-open="true"] .tm-popover__card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.tm-popover__title { margin: 0 0 8px; font-size: 22px; font-weight:600 }
.tm-popover__content ul { margin: 0; padding-left: 18px; max-height: 260px; overflow: auto; }
.tm-popover__content a { text-decoration: none; color: #000 !important;}

.tm-popover__close {
  position: absolute;
  right: 8px;
  top: -4px;
  border: none;
  font-size: 24px !important;
  cursor: pointer !important;
  padding: 0px !important;
  background-color: transparent !important;
  color: #000 !important;
}

/* Стрелочка */
.tm-popover__arrow {
  position: absolute;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid #eaeaea;
  border-top: 1px solid #eaeaea;
  transform: rotate(45deg);
}

/* Варианты расположения */
.tm-popover[data-placement="top"]    .tm-popover__arrow { bottom: -6px; }
.tm-popover[data-placement="bottom"] .tm-popover__arrow { top: -6px; transform: rotate(225deg); }
.tm-popover[data-placement="left"]   .tm-popover__arrow { right: -6px; transform: rotate(135deg); }
.tm-popover[data-placement="right"]  .tm-popover__arrow { left: -6px; transform: rotate(-45deg); }
