.travel-map-layout {
  --travel-map-height: clamp(15rem, 39vw, 28rem);
}

.travel-map-layout:not(.has-map) .travel-countries {
  max-width: 48rem;
  margin-inline: auto;
}

.travel-map {
  height: var(--travel-map-height);
  background: var(--bb-soft);
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  overflow: hidden;
}

.travel-map .leaflet-control-attribution,
.travel-map .leaflet-control-zoom a {
  color: var(--bb-text);
}

.travel-map .leaflet-control-attribution a {
  color: var(--bb-action);
}

.travel-map .leaflet-top .leaflet-control {
  margin-top: 12px;
}

.travel-map .leaflet-left .leaflet-control {
  margin-left: 12px;
}

.travel-map .leaflet-right .leaflet-control {
  margin-right: 12px;
}

.travel-map-reset {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--bb-border);
  border-radius: 5px;
  background: var(--bb-surface);
  color: var(--bb-text);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 5px rgb(18 62 66 / 15%);
  cursor: pointer;
}

.travel-map-reset:hover {
  background: var(--bb-soft);
}

.travel-map .travel-map-pin {
  display: grid;
  place-items: center;
}

.travel-map-pin::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid var(--bb-deep);
  border-radius: 2px;
  background: var(--bb-sun);
  box-shadow: 0 0 0 2px var(--bb-surface);
  transform: rotate(45deg);
}

.travel-map-pin.is-selected::before {
  background: var(--bb-deep);
  box-shadow: 0 0 0 2px var(--bb-sun);
}

.travel-map-pin-small::before {
  width: 8px;
  height: 8px;
  border-width: 1px;
}

.travel-countries {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--bb-border);
}

.travel-countries:focus-visible {
  outline: 2px solid var(--bb-action);
  outline-offset: 3px;
}

.travel-country + .travel-country {
  border-top: 1px solid var(--bb-border);
}

.travel-country-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  color: var(--bb-text);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

button.travel-country-name {
  border: 0;
  background: transparent;
}

.travel-country summary,
.travel-country button {
  cursor: pointer;
  list-style: none;
}

.travel-country summary::-webkit-details-marker {
  display: none;
}

.travel-country summary::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.travel-country details[open] > summary::after {
  transform: rotate(225deg);
}

.travel-country button::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-radius: 50%;
  background: currentColor;
}

.travel-country.is-selected,
.travel-country details[open] {
  background: var(--bb-soft);
}

.travel-country :is(summary, button):hover {
  background: var(--bb-soft);
}

.travel-country :is(summary, button):focus-visible {
  outline: 2px solid var(--bb-action);
  outline-offset: -2px;
}

.travel-country-places {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--bb-secondary-text);
  font-size: 14px;
  line-height: 1.6;
}

.has-map .travel-map-view {
  margin-bottom: 22px;
}

@media (min-width: 901px) {
  .travel-map-layout.has-map {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }

  .has-map .travel-map-view {
    margin-bottom: 0;
  }

  .has-map .travel-countries {
    max-height: var(--travel-map-height);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
