/* Set the size of the map container */

body {
  background-color: black;
  font-family: 'Montserrat', sans-serif;
}

#map {
  width: 100%;
  height: 80%;
  position: absolute;
  left: 0;
  top: 0;
}


#floating-panel {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 10px;
  position: absolute;
  top: 10px;
  left: 50%;
  width: 70%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 5;
}

/* Estilo para os itens do grid */
.grid-container {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
}

.grid-item {
  display: flex;
  align-items: center;
}

/* Estilo para o campo de entrada */
#search-box {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
}


#btn_run_query,#btn_view_results, #btn_add_ref_pin, #btn_undo_last_query_pin, #btn_remove_all_query_pins, #btn_change_all_radius {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#btn_run_query, #btn_view_results, #btn_add_ref_pin, #btn_undo_last_query_pin, #btn_remove_all_query_pins, #btn_change_all_radius {
  background-color: #0056b3;
}

/* Estilo para o logotipo */
#hypr-logo img {
  height: 40px;
  margin-left: 20px;
}
/* Estilo geral do modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #2c2c2c;
  margin: 15% auto;
  width: 100%;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  color: #fff;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

/* Estilo da barra de filtro */
#filter-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #444;
  color: #fff;
}

/* Estilo das abas */
.tab {
  overflow: hidden;
  border-bottom: 1px solid #444;
}

.tab button {
  background-color: #333;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  color: #fff;
}

.tab button:hover {
  background-color: #444;
}

.tab button.active {
  background-color: #444;
}

/* Conteúdo das abas */
.tabcontent {
  display: none;
  padding: 20px 0;
  border-top: none;
}
.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.download-btn {
  background-color: #4CAF50; /* Verde */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;
}

.download-btn:hover {
  background-color: #45a049;
}

#google-places-modal, #bing-places-modal, #here-places-modal, #osm-places-modal {
  max-height: 400px;
  overflow-y: auto;
}

/* Estilo dos itens no modal */
.modal-item {
  cursor: pointer;
  padding: 10px;
  border-bottom: 1px solid #444;
  margin-bottom: 10px;
  background-color: #333;
  border-radius: 5px;
}

.modal-item .item-details {
  margin-top: 10px;
  display: none;
  white-space: pre-wrap; /* Preserve o formato JSON */
}

.item-details {
  background-color: #3b3939;
  display: -ms-inline-grid;
}

.item-details b {
  display: inline-grid;
  vertical-align: top;
}

.item-details span {
  display: inline-block;
  vertical-align: top;
}

.place-options-container{
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.delete-btn, .highlight-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

.highlight-btn {
  background-color: #4CAF50;
  color: white;
}

.highlight-btn:hover {
  background-color: #388E3C;
}

/* Tabs */
.tab {
  overflow: hidden;
  border-bottom: 1px solid #ccc;
}

.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

#query-input {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #444;
  color: #fff;
}

#submit-query {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#submit-query:hover {
  background-color: #0056b3;
}

.spinner {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

#progress-bar-container {
  width: 100%;
  background-color: #ddd;
  margin-top: 10px;
}

#progress-bar {
  width: 0%;
  height: 25px;
  background-color: #4caf50;
  text-align: center;
  line-height: 25px;
  color: white;
}