
:root {
  --map-button-bg: var(--profile-0);
  --map-button-bg-hover: var(--profile-5);
  --map-button-border: var(--main-text);
  --map-searchbar-bg: var(--map-button-bg);
  --map-searchbar-border: var(--map-button-border);
  --map-searchbar-bg-hover: var(--map-button-bg-hover);

  --map-place-marker-bg: var(--main-text);
  --map-place-marker-bg-hover: var(--profile-1);
  --map-place-marker-text: var(--main-bg);
  --map-place-marker-text-hover: var(--main-text);
}

.ol-viewport {
  background-color: var(--main-bg);
}

.ol-zoom {
  top: unset !important;
  left: unset !important;
  right: 1rem;
  bottom: 1.5rem;
}

.map-control-area {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: calc(100% - 2rem);
  display: flex;
  gap: 1rem;
  pointer-events: none;
}
.map-control-area .left {
  pointer-events: none;
}
.map-control-area .center {
  flex: 1;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.map-control-area .center > * {
  flex: 1;
  min-width: 0;
}
.map-control-area .right {
  pointer-events: none;
  justify-self: right;
}

.map-control-element {
  pointer-events: auto;
}
.map-control-element button {
  background: var(--map-button-bg);
  border: 1px solid var(--map-button-border);
  border-radius: 0;
  padding: 0;
}
.map-control-element button:hover {
  background: var(--map-button-bg-hover);
}

.map-control-exit button {
  display: flex;
}
.map-control-exit button > svg {
  width: 1rem;
  height: 1rem;
  padding: .375rem;
}

.map-searchbar {
  position: relative;
  background: var(--map-searchbar-bg);
  border: 1px solid var(--map-searchbar-border);
}
.map-searchbar {
  max-width: 20em;
}
.map-searchbar .input-area {
  width: 100%;
  display: grid;
  grid-template-areas:
    "input . loading .";
  grid-template-columns: 1fr .5em auto .2em;
  grid-template-rows: auto;
  align-items: center;
}
.map-searchbar .input-area svg.loading {
  grid-area: loading;
}
.map-searchbar .input-area input {
  grid-area: input;
  width: 100%;
  height: 100%;
  padding: .5em 0 .5em .5em;
  border: 0;
  box-sizing: border-box;
}
.map-searchbar .input-area input:hover,
.map-searchbar .input-area input:active,
.map-searchbar .input-area input:focus {
  border-color: unset;
  box-shadow: none;
}
.map-searchbar .results {
  width: 100%;
  position: absolute;
  background-color: var(--map-searchbar-bg);
  border: 1px solid var(--map-searchbar-border);
  left: -1px;
}
.map-searchbar .results .entry,
.map-searchbar .results .no-match,
.map-searchbar .results .search-more {
  padding: .2em .5em;
}
.map-searchbar .results .search-more {
  margin-top: 1rem;
  padding-top: .5em;
  padding-bottom: .5em;
  font-family: var(--bold-font-family);font-weight: var(--bold-font-weight);;
}
.map-searchbar .results .search-more:first-child {
  margin-top: 0;
}
.map-searchbar .results .search-more:not(.no-matches):active,
.map-searchbar .results .search-more:not(.no-matches):focus,
.map-searchbar .results .search-more:not(.no-matches):hover {
  color: var(--venue-map-select-search-candidate-text-hover);
  transition: all var(--hover-in-time) var(--hover-in-fun);
}
.map-searchbar .results .google-use {
  padding: .2em .5em;
  font-family: var(--tiny-font-family);font-weight: var(--tiny-font-weight);;
  font-size: .6rem;
  text-align: right;
  text-transform: uppercase;
}
.map-searchbar .results .entry {
  display: flex;
  align-items: center;
  color: var(--venue-map-select-search-candidate-text);
  border-bottom: 1px solid var(--map-searchbar-bg-hover);
}
.map-searchbar .results .entry:last-child {
  border-bottom: none;
}
.map-searchbar .results .focusable {
  transition: all var(--hover-out-time) var(--hover-out-fun);
}
.map-searchbar .results .focusable:hover,
.map-searchbar .results .focusable:active,
.map-searchbar .results .focusable:focus {
  cursor: pointer;
  outline: none;
  background-color: var(--map-searchbar-bg-hover);
  transition: all var(--hover-in-time) var(--hover-in-fun);
}
.map-searchbar .results .entry.venue svg {
  width: 1.75em;
  height: 1.75em;
  margin: 0 .4em;
}
.map-searchbar .results .entry.venue svg .colorable {
  transition: all var(--hover-out-time) var(--hover-out-fun);
}
.map-searchbar .results .entry.venue:hover svg .colorable,
.map-searchbar .results .entry.venue:active svg .colorable,
.map-searchbar .results .entry.venue:focus svg .colorable {
  fill: var(--map-marker-bg-hover);
  transition: all var(--hover-in-time) var(--hover-in-fun);
}
.map-searchbar .results .entry .info {
  flex: 1;
}
.map-searchbar .results .entry .info .name {
  font-family: var(--bold-font-family);font-weight: var(--bold-font-weight);;
  transition: all var(--hover-out-time) var(--hover-out-fun);
}
.map-searchbar .results .entry:hover .info .name,
.map-searchbar .results .entry:active .info .name,
.map-searchbar .results .entry:focus .info .name {
  color: var(--venue-map-select-search-candidate-text-hover);
  transition: all var(--hover-in-time) var(--hover-in-fun);
}
.map-searchbar .results .entry .info .name {
  font-family: var(--bold-font-family);font-weight: var(--bold-font-weight);;
}

.map-loading-area {
  position: absolute;
  top: 1rem;
  left: 1rem;
  pointer-events: none;
}
.map-loading-area > svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 1200px) {
button.list-map-mode-button {
  display: none;
}}

.list-map-mode.map {
  position: sticky;
  top: var(--common-header-height);
  height: calc(100vh - var(--common-header-height));
}
.list-map-mode.map .list-map-mode-buttons {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: calc(100% - 2rem);
  display: flex;
  justify-content: center;
  gap: 1rem;
  pointer-events: none;
}
.list-map-mode.map .list-map-mode-buttons button {
  pointer-events: auto;
}
@media (max-width: 1199px) {
.list-map-mode.map {
  display: none;
}}
@media (min-width: 1200px) {
.list-map-mode.map.show-map {
  display: block;
}}
@media (max-width: 1199px) {
.list-map-mode.map.show-map {
  display: block;
  position: fixed;
  top: 0;
  width: var(--view-width);
  height: var(--view-height);
  margin: 0;
  z-index: var(--on-top-of-header-z-index);
}

.list-map-mode.map.show-map .ol-viewport {
  border-radius: 0;
}

.list-map-mode.list.show-map {
  min-height: 100vh;
}}

