/**
 * Main Application Styles
 * Using design system tokens
 */

#app-container {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

#map-container {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  border: var(--border-width-thin) solid rgba(0,0,0,0.3);
  background-color: var(--color-gray);
}

.control-panel, #search-results-panel, #marker-selector-panel {
  position: absolute;
  z-index: var(--z-docked);
  background-color: var(--surface-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
}

#search-panel {
  top: 10px;
  left: 10px;
  width: 400px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: calc(100vw - 20px);
}

.search-result {
  width: 100%;
}

#location-search-results-container, #marker-type-results-container {
  max-height: calc(100vh - 80px);
  max-width: calc(100vw - 20px);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 11;
  border: 1px solid #dee2e6;
  border-top: none;
  background-color: var(--bs-body-bg);
  overflow-y: auto;
  border-bottom-left-radius: 0.375em;
  border-bottom-right-radius: 0.375em;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: none;
}

#close-marker-results-btn, #close-location-results-btn {
  right: 0;
  position: absolute;
  z-index: 12;
}


#tools-panel {
  right: 10px;
  display: block;
  bottom: 10px;
  margin: 0;
  width: 60px;
  padding: 5px;
}

#tools-panel .btn-close {
  margin-bottom: 5px;
  width: 100%;
}

#snapshot {
  margin: 0;
  border: 0;
  width: 3em;
}

.search-result {
  background-color: white;
  color: black;
  margin-bottom: 6px;
}

.search-image {
  width: 90px;
  height: 45px;
  padding-right: 6px;
}

.search-results-text {
  width: 380px;
}

#info-panel {
  top: 70px;
  left: 10px;
  width: 400px;
  max-width: calc(100vw - 20px);
  min-height: calc(100vh - 80px);
  overflow-y: auto;
  display: none;
}

#details-panel {
  bottom: 10px;
  left: 10px;
  width: 400px;
  max-width: calc(100vw - 20px);
  max-height: 40%;
  overflow-y: auto;
  display: none;
}

#close-button {
  padding-right: 6px;
}

.tool-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #0d6efd;
  color: white;
  margin: 2px;
  padding: 2px;
}

.camera-video-feed {
  width: 100%;
  max-width: 600px;
}

.image-icon {
  width: 95%;
  height: auto;
  margin-bottom: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 2px;
}

.image-icon.selected {
  border-color: #007BFF;
}

