

/* Input fields and API key dropdown */
input, select {
  width: 300px;
  padding: 8px;
  font-size: 1rem;
  margin-top: 1rem;
}

select {
  margin-left: 0.5rem;
}

/* Buttons */
button {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  margin-top: 0.5rem;
}

/* Result list */
ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

li {
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

ul.slider li:hover,
ul.results-wrapper li:hover {
  background-color: #f0f0f0;
}

/* Highlight selected result */
.selected {
  background-color: #d0ebff;
  font-weight: bold;
}

/* Map area */
#map {
  height: 200px;
  max-width: 600px;
  margin-top: 2rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.input-wrapper {
  position: relative;
  display: inline-block;
}

.clear-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2em;
  color: #999;
}

.copy-button {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75rem;
  padding: 4px 8px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-button:hover {
  background-color: #e0e0e0;
}

.copy-feedback {
  margin-left: 8px;
  font-size: 0.75rem;
  color: green;
  font-weight: bold;
}
.code-block-wrapper {
  position: relative;
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.code-block-wrapper pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: white;
  border: 1px solid #ccc;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-button:hover {
  background: #f0f0f0;
}

.copy-button .checkmark {
  color: green;
  font-weight: bold;
}


.input-wrapper input:not(:placeholder-shown) + .clear-button {
  display: inline;
}

.results-wrapper {
  max-height: 200px;
  max-width: 600px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem;
  margin-top: 1rem;
  background-color: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}


ul.slider {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.slider li {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

ul.slider li:last-child {
  border-bottom: none;
}

ul.slider li.selected {
  background-color: #eef;
  font-weight: bold;
}

/* Enhanced background with subtle gradient */
body {
  font-family: sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 2rem;
  background: linear-gradient(to bottom, #eaf4ff, #ffffff);
  background-attachment: fixed;
}

.page-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 2rem auto;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-align: center;
}
p {
  margin-bottom: 2rem;
  /*text-align: center;*/
}
.logo-container {
  text-align: center;
  margin-bottom: 1.5rem;
}
.logo-container img {
  max-width: 200px;
}
.demo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.demo-list li {
  margin-bottom: 1rem;
}
.demo-list a {
  text-decoration: none;
  font-weight: bold;
  color: #2a6ebb;
  background: #e6f0ff;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  display: inline-block;  
  transition: background 0.2s;
}
.demo-list a:hover {
  background: #d2e4ff;
}
footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
}

/* card-style container for better content focus */
.page-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 2rem auto;
}

/* Shared button styling for consistency */
.search-button {
  background-color: #6366f1; /* indigo-500 */
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.search-button:hover {
  background-color: #4f46e5; /* indigo-600 */
}

/* Container for the API key block */
.api-key-block {
  max-width: 28rem; /* ~448px */
  margin-bottom: 1.5rem;
}

/* Dropdown */
.api-key-block select {
  width: 10rem; /* fixed width */
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem;   /* rounded-md */
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;       /* text-sm */
  color: #374151;            /* gray-700 */
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* subtle shadow */
}

.api-key-block select:focus {
  outline: none;
  border-color: #6366f1;  /* indigo-500 */
  box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

/* Input wrapper */
.api-key-block .input-wrapper {
  position: relative;
  flex: 1;
}

.api-key-block input {
  width: 100%;
  border: 1px solid #d1d5db;
  min-width: 18rem;
  border-radius: 0.375rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem; /* extra padding on right for the × */
  font-size: 0.875rem;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.api-key-block input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

/* Clear button */
.api-key-block .clear-button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af; /* gray-400 */
  cursor: pointer;
}

.api-key-block .clear-button:hover {
  color: #374151; /* gray-700 */
}


/* Responsive layout for small screens */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  input, select, button {
    width: 100%;
    font-size: 1.1rem;
  }

  #map {
    height: 500px;
  }

  ul {
    font-size: 1rem;
  }
}
