/* Bar map on an article (views/partial/bar-map.twig, js/bar-map.js) */

.bar-map__frame {
  position: relative;
  margin: 1rem 0;
}
.bar-map__canvas {
  height: 500px;
  width: 100%;
  background: #eee;
}
.bar-map__back {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.bar-map__back[hidden] {
  display: none;
}
.bar-map__load {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, #e8e4d8 0%, #d4dde4 25%, #c8d8c0 50%, #ddd8cc 75%, #e0e4d8 100%);
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.bar-map__load small {
  color: #666;
}

.bar-map__hint {
  font-size: var(--font-size-sub-1);
  font-style: italic;
}
.bar-map__index {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 1rem 0;
}
.bar-map__index a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.bar-map__city {
  margin: 2.5rem 0 .5rem;
}
.bar-map__country,
.bar-map__count {
  font-weight: normal;
}
.bar-map__show {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: normal;
  white-space: nowrap;
}

.bar-map__bars {
  margin: .5rem 0 2rem;
  border-collapse: collapse;
}
.bar-map__bars th,
.bar-map__bars td {
  padding: .5rem 1rem .5rem 0;
  font-weight: normal;
  text-align: left;
  vertical-align: top;
}
.bar-map__bars tbody tr + tr {
  border-top: 1px solid #cacaca;
}
.bar-map__bars th p {
  margin: .25rem 0;
}
.bar-map__address {
  display: block;
}
.bar-map__cocktail + .bar-map__cocktail {
  margin-top: .5rem;
}
.bar-map__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes bar-map-flash {
  0% { background-color: rgba(255, 204, 0, .55); }
  60% { background-color: rgba(255, 204, 0, .20); }
  100% { background-color: transparent; }
}
.bar-map__flash {
  animation: bar-map-flash 1.6s ease-out;
}
