:root {
  --main-blue: #205289;
  --btn-color: #587da7;
  --btn-hover: #CEE4E9;
}

.bg-main-blue {
  color: #fff;
  background-color: var(--main-blue);
}

.map-icon {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.popup-type-name {
  font-size: 0.75rem;
  color: var(--main-blue);
  background-color: #fff;
}

.popup-object-name {
  font-size: 0.85rem;
}

.popup-table th {
  background-color: #f3f0e9;
}
.popup-table th,
.popup-table td {
  vertical-align: middle;
}
.popup-table td {
  line-height: 2.8;
}
.popup-table .popup-img {
  width: 100px;
  padding: 0.25rem;
}
.popup-img img {
  object-fit: contain;
}
.popup-link .btn,
.popup-link .btn:focus {
  font-size: 0.8rem;
  color: #fff;
  background-color: var(--btn-color);
  border-color: var(--btn-color);
}

.popup-link .btn:focus {
  box-shadow: none;
}

.popup-link .btn:hover {
  color: var(--btn-color);
  background-color: var(--btn-hover);
  border-color: var(--btn-hover);
}

.popup-parking-fee {
  min-width: 150px;
}

[name='style'] + label {
  display: inline-block;
  color: white;
  background-color: royalblue;
  padding: 0.25rem;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  margin-right: 1rem;
  min-width: 3rem;
}
[name='style']:checked + label {
  background-color: dodgerblue;
}

#map-condition {
  position: absolute;
  top: 0;
  right: 4rem;
  background-color: #fff;
  border-radius: 0 0 1rem 1rem;
  border: 4px solid #ccc;
  box-shadow: 0px 1px 6px #666;
  width: 300px;
  height: calc(100% - 3rem);
  overflow: hidden;
  z-index: 4;
}

#map-condition .overflow-scroll {
  overflow-x: hidden;
  overflow-y: auto;
}

#map-condition .condition-label {
  background-color: #ccc;
  font-size: 0.75rem;
}

#map-condition .form-check-input {
  margin-top: 0.5rem;
}

#map-condition .form-check-label,
#map-condition .form-control {
  font-size: 0.75rem;
}

#map-condition .detail-condition {
  display: none;
}

#map-condition .detail-condition.open {
  display: block;
}

#map-condition .btn {
  width: 60%;
  font-size: 0.8rem;
}


#map-slider {
  position: absolute;
  bottom: 0.5rem;
  left: 6rem;
  padding: 0.25rem 0.5rem;
  background-color: #fff;
  border-radius: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  font-size: 0.65rem;
}

#map .wheel-alert {
  display: none;
  color: #fff;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  font-size: 1.2rem;
  letter-spacing: 0.125rem;
  opacity: 0;
  transition: opacity .2s;
  z-index: 5;
}

#map .wheel-alert.show {
  display: flex;
  opacity: 1;
}

#map .maplibregl-popup {
  z-index: 3;
}

#map .icon-single,
#map .icon-couple,
#map .icon-family {
  z-index: 1;
}

#map .icon-hinode {
  z-index: 2;
}
