/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Google Maps PlaceAutocompleteElement (Places API New) — force light theme
   and match the project's form-input look. The element uses Shadow DOM so
   Tailwind classes can't reach its internals; we use ::part() instead. */

gmp-place-autocomplete {
  display: block;
  width: 100%;
  color-scheme: light;
  border: 1px solid rgb(156 163 175);   /* gray-400 */
  background-color: #fff;
  font-size: 0.875rem;                  /* text-sm */
  line-height: 1.25rem;
  color: rgb(17 24 39);                 /* gray-900 */
  transition: border-color 150ms;
}

gmp-place-autocomplete:focus-within {
  border-color: rgb(17 24 39);          /* gray-900 on focus */
  outline: none;
}

gmp-place-autocomplete::part(input) {
  padding: 0.5rem 0.75rem;             /* px-3 py-2 */
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: inherit;
  color: inherit;
}

gmp-place-autocomplete::part(prediction-list) {
  background-color: #fff;
  border: 1px solid rgb(156 163 175);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

gmp-place-autocomplete::part(prediction-item) {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: rgb(55 65 81);                 /* gray-700 */
}

gmp-place-autocomplete::part(prediction-item-selected) {
  background-color: rgb(243 244 246);   /* gray-100 */
}
