/* app/assets/css/geoapify-autocomplete.css
 *
 * Matches the site's .lgin-app-form-input look (see _base-app.scss),
 * translated directly from places-autocomplete-new.css for Geoapify.
 */

/* Container wrapper matching the base <gmp-place-autocomplete> element */
.lgin-geoapify-container {
  display: block;
  width: 100%;
  min-width: 220px;
  position: relative;
  font-family: 'Roboto', sans-serif;
  color-scheme: light;
}

/* Inner input field matching ::part(input) */
.lgin-geoapify-container .geoapify-autocomplete-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 16px;
  height: auto;
  border: 1px solid rgb(218, 218, 218);
  border-radius: 10px;
  background-color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #414141;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focus state matching :focus-within */
.lgin-geoapify-container .geoapify-autocomplete-input:focus {
  border-color: rgb(218, 218, 218);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  outline: none;
}

/* Dropdown suggestion list matching ::part(prediction-list) */
.lgin-geoapify-container .geoapify-autocomplete-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  margin-top: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

/* Dropdown item matching ::part(prediction-item) */
.lgin-geoapify-container .geoapify-autocomplete-items div,
.lgin-geoapify-container .geoapify-autocomplete-items .geoapify-autocomplete-item {
  padding: 12px 15px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  background-color: #fff;
  color: #414141;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
}

.lgin-geoapify-container .geoapify-autocomplete-items div:last-child {
  border-bottom: none;
}

/* Item hover / selection state matching ::part(prediction-item-selected) */
.lgin-geoapify-container .geoapify-autocomplete-items div:hover,
.lgin-geoapify-container .geoapify-autocomplete-items .active,
.lgin-geoapify-container .geoapify-autocomplete-items .selected {
  background-color: rgba(217, 51, 45, 0.08) !important;
  color: #414141;
}

/* Clear icon button positioning inside the input */
.lgin-geoapify-container .geoapify-close-button {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

/* Hide suggestions dropdown when invalid numeric start is detected */
.lgin-geoapify-container.lgin-places-invalid-start .geoapify-autocomplete-items {
  display: none !important;
}

/* Powered by attribution text styling */
.lgin-geoapify-attribution {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  color: #888888;
  margin-top: 4px;
  text-align: right;
}

.lgin-geoapify-attribution a {
  color: #666666;
  text-decoration: underline;
}

.lgin-geoapify-attribution a:hover {
  color: #414141;
}