:host {
  display: inline-block;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  position: relative;
  width: 100%;
  max-width: 400px;
  min-width: 260px;
}

.control {
  display: flex;
  gap: 8px;
}

.input {
  flex: 1 1 auto;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  transition: all 0.2s;
}

.input:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.map-button {
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.map-button:hover {
  background: #f0f0f0;
  border-color: #007bff;
}

.map-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Map modal and Leaflet styles were moved to body (inline in map-manager) and document.head (Leaflet CSS). Removed here to avoid duplication and conflicts. */




.list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  z-index: 100000;
}

.item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
  line-height: 1.3;
}

.item-address {
  font-size: 12px;
  color: #666;
  line-height: 1.2;
  word-wrap: break-word;
}

.item-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.item:hover,
.item[aria-selected="true"] {
  background: #f4f6f8;
}

.empty {
  padding: 10px;
  color: #999;
}

.selected-info {
  margin-top: 8px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.selected-info-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selected-info-title {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  line-height: 1.3;
}

.selected-info-address {
  font-size: 12px;
  color: #666;
  line-height: 1.2;
  word-wrap: break-word;
}

.selected-info-type {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}


