html, body {
  background: #F9F9F9;
  font-size: 14px;
  touch-action: pan-x pan-y;
}

.list-group-item .badge {
  margin-right: 4px;
  user-select: none;
}

img.thumbnail {
  max-width: 400px;
  max-height: 400px;
}

#extracted-table .spinner-border {
  color: #CCC;
}

#extracted-table img,
#place-table img {
  max-width: 100%;
}

#extracted-table .geolocation-flag,
#place-table .geolocation-flag {
  width: 32px;
}

#extracted-table .highlights .list-group {
  overflow: auto;
  max-height: 160px;
}

.marker-container .map-marker .map-marker-link-container a > div,
#place-table .sources .list-group a > div {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.marker-container .map-marker .map-marker-link-container a > div:first-child,
#place-table .sources .list-group a > div:first-child {
  font-weight: bold;
}

.marker-container .map-marker .map-marker-link-container a > div:not(:first-child),
#place-table .sources .list-group a > div:last-child {
  margin-top: 4px;
  color: #999;
}

.marker-container .map-marker .map-marker-link-container a > div:not(:first-child):not(.restaurant-rating) > .bi,
#place-table .sources .list-group a > div:last-child > .bi {
  color: #ddd;
}

#place-table .location a {
  text-decoration: none;
  font-weight: bold;
}

#place-table .location .table-place-icon {
  opacity: .5;
}

#place-table .location .list-group > .list-group-item {
  background: #FFF;
  color: #999;
  border-color: #F3F3F3;
}

#place-table .location .list-group > .list-group-item > i {
  margin-right: 4px;
  color: #E0E0E0;
}

#place-table .location .list-group > .list-group-item > span {
  word-break: break-all;
}

#place-table .location > .small {
  color: #BBB;
}

.restaurant-rating  > .bi {
  color: #ffc107;
}

#home-tab-big-map {
  position: absolute;
  left: 0;
  right: 0;
  top: 91px;
  bottom: 0;
}

#home-big-map {
  height: 100%;
}

#big-map-current-marker {
  position: relative;
  width: 80px;
  height: 80px;
}
#big-map-current-marker > div {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 40px;
  background-image: url('/images/map-arrow.png');
  background-size: cover;
}

#home-tab-keyword .card {
  overflow: hidden;
}

#home-tab-keyword .image-container {
  height: 80px;
  background-color: #eee;
}

#home-tab-keyword .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-title .badge {
  max-width: 150px;
  text-overflow: ellipsis;
  overflow: hidden;
}

#modal-detail .badge {
  margin-right: 4px;
}

#modal-detail .content-container {
  height: 300px;
  overflow-y: auto;
}

#modal-detail-captions {
  overflow: auto;
}

#modal-detail-captions .badge {
  margin-left: 2px;
  margin-right: 2px;
}

#modal-detail-captions > div {
  opacity: 1;
  transition: opacity .15s;
}

#modal-detail-captions > div.inactive {
  opacity: .2;
}

#modal-detail-captions > div + div {
  margin-top: 8px;
}

#modal-detail-captions > div > div {
  display: inline-block;
  margin-bottom: 4px;
}

#modal-detail-capture-image {
  max-width: 100%;
  margin-top: 8px;
  max-height: 150px;
}

.modal-detail-highlight-container {
  overflow: auto;
}

.modal-detail-highlight-container > .list-group-item .list-group > .list-group-item {
  background: #FFF;
  color: #999;
  border-color: #F3F3F3;
}

.modal-detail-highlight-container > .list-group-item.active .list-group > .list-group-item {
  background: #5790e5;
  color: #FFF;
  border-color: #3d80e3;
}

.modal-detail-highlight-container > .list-group-item .list-group > .list-group-item > i {
  margin-right: 4px;
  color: #E0E0E0;
}

.modal-detail-highlight-container > .list-group-item.active .list-group > .list-group-item > i {
  color: #7ba4e1;
}

.modal-detail-highlight-container > .list-group-item .list-group > .list-group-item > span {
  word-break: break-all;
}

.modal-detail-highlight-container > .list-group-item > .small {
  color: #BBB;
}

.modal-detail-highlight-container > .list-group-item.active > .small {
  color: #7da2d9;
}

.modal-detail-highlight-container > .list-group-item .list-group > .list-group-item a {
  color: inherit;
}

#modal-detail-outlines > div {
  opacity: 1;
  transition: opacity .15s;
}

#modal-detail-outlines > div.inactive {
  opacity: .2;
}

#modal-bookmark .badge {
  margin-right: 4px;
}

#modal-bookmark .modal-content {
  overflow: hidden;
}

#modal-bookmark .modal-body {
  padding: 0;
}

.marker-container {
  z-index: 1;
}

.marker-container .map-marker {
  max-width: 300px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  padding: 10px 15px;
  position: relative;
  box-shadow: 0 2px 7px 1px rgba(0,0,0,.3);
  padding-left: 33px;
  min-width: 40px;
  min-height: 40px;
}

.marker-container .map-marker .map-marker-pointer {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #FFF;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translate(-50%);
  width: 0;
}

.marker-container .map-marker .map-marker-pointer-icon {
  width: 16px;
  filter: brightness(100);
  opacity: .3;
  position: absolute;
  left: 12px;
  top: 12px;
  transition: opacity .3s;
}

.marker-container .map-marker .map-marker-link-container a {
  font-size: 12px;
}

.marker-container.inactive {
  z-index: 0;
  pointer-events: none;
}

.marker-container.inactive .map-marker {
  padding-left: 10px;
}

.marker-container.inactive .map-marker .map-marker-pointer-icon {
  opacity: .9;
}

.marker-container.inactive .map-marker .map-marker-text {
  display: none;
}

#extracted-table-toolbar,
#place-table-toolbar {
  display: flex;
  gap: 8px;
}

.table-place-icon {
  width: 16px;
  filter: brightness(0);
  opacity: .15;
}

#extracted-table-progress,
#place-table-progress {
  white-space: nowrap;
  line-height: 32px;
}

#modal-detail-restaurant-photo img {
  width: 120px;
  height: 120px;
  margin-right: 2px;
  margin-bottom: 2px;
}

#modal-detail-restaurant-container {
  position: relative;
  overflow-y: auto;
}

#modal-detail-restaurant-logo {
  float: right;
}
#modal-detail-restaurant-logo > img {
  width: 150px;
}

@media only screen and (min-width: 992px) {
  #modal-detail .content-container {
    height: 600px;
  }
}

@media only screen and (max-width: 991px) {
  #modal-detail-restaurant-container {
    margin-top: 8px;
    height: auto !important;
  }

  #modal-detail-restaurant-content {
    border-top: 1px dotted #ccc;
    padding-top: 8px;
  }
}
