﻿/* places-autocomplete.css — dropdown styling for КАТО Settlement search.
 *
 * Uses project CSS variables (--color-fg, --color-muted) when available,
 * with sensible dark-theme fallbacks. The wrapper is position:relative so
 * the dropdown anchors below the input regardless of containing layout.
 */

.places-ac {
  position: relative;
  display: block;
}

.places-ac__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  list-style: none;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.places-ac__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.places-ac__item:hover {
  background: #1f1f1f;
}

.places-ac__item.is-active {
  background: linear-gradient(
    90deg,
    rgba(245, 194, 5, 0.16) 0%,
    rgba(245, 194, 5, 0.04) 100%
  );
  box-shadow: inset 3px 0 0 var(--color-accent-from, #F5C205);
}

.places-ac__name {
  color: var(--color-fg, #f5f5f5);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
}

.places-ac__item.is-active .places-ac__name {
  color: #ffffff;
}

.places-ac__path {
  color: var(--color-muted, #888);
  font-size: 12px;
  line-height: 1.3;
}

.places-ac__item.is-active .places-ac__path {
  color: #c7c7c7;
}